magricambi/src/app/layout.tsx

39 lines
964 B
TypeScript
Raw Normal View History

2026-05-25 09:48:11 +02:00
import type { Metadata } from "next";
import { Inter, JetBrains_Mono } from "next/font/google";
import Navbar from "../components/Navbar";
import "./globals.css";
/** Stesse variabili CSS di globals.css; Geist non è disponibile in next/font su Next 14. */
const geistSans = Inter({
variable: "--font-geist-sans",
subsets: ["latin"],
});
const geistMono = JetBrains_Mono({
variable: "--font-geist-mono",
subsets: ["latin"],
});
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default function RootLayout({
children,
}: Readonly<{
children: React.ReactNode;
}>) {
return (
<html lang="en">
<body className={`${geistSans.variable} ${geistMono.variable} h-full antialiased`}>
<p className="bg-purple-700 text-white w-full text-center py-2">
Sono del layout root
</p>
<Navbar />
{children}
</body>
</html>
);
}