diff --git a/components/layout/NavBar.tsx b/components/layout/NavBar.tsx index 8763d3e..c28d50d 100644 --- a/components/layout/NavBar.tsx +++ b/components/layout/NavBar.tsx @@ -23,26 +23,29 @@ function isActive(pathname: string, href: string): boolean { return href === "/" ? pathname === "/" : pathname === href || pathname.startsWith(`${href}/`); } +/** Desktop tab strip - borderless chips; the active tab lights up with a + * primary-tinted fill, matching the drawer rows' active treatment. */ function NavLinks({ onNavigate }: { onNavigate?: () => void }) { const pathname = usePathname(); return ( <> - {LINKS.map((link) => ( - - - {link.label} - - ))} + {LINKS.map((link) => { + const active = isActive(pathname, link.href); + return ( + + + {link.label} + + ); + })} ); } @@ -62,7 +65,7 @@ function MobileNavLinks({ onNavigate }: { onNavigate: () => void }) { onClick={onNavigate} className={cn( "flex items-center gap-3 rounded-lg px-3 py-3 text-sm font-medium transition-colors", - active ? "bg-accent text-foreground" : "text-muted-foreground hover:bg-accent/50 hover:text-foreground", + active ? "bg-primary/10 text-foreground" : "text-muted-foreground hover:bg-accent/50 hover:text-foreground", )} > @@ -120,7 +123,7 @@ export function NavBar() { Sexy -