diff --git a/components/Navbar/DesktopNav.tsx b/components/Navbar/DesktopNav.tsx index 381d26e..f8bf358 100644 --- a/components/Navbar/DesktopNav.tsx +++ b/components/Navbar/DesktopNav.tsx @@ -60,8 +60,12 @@ const Nav = ({openNav}: Props) => {
{navLinks.map((link) => ( -

{link.label}

+

+ {link.label} +

+ ))}
@@ -72,7 +76,7 @@ const Nav = ({openNav}: Props) => { {/* Theme Toggle Button */} diff --git a/components/Navbar/MobileNav.tsx b/components/Navbar/MobileNav.tsx index 331b6ff..89448ca 100644 --- a/components/Navbar/MobileNav.tsx +++ b/components/Navbar/MobileNav.tsx @@ -1,19 +1,22 @@ -import {navLinks} from "@/constant/Constant"; +import { navLinks } from "@/constant/Constant"; import Link from "next/link"; -import React, {useContext} from "react"; -import {CgClose} from "react-icons/cg"; -import {ThemeContext} from "@/components/provider/ThemeProvider"; -import {themeColors} from "@/components/Helper/ThemeColors"; +import React, { useContext } from "react"; +import { CgClose } from "react-icons/cg"; +import { ThemeContext } from "@/components/provider/ThemeProvider"; +import { themeColors } from "@/components/Helper/ThemeColors"; type Props = { showNav: boolean; closeNav: () => void; }; -const MobileNav = ({closeNav, showNav}: Props) => { +const MobileNav = ({ closeNav, showNav }: Props) => { const navOpen = showNav ? "translate-y-0 opacity-100" : "-translate-y-20 opacity-0 pointer-events-none"; - const {theme, toggleTheme} = useContext(ThemeContext); + const { theme, toggleTheme } = useContext(ThemeContext); const colors = themeColors[theme]; + + const cleanDarkBackground = theme === "dark" ? "#2A2A2A" : colors.primaryBg; + return (
{/* overlay background */} @@ -27,17 +30,14 @@ const MobileNav = ({closeNav, showNav}: Props) => { {/* nav menu */}
{/* Close icon */} {navLinks.map((link) => ( @@ -52,7 +52,7 @@ const MobileNav = ({closeNav, showNav}: Props) => { diff --git a/constant/Constant.ts b/constant/Constant.ts index 0335c99..ffd3c3a 100644 --- a/constant/Constant.ts +++ b/constant/Constant.ts @@ -11,7 +11,7 @@ export const navLinks = [ }, { id: 3, - url: 'contact', - label: 'Kontakt', + url: 'services', + label: 'Leistungen', } ]; \ No newline at end of file