From 24a626bbeb2cb7823d997338c508739229198e66 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Th=C3=A9o?= <43091603+glazk0@users.noreply.github.com>
Date: Sun, 24 Sep 2023 21:57:30 +0200
Subject: [PATCH] fix: semantic & target blank
---
src/lib/components/Sidenav.svelte | 163 ++++++++++++++----------------
1 file changed, 77 insertions(+), 86 deletions(-)
diff --git a/src/lib/components/Sidenav.svelte b/src/lib/components/Sidenav.svelte
index 81c4621..ec07dd7 100644
--- a/src/lib/components/Sidenav.svelte
+++ b/src/lib/components/Sidenav.svelte
@@ -80,32 +80,30 @@
}}
href={item.slug}
class={cn(
- 'flex justify-center rounded-md px-3 py-3 text-sm transition-colors duration-150 lg:justify-start',
+ 'flex items-center justify-center gap-2 rounded-md px-3 py-3 text-sm transition-colors duration-150 lg:justify-start',
{
'bg-primary-700': isActive(item.slug),
'group hover:bg-primary-700': !isActive(item.slug)
}
)}
>
-
-
-
- {item.name}
-
-
+
+
+ {item.name}
+
{/each}
@@ -118,22 +116,17 @@
-
-
-
-
- Aide
-
-
+
+
+ Aide
+
-
@@ -142,24 +135,22 @@
isOpen = false;
}}
href="mailto:cyberbottle@peerat.dev"
- class="group flex justify-center rounded-md px-3 py-3 text-sm transition-colors duration-150 hover:bg-primary-700 lg:justify-start"
+ class="group flex items-center justify-center gap-2 rounded-md px-3 py-3 text-sm transition-colors duration-150 hover:bg-primary-700 lg:justify-start"
>
-
-
-
- Mail
-
-
+
+
+ Mail
+
-
@@ -168,24 +159,24 @@
isOpen = false;
}}
href="//discord.gg/72vuHcwUkE"
- class="group flex justify-center rounded-md px-3 py-3 text-sm transition-colors duration-150 hover:bg-primary-700 lg:justify-start"
+ target="_blank"
+ rel="noopener"
+ class="group flex items-center justify-center gap-2 rounded-md px-3 py-3 text-sm transition-colors duration-150 hover:bg-primary-700 lg:justify-start"
>
-
-
-
- Discord
-
-
+
+
+ Discord
+
-
@@ -194,24 +185,24 @@
isOpen = false;
}}
href="//git.peerat.dev"
- class="group flex justify-center rounded-md px-3 py-3 text-sm transition-colors duration-150 hover:bg-primary-700 lg:justify-start"
+ target="_blank"
+ rel="noopener"
+ class="group flex items-center justify-center gap-2 rounded-md px-3 py-3 text-sm transition-colors duration-150 hover:bg-primary-700 lg:justify-start"
>
-
-
-
- Git
-
-
+
+
+ Git
+