Ui update #7
@@ -9,8 +9,11 @@ export default function NavItem({ path, children }: { path: string; children: Re
|
|||||||
const isActive = pathname === path;
|
const isActive = pathname === path;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<Link href={path} className={`px-3 py-1 rounded-full hover:bg-blue-300 ${isActive ? "underline" : ""}`}>
|
<Link
|
||||||
{children}
|
href={path}
|
||||||
</Link>
|
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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
Reference in new issue
Block a user