feat: add NavItem component

feat: add Header component with blur effect
feat: first steps into dark- and light-mode support
This commit is contained in:
robin committed 2026-07-24 16:37:58 +02:00
1 parent c2f97547e5
commit be9bd26c88
6 files changed
+58 -65

No files matched your search

+16
View File
@@ -0,0 +1,16 @@
"use client";
import Link from "next/link";
import { usePathname } from "next/navigation";
import { ReactNode } from "react";
export default function NavItem({ path, children }: { path: string; children: ReactNode }) {
const pathname = usePathname();
const isActive = pathname === path;
return (
<Link href={path} className={`px-3 py-1 rounded-full hover:bg-blue-300 ${isActive ? "underline" : ""}`}>
{children}
</Link>
);
}