Update src/app/layout.tsx

This commit is contained in:
2026-03-08 22:37:14 +00:00
parent fbcc591b0e
commit 9d8b850abc

View File

@@ -1,15 +1,13 @@
import type { Metadata } from "next";
import { Inter } from "next/font/google";
import "./globals.css";
import { ServiceWrapper } from "@/providers/themeProvider/ServiceWrapper";
import { Tag } from "@/components/tag/Tag";
const inter = Inter({
variable: "--font-inter", subsets: ["latin"],
weight: ["100", "200", "300", "400", "500", "600", "700", "800", "900"],
});
const inter = Inter({ variable: "--font-inter", subsets: ["latin"] });
export const metadata: Metadata = {
title: "Jobee - Dutch Job Listings & Recruitment Platform", description:
"Find your dream job in the Netherlands with Jobee. Browse thousands of opportunities across all 12 Dutch provinces and connect with top employers."};
title: "Jobee - Dutch Job Listing Platform", description: "Find your dream job in the Netherlands across all 12 provinces. Connect with top employers and build your career."};
export default function RootLayout({
children,
@@ -19,14 +17,38 @@ export default function RootLayout({
return (
<html lang="en" suppressHydrationWarning>
<body className={`${inter.variable}`}>
{children}
<ServiceWrapper>
<Tag />
{children}
</ServiceWrapper>
<script
async
src="https://cdn.jsdelivr.net/npm/gsap@3.12.2/dist/gsap.min.js"
/>
<script
async
src="https://cdn.jsdelivr.net/npm/gsap@3.12.2/dist/ScrollTrigger.min.js"
id="lenis-setup"
dangerouslySetInnerHTML={{
__html: `
window.lenis = null;
if (typeof window !== 'undefined' && window.requestAnimationFrame) {
import('https://cdn.jsdelivr.net/npm/@studio-freight/lenis@1').then(({ default: Lenis }) => {
if (window.lenis) return;
window.lenis = new Lenis({
duration: 1.2,
easing: (t) => Math.min(1, 1.001 - Math.pow(2, -10 * t)),
direction: 'vertical',
gestureDirection: 'vertical',
smooth: true,
mouseMultiplier: 1,
smoothTouch: false,
touchInertiaMultiplier: 2,
infinite: false,
});
function raf(time) {
if (window.lenis) window.lenis.raf(time);
requestAnimationFrame(raf);
}
requestAnimationFrame(raf);
}).catch(err => console.log('Lenis load error', err));
}
`,
}}
/>
<script