fb
This commit is contained in:
40
app/[lang]/page.tsx
Normal file
40
app/[lang]/page.tsx
Normal file
@@ -0,0 +1,40 @@
|
||||
import Hero from "@/components/Hero";
|
||||
import Welcome from "@/components/Welcome";
|
||||
import ShowcaseImage from "@/components/ShowcaseImage";
|
||||
import QuoteSection from "@/components/QuoteSection";
|
||||
import SuitesHighlights from "@/components/SuitesHighlights";
|
||||
import Experiences from "@/components/Experiences";
|
||||
import ScrollReveal from "@/components/ScrollReveal";
|
||||
import CallToAction from "@/components/CallToAction";
|
||||
import Amenities from "@/components/Amenities";
|
||||
|
||||
import { getDictionary } from "@/dictionaries/get-dictionary";
|
||||
|
||||
export async function generateMetadata({ params }: { params: Promise<{ lang: string }> }) {
|
||||
const { lang } = await params;
|
||||
const dict = await getDictionary(lang as 'en' | 'tr');
|
||||
return {
|
||||
title: `${dict.hero.title} - ${dict.hero.desc.split('.')[0]}`,
|
||||
description: dict.hero.desc,
|
||||
};
|
||||
}
|
||||
|
||||
export default async function Home({ params }: { params: Promise<{ lang: string }> }) {
|
||||
const { lang } = await params;
|
||||
const dict = await getDictionary(lang as 'en' | 'tr');
|
||||
|
||||
return (
|
||||
<main className="relative w-full bg-[#FAF7F0]">
|
||||
<Hero lang={lang} dict={dict} />
|
||||
<Welcome lang={lang} dict={dict} />
|
||||
<ShowcaseImage />
|
||||
<QuoteSection />
|
||||
<SuitesHighlights lang={lang} dict={dict} />
|
||||
<Experiences />
|
||||
<ScrollReveal />
|
||||
<CallToAction lang={lang} dict={dict} />
|
||||
|
||||
|
||||
</main>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user