48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Halant } from "next/font/google";
|
|
import { Barlow_Condensed, Inter, Space_Mono } from "next/font/google";
|
|
import "./globals.css";
|
|
import "@/lib/gsap-setup";
|
|
import { ServiceWrapper } from "@/components/ServiceWrapper";
|
|
import Tag from "@/tag/Tag";
|
|
import { getVisualEditScript } from "@/utils/visual-edit-script";
|
|
import { DM_Sans } from "next/font/google";
|
|
|
|
|
|
|
|
export const metadata: Metadata = {
|
|
title: 'OurCompany - Comprehensive Services', description: 'OurCompany provides a wide range of essential goods, logistics, aviation support, ICT, construction, and consultancy services. Delivering tailored solutions across various sectors.'};
|
|
|
|
const barlowCondensed = Barlow_Condensed({
|
|
variable: "--font-barlow-condensed", subsets: ["latin"],
|
|
weight: ["700"],
|
|
});
|
|
|
|
const inter = Inter({
|
|
variable: "--font-inter", subsets: ["latin"],
|
|
});
|
|
|
|
const spaceMono = Space_Mono({\n variable: "--font-space-mono",\n subsets: ["latin"],\n weight: ["400", "700"],\n});
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="en" suppressHydrationWarning>
|
|
<ServiceWrapper>
|
|
<body className={`${barlowCondensed.variable} ${inter.variable} ${spaceMono.variable} antialiased`}>
|
|
<Tag />
|
|
{children}
|
|
<script
|
|
dangerouslySetInnerHTML={{
|
|
__html: `${getVisualEditScript()}`
|
|
}}
|
|
/>
|
|
</body>
|
|
</ServiceWrapper>
|
|
</html>
|
|
);
|
|
}
|