/** * PortalGrid — magazine-style 6-tile navigation under the hero. * * Each tile is a thematic doorway into a slice of the archive: * sightings (events), witnesses (people), craft (uap_objects), * locations, programs (operations), documents. Counts come from * public.entities counters loaded by the homepage server component. */ import Link from "next/link"; export interface PortalCounts { events: number; people: number; uap_objects: number; locations: number; operations: number; documents: number; } interface Portal { href: string; icon: string; title_en: string; title_pt: string; blurb_en: string; blurb_pt: string; count: number; } export function PortalGrid({ counts, locale }: { counts: PortalCounts; locale: "pt-br" | "en" }) { const portals: Portal[] = [ { href: "/sightings", icon: "🛸", title_en: "Sightings", title_pt: "Avistamentos", blurb_en: "Every recorded incident in the archive, from Kenneth Arnold's 1947 disks to the green fireballs over Sandia.", blurb_pt: "Cada incidente registrado no arquivo, dos discos de Kenneth Arnold em 1947 às bolas de fogo verdes sobre Sandia.", count: counts.events, }, { href: "/witnesses", icon: "✍️", title_en: "Witnesses", title_pt: "Testemunhas", blurb_en: "Pilots, officers, scientists — the people who saw, photographed, or signed the memos.", blurb_pt: "Pilotos, oficiais, cientistas — quem viu, fotografou ou assinou os memorandos.", count: counts.people, }, { href: "/objects", icon: "📷", title_en: "Craft", title_pt: "Objetos UAP", blurb_en: "Catalogued by shape and behaviour: discs, cigars, spheres, triangles, tic-tacs.", blurb_pt: "Catalogados por forma e comportamento: discos, charutos, esferas, triângulos, tic-tacs.", count: counts.uap_objects, }, { href: "/locations", icon: "🗺", title_en: "Hot spots", title_pt: "Hot spots", blurb_en: "Where the sky lit up. Sandia, Roswell, Rendlesham, Phoenix, Nimitz waters.", blurb_pt: "Onde o céu acendeu. Sandia, Roswell, Rendlesham, Phoenix, águas do Nimitz.", count: counts.locations, }, { href: "/operations", icon: "🏛", title_en: "Programs", title_pt: "Programas secretos", blurb_en: "Project Blue Book, the Robertson Panel, AATIP — the official machinery of disclosure.", blurb_pt: "Project Blue Book, Robertson Panel, AATIP — a máquina oficial da divulgação.", count: counts.operations, }, { href: "/documents", icon: "📂", title_en: "Documents", title_pt: "Documentos", blurb_en: "The primary record — every memo, telegram and report indexed and searchable.", blurb_pt: "O registro primário — cada memorando, telegrama e relatório indexado e buscável.", count: counts.documents, }, ]; return (
{locale === "en" ? "// Enter the archive" : "// Entre no arquivo"}
{portals.map((p) => (
{p.icon} {p.count.toLocaleString("pt-BR")}

{locale === "en" ? p.title_en : p.title_pt}

{locale === "en" ? p.blurb_en : p.blurb_pt}

))}
); }