// Home screen — search/browse-focused with categories and map teaser function HomeScreen({ onNav, onSelectEntry, onSelectCategory }) { const [query, setQuery] = React.useState(''); const { ENTRIES, ENCOUNTER_TYPES } = window.ARCHIVE; // Signal Spotlight — the highest-conviction high-credibility record. // Hidden entirely when nothing qualifies (fresh archives start at cred 0). const featured = ENTRIES.filter(e => e.credibility >= 4) .sort((a, b) => (b.believe || 0) - (a.believe || 0))[0] || null; // Don't repeat the featured entry in the recent grid below. const recent = ENTRIES.filter(e => !featured || e.id !== featured.id).slice(0, 6); const sig = (n) => ( {[1,2,3,4,5].map(i => )} ); // Real derived stats const photoCount = ENTRIES.filter(e => e.hasPhoto).length; const countryCount = new Set(ENTRIES.map(e => e.place?.split(',').pop()?.trim()).filter(Boolean)).size; const lastEntry = ENTRIES.length > 0 ? ENTRIES[ENTRIES.length - 1] : null; return (
{/* Hero — search-forward */}
OPEN ARCHIVE · EST. 2026 · {window.ARCHIVE.ENTRIES.length.toLocaleString()} ENTRIES CATALOGUED

A public archive of unexplained UFO phenomena, compiling reports from around the world.

Search across sightings, close encounters, physical traces and historical cases. Every report is preserved in full — photographs, coordinates, time of day, device metadata — for future researchers.
{/* Big search */}
setQuery(e.target.value)} className="input m-search-input" placeholder="Search by place, date, object, witness — e.g. "triangle Colorado 2024"" style={{ padding: '18px 24px 18px 52px', fontSize: 16, background: 'var(--bg-1)', borderWidth: 1 }} />
SHORTCUTS: {['unredacted', 'multi-witness', 'photograph', '2024', 'military', 'anomalous-metal'].map(t => ( { setQuery(t); onNav('browse'); }}>#{t} ))}
{/* Live activity bar */}
LIVE {lastEntry ? ( <> Last submission · {lastEntry.place} · {ENTRIES.length} report{ENTRIES.length !== 1 ? 's' : ''} in archive ) : ( No submissions yet — be the first )}
◉ REC
{/* Signal Spotlight — highest-confidence recent record */} {featured && (() => { const acc = window.entryAccent(featured); const featTypes = (Array.isArray(featured.types) && featured.types.length > 0 ? featured.types : [featured.type]) .map(id => ENCOUNTER_TYPES.find(t => t.id === id)).filter(Boolean); return (
SIGNAL SPOTLIGHT · HIGHEST-CONFIDENCE RECORD
onSelectEntry(featured)} style={{ cursor: 'pointer', display: 'grid', gridTemplateColumns: '1.05fr 1fr', overflow: 'hidden' }}> {featured.id}
{featTypes.map((m, i) => ( {m.icon} {m.label} ))}
{featured.title}
{featured.summary}
◷ {window.formatDate(featured.date)}{featured.time ? ` · ${featured.time}` : ''} ⌖ {featured.place} ☉ {featured.witnesses ?? 1} witness{(featured.witnesses ?? 1) === 1 ? '' : 'es'}
CRED. {sig(featured.credibility)} ▲ {featured.believe ?? 0} believe ▼ {featured.skeptical ?? 0} skeptical
View full record →
); })()} {/* Categories */}
CLASSIFICATION · {ENCOUNTER_TYPES.length} CATEGORIES

Browse by encounter type

onNav('browse')}>View all →
{(() => { // An entry is counted under every category it was classified into, // so a multi-category submission increments all of its category // counters. Falls back to the single `type` field when an entry has // no `types` list. const countFor = (typeId) => ENTRIES.filter(e => { if (Array.isArray(e.types) && e.types.length > 0) return e.types.includes(typeId); return e.type === typeId; }).length; const counts = Object.fromEntries(ENCOUNTER_TYPES.map(t => [t.id, countFor(t.id)])); const maxCount = Math.max(1, ...Object.values(counts)); return ENCOUNTER_TYPES.map(t => { const count = counts[t.id]; const acc = window.catGroup(t.id); return (
onSelectCategory && onSelectCategory(t.id)} style={{ background: 'var(--bg-1)', padding: 24, cursor: 'pointer', transition: 'background 0.15s', minHeight: 154, display: 'flex', flexDirection: 'column', justifyContent: 'space-between', position: 'relative' }} onMouseEnter={e => e.currentTarget.style.background = 'var(--bg-2)'} onMouseLeave={e => e.currentTarget.style.background = 'var(--bg-1)'}> {/* Category accent rule */}
{t.icon}
{count.toLocaleString()}
{t.label}
{count.toLocaleString()} entries
{/* Proportion bar vs the largest category */}
); }).concat( // Fills the grid's last cell: 11 categories + this = 2 full rows of 6.
onNav('browse')} style={{ background: 'var(--bg-1)', padding: 24, cursor: 'pointer', minHeight: 154, display: 'flex', flexDirection: 'column', justifyContent: 'flex-end' }} onMouseEnter={e => e.currentTarget.style.background = 'var(--bg-2)'} onMouseLeave={e => e.currentTarget.style.background = 'var(--bg-1)'}>
All reports →
{ENTRIES.length.toLocaleString()} entries
); })()}
{/* Map teaser */}
GEOGRAPHIC DISTRIBUTION

Reports across the world

onNav('map')}>Open full map ↗
{/* Recent submissions */}
RECENT SUBMISSIONS

Just added to the archive

onNav('browse')}>All recent →
{recent.map(e => ( onSelectEntry(e)} /> ))}
{/* Contribute band */}
CONTRIBUTE

Something you can't explain?

Sign in to file a report. Photographs help, but a written account with a location and a date is enough. Your entry becomes permanently part of the open archive.
); } window.HomeScreen = HomeScreen;