diff --git a/CHANGELOG.md b/CHANGELOG.md index 8ecebc4..8e2ecc8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ The format follows [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), and ### Changed +- Source Vault phone menu: it now opens exactly like the site's menu: full screen with the slat wipe, the SYS::OPEN chip, big outlined poster links with numbered captions (the section you're on fills with the gradient), and the split buttons at the bottom. - Source Vault menu: the links now follow the page, top to bottom: Prompts, Harmonic Map, Tracks, Credits (desktop nav and the phone menu). - Source Vault gate: the ACCESS REQUIRED card is much smaller (270 px: tag, one-line title, and the key field with a → button) and has no box, just four viewfinder corner ticks with the rain fading to dark behind it. The site's digital rain now runs behind it, streaming only public words (track titles and stem types) until the key is in. - Source Vault player: the dock now matches the site's player (borderless ▶ key, « » skips, title and chapter lines, the black bar), and the playing track's real waveform is the seek bar, with the times under it. The right-hand slot shows the tempo, key and Camelot code and opens a queue of all 20 files with their BPM; on phones it folds up like the site's dock. diff --git a/src/vault/main.js b/src/vault/main.js index d68a8d6..a2a43d0 100644 --- a/src/vault/main.js +++ b/src/vault/main.js @@ -418,18 +418,20 @@ function startNav() { const burger = $("#burger"), menu = $("#vmenu"); const setMenu = (o) => { - menu.hidden = !o; + menu.classList.toggle("is-open", o); + menu.setAttribute("aria-hidden", !o); + menu.inert = !o; burger.setAttribute("aria-expanded", o); burger.classList.toggle("is-open", o); burger.setAttribute("aria-label", o ? "Close menu" : "Open menu"); document.body.classList.toggle("menu-open", o); }; - burger.onclick = () => setMenu(menu.hidden); + burger.onclick = () => setMenu(!menu.classList.contains("is-open")); addEventListener("keydown", (e) => { - if (e.key === "Escape" && !menu.hidden) setMenu(false); + if (e.key === "Escape" && menu.classList.contains("is-open")) setMenu(false); }); addEventListener("resize", () => { - if (innerWidth >= 1024 && !menu.hidden) setMenu(false); + if (innerWidth >= 1024 && menu.classList.contains("is-open")) setMenu(false); }); $$("[data-nav]").forEach((a) => a.addEventListener("click", (e) => { diff --git a/src/vault/vault.css b/src/vault/vault.css index 7fd9671..a406f35 100644 --- a/src/vault/vault.css +++ b/src/vault/vault.css @@ -522,7 +522,7 @@ a { .snav { position: sticky; top: 0; - z-index: 40; + z-index: 58; } .snav .nav-glass { position: absolute; @@ -573,61 +573,35 @@ a { display: flex; } } +/* the open menu is the site's .e4-menu (overrides.css): full screen under the nav bar, over the dock */ .vmenu { position: fixed; - left: 0; - right: 0; - top: var(--navh); - bottom: 0; - z-index: 55; - background: #000; - padding: 22px 16px calc(24px + env(safe-area-inset-bottom)); - display: flex; - flex-direction: column; - gap: 2px; + inset: 0; + z-index: 56; + overflow: hidden; } -.vmenu[hidden] { - display: none; +@media (min-width: 1024px) { + .vmenu { + display: none; + } } -.vmenu a[data-nav] { +.vmenu .e4c-l { font-family: var(--head); - font-size: clamp(40px, 11vw, 56px); - line-height: 1.15; - color: var(--t2); - display: flex; - justify-content: space-between; - align-items: baseline; - border-bottom: 1px solid var(--hair2); - padding: 8px 0; - text-decoration: none; -} -.vmenu a[data-nav] small { - font-family: var(--mono); - font-size: 9px; - letter-spacing: 0.24em; - color: var(--t4); } -.vmenu a.on { - color: var(--ghost); +.vmenu .e4c-link { + text-decoration: none; } -.vmenu a.on span { +.vmenu .e4c-link.on .e4c-l { background: var(--grad); -webkit-background-clip: text; background-clip: text; + -webkit-text-stroke: 0; color: transparent; } .vm-ft { - margin-top: auto; display: grid; gap: 8px; } -.vm-ft .e-split { - width: 100%; -} -.vm-ft .e-split > * { - flex: 1; - min-height: 48px; -} body.menu-open { overflow: hidden; } diff --git a/vault/index.html b/vault/index.html index ebb743f..72b77f8 100644 --- a/vault/index.html +++ b/vault/index.html @@ -136,15 +136,47 @@

ACCESS REQUIRED.

-