From 116e635d25dd5317ce397b61435eea5a21bb75ea Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Mon, 9 Jun 2025 20:48:07 -0700
Subject: fix: SvelteKit migration errors

---
 src/lib/Events/Event.svelte | 54 ++++++++++++++++++++++-----------------------
 1 file changed, 26 insertions(+), 28 deletions(-)

(limited to 'src/lib/Events/Event.svelte')

diff --git a/src/lib/Events/Event.svelte b/src/lib/Events/Event.svelte
index a2b1d2b5..eab67402 100644
--- a/src/lib/Events/Event.svelte
+++ b/src/lib/Events/Event.svelte
@@ -7,39 +7,37 @@
   export let avatar = false;
 </script>
 
-<a href={event.anilist_url} target="_blank">
-  <div
-    class="card"
-    id="user-grid"
-    style={`background-image: ${event.banner ? `url(${event.banner})` : 'none'}; padding: 0;`}
-  >
-    {#if event}
-      <img src={event.banner} alt="" id="cover-image" />
-    {/if}
+<div
+  class="card"
+  id="user-grid"
+  style={`background-image: ${event.banner ? `url(${event.banner})` : 'none'}; padding: 0;`}
+>
+  {#if event}
+    <img src={event.banner} alt="" id="cover-image" />
+  {/if}
 
-    <div class="card" id="user-grid-content">
-      {#if avatar}
-        <div id="user-grid-avatar">
-          <a href={root(`/events/group/${event.group.anilist_username}`)}>
-            <img src={event.group.avatar} alt="" width="100vw" id="avatar" />
-          </a>
-        </div>
-      {/if}
+  <div class="card" id="user-grid-content">
+    {#if avatar}
+      <div id="user-grid-avatar">
+        <a href={root(`/events/group/${event.group.anilist_username}`)}>
+          <img src={event.group.avatar} alt="" width="100vw" id="avatar" />
+        </a>
+      </div>
+    {/if}
 
-      <div id="user-grid-content-text">
-        <p>
-          <a href={event.anilist_url} target="_blank" class="title-text">
-            {event.title}
-          </a>
-          <br />
-          {$locale().dateFormatter(new Date(event.created_at))}
-        </p>
+    <div id="user-grid-content-text">
+      <p>
+        <a href={event.anilist_url} target="_blank" class="title-text">
+          {event.title}
+        </a>
+        <br />
+        {$locale().dateFormatter(new Date(event.created_at))}
+      </p>
 
-        <p>{event.description}</p>
-      </div>
+      <p>{event.description}</p>
     </div>
   </div>
-</a>
+</div>
 
 <style>
   #user-grid-content {
-- 
cgit v1.2.3

