From 3e793a598509b9b25d95573e7cd071eec33cc924 Mon Sep 17 00:00:00 2001 From: Nick Bland Date: Sat, 14 May 2022 16:48:48 +1000 Subject: [PATCH] Update to use dark for dark theme, light for light theme Feel like overall, using a white navbar & footer with black hero image was a little too clashing. Decided black for black, white for white looks better. --- components/navbar.tsx | 16 ++++++++-------- components/themeSwitch.tsx | 8 ++++---- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/components/navbar.tsx b/components/navbar.tsx index 501f0ad..2445a28 100644 --- a/components/navbar.tsx +++ b/components/navbar.tsx @@ -25,11 +25,11 @@ const NavBar = ({children, title = "nickbland.dev | Home", description = "A webs
- +
-
+
+
- Home - Home 2 + Home + About
@@ -86,9 +86,9 @@ const NavBar = ({children, title = "nickbland.dev | Home", description = "A webs >
- Home - Home 2 - + Home + About +
diff --git a/components/themeSwitch.tsx b/components/themeSwitch.tsx index 1ac7bb1..76e15a4 100644 --- a/components/themeSwitch.tsx +++ b/components/themeSwitch.tsx @@ -14,17 +14,17 @@ export const ThemeSwitch = () => { } return ( -
+
- Dark Mode + Dark Mode + className={`${enabled ? 'translate-x-6' : 'translate-x-1'} inline-block w-4 h-4 transform bg-black dark:bg-white rounded-full transition-transform`} />