aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFuwn <[email protected]>2023-09-27 23:42:24 -0700
committerFuwn <[email protected]>2023-09-27 23:42:24 -0700
commitfd4e5e94174dfd098d8ff98601afef58e7aba623 (patch)
tree662a70b7f82586aab1ee976c2348325e3ebe30d5
parentfeat(wrapped): add error (diff)
downloaddue.moe-fd4e5e94174dfd098d8ff98601afef58e7aba623.tar.xz
due.moe-fd4e5e94174dfd098d8ff98601afef58e7aba623.zip
feat(wrapped): add links to names
-rw-r--r--src/lib/Tools/Wrapped.svelte21
1 files changed, 16 insertions, 5 deletions
diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index dcf220b5..5caf7a63 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -93,9 +93,11 @@
</a>
<div>
<div>
- <b>
- {currentUserIdentity.name}
- </b>
+ <a href={`https://anilist.co/user/${currentUserIdentity.name}`} target="_blank">
+ <b>
+ {currentUserIdentity.name}
+ </b>
+ </a>
</div>
<div>
Status Posts: {wrapped.activities.statusCount}
@@ -157,7 +159,9 @@
<ol>
{#each animeList?.slice(0, 5) as anime}
<li>
- {anime.title.english || anime.title.romaji || anime.title.native}
+ <a href={`https://anilist.co/anime/${anime.id}`} target="_blank">
+ {anime.title.english || anime.title.romaji || anime.title.native}
+ </a>
</li>
{/each}
</ol>
@@ -182,7 +186,9 @@
<ol>
{#each mangaList?.slice(0, 5) as manga}
<li>
- {manga.title.english || manga.title.romaji || manga.title.native}
+ <a href={`https://anilist.co/manga/${manga.id}`} target="_blank">
+ {manga.title.english || manga.title.romaji || manga.title.native}
+ </a>
</li>
{/each}
</ol>
@@ -231,4 +237,9 @@
flex: 1 1 300px;
/* text-align: center; */
}
+
+ a {
+ text-decoration: none;
+ color: unset;
+ }
</style>