58 lines
1.5 KiB
JavaScript

import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata = {
title: "MyFavStuff",
description: "A curated collection of favorite things.",
};
// Basic Navbar component (can be moved to its own file later)
function Navbar() {
return (
<nav className="bg-neutral-800 text-white p-4">
<div className="container mx-auto flex justify-between items-center">
<a href="/" className="text-xl font-bold hover:text-neutral-300">
MyFavStuff
</a>
<div>
{/* Future: Add Item link for admin, Auth links */}
<a href="/add-item" className="px-3 py-2 rounded hover:bg-neutral-700">
Add Item
</a>
<a href="/login" className="ml-2 px-3 py-2 rounded hover:bg-neutral-700">
Login
</a>
</div>
</div>
</nav>
);
}
export default function RootLayout({ children }) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased bg-neutral-900 text-neutral-100`}
>
<Navbar />
<main className="container mx-auto p-4 md:p-8">
{children}
</main>
<footer className="text-center p-4 text-neutral-500 text-sm">
© {new Date().getFullYear()} MyFavStuff. All rights reserved.
</footer>
</body>
</html>
);
}