/** * IconicCases — the curated cover-story rail. * * Magazine grid of hand-picked iconic UFO incidents with painterly hero * illustrations. Sits high on the homepage so the casual reader lands on * recognisable history within two seconds: Roswell, Nimitz, Phoenix, * Rendlesham. */ import Link from "next/link"; import { ICONIC_CASES, type IconicCase } from "@/lib/iconic-cases"; const ART_BASE = "/api/static/processing/case-art"; export function IconicCases({ locale }: { locale: "pt-br" | "en" }) { const cases = ICONIC_CASES; if (cases.length === 0) return null; // Split: first 2 go into a wide hero pair, the rest tile below in a 3-up grid. const [first, second, ...rest] = cases; return (
{locale === "en" ? "// The iconic record" : "// Os clássicos da divulgação"}

{locale === "en" ? "The cases every UFO enthusiast knows" : "Os casos que todo entusiasta UFO conhece"}

{cases.length} {locale === "en" ? "stories" : "histórias"}
{/* Hero pair */}
{[first, second].filter(Boolean).map((c) => ( ))}
{/* Rest grid */} {rest.length > 0 && (
{rest.map((c) => )}
)}
); } function HeroCard({ c, locale }: { c: IconicCase; locale: "pt-br" | "en" }) { const title = locale === "pt-br" ? c.title_pt_br : c.title_en; const blurb = locale === "pt-br" ? c.blurb_pt_br : c.blurb_en; return ( {/* eslint-disable-next-line @next/next/no-img-element */} {title}
{c.year} · {c.tags.slice(0, 3).join(" · ")}

{title}

{blurb}

); } function CompactCard({ c, locale }: { c: IconicCase; locale: "pt-br" | "en" }) { const title = locale === "pt-br" ? c.title_pt_br : c.title_en; const blurb = locale === "pt-br" ? c.blurb_pt_br : c.blurb_en; return (
{/* eslint-disable-next-line @next/next/no-img-element */} {title}
{c.year}

{title}

{blurb}

); }