Init(Coore): add to repo
This commit is contained in:
63
app/[lang]/layout.js
Executable file
63
app/[lang]/layout.js
Executable file
@@ -0,0 +1,63 @@
|
||||
import '../globals.css'
|
||||
import localFont from 'next/font/local'
|
||||
import Header from '@/components/Header'
|
||||
import Footer from '@/components/Footer'
|
||||
import {Providers} from "../providers";
|
||||
|
||||
|
||||
const dana = localFont({
|
||||
src: [
|
||||
{
|
||||
style: 'normal',
|
||||
weight: '2',
|
||||
path: '../fonts/dana-bold.woff2'
|
||||
},
|
||||
{
|
||||
style: 'normal',
|
||||
weight: '1',
|
||||
path: '../fonts/Doran-Bold.woff2'
|
||||
},
|
||||
{
|
||||
style: 'normal',
|
||||
weight: 'bold',
|
||||
path: '../fonts/Morabba-Bold.woff2'
|
||||
},
|
||||
{
|
||||
style: 'normal',
|
||||
weight: 'normal',
|
||||
path: '../fonts/Morabba-Regular.woff2'
|
||||
},
|
||||
{
|
||||
style: 'normal',
|
||||
weight: '4',
|
||||
path: '../fonts/is1.woff2'
|
||||
},
|
||||
{
|
||||
style: 'normal',
|
||||
weight: '5',
|
||||
path: '../fonts/is2.woff2'
|
||||
},
|
||||
]
|
||||
})
|
||||
|
||||
|
||||
|
||||
export const metadata = {
|
||||
title: 'Rahavard | رهاورد',
|
||||
description: 'شرکت دانش بنیان مهندسی رهاورد منیزیم پارسه',
|
||||
}
|
||||
export const dynamic = 'force-dynamic';
|
||||
|
||||
export default function RootLayout({ params: { lang }, children }) {
|
||||
return (
|
||||
<html lang={lang} dir={lang === "fa" ? "rtl" : "ltr"} className={dana.className + " scroll-smooth"}>
|
||||
<body className="flex flex-col relative h-full w-full max-w-screen">
|
||||
<Providers >
|
||||
<Header lang={lang} />
|
||||
{children}
|
||||
<Footer lang={lang} />
|
||||
</Providers >
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user