import type { Dictionary } from "@/i18n/get-dictionary";
import { sectionIds } from "@/lib/routes";
import { Section } from "@/components/shared/section";
import { AboutCopy } from "./about-copy";
import { AboutImage } from "./about-image";

type AboutSectionProps = { t: Dictionary["home"]["about"]; features: Dictionary["home"]["features"] };

export function AboutSection({ t, features }: AboutSectionProps) {
  return (
    <Section
      id={sectionIds.about}
      labelledBy="about-title"
      className="max-md:py-5 md:max-lg:py-10"
      containerClassName="flex flex-col items-center gap-5 md:gap-10 lg:flex-row lg:gap-20"
    >
      <AboutImage t={t} className="w-full lg:flex-1" />
      <AboutCopy t={t} features={features} titleId="about-title" className="w-full lg:w-[644px] lg:shrink-0" />
    </Section>
  );
}
