Files
YeonGyu-Kim 022eb78440 refactor(web): decompose 358-LOC manifesto into 9 section components
app/[locale]/manifesto/page.tsx: 358 LOC -> 22-LOC composition shell.

components/manifesto/sections/:
- hero.tsx
- pain-points.tsx
- indistinguishable.tsx (the 'AI vs senior engineer' argument)
- token-cost.tsx
- cognitive-load.tsx
- principles.tsx
- core-loop.tsx
- future.tsx
- final-cta.tsx

Each section 26-68 LOC. Copy unchanged; section order unchanged.
Same i18n namespace ('manifesto'). Renders identically to baseline
in all 4 locales (en/ko/ja/zh).
2026-05-20 14:27:02 +09:00

35 lines
1.2 KiB
TypeScript

import type { JSX } from "react"
import { getTranslations } from "next-intl/server"
import Image from "next/image"
import { Section } from "@/components/ui/section"
export async function PrinciplesSection(): Promise<JSX.Element> {
const t = await getTranslations("manifesto")
const principles = ["predictable", "continuous", "delegatable"] as const
return (
<Section data-section="manifesto-principles" className="mx-auto max-w-6xl">
<div className="grid gap-8 md:grid-cols-3">
{principles.map((key) => (
<div
key={key}
className="bg-secondary/10 border-border/30 rounded-xl border p-6 text-center transition-colors"
>
<div className="mb-4 flex justify-center">
<Image
src={`/images/${key}.png`}
alt={key}
width={64}
height={64}
className="rounded-lg"
/>
</div>
<h3 className="mb-3 text-xl font-bold">{t(`principles.${key}.title`)}</h3>
<p className="text-muted-foreground">{t(`principles.${key}.description`)}</p>
</div>
))}
</div>
</Section>
)
}