42 lines
883 B
TypeScript
42 lines
883 B
TypeScript
import Header from "@/components/header";
|
|
import FooterSection from "@/components/sections/footer/default";
|
|
import type { Metadata } from "next";
|
|
import localFont from "next/font/local";
|
|
import "./globals.css";
|
|
|
|
const Vazir = localFont({
|
|
src: [
|
|
{
|
|
path: "../public/fonts/Vazirmatn-Regular.woff2",
|
|
weight: "400",
|
|
},
|
|
{
|
|
path: "../public/fonts/Vazirmatn-Bold.woff2",
|
|
weight: "700",
|
|
},
|
|
],
|
|
variable: "--Vazir",
|
|
});
|
|
|
|
export const metadata: Metadata = {
|
|
title: "پارچ کست",
|
|
};
|
|
|
|
export default function RootLayout({
|
|
children,
|
|
}: Readonly<{
|
|
children: React.ReactNode;
|
|
}>) {
|
|
return (
|
|
<html lang="fa" dir="rtl" className="dark">
|
|
<body
|
|
className={`${Vazir.className} antialiased`}
|
|
suppressHydrationWarning
|
|
>
|
|
<Header />
|
|
{children}
|
|
<FooterSection />
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|