feat(Menu,Lang,Image): fix bug menu and change lang and set images

This commit is contained in:
2026-05-22 13:35:28 +03:30
parent 7d30e4f180
commit 4d995a61af
11 changed files with 176 additions and 92 deletions

View File

@@ -48,7 +48,9 @@ export const metadata = {
}
export const dynamic = 'force-dynamic';
export default function RootLayout({ params: { lang }, children }) {
export default async function RootLayout({ params, children }) {
const { lang } = await params
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">

View File

@@ -6,7 +6,8 @@ import Production from '@/components/Production'
import About from '@/components/About'
import BlogPosts from '@/components/BlogPosts'
export default async function Home({ params: { lang } }) {
export default async function Home({ params }) {
const { lang } = await params
return (
<main className="flex flex-col w-full h-full bg-bg-1 scroll-x-hidden" >