diff --git a/src/app/globals.css b/src/app/globals.css index 4c4bcf61..e387a414 100644 --- a/src/app/globals.css +++ b/src/app/globals.css @@ -30,6 +30,15 @@ /* other browsers */ } +@media (prefers-reduced-motion: reduce) { + * { + animation-duration: 0.01ms !important; + animation-iteration-count: 1 !important; + transition-duration: 0.01ms !important; + scroll-behavior: auto !important; + } +} + p, div { text-align: justify; diff --git a/src/components/footer.tsx b/src/components/footer.tsx index b83b817d..6182dfb9 100644 --- a/src/components/footer.tsx +++ b/src/components/footer.tsx @@ -1,5 +1,6 @@ "use client"; +import { SunIcon, MoonIcon } from "@heroicons/react/24/outline"; import { Switch } from "@heroui/react"; import { useTheme } from "@/contexts/theme"; @@ -33,7 +34,13 @@ const Footer = () => { aria-label="Toggle dark mode" > - + + {theme === "dark" ? ( + + ) : ( + + )} + diff --git a/src/components/header.tsx b/src/components/header.tsx index 07e9dcdd..63c4a1e0 100644 --- a/src/components/header.tsx +++ b/src/components/header.tsx @@ -95,7 +95,7 @@ export const MainHeader = () => { aria-label="Toggle menu" aria-expanded={isMenuOpen} aria-controls="mobile-menu" - className="p-2" + className="p-2 focus-visible:outline-none focus-visible:ring-2 focus-visible:ring-primary rounded-md" > { {sections.map((section) => (
  • { {sections.map((section) => (
  • {