Enhance Navbar responsiveness and theming

- Refactor `MobileNav` with theme context support and improved animations.
- Adjust `DesktopNav` background behavior for better clarity.
- Update `Hero` image style with scaling for visual impact.
This commit is contained in:
2025-04-06 00:20:59 +02:00
parent 35e3632011
commit 4193e45592
3 changed files with 46 additions and 22 deletions

View File

@@ -40,9 +40,11 @@ const Nav = ({openNav}: Props) => {
return (
<div
className={`fixed ${navBg ? "shadow-md" : "fixed"} w-full transition-all duration-300 ease-in-out ${navHeight} z-[1000]`}
className={`fixed w-full transition-all duration-300 ease-in-out ${navHeight} z-[1000] ${
navBg ? "shadow-md" : ""
}`}
style={{
backgroundColor: navBg ? "var(--nav-bg)" : "var(--primary-bg)",
backgroundColor: navBg ? "var(--nav-bg)" : "transparent", // <-- changed
color: "var(--primary-text)",
}}
>