82 lines
2.6 KiB
TypeScript
82 lines
2.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 CookieBanner from '@/components/CookieBanner';
|
|
import { CompareBar } from '@/components/shop/CompareBar';
|
|
import { AnalyticsWrapper } from "@/components/ui/AnalyticsWrapper";
|
|
import { CookieSettingsFloatingIcon } from "@/components/ui/CookieSettingsFloatingIcon";
|
|
import "./globals.css";
|
|
|
|
const fontSans = Inter({
|
|
subsets: ["latin"],
|
|
variable: "--font-sans",
|
|
});
|
|
|
|
const fontHeading = Poppins({
|
|
subsets: ["latin"],
|
|
weight: ["600", "700", "800"],
|
|
variable: "--font-heading",
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: {
|
|
default: "ThermCool | Klimatyzacja i Pompy Ciepła Wrocław — Dolny Śląsk",
|
|
template: "%s | ThermCool",
|
|
},
|
|
description: "Profesjonalny montaż i serwis klimatyzacji oraz pomp ciepła na Dolnym Śląsku. Uprawnienia F-Gaz, bezpłatny audyt, estetyczny montaż. Zadzwoń po wycenę!",
|
|
metadataBase: new URL(process.env.NEXT_PUBLIC_BASE_URL || 'https://thermcool.pl'),
|
|
openGraph: {
|
|
type: 'website',
|
|
locale: 'pl_PL',
|
|
siteName: 'ThermCool',
|
|
title: 'ThermCool | Klimatyzacja i Pompy Ciepła Wrocław — Dolny Śląsk',
|
|
description: 'Profesjonalny montaż i serwis klimatyzacji oraz pomp ciepła na Dolnym Śląsku.',
|
|
},
|
|
twitter: {
|
|
card: 'summary_large_image',
|
|
title: 'ThermCool | Klimatyzacja i Pompy Ciepła',
|
|
description: 'Profesjonalny montaż i serwis klimatyzacji oraz pomp ciepła na Dolnym Śląsku.',
|
|
},
|
|
robots: {
|
|
index: true,
|
|
follow: true,
|
|
googleBot: {
|
|
index: true,
|
|
follow: true,
|
|
'max-video-preview': -1,
|
|
'max-image-preview': 'large',
|
|
'max-snippet': -1,
|
|
},
|
|
},
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html
|
|
lang="pl"
|
|
className={`${fontSans.variable} ${fontHeading.variable} antialiased`}
|
|
>
|
|
<head>
|
|
<link rel="preconnect" href="https://fonts.googleapis.com" />
|
|
<link rel="preconnect" href="https://fonts.gstatic.com" crossOrigin="anonymous" />
|
|
</head>
|
|
<body className="min-h-screen flex flex-col bg-background text-foreground">
|
|
<Header />
|
|
<main className="flex-grow">{children}</main>
|
|
<TrustBar />
|
|
<Footer />
|
|
<AnalyticsWrapper />
|
|
<CompareBar />
|
|
<CookieBanner />
|
|
<CookieSettingsFloatingIcon />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|