first commit
This commit is contained in:
43
app/layout.tsx
Normal file
43
app/layout.tsx
Normal file
@@ -0,0 +1,43 @@
|
||||
|
||||
import "./globals.css";
|
||||
import { Header } from "@/components/header";
|
||||
import Footer from "@/components/footer";
|
||||
import localFont from 'next/font/local';
|
||||
import { CartProvider } from "@/components/context/cartcontext";
|
||||
|
||||
|
||||
const Yekanbakh = localFont({
|
||||
src: [
|
||||
{
|
||||
path: '../public/src/font/YekanBakhFaNum-Regular.woff',
|
||||
weight: '400',
|
||||
style: 'normal',
|
||||
},
|
||||
{
|
||||
path: '../public/src/font/YekanBakhFaNum-SemiBold.woff',
|
||||
weight: '500',
|
||||
style: 'normal',
|
||||
},
|
||||
],
|
||||
variable: '--font-site',
|
||||
display: 'swap',
|
||||
})
|
||||
|
||||
export default function RootLayout({
|
||||
children,
|
||||
}: {
|
||||
children: React.ReactNode
|
||||
}) {
|
||||
return (
|
||||
<html lang="fa" dir="rtl" className={Yekanbakh.variable}>
|
||||
<body>
|
||||
<CartProvider>
|
||||
<Header/>
|
||||
{children}
|
||||
</CartProvider>
|
||||
|
||||
<Footer/>
|
||||
</body>
|
||||
</html>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user