From fd4e5e94174dfd098d8ff98601afef58e7aba623 Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Wed, 27 Sep 2023 23:42:24 -0700
Subject: feat(wrapped): add links to names

---
 src/lib/Tools/Wrapped.svelte | 21 ++++++++++++++++-----
 1 file changed, 16 insertions(+), 5 deletions(-)

(limited to 'src/lib/Tools/Wrapped.svelte')

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>
-- 
cgit v1.2.3

