54 lines
1.6 KiB
TypeScript
54 lines
1.6 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Inter, Poppins } from "next/font/google";
|
|
import { Header } from "@/components/layout/Header";
|
|
import { TrustBar } from "@/components/layout/TrustBar";
|
|
import { Footer } from "@/components/layout/Footer";
|
|
import { GoogleAnalytics, GoogleTagManager } from "@next/third-parties/google";
|
|
import "./globals.css";
|
|
|
|
const fontSans = Inter({
|
|
variable: "--font-sans",
|
|
subsets: ["latin", "latin-ext"],
|
|
});
|
|
|
|
const fontHeading = Poppins({
|
|
variable: "--font-heading",
|
|
weight: ["400", "500", "600", "700", "800"],
|
|
subsets: ["latin", "latin-ext"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: "Klimatyzacja, pompy ciepła i usługi domowe",
|
|
template: "%s | HVAC & Usługi Domowe",
|
|
},
|
|
description: "Montaż klimatyzacji, pompy ciepła, remonty i hydraulika. Dobór, montaż i serwis. Darmowa konsultacja.",
|
|
metadataBase: new URL("http://localhost:3000"),
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="pl"
|
|
className={`${fontSans.variable} ${fontHeading.variable} h-full antialiased`}
|
|
>
|
|
{process.env.NEXT_PUBLIC_GTM_ID && (
|
|
<GoogleTagManager gtmId={process.env.NEXT_PUBLIC_GTM_ID} />
|
|
)}
|
|
<body className="min-h-full flex flex-col bg-background text-foreground">
|
|
<Header />
|
|
<main className="flex-grow">{children}</main>
|
|
<TrustBar />
|
|
<Footer />
|
|
{process.env.NEXT_PUBLIC_GA_ID && (
|
|
<GoogleAnalytics gaId={process.env.NEXT_PUBLIC_GA_ID} />
|
|
)}
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|