50 lines
1.1 KiB
TypeScript
50 lines
1.1 KiB
TypeScript
import FooterSection from "@/components/footer-section";
|
|
import Header from "@/components/header";
|
|
import type { Metadata } from "next";
|
|
import localFont from "next/font/local";
|
|
import "./globals.css";
|
|
import { ThemeProvider } from "@/components/theme-provider";
|
|
|
|
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
|
|
>
|
|
<ThemeProvider
|
|
attribute="class"
|
|
defaultTheme="system"
|
|
enableSystem
|
|
disableTransitionOnChange
|
|
>
|
|
<Header />
|
|
<div className="min-h-screen">{children}</div>
|
|
<FooterSection />
|
|
</ThemeProvider>
|
|
</body>
|
|
</html>
|
|
);
|
|
}
|