/** * HeroBanner — homepage opener. * * Full-bleed banner that establishes the brand promise. Reader sees: * - The mission line in display serif * - A subhead that names what this archive contains * - A live stats row showing real corpus counts * * Uses a declassified document page as background art (the green-fireball * Sandia file is a good choice — period typewriter look). Falls back to * a CSS gradient when the asset is unavailable. */ import Link from "next/link"; interface Stats { documents: number; events: number; people: number; uap_objects: number; } export function HeroBanner({ locale, stats, heroDocId, heroPage }: { locale: "pt-br" | "en"; stats: Stats; heroDocId?: string; heroPage?: number; }) { const heroImg = heroDocId && heroPage ? `/api/static/processing/png/${heroDocId}/p-${String(heroPage).padStart(3, "0")}.png` : null; return (
{/* Background art layer */} {heroImg && ( // eslint-disable-next-line @next/next/no-img-element )} {/* Gradient overlay so text always reads */}
{locale === "en" ? "Declassified archive · live" : "Arquivo desclassificado · ao vivo"}

{locale === "en" ? ( <> The files the government
didn’t want you to read. ) : ( <> Os arquivos que o governo
não queria que você lesse. )}

{locale === "en" ? <> 122 declassified UAP/UFO documents from the US Department of War. Pilots, officers and physicists describe what they saw — read from primary sources, with every quote linked to its page. : <> 122 documentos UAP/UFO desclassificados do Departamento de Guerra dos EUA. Pilotos, oficiais e físicos descrevem o que viram — lido das fontes primárias, com cada citação ligada à sua página. }

{/* Stats row — anchors trust and gives GEO-friendly factual numbers */}
{locale === "en" ? "Read the case files →" : "Ler os casos →"} {locale === "en" ? "Browse sightings" : "Avistamentos"}
); } function Stat({ label, value }: { label: string; value: string }) { return (
{label}
{value}
); }