working auth

This commit is contained in:
2025-12-03 10:50:25 -05:00
parent 3e3e0b0466
commit 606b926886
389 changed files with 2793 additions and 12188 deletions
+10 -60
View File
@@ -1,5 +1,8 @@
import "./globals.css";
import { Inter } from "next/font/google";
import type { ReactNode } from "react";
import { AuthProvider } from "@/context/AuthContext";
import { TopNav } from "@/components/TopNav";
const inter = Inter({ subsets: ["latin"] });
@@ -8,69 +11,16 @@ export const metadata = {
description: "The Armory — Early Access",
};
export default function RootLayout({
children,
}: {
children: React.ReactNode;
}) {
export default function RootLayout({ children }: { children: ReactNode }) {
return (
<html lang="en">
<body className={inter.className}>
<div className="min-h-screen flex flex-col bg-black text-zinc-50">
{/* Top Menu Bar */}
<header className="border-b border-zinc-800 bg-black/95 backdrop-blur">
<div className="mx-auto flex max-w-6xl items-center justify-between px-4 py-2">
{/* Brand / Home link */}
<a
href="/"
className="text-xs font-semibold tracking-[0.2em] uppercase text-zinc-400"
>
The Build Bench
</a>
{/* Right side actions */}
<div className="flex items-center gap-3">
{/* Search placeholder */}
<button
type="button"
className="inline-flex h-8 w-8 items-center justify-center rounded-full border border-zinc-700 bg-zinc-900/60 text-zinc-400 hover:text-zinc-200 hover:bg-zinc-800 hover:border-zinc-500 transition-colors"
aria-label="Search (coming soon)"
>
<svg
xmlns="http://www.w3.org/2000/svg"
viewBox="0 0 24 24"
fill="none"
stroke="currentColor"
strokeWidth={2}
strokeLinecap="round"
strokeLinejoin="round"
className="h-4 w-4"
>
<circle cx="11" cy="11" r="6" />
<line x1="16.5" y1="16.5" x2="21" y2="21" />
</svg>
</button>
<a
href="/login"
className="text-xs font-medium text-zinc-400 hover:text-zinc-100 transition-colors"
>
Log In
</a>
<a
href="/register"
className="rounded-md border border-amber-400/70 bg-amber-400/10 px-3 py-1.5 text-xs font-semibold text-amber-200 hover:bg-amber-400/20 transition-colors"
>
Join Beta
</a>
</div>
</div>
</header>
{/* Main app content */}
<main className="flex-1">{children}</main>
</div>
<AuthProvider>
<div className="min-h-screen flex flex-col bg-black text-zinc-50">
<TopNav />
<main className="flex-1">{children}</main>
</div>
</AuthProvider>
</body>
</html>
);