48 lines
1.1 KiB
TypeScript
48 lines
1.1 KiB
TypeScript
import type { Metadata } from "next";
|
|
import { Geist, Geist_Mono } from "next/font/google";
|
|
import { dir } from "i18next";
|
|
import "./globals.css";
|
|
import UpScrollIcon from "@/components/upScroll";
|
|
import Contact from "@/components/pageParts/contact";
|
|
import Footer from "@/components/nav_foot/footer";
|
|
import Navbar from "@/components/nav_foot/navbar";
|
|
import Header from "@/components/nav_foot/header";
|
|
|
|
const geistSans = Geist({
|
|
variable: "--font-geist-sans",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
const geistMono = Geist_Mono({
|
|
variable: "--font-geist-mono",
|
|
subsets: ["latin"],
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Create Next App",
|
|
description: "Generated by create next app",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
params,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
params: { lang: string };
|
|
}>) {
|
|
return (
|
|
<html lang={params.lang} dir={dir(params.lang)}>
|
|
<body>
|
|
<Header/>
|
|
<Navbar/>
|
|
{children}
|
|
<section id="contact" className="">
|
|
<Contact />
|
|
</section>
|
|
<Footer />
|
|
<UpScrollIcon />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|