style: light- and darkmode support for header

This commit is contained in:
robin committed 2026-07-24 16:50:36 +02:00
1 parent be9bd26c88
commit 3107dba079
1 file changed
+6 -3
+6 -3
View File
@@ -9,8 +9,11 @@ export default function NavItem({ path, children }: { path: string; children: Re
const isActive = pathname === path;
return (
<Link href={path} className={`px-3 py-1 rounded-full hover:bg-blue-300 ${isActive ? "underline" : ""}`}>
{children}
</Link>
<Link
href={path}
className={`px-3 py-1 rounded-full border border-transparent hover:border-current transition-all ${
isActive ? "bg-black text-white dark:bg-white dark:text-black" : ""
}`}
>{children}</Link>
);
}