import type { Metadata } from 'next';
import { Geist, Geist_Mono } from "next/font/google";
import Link from 'next/link';
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: Metadata = {
  title: '{{projectName}}',
  description: 'Generated by create manu app',
};

export default function RootLayout({
  children,
}: Readonly<{
  children: React.ReactNode;
}>) {
  return (
    <html lang="en">
      <body className={`${geistSans.variable} ${geistMono.variable} dark container m-auto grid min-h-screen grid-rows-[auto,1fr,auto] px-4 font-sans antialiased`}>
        <header className="text-xl font-bold leading-[4rem]">
          <Link href="/">{{ projectName }}</Link>
        </header>
        <main className="py-8">{children}</main>
        <footer className="text-center leading-[4rem] opacity-70">
          © {new Date().getFullYear()} {{ projectName }}
        </footer>
      </body>
    </html>
  );
}
