---
/* Full homepage composition, locale-parameterised so both routes share one source. */
import type { Locale } from '@i18n/locales';
import Base from '@layouts/Base.astro';
import { getProfile, getMeta } from '@lib/content';
import Hero from '@components/home/Hero.astro';
import ProofStrip from '@components/home/ProofStrip.astro';
import SkillsGrid from '@components/home/SkillsGrid.astro';
import ProjectCards from '@components/home/ProjectCards.astro';
import ExperienceTimeline from '@components/home/ExperienceTimeline.astro';
import AboutTeaser from '@components/home/AboutTeaser.astro';
import ContactBand from '@components/home/ContactBand.astro';

interface Props {
  locale: Locale;
}
const { locale } = Astro.props;
const profile = getProfile(locale);
const m = getMeta('home', locale);
---

<Base
  locale={locale}
  pageId="home"
  title={m.title}
  description={m.description}
  ogType="profile"
  mainClass="pb-8"
>
  <Hero locale={locale} profile={profile} />
  <div class="mt-14">
    <ProofStrip profile={profile} />
  </div>
  <SkillsGrid locale={locale} />
  <ProjectCards locale={locale} />
  <ExperienceTimeline locale={locale} />
  <AboutTeaser locale={locale} profile={profile} />
  <ContactBand locale={locale} profile={profile} />
</Base>
