48 lines
1.2 KiB
TypeScript
48 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import "./globals.css";
|
|
import { AuthProvider } from "@/lib/auth";
|
|
import { Navbar } from "@/components/navbar";
|
|
import { Toaster } from "@/components/ui/sonner";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: "Duc Binh Blog",
|
|
template: "%s | Duc Binh Blog",
|
|
},
|
|
description:
|
|
"Practical engineering stories — fast backend patterns, frontend craft, and product lessons.",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en">
|
|
<body
|
|
className={`${geistSans.variable} ${geistMono.variable} antialiased min-h-screen bg-background`}
|
|
>
|
|
<AuthProvider>
|
|
<Navbar />
|
|
<main className="mx-auto max-w-7xl px-4 py-6 sm:px-6 lg:px-8">
|
|
{children}
|
|
</main>
|
|
<Toaster position="top-right" richColors />
|
|
</AuthProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|