47 lines
1.4 KiB
TypeScript
47 lines
1.4 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Halant } from "next/font/google";
|
|
import { Inter } from "next/font/google";
|
|
import "./globals.css";
|
|
import "@/lib/gsap-setup";
|
|
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
|
import { getVisualEditScript } from "@/utils/visual-edit-script";
|
|
import { Montserrat, Inter } from "next/font/google";
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'JT Production',
|
|
description: 'Production visuelle et artistique.',
|
|
openGraph: {
|
|
"title": "JT Production And Visual",
|
|
"description": "Production vidéo et photographie professionnelle",
|
|
"siteName": "JT Production And Visual",
|
|
"type": "website"
|
|
},
|
|
};
|
|
|
|
const montserrat = Montserrat({ variable: "--font-montserrat", subsets: ["latin"], weight: ["700", "800", "900"] });
|
|
const inter = Inter({ variable: "--font-inter", subsets: ["latin"], weight: ["400", "500"] });
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<ServiceWrapper>
|
|
<body className={`${montserrat.variable} ${inter.variable} antialiased`}>
|
|
|
|
{children}
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `${getVisualEditScript()}`
|
|
}}
|
|
/>
|
|
</body>
|
|
</ServiceWrapper>
|
|
</html>
|
|
);
|
|
}
|