fuck if i know

This commit is contained in:
2025-12-04 15:06:57 -05:00
parent fb3c23fa46
commit cb16698940
76 changed files with 1197 additions and 603 deletions
+27 -3
View File
@@ -7,8 +7,11 @@ import { useAuth } from "@/context/AuthContext";
export function TopNav() {
const { user, logout, loading } = useAuth();
const isAuthenticated = !!user;
return (
<header className="border-b border-zinc-800 bg-black/95 backdrop-blur">
{/* Early access bar */}
<div className="border-b border-amber-500/20 bg-amber-500/5">
<div className="mx-auto flex max-w-6xl flex-col gap-1 px-4 py-2 text-[0.75rem] text-amber-100 md:flex-row md:items-center md:justify-between">
<div className="flex items-center gap-2">
@@ -25,8 +28,10 @@ export function TopNav() {
</span>
</div>
</div>
{/* Main nav row */}
<div className="mx-auto flex max-w-6xl items-center justify-between px-4 py-2">
{/* Brand / Home link */}
{/* Left: Brand / Home */}
<Link
href="/"
className="text-xs font-semibold tracking-[0.2em] uppercase text-zinc-400"
@@ -34,6 +39,25 @@ export function TopNav() {
The Build Bench
</Link>
{/* Center: main nav (Builder / Admin) */}
<nav className="hidden items-center gap-4 md:flex">
<Link
href="/gunbuilder"
className="text-xs font-medium text-zinc-300 hover:text-zinc-50 transition-colors"
>
Builder
</Link>
{isAuthenticated && (
<Link
href="/admin"
className="text-xs font-medium text-emerald-400 hover:text-emerald-300 transition-colors"
>
Admin
</Link>
)}
</nav>
{/* Right side actions */}
<div className="flex items-center gap-3">
{/* Search placeholder */}
@@ -59,9 +83,9 @@ export function TopNav() {
{loading ? (
<span className="text-xs text-zinc-500">Checking session</span>
) : user ? (
) : isAuthenticated ? (
<>
<span className="text-xs text-zinc-300">
<span className="hidden text-xs text-zinc-300 sm:inline">
{user.displayName || user.email}
</span>
<button