first commit

This commit is contained in:
Mojtaba Khorshidkolah
2026-03-04 13:50:57 +03:30
commit 6c3b474873
93 changed files with 8865 additions and 0 deletions

33
src/app/layout.tsx Normal file
View File

@@ -0,0 +1,33 @@
import type {Metadata} from "next";
import "./globals.css";
import {FontVazir} from "@/config/font.config";
import TopMenu from "@/ui/components/top-menu/TopMenu";
export async function generateStaticParams() {
return [{lang: "en"}, {lang: "fa"}];
}
export const metadata: Metadata = {
title: "Create Next App",
description: "Generated by create next app",
};
export default async function RootLayout({
children,
params,
}: Readonly<{
children: React.ReactNode;
params: Promise<{lang: "en" | "fa"}>;
}>) {
return (
<html lang={(await params).lang} dir="rtl">
<body
className={`${FontVazir.variable} antialiased`}
style={{fontFamily: FontVazir.style.fontFamily}}
>
{children}
</body>
</html>
);
}