diff --git a/components/Navbar/DesktopNav.tsx b/components/Navbar/DesktopNav.tsx index 35e2967..15c43a7 100644 --- a/components/Navbar/DesktopNav.tsx +++ b/components/Navbar/DesktopNav.tsx @@ -19,6 +19,8 @@ const Nav = ({openNav}: Props) => { const {theme, toggleTheme} = useContext(ThemeContext); const colors = themeColors[theme]; + const navColorClass = theme === "dark" || !navBg ? "text-white" : "text-black"; + useEffect(() => { const handler = () => { if (window.scrollY >= 90) { @@ -44,15 +46,13 @@ const Nav = ({openNav}: Props) => { navBg ? "shadow-md" : "" }`} style={{ - backgroundColor: navBg ? "var(--nav-bg)" : "transparent", // <-- changed - color: "var(--primary-text)", + backgroundColor: navBg ? "var(--nav-bg)" : "transparent", }} >
{/* LOGO */} -

+

Rhein Software

@@ -61,18 +61,17 @@ const Nav = ({openNav}: Props) => { {navLinks.map((link) => (

+ className={`nav_link ${contentSize} ${navColorClass} transition-all duration-300 ease-in-out uppercase font-semibold`} + > {link.label}

- ))}
{/* Right Side Buttons */}
- {/* Portal Button */} + {/* Contact Button */} @@ -93,7 +92,7 @@ const Nav = ({openNav}: Props) => { {/* Burger Menu (for mobile) */}
@@ -101,4 +100,4 @@ const Nav = ({openNav}: Props) => { ); }; -export default Nav; \ No newline at end of file +export default Nav;