GeoCities Y2K Collage
Starry 1990s cosmos backdrop, beveled table-era frames, custom SVG pixel badges, marquee ticker, and webring portals.
Inspired by Cameron's World ↗
WHY THIS AESTHETIC IS UNIQUE
Celebrates the handmade maximalist joy of the early personal web with starfields, pixel hit-counters, and neighborhood portals—while remaining cleanly responsive on modern phones.
BEST FOR
TAGS
COLOR PALETTE (CLICK TO COPY HEX)
TYPOGRAPHY
- Display
- VT323
- Body
- IBM Plex Mono
- Mono
- IBM Plex Mono
- Scale
- Expressive retro bitmap headlines, classic underlined cyan hyperlinks, and glowing LED-style visitor hit-counter numerals.
ARCHITECTURE & MOBILE NOTES
LAYOUT
Beveled table-era central portal frame over a starry CSS cosmos, featuring a smooth ticker marquee, Neighborhood Portal switcher, custom SVG pixel badges, and visitor counter.
INTERACTION
Interactive Neighborhood Portal tabs (Area51, SiliconValley, Tokyo, EnchantedForest) that swap curated 90s web artifact cards, increment the retro hit-counter, and toggle Guestbook sign-in.
MOBILE
Constrains beveled frames and badge rows cleanly inside 390px screens with >=44px portal tabs and accessible smooth motion without rapid flashing.
AI AGENT GUARDRAILS
DO
- Use authentic 3D ridge/outset borders, starry CSS backdrops, and custom inline SVG 88×31 pixel badges.
- Keep nostalgic maximalism joyful and legible with high contrast between text and deep cosmos surfaces.
- Respect motion comfort: use gentle marquee drift rather than rapid strobing or flashing.
DON'T
- Never rely on external hotlinked GIFs or broken third-party image URLs.
- Avoid fixed-width 800px tables that cause horizontal scrolling on mobile phones.
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>STARPORT '99 — GeoCities Y2K Web-Collage Museum</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&display=swap" rel="stylesheet">
<style>
:root {
--cosmos: #06061A;
--win-gray: #C0C0C0;
--win-light: #FFFFFF;
--win-dark: #404040;
--navy: #000080;
--cyan: #00F0FF;
--lime: #4DFF4D;
--gold: #FFD93D;
--magenta: #FF5CE6;
--portal-accent: #4DFF4D;
}
*, *::before, *::after { box-sizing: border-box; }
html, body {
margin: 0;
padding: 0;
max-width: 100%;
overflow-x: hidden;
background-color: var(--cosmos);
/* Deep starry cosmos pure CSS background */
background-image:
radial-gradient(1.5px 1.5px at 22px 34px, #FFFFFF, transparent),
radial-gradient(1px 1px at 88px 110px, #9EEBFF, transparent),
radial-gradient(2px 2px at 142px 58px, #FFE88A, transparent),
radial-gradient(1px 1px at 195px 160px, #FF99EE, transparent),
radial-gradient(circle at 20% 15%, rgba(65, 22, 130, 0.42), transparent 45%),
radial-gradient(circle at 82% 75%, rgba(0, 110, 145, 0.3), transparent 48%);
background-size: 220px 200px, 220px 200px, 220px 200px, 220px 200px, 100% 100%, 100% 100%;
color: #F4F6FF;
font-family: 'VT323', 'Courier New', monospace;
font-size: 21px;
line-height: 1.35;
}
/* Smooth CSS Marquee Ticker */
.marquee-bar {
background: #00004D;
border-top: 2px solid var(--cyan);
border-bottom: 2px solid var(--cyan);
overflow: hidden;
white-space: nowrap;
padding: 6px 0;
}
.marquee-track {
display: inline-block;
padding-left: 100%;
font-family: 'Press Start 2P', monospace;
font-size: 11px;
color: var(--gold);
animation: ticker 26s linear infinite;
}
@keyframes ticker {
0% { transform: translateX(0); }
100% { transform: translateX(-100%); }
}
@media (prefers-reduced-motion: reduce) {
.marquee-track { animation: none; padding-left: 12px; }
}
.museum-wrap {
max-width: 980px;
margin: 0 auto;
padding: 16px 12px 48px;
display: flex;
flex-direction: column;
gap: 16px;
}
/* Classic 90s Beveled Table-Era Frame */
.bevel-box {
background: rgba(12, 14, 42, 0.92);
border: 3px ridge var(--portal-accent);
box-shadow: 0 0 0 2px #000, 4px 4px 0 rgba(0,0,0,0.65);
}
.win-box {
background: var(--win-gray);
color: #000000;
border-top: 3px solid var(--win-light);
border-left: 3px solid var(--win-light);
border-right: 3px solid var(--win-dark);
border-bottom: 3px solid var(--win-dark);
}
.win-title {
background: linear-gradient(90deg, var(--navy), #1084D0);
color: #FFFFFF;
padding: 6px 10px;
font-family: 'Press Start 2P', monospace;
font-size: 10px;
display: flex;
justify-content: space-between;
align-items: center;
gap: 8px;
}
/* Hero Masthead */
.hero-banner {
padding: 18px 14px;
text-align: center;
position: relative;
}
.hero-banner h1 {
margin: 6px 0 8px;
font-family: 'Press Start 2P', monospace;
font-size: clamp(18px, 4.5vw, 30px);
color: var(--cyan);
text-shadow: 3px 3px 0 #7A00CC;
line-height: 1.3;
}
.hero-sub {
margin: 0 auto 14px;
max-width: 640px;
color: #DCE6FF;
font-size: 22px;
}
/* Badges & Interactive Action Strip */
.badge-strip {
display: flex;
flex-wrap: wrap;
justify-content: center;
gap: 10px;
margin-top: 12px;
}
.pixel-badge {
appearance: none;
background: #141436;
color: #FFFFFF;
border: 2px outset #A0B0FF;
padding: 6px 10px;
min-height: 44px;
display: inline-flex;
align-items: center;
gap: 8px;
font-family: 'Press Start 2P', monospace;
font-size: 9px;
cursor: pointer;
text-decoration: none;
}
.pixel-badge:hover {
background: #23235C;
border-color: var(--gold);
}
.pixel-badge.is-on {
background: #004A26;
border-color: var(--lime);
color: var(--lime);
}
/* Neighborhood Portal Switcher */
.portal-panel {
padding: 12px;
}
.portal-heading {
font-family: 'Press Start 2P', monospace;
font-size: 11px;
color: var(--gold);
margin: 0 0 10px;
display: flex;
flex-wrap: wrap;
justify-content: space-between;
gap: 8px;
}
.portal-grid {
display: grid;
grid-template-columns: repeat(2, 1fr);
gap: 8px;
}
@media (min-width: 640px) {
.portal-grid { grid-template-columns: repeat(4, 1fr); }
}
.portal-btn {
appearance: none;
min-height: 48px;
padding: 10px 8px;
background: #1B1B42;
color: #FFFFFF;
border: 3px outset #8E9EFF;
font-family: 'Press Start 2P', monospace;
font-size: 10px;
cursor: pointer;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 4px;
}
.portal-btn small {
font-family: 'VT323', monospace;
font-size: 16px;
color: #B8C4FF;
}
.portal-btn[aria-pressed="true"] {
background: var(--portal-accent);
color: #050516;
border-style: inset;
border-color: #FFFFFF;
}
.portal-btn[aria-pressed="true"] small {
color: #050516;
}
/* Artifact Cards Grid */
.neighborhood-banner {
padding: 12px 14px;
background: rgba(0, 0, 0, 0.45);
border-bottom: 2px dashed var(--portal-accent);
display: flex;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
gap: 10px;
}
.neighborhood-banner h2 {
margin: 0;
font-family: 'Press Start 2P', monospace;
font-size: 13px;
color: var(--portal-accent);
}
.geo-url {
font-size: 19px;
color: var(--cyan);
word-break: break-all;
}
.artifact-grid {
padding: 14px;
display: grid;
grid-template-columns: 1fr;
gap: 14px;
}
@media (min-width: 720px) {
.artifact-grid { grid-template-columns: repeat(3, 1fr); }
}
.artifact-card {
background: #0D1030;
border: 2px ridge #99A8FF;
padding: 12px;
display: flex;
flex-direction: column;
gap: 10px;
}
.artifact-art {
background: #040412;
border: 2px inset #6070B0;
padding: 10px;
display: flex;
align-items: center;
justify-content: center;
min-height: 112px;
}
.artifact-card h3 {
margin: 0;
font-family: 'Press Start 2P', monospace;
font-size: 11px;
color: var(--gold);
line-height: 1.4;
}
.artifact-meta {
font-size: 17px;
color: var(--cyan);
}
.artifact-card p {
margin: 0;
color: #E2E8FF;
font-size: 19px;
}
/* Guestbook & Hit Counter Split */
.bottom-split {
display: grid;
grid-template-columns: 1fr;
gap: 14px;
}
@media (min-width: 720px) {
.bottom-split { grid-template-columns: 1.25fr 0.75fr; }
}
.win-body {
padding: 12px;
}
.gb-entries {
background: #FFFFFF;
border: 2px inset #808080;
padding: 8px 10px;
max-height: 155px;
overflow-y: auto;
margin-bottom: 10px;
font-size: 19px;
}
.gb-entry {
border-bottom: 1px dotted #808080;
padding: 4px 0;
}
.gb-entry:last-child { border-bottom: 0; }
.gb-form {
display: grid;
grid-template-columns: 1fr;
gap: 8px;
}
@media (min-width: 500px) {
.gb-form { grid-template-columns: 130px 1fr auto; }
}
.win-input {
border: 2px inset #808080;
background: #FFFFFF;
padding: 8px;
min-height: 44px;
font-family: 'VT323', monospace;
font-size: 19px;
color: #000;
width: 100%;
}
.win-btn {
border-top: 2px solid #FFF;
border-left: 2px solid #FFF;
border-right: 2px solid #404040;
border-bottom: 2px solid #404040;
background: var(--win-gray);
color: #000;
font-family: 'Press Start 2P', monospace;
font-size: 9px;
padding: 8px 12px;
min-height: 44px;
cursor: pointer;
}
.win-btn:active {
border-top-color: #404040;
border-left-color: #404040;
border-right-color: #FFF;
border-bottom-color: #FFF;
}
/* 7-Segment LED Hit Counter */
.counter-box {
text-align: center;
padding: 14px 12px;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 10px;
}
.led-digits {
display: inline-flex;
gap: 3px;
background: #000;
padding: 6px 8px;
border: 3px inset #666;
}
.led-digit {
width: 24px;
height: 34px;
background: #0B1B0B;
color: #39FF14;
font-family: 'Press Start 2P', monospace;
font-size: 15px;
display: inline-flex;
align-items: center;
justify-content: center;
text-shadow: 0 0 6px #39FF14;
}
.webring-row {
display: flex;
gap: 8px;
flex-wrap: wrap;
justify-content: center;
}
</style>
</head>
<body>
<div class="marquee-bar" aria-label="Museum ticker">
<div class="marquee-track">
*** WELCOME TO STARPORT '99 — ARCHIVING HAND-CODED GEOCITIES HOMEPAGES (1995–2001) *** BEST VIEWED AT 800×600 IN NETSCAPE NAVIGATOR 4.0 *** SIGN THE GUESTBOOK & EXPLORE ALL 4 NEIGHBORHOOD PORTALS ***
</div>
</div>
<div class="museum-wrap">
<!-- Masthead & Pixel Badges -->
<header class="bevel-box hero-banner">
<div style="font-size:18px;color:var(--gold);letter-spacing:0.12em;">★ EST. 1998 · HAND-CODED HTML 3.2 COLLAGE ★</div>
<h1>STARPORT ’99</h1>
<p class="hero-sub">
A living museum of beveled tables, homemade pixel badges, and late-night GeoCities neighborhoods preserved from the 56k dial-up era.
</p>
<div class="badge-strip" role="group" aria-label="Retro badges and controls">
<!-- Under Construction Pixel Badge -->
<span class="pixel-badge" aria-label="Under construction badge">
<svg width="24" height="24" viewBox="0 0 12 12" shape-rendering="crispEdges" aria-hidden="true">
<rect x="5" y="1" width="2" height="2" fill="#FFD93D"/>
<rect x="4" y="3" width="4" height="2" fill="#FFD93D"/>
<rect x="3" y="5" width="6" height="2" fill="#FFD93D"/>
<rect x="2" y="7" width="8" height="2" fill="#FFD93D"/>
<rect x="1" y="9" width="10" height="2" fill="#FFD93D"/>
<rect x="5" y="4" width="2" height="3" fill="#000"/>
<rect x="5" y="8" width="2" height="1" fill="#000"/>
</svg>
UNDER CONSTRUCTION
</span>
<!-- MIDI Synth Toggle -->
<button type="button" class="pixel-badge" id="btnMidi" aria-pressed="false">
<svg width="22" height="22" viewBox="0 0 12 12" shape-rendering="crispEdges" aria-hidden="true">
<rect x="5" y="2" width="5" height="2" fill="#00F0FF"/>
<rect x="5" y="4" width="1" height="5" fill="#00F0FF"/>
<rect x="9" y="4" width="1" height="4" fill="#00F0FF"/>
<rect x="3" y="8" width="3" height="2" fill="#FF5CE6"/>
<rect x="7" y="7" width="3" height="2" fill="#FF5CE6"/>
</svg>
MIDI: OFF
</button>
<!-- Guestbook Jump -->
<a href="#guestbook" class="pixel-badge">
<svg width="22" height="22" viewBox="0 0 12 12" shape-rendering="crispEdges" aria-hidden="true">
<rect x="2" y="2" width="8" height="8" fill="#FFF"/>
<rect x="3" y="4" width="6" height="1" fill="#000080"/>
<rect x="3" y="6" width="5" height="1" fill="#000080"/>
<rect x="3" y="8" width="4" height="1" fill="#FF5CE6"/>
</svg>
SIGN GUESTBOOK
</a>
</div>
</header>
<!-- Neighborhood Portal Switcher -->
<section class="bevel-box portal-panel" aria-label="GeoCities neighborhood portals">
<div class="portal-heading">
<span>SELECT NEIGHBORHOOD PORTAL</span>
<span id="portalCount">4 ARCHIVES ONLINE</span>
</div>
<div class="portal-grid" role="group" aria-label="Neighborhoods">
<button type="button" class="portal-btn" data-portal="area51" aria-pressed="true">
<span>Area51</span><small>UFOs & Sci-Fi</small>
</button>
<button type="button" class="portal-btn" data-portal="siliconvalley" aria-pressed="false">
<span>SiliconValley</span><small>HTML & 56k</small>
</button>
<button type="button" class="portal-btn" data-portal="tokyo" aria-pressed="false">
<span>Tokyo</span><small>Mecha & Shrines</small>
</button>
<button type="button" class="portal-btn" data-portal="enchanted" aria-pressed="false">
<span>EnchantedForest</span><small>Dragons & Lore</small>
</button>
</div>
</section>
<!-- Active Neighborhood Museum Gallery -->
<main class="bevel-box" aria-live="polite">
<div class="neighborhood-banner">
<div>
<h2 id="hoodTitle">AREA51 / VAULT</h2>
<div class="geo-url" id="hoodUrl">http://www.geocities.com/Area51/Vault/4092/</div>
</div>
<div class="webring-row">
<button type="button" class="win-btn" id="btnPrevHood"><< PREV RING</button>
<button type="button" class="win-btn" id="btnNextHood">NEXT RING >></button>
</div>
</div>
<div class="artifact-grid" id="artifactGrid"></div>
</main>
<!-- Guestbook + Hit Counter -->
<section class="bottom-split" id="guestbook" aria-label="Guestbook and visitor counter">
<div class="win-box">
<div class="win-title">
<span>GUESTBOOK.CGI — SIGN MY PAGE!</span>
<span>[X]</span>
</div>
<div class="win-body">
<div class="gb-entries" id="gbEntries" aria-live="polite">
<div class="gb-entry"><strong>CyberFox98:</strong> Cool frameset!! Added u to my Sci-Fi Webring!</div>
<div class="gb-entry"><strong>PixelMiko:</strong> Love the starry wallpaper. Visit my Tokyo shrine sometime ^_^</div>
<div class="gb-entry"><strong>ModemKing56k:</strong> Loaded in 4 seconds on USRobotics 56k. Radical!!</div>
</div>
<form class="gb-form" id="gbForm">
<input type="text" class="win-input" id="gbName" placeholder="Handle" maxlength="18" required aria-label="Your handle">
<input type="text" class="win-input" id="gbMsg" placeholder="Leave a 1999 note..." maxlength="90" required aria-label="Guestbook message">
<button type="submit" class="win-btn">POST</button>
</form>
</div>
</div>
<div class="bevel-box counter-box">
<div style="font-family:'Press Start 2P',monospace;font-size:10px;color:var(--cyan);">YOU ARE VISITOR #</div>
<div class="led-digits" id="hitCounter" aria-label="Visitor hit counter"></div>
<div style="font-size:18px;color:#B9C6FF;">
Y2K Webring Member #142<br>
<span style="color:var(--gold);">Zero Framesets Harmed</span>
</div>
</div>
</section>
</div>
<script>
(() => {
const PORTAL_KEYS = ['area51', 'siliconvalley', 'tokyo', 'enchanted'];
const PORTALS = {
area51: {
title: 'AREA51 / VAULT',
url: 'http://www.geocities.com/Area51/Vault/4092/',
accent: '#4DFF4D',
hits: 41982,
cards: [
{
title: 'ROSWELL RADAR LOGS',
meta: 'Archived Oct 1997 · 14 KB',
text: 'Scanned green-phosphor sky charts and saucer sighting coordinates compiled by ham radio operators.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><ellipse cx="48" cy="48" rx="36" ry="12" fill="#8EA0B5" stroke="#4DFF4D" stroke-width="2"/><ellipse cx="48" cy="40" rx="18" ry="12" fill="#00F0FF"/><circle cx="28" cy="49" r="3" fill="#FFD93D"/><circle cx="48" cy="52" r="3" fill="#FF5CE6"/><circle cx="68" cy="49" r="3" fill="#FFD93D"/><polygon points="36,60 60,60 72,82 24,82" fill="rgba(77,255,77,0.28)"/></svg>`
},
{
title: 'DEEP SPACE MIDI ARCHIVE',
meta: 'Archived Mar 1998 · 9 KB',
text: '16-channel General MIDI arrangements of sci-fi themes sequenced on a Sound Blaster AWE32.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><circle cx="48" cy="42" r="22" fill="#3B1D8F" stroke="#00F0FF" stroke-width="2"/><ellipse cx="48" cy="42" rx="40" ry="10" fill="none" stroke="#FFD93D" stroke-width="3" transform="rotate(-18 48 42)"/><circle cx="20" cy="18" r="2" fill="#FFF"/><circle cx="78" cy="22" r="2" fill="#4DFF4D"/></svg>`
},
{
title: 'X-FILES EPISODE GUIDE',
meta: 'Archived Nov 1999 · 21 KB',
text: 'Hand-typed episode synopses, conspiracy timelines, and ASCII art banners for fellow truth-seekers.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><rect x="14" y="14" width="68" height="56" fill="#081C08" stroke="#4DFF4D" stroke-width="2"/><path d="M22 52 L36 32 L48 46 L62 24 L74 40" fill="none" stroke="#4DFF4D" stroke-width="2.5"/><text x="20" y="64" fill="#4DFF4D" font-family="monospace" font-size="10">SIGNAL: OK</text></svg>`
}
]
},
siliconvalley: {
title: 'SILICONVALLEY / PARK',
url: 'http://www.geocities.com/SiliconValley/Park/8086/',
accent: '#00F0FF',
hits: 88304,
cards: [
{
title: 'HTML 3.2 TABLE TRICKS',
meta: 'Archived Feb 1998 · 11 KB',
text: 'Master 1-pixel transparent spacer GIFs, nested borderless tables, and 216 web-safe hex palettes.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><rect x="16" y="12" width="64" height="46" rx="3" fill="#C0C0C0" stroke="#FFF" stroke-width="2"/><rect x="22" y="18" width="52" height="32" fill="#000080"/><text x="27" y="38" fill="#00F0FF" font-family="monospace" font-size="11"><TABLE></text><rect x="34" y="60" width="28" height="6" fill="#808080"/><rect x="24" y="66" width="48" height="6" fill="#C0C0C0"/></svg>`
},
{
title: '56K MODEM TWEAKS',
meta: 'Archived Aug 1998 · 8 KB',
text: 'Custom AT&F1 initialization strings to squeeze 49,333 bps out of copper phone lines without dropping.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><rect x="14" y="34" width="68" height="24" fill="#2A2E45" stroke="#00F0FF" stroke-width="2"/><circle cx="26" cy="46" r="4" fill="#4DFF4D"/><circle cx="38" cy="46" r="4" fill="#4DFF4D"/><circle cx="50" cy="46" r="4" fill="#FFD93D"/><circle cx="62" cy="46" r="4" fill="#FF5CE6"/><path d="M22 24 Q48 8 74 24" fill="none" stroke="#00F0FF" stroke-width="2"/></svg>`
},
{
title: 'FLOPPY DISK LABEL KIT',
meta: 'Archived Jan 1999 · 16 KB',
text: 'Printable 3.5-inch 1.44MB diskette sleeves for backing up your prized shareware utilities.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><rect x="22" y="10" width="52" height="64" fill="#1D4ED8" stroke="#FFF" stroke-width="2"/><rect x="32" y="10" width="32" height="20" fill="#D4D4D8"/><rect x="52" y="14" width="6" height="12" fill="#1D4ED8"/><rect x="28" y="40" width="40" height="28" fill="#FFF"/><line x1="32" y1="50" x2="64" y2="50" stroke="#000" stroke-width="2"/><line x1="32" y1="58" x2="58" y2="58" stroke="#000" stroke-width="2"/></svg>`
}
]
},
tokyo: {
title: 'TOKYO / SHIBUYA',
url: 'http://www.geocities.com/Tokyo/Shibuya/1999/',
accent: '#FF5CE6',
hits: 63210,
cards: [
{
title: 'MECHA BLUEPRINT SHRINE',
meta: 'Archived May 1998 · 18 KB',
text: 'Pixel-traced orbital frame schematics, cockpit HUD callouts, and fan-translated episode notes.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><polygon points="48,10 68,26 62,64 34,64 28,26" fill="#2A245A" stroke="#FF5CE6" stroke-width="2"/><rect x="36" y="30" width="24" height="8" fill="#00F0FF"/><polygon points="24,20 34,28 28,36" fill="#FFD93D"/><polygon points="72,20 62,28 68,36" fill="#FFD93D"/></svg>`
},
{
title: 'PIXEL PET ADOPTION',
meta: 'Archived Sep 1998 · 10 KB',
text: 'Adopt a 32×32 cyber-cat for your sidebar! Just copy the HTML snippet and link back to Shibuya.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><rect x="30" y="28" width="36" height="32" fill="#FF99EE" stroke="#FFF" stroke-width="2"/><polygon points="30,28 36,14 44,28" fill="#FF99EE"/><polygon points="66,28 60,14 52,28" fill="#FF99EE"/><rect x="38" y="38" width="5" height="6" fill="#06061A"/><rect x="53" y="38" width="5" height="6" fill="#06061A"/><rect x="45" y="48" width="6" height="4" fill="#FFD93D"/></svg>`
},
{
title: 'SHIBUYA ARCADE SCORES',
meta: 'Archived Dec 1999 · 12 KB',
text: 'Verified high-score tables for bullet-hell shmups and rhythm cabinets, updated weekly from cybercafes.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><rect x="20" y="16" width="56" height="52" fill="#181236" stroke="#FFD93D" stroke-width="2"/><circle cx="38" cy="48" r="8" fill="#FF5CE6"/><rect x="36" y="28" width="4" height="20" fill="#FFF"/><circle cx="62" cy="46" r="5" fill="#00F0FF"/><circle cx="52" cy="54" r="5" fill="#4DFF4D"/></svg>`
}
]
},
enchanted: {
title: 'ENCHANTEDFOREST / GLADE',
url: 'http://www.geocities.com/EnchantedForest/Glade/7721/',
accent: '#FFD93D',
hits: 29451,
cards: [
{
title: 'CRYSTAL CAVERN ART',
meta: 'Archived Apr 1997 · 15 KB',
text: 'Hand-dithered amethyst clusters, glowing runes, and custom cursor trails for fantasy guilds.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><polygon points="48,10 62,38 56,72 40,72 34,38" fill="#A855F7" stroke="#FFD93D" stroke-width="2"/><polygon points="30,30 40,48 36,72 24,72 22,50" fill="#38BDF8" stroke="#FFF" stroke-width="1.5"/><polygon points="66,34 74,52 70,72 58,72 58,50" fill="#EC4899" stroke="#FFF" stroke-width="1.5"/></svg>`
},
{
title: 'DRAGON KEEPER CODEX',
meta: 'Archived Jul 1998 · 19 KB',
text: 'Elemental alignments, hatchling stats, and role-play tavern rules hosted on a personal homepage.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><path d="M22 60 Q32 22 52 24 Q68 26 74 44 L58 46 Q52 60 34 66 Z" fill="#10B981" stroke="#FFD93D" stroke-width="2"/><circle cx="58" cy="34" r="3" fill="#FFD93D"/><path d="M74 44 L86 38 L82 48 Z" fill="#FF5CE6"/></svg>`
},
{
title: 'STARLIGHT MIDI LULLABY',
meta: 'Archived Nov 1998 · 7 KB',
text: 'Harp and celesta soundfonts crafted to play softly while browsing candlelit poetry pages.',
svg: `<svg width="96" height="84" viewBox="0 0 96 84" aria-hidden="true"><path d="M58 18 A24 24 0 1 0 58 66 A18 18 0 1 1 58 18 Z" fill="#FFD93D"/><circle cx="64" cy="28" r="3" fill="#FFF"/><circle cx="72" cy="44" r="2" fill="#00F0FF"/><circle cx="60" cy="56" r="2.5" fill="#FF5CE6"/></svg>`
}
]
}
};
let currentIdx = 0;
const hitCounterEl = document.getElementById('hitCounter');
const hoodTitle = document.getElementById('hoodTitle');
const hoodUrl = document.getElementById('hoodUrl');
const artifactGrid = document.getElementById('artifactGrid');
function renderCounter(num) {
const str = String(num).padStart(6, '0');
hitCounterEl.innerHTML = str.split('').map(d => `<span class="led-digit">${d}</span>`).join('');
}
function loadPortal(key) {
currentIdx = PORTAL_KEYS.indexOf(key);
const data = PORTALS[key];
data.hits += 1;
document.documentElement.style.setProperty('--portal-accent', data.accent);
hoodTitle.textContent = data.title;
hoodUrl.textContent = data.url;
renderCounter(data.hits);
document.querySelectorAll('.portal-btn').forEach(btn => {
btn.setAttribute('aria-pressed', String(btn.dataset.portal === key));
});
artifactGrid.innerHTML = data.cards.map(c => `
<article class="artifact-card">
<div class="artifact-art">${c.svg}</div>
<h3>${c.title}</h3>
<div class="artifact-meta">${c.meta}</div>
<p>${c.text}</p>
</article>
`).join('');
}
document.querySelectorAll('.portal-btn').forEach(btn => {
btn.addEventListener('click', () => loadPortal(btn.dataset.portal));
});
document.getElementById('btnPrevHood').addEventListener('click', () => {
const next = (currentIdx - 1 + PORTAL_KEYS.length) % PORTAL_KEYS.length;
loadPortal(PORTAL_KEYS[next]);
});
document.getElementById('btnNextHood').addEventListener('click', () => {
const next = (currentIdx + 1) % PORTAL_KEYS.length;
loadPortal(PORTAL_KEYS[next]);
});
// Working Guestbook
const gbForm = document.getElementById('gbForm');
const gbEntries = document.getElementById('gbEntries');
gbForm.addEventListener('submit', (e) => {
e.preventDefault();
const name = document.getElementById('gbName').value.trim();
const msg = document.getElementById('gbMsg').value.trim();
if (!name || !msg) return;
const div = document.createElement('div');
div.className = 'gb-entry';
const strong = document.createElement('strong');
strong.textContent = name + ': ';
div.appendChild(strong);
div.appendChild(document.createTextNode(msg));
gbEntries.prepend(div);
gbForm.reset();
});
// Gentle 90s Web Audio MIDI Arpeggio Toggle
let audioCtx = null;
let midiTimer = null;
const NOTES = [261.63, 329.63, 392.00, 523.25, 392.00, 329.63, 293.66, 392.00];
let noteStep = 0;
const btnMidi = document.getElementById('btnMidi');
btnMidi.addEventListener('click', () => {
if (midiTimer) {
clearInterval(midiTimer);
midiTimer = null;
btnMidi.classList.remove('is-on');
btnMidi.setAttribute('aria-pressed', 'false');
btnMidi.lastChild.textContent = ' MIDI: OFF';
return;
}
const AC = window.AudioContext || window.webkitAudioContext;
if (!AC) return;
if (!audioCtx) audioCtx = new AC();
if (audioCtx.state === 'suspended') audioCtx.resume();
btnMidi.classList.add('is-on');
btnMidi.setAttribute('aria-pressed', 'true');
btnMidi.lastChild.textContent = ' MIDI: ON';
midiTimer = setInterval(() => {
const osc = audioCtx.createOscillator();
const gain = audioCtx.createGain();
osc.type = 'triangle';
osc.frequency.value = NOTES[noteStep % NOTES.length];
noteStep++;
gain.gain.setValueAtTime(0.05, audioCtx.currentTime);
gain.gain.exponentialRampToValueAtTime(0.001, audioCtx.currentTime + 0.24);
osc.connect(gain);
gain.connect(audioCtx.destination);
osc.start();
osc.stop(audioCtx.currentTime + 0.25);
}, 280);
});
loadPortal('area51');
})();
</script>
</body>
</html>