From 8535965ea739586d2d7826a0001061e42a648022 Mon Sep 17 00:00:00 2001 From: Nathan Cummins Date: Mon, 11 Aug 2025 18:04:58 +0930 Subject: [PATCH] Navbar gray when dark mode --- src/components/Navbar.astro | 34 ++++++++++++++++++++++++++-------- 1 file changed, 26 insertions(+), 8 deletions(-) diff --git a/src/components/Navbar.astro b/src/components/Navbar.astro index 3481383..a952fb0 100644 --- a/src/components/Navbar.astro +++ b/src/components/Navbar.astro @@ -24,12 +24,14 @@ const { navbarDisplay = "normal" } = Astro.props as Props; "mx-auto border-b-1 border-solid px-4 shadow-lg transition", navbarDisplay == "transparent" ? "border-gray-500 bg-transparent" - : "border-white bg-white" + : "border-white bg-white dark:border-gray-700 dark:bg-gray-700 dark:text-white" ]} >
-
+
{person.names.first} {person.names.last} @@ -50,7 +52,9 @@ const { navbarDisplay = "normal" } = Astro.props as Props; href={link.href} class:list={[ "font-header font-medium uppercase transition hover:text-gray-300", - pathName === link.href ? "text-primary" : "text-gray-500" + pathName === link.href + ? "text-primary" + : "text-gray-500 dark:text-white" ]} aria-current={pathName === link.href ? "page" : undefined} > @@ -64,7 +68,7 @@ const { navbarDisplay = "normal" } = Astro.props as Props;
@@ -75,7 +79,7 @@ const { navbarDisplay = "normal" } = Astro.props as Props;