diff --git a/frontend/src/components/layout/navbar.tsx b/frontend/src/components/layout/navbar.tsx index 83ae306..9354717 100644 --- a/frontend/src/components/layout/navbar.tsx +++ b/frontend/src/components/layout/navbar.tsx @@ -5,6 +5,7 @@ import { useAuth } from "@/context/auth-context"; import Link from "next/link"; import { usePathname } from "next/navigation"; import ThemeToggle from "@/components/ui/theme-toggle"; +import { Button } from "@/components/ui/button"; export default function Navbar() { const { user, isAuthenticated, logout } = useAuth(); @@ -16,60 +17,53 @@ export default function Navbar() { return null; } + const navLinkClass = (path: string) => + `text-sm transition-colors ${ + pathname === path || pathname?.startsWith(path) + ? "text-primary font-medium" + : "text-muted-foreground hover:text-primary" + }`; + return ( -
-
-
-
- - EventSpace - +
+
+
+ + EventSpace + - {isAuthenticated && ( - - )} -
- -
- - - {isAuthenticated ? ( -
- - {user?.first_name} - - -
- ) : ( - - Sign in + {isAuthenticated && ( +
+ + Events + + + )} +
+ +
+ + + {isAuthenticated ? ( +
+ + {user?.first_name} + + +
+ ) : ( + + )}