User explicit: "1 bilhão de entusiastas pelo mundo ovni" — site is for the
UFO-curious public, not for skeptics. The 8-detective scaffolding becomes
invisible plumbing; the reader sees stories about what was observed.
Reader-facing changes:
New homepage (web/app/page.tsx)
- SiteHeader: magazine-style top nav (no detective tiles)
- HeroBanner: full-bleed editorial opener with declassified-page art
background, display-serif headline, live stats row (122 docs,
2047 events, 1861 witnesses, 867 craft catalogued)
- FeaturedCase: cover-story treatment of the most recent case_report,
uses a real document page as hero image, links to /c/[slug]
- PortalGrid: 6 thematic doorways into the archive — Sightings,
Witnesses, Craft, Hot spots, Programs, Documents — each tile shows
a real entity count and short editorial blurb
- GreatestHits: top 9 most-cited events from the corpus
(Kenneth Arnold 1947, Mantell 1948, …) as a magazine grid
- Doc list kept but reframed as "the primary record"
New sub-pages (5)
- /sightings → events (2047), magazine grid
- /witnesses → people (1861), compact table
- /objects → uap_objects (867), magazine grid
- /locations → locations (1757), compact table
- /operations → organizations (1596), compact table
- /documents → full doc list with thumbnails (mirrors homepage section
for direct deep-link)
All share <EntityListPage> shell with per-page i18n + JSON-LD ItemList
Stripped detective surfacing
- /jobs/[id]: "Sherlock Holmes / Dr. Watson" → "Investigation in progress"
- chat-bubble: detective-named card → neutral "Investigação em andamento"
- quick-launch: 7-kind detective dropdown → single "investigar um caso"
input (kind=case_report hardcoded)
- /bureau: rewritten as the case-file library (no artefact dumps)
Typography + design
- Fraunces variable serif loaded for display headings
(`.font-display` class)
- Gold-amber accent (#e0c080) unified as the brand colour
- Asymmetric magazine grids (1+2+3 column, generous whitespace)
- Hover micro-interactions (image scale on featured case, translateX
on portal arrows)
SEO + GEO
- layout.tsx metadataBase + title.template + per-route Metadata exports
- Organization JSON-LD on root layout
- WebSite + SearchAction JSON-LD on homepage
- CollectionPage + ItemList JSON-LD on every entity list page
- openGraph + twitter cards, pt-BR primary + en-US alternate
- ai:purpose meta tag for Generative Engine Optimization — declares
the site as a citation-linked primary-source archive
- robots: index + follow with large image preview
The detectives themselves remain alive in the backend (runtime, DB, audit
log), but the reader never sees "Holmes / Sun-Tzu / Watson" in the UI. The
next phase will reorient case-writer to write as a single best-seller voice
synthesising all the internal sources.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
66 lines
2.8 KiB
TypeScript
66 lines
2.8 KiB
TypeScript
import type { Metadata } from "next";
|
|
import Link from "next/link";
|
|
import { listDocuments, readDocument } from "@/lib/wiki";
|
|
import { getLocale } from "@/components/locale-toggle";
|
|
import { SiteHeader } from "@/components/site-header";
|
|
import { BureauNav } from "@/components/bureau-nav";
|
|
import { summarize, pickPitch } from "@/lib/doc-summary";
|
|
import { DocListFilters } from "@/components/doc-list-filters";
|
|
|
|
export const dynamic = "force-dynamic";
|
|
|
|
export const metadata: Metadata = {
|
|
title: "Documentos desclassificados — Arquivo UAP/UFO",
|
|
description:
|
|
"Cada memorando, telegrama e relatório desclassificado do Departamento de Guerra dos EUA sobre UAP/UFO. " +
|
|
"Páginas indexadas, citações vinculadas, busca por texto.",
|
|
};
|
|
|
|
export default async function DocumentsPage() {
|
|
const locale = (await getLocale()) === "en" ? "en" : "pt-br";
|
|
const ids = await listDocuments();
|
|
const summaryLang: "pt" | "en" = locale === "en" ? "en" : "pt";
|
|
|
|
const docs = await Promise.all(
|
|
ids.map(async (id) => {
|
|
const f = await readDocument(id);
|
|
return {
|
|
id,
|
|
title: (f?.fm.canonical_title as string) ?? id,
|
|
pages: (f?.fm.page_count as number) ?? 0,
|
|
collection: (f?.fm.collection as string) ?? "uncategorized",
|
|
classification: (f?.fm.highest_classification as string) ?? "—",
|
|
summary: pickPitch(f?.fm as Record<string, unknown> | undefined, summaryLang) ?? (f?.body ? summarize(f.body, summaryLang) : ""),
|
|
};
|
|
}),
|
|
);
|
|
const totalPages = docs.reduce((s, d) => s + d.pages, 0);
|
|
|
|
return (
|
|
<div className="min-h-screen">
|
|
<SiteHeader locale={locale} />
|
|
<BureauNav crumbs={[{ label: locale === "en" ? "documents" : "documentos" }]} />
|
|
|
|
<div className="mx-auto max-w-7xl px-4 md:px-8 py-10 md:py-14">
|
|
<header className="mb-10">
|
|
<div className="text-[10px] font-mono uppercase tracking-[0.18em] text-[#5a6678] mb-3">
|
|
{locale === "en" ? "// The primary record" : "// O registro primário"}
|
|
</div>
|
|
<h1 className="font-display text-4xl md:text-6xl font-semibold text-[#e7ecf3] leading-tight mb-3">
|
|
{locale === "en" ? "Documents" : "Documentos"}
|
|
</h1>
|
|
<p className="text-lg text-[#9aa6b8] max-w-2xl">
|
|
{locale === "en"
|
|
? `${ids.length} declassified files · ${totalPages.toLocaleString("pt-BR")} pages · every memo, telegram and report.`
|
|
: `${ids.length} arquivos desclassificados · ${totalPages.toLocaleString("pt-BR")} páginas · cada memorando, telegrama e relatório.`}
|
|
</p>
|
|
</header>
|
|
|
|
<DocListFilters docs={docs} />
|
|
</div>
|
|
<noscript>
|
|
<Link href="/" className="hidden">{locale === "en" ? "Home" : "Início"}</Link>
|
|
</noscript>
|
|
</div>
|
|
);
|
|
}
|