Files
ayrisapart/app/[lang]/page.tsx
T
ayrisdevandClaude Sonnet 4.6 40b4434a7b feat: i18n fixes, blog rename, footer cleanup, and contact info update
- Rename /news route to /blog across all pages, links, and sitemap
- Fix hardcoded English text in Experiences, QuoteSection, and Footer
  by wiring all content through the TR/EN dictionaries
- Clean up Footer: remove non-existent page links, add contact column
- Update contact info: new phone numbers, bilgi@ email, No:71 address,
  Instagram @ayrisapart link
- Add suppressHydrationWarning to <body> to silence browser-extension
  attribute mismatch errors
- Add sizes prop to all fill-mode Next.js Image components

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-06-02 18:05:30 +03:00

41 lines
1.4 KiB
TypeScript

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 dict={dict} />
<SuitesHighlights lang={lang} dict={dict} />
<Experiences dict={dict} />
<ScrollReveal />
<CallToAction lang={lang} dict={dict} />
</main>
);
}