feat(core): update
This commit is contained in:
14
app/[lang]/home/layout.js
Normal file
14
app/[lang]/home/layout.js
Normal file
@@ -0,0 +1,14 @@
|
||||
import Header from '@/components/Header'
|
||||
import Footer from '@/components/Footer'
|
||||
|
||||
export default async function HomeLayout({ params, children }) {
|
||||
const { lang } = await params
|
||||
|
||||
return (
|
||||
<>
|
||||
<Header lang={lang} />
|
||||
{children}
|
||||
<Footer lang={lang} />
|
||||
</>
|
||||
)
|
||||
}
|
||||
17
app/[lang]/home/page.js
Normal file
17
app/[lang]/home/page.js
Normal file
@@ -0,0 +1,17 @@
|
||||
import Hero from '@/components/Hero'
|
||||
import Products from '@/components/Products'
|
||||
import Production from '@/components/Production'
|
||||
import About from '@/components/About'
|
||||
|
||||
export default async function Home({ params }) {
|
||||
const { lang } = await params
|
||||
|
||||
return (
|
||||
<main className="flex h-full w-full flex-col bg-bg-1 scroll-x-hidden">
|
||||
<Hero lang={lang} />
|
||||
<About lang={lang} />
|
||||
<Products lang={lang} />
|
||||
<Production lang={lang} />
|
||||
</main>
|
||||
)
|
||||
}
|
||||
Reference in New Issue
Block a user