Added gitea button

This commit is contained in:
Alexis
2026-07-07 21:25:29 +02:00
parent 12725101af
commit a2281d5363
3 changed files with 24 additions and 14 deletions

View File

@@ -28,7 +28,7 @@ const onHome = Astro.url.pathname === "/"
class="block py-2 underline-offset-4 hover:underline text-body/80 hover:text-body"
class:list={
{
"text-primary/80 hover:text-primary": onHome,
"text-primary/90 hover:text-primary": onHome,
"text-body/80 hover:text-body": !onHome
}
}
@@ -44,7 +44,7 @@ const onHome = Astro.url.pathname === "/"
class="block py-2 underline-offset-4 hover:underline text-body/80 hover:text-body"
class:list={
{
"text-primary/80 hover:text-primary": Astro.url.pathname.startsWith(link.to),
"text-primary/90 hover:text-primary": Astro.url.pathname.startsWith(link.to),
"text-body/80 hover:text-body": !Astro.url.pathname.startsWith(link.to)
}
}