diff --git a/components/Header.tsx b/components/Header.tsx index 362b7cd..3cd13aa 100644 --- a/components/Header.tsx +++ b/components/Header.tsx @@ -32,7 +32,8 @@ const Header = () => { {link.title} diff --git a/components/MobileNav.tsx b/components/MobileNav.tsx index b777b82..7cc2f17 100644 --- a/components/MobileNav.tsx +++ b/components/MobileNav.tsx @@ -26,7 +26,8 @@ const MobileNav = () => { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" - className="h-8 w-8 text-gray-900 dark:text-gray-100" + className="h-8 w-8 text-gray-900 hover:text-primary-500 dark:text-gray-100 + dark:hover:text-primary-400" > { xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" - className="text-gray-900 dark:text-gray-100" + className="text-gray-900 hover:text-primary-500 dark:text-gray-100 + dark:hover:text-primary-400" > {
{link.title} diff --git a/components/SearchButton.tsx b/components/SearchButton.tsx index 3685066..9492caf 100644 --- a/components/SearchButton.tsx +++ b/components/SearchButton.tsx @@ -18,7 +18,8 @@ const SearchButton = () => { viewBox="0 0 24 24" strokeWidth={1.5} stroke="currentColor" - className="h-6 w-6 text-gray-900 dark:text-gray-100" + className="h-6 w-6 text-gray-900 hover:text-primary-500 dark:text-gray-100 + dark:hover:text-primary-400" > ( xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" - className="h-6 w-6 text-gray-900 dark:text-gray-100" + className="group:hover:text-gray-100 h-6 w-6" > ( xmlns="http://www.w3.org/2000/svg" viewBox="0 0 20 20" fill="currentColor" - className="h-6 w-6 text-gray-900 dark:text-gray-100" + className="group:hover:text-gray-100 h-6 w-6" > @@ -37,13 +37,14 @@ const Monitor = () => ( stroke-width="2" stroke-linecap="round" stroke-linejoin="round" - className="h-6 w-6 text-gray-900 dark:text-gray-100" + className="group:hover:text-gray-100 h-6 w-6" > ) +const Blank = () => const ThemeSwitch = () => { const [mounted, setMounted] = useState(false) @@ -55,8 +56,10 @@ const ThemeSwitch = () => { return (
-
- {resolvedTheme === 'dark' ? : } +
+ + {mounted ? resolvedTheme === 'dark' ? : : } +
{
- + {({ active }) => ( + + )} - + {({ active }) => ( + + )} - + {({ active }) => ( + + )}