release-tracker/src/app/layout.tsx

45 lines
1.0 KiB
TypeScript

import type { Metadata } from "next";
import { Geist, Geist_Mono } from "next/font/google";
import "./globals.css";
import { Sidebar } from "@/components/layout/sidebar";
import { initDb } from "@/lib/db";
const geistSans = Geist({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = Geist_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Release Tracker",
description: "Release Orchestration & Tracking System",
};
// Initialize database on startup
initDb().catch(console.error);
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body
className={`${geistSans.variable} ${geistMono.variable} antialiased bg-slate-50`}
>
<div className="flex min-h-screen">
<Sidebar />
<main className="flex-1 p-8 overflow-auto">
{children}
</main>
</div>
</body>
</html>
);
}