first commit

This commit is contained in:
haniyeroozmand
2026-03-21 18:58:07 +03:30
parent 738b02d376
commit 8b733c817c
40 changed files with 3968 additions and 0 deletions

43
app/layout.tsx Normal file
View 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>
)
}