50 lines
1.2 KiB
TypeScript
50 lines
1.2 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Inter, Space_Grotesk, JetBrains_Mono } from "next/font/google";
|
|
import "./globals.css";
|
|
import { Header } from "@/components/layout/Header";
|
|
import { Footer } from "@/components/layout/Footer";
|
|
|
|
const inter = Inter({
|
|
subsets: ["latin-ext"],
|
|
display: "swap",
|
|
variable: "--font-inter",
|
|
weight: ["400", "500", "600"],
|
|
});
|
|
|
|
const spaceGrotesk = Space_Grotesk({
|
|
subsets: ["latin-ext"],
|
|
display: "swap",
|
|
variable: "--font-heading",
|
|
weight: ["500", "600", "700"],
|
|
});
|
|
|
|
const jetbrainsMono = JetBrains_Mono({
|
|
subsets: ["latin-ext"],
|
|
display: "swap",
|
|
variable: "--font-mono",
|
|
weight: ["400", "500"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "BNT Budownictwo",
|
|
description: "Generalny wykonawca inwestycji budowlanych",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="pl">
|
|
<body className={`${inter.variable} ${spaceGrotesk.variable} ${jetbrainsMono.variable} font-body bg-brand-bg text-brand-text antialiased flex flex-col min-h-screen overflow-x-hidden`}>
|
|
<Header />
|
|
<main className="flex-grow">
|
|
{children}
|
|
</main>
|
|
<Footer />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|