Rebuild the y2k theme to the OVERRIDE-CONTRACT (frozen cms a0f07e2ae) with the locked musician/band persona: liquid chrome, frosted-plastic bevels, gradient mesh, marquees, glitter, a webring, and a dependency-free canvas metaball hero. - All 49 mandatory builtin overrides in templates/overrides/y2k/ + manifest template_overrides; every content/provider field preserved from the frozen builtin default, only the chrome re-skinned (legacy button/card field reads already reconciled to link/style/label + text/media). - 7 page templates: default, full-width, landing, article, blog-index, contact, auth — chrome header, glitter backdrop, chrome footer. - Hero override ships a GO-BIG canvas liquid-chrome metaball showpiece (hero/landing only): lazy-init on view, prefers-reduced-motion honored, static chrome-mesh no-JS fallback, dependency-free. - Persona blocks (5): waveform_player, tracklist, tour_dates, discography, webring_badge. Duplicating theme blocks became overrides; nft_gallery DELETED per WO. - 5 dual-mode presets (frosted iMac plastic light + rave blacklight dark), all 19 tokens, mode both, tuned dark. - Bundled OFL fonts (Orbitron / Inter / Share Tech Mono) with licenses; all font-family via var(--font-heading|body|mono, fallback). Updated RECOMMENDED_FONTS/ICONS; required_icon_packs declared. - Themed email-safe wrapper (tables, inline styles, chrome header, marquee footer). Master pages + demo seed (home/about/blog x3/contact/login) in band voice; contact form wired to seeded contact_submissions + row_inserted email-admins workflow. Known platform gaps (OVERRIDE-CONTRACT §11/§12, unchanged): auth trio + page-suggestions don't dispatch overrides yet; provider-backed overrides render empty live lists until the codeless loader registers template sources. Files authored faithful to builtin field/provider names; they light up when the cms fix lands. Visual quality UNVERIFIED until Wave B. Gates: `make` exit 0 (codeless y2k-0.2.0.bnp), `ninja plugin verify` OK, check-safety exit 0. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
51 lines
4.4 KiB
Plaintext
51 lines
4.4 KiB
Plaintext
{# countdown y2k override: neon HUD digit boxes, glitch heading. Timer script + data attributes preserved byte-for-byte. #}
|
|
<section class="relative overflow-hidden py-16 md:py-24 bg-background text-foreground{% if class %} {{ class }}{% endif %}">
|
|
<div aria-hidden="true" class="scanlines pointer-events-none absolute inset-0"></div>
|
|
<div class="relative z-10 mx-auto max-w-4xl px-4 text-center">
|
|
{% if heading %}<h2 class="y2k-display glitch text-3xl font-semibold tracking-tight md:text-4xl" data-text="{{ heading }}">{{ heading }}</h2>{% endif %}
|
|
{% if intro %}<p class="mx-auto mt-4 max-w-2xl text-lg text-muted-foreground">{{ intro }}</p>{% endif %}
|
|
<div class="mt-10" data-countdown>
|
|
<div class="flex items-start justify-center gap-3 sm:gap-6" data-countdown-timer data-target="{{ target }}" role="timer" aria-label="Time remaining">
|
|
<div class="flex flex-col items-center {% if variant == "boxes" %}clip-cut min-w-[4.5rem] rounded-md border border-primary/50 bg-card px-3 py-4 text-card-foreground neon-edge-magenta{% endif %}"><span class="y2k-mono text-4xl font-bold tabular-nums sm:text-5xl text-primary" data-unit="days">--</span><span class="y2k-mono mt-1 text-xs font-medium uppercase tracking-widest text-muted-foreground">{{ labelDays|default:"Days" }}</span></div>
|
|
<div class="flex flex-col items-center {% if variant == "boxes" %}clip-cut min-w-[4.5rem] rounded-md border border-primary/50 bg-card px-3 py-4 text-card-foreground neon-edge-magenta{% endif %}"><span class="y2k-mono text-4xl font-bold tabular-nums sm:text-5xl text-primary" data-unit="hours">--</span><span class="y2k-mono mt-1 text-xs font-medium uppercase tracking-widest text-muted-foreground">{{ labelHours|default:"Hours" }}</span></div>
|
|
<div class="flex flex-col items-center {% if variant == "boxes" %}clip-cut min-w-[4.5rem] rounded-md border border-primary/50 bg-card px-3 py-4 text-card-foreground neon-edge-magenta{% endif %}"><span class="y2k-mono text-4xl font-bold tabular-nums sm:text-5xl text-primary" data-unit="minutes">--</span><span class="y2k-mono mt-1 text-xs font-medium uppercase tracking-widest text-muted-foreground">{{ labelMinutes|default:"Minutes" }}</span></div>
|
|
<div class="flex flex-col items-center {% if variant == "boxes" %}clip-cut min-w-[4.5rem] rounded-md border border-primary/50 bg-card px-3 py-4 text-card-foreground neon-edge-magenta{% endif %}"><span class="y2k-mono text-4xl font-bold tabular-nums sm:text-5xl text-primary" data-unit="seconds">--</span><span class="y2k-mono mt-1 text-xs font-medium uppercase tracking-widest text-muted-foreground">{{ labelSeconds|default:"Seconds" }}</span></div>
|
|
</div>
|
|
<div class="mt-8 hidden" data-countdown-expired>
|
|
<p class="y2k-display text-xl font-medium">{{ expiredMessage|default:"This has started." }}</p>
|
|
{% if expiredUrl and expiredLabel %}<a href="{{ expiredUrl }}" class="y2k-mono clip-cut rgb-split mt-4 inline-flex items-center gap-2 rounded-md bg-primary px-5 py-3 font-semibold uppercase tracking-wider text-primary-foreground transition-opacity hover:opacity-90">{{ expiredLabel }}<svg class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#arrow-right"></use></svg></a>{% endif %}
|
|
</div>
|
|
</div>
|
|
<noscript><p class="mt-6 text-muted-foreground">Counting down to <time datetime="{{ target }}">{{ target }}</time>.</p></noscript>
|
|
</div>
|
|
</section>
|
|
<script>
|
|
(function(){
|
|
var timers = document.querySelectorAll('[data-countdown-timer]');
|
|
timers.forEach(function(el){
|
|
var target = new Date(el.getAttribute('data-target')).getTime();
|
|
if (isNaN(target)) return;
|
|
var wrap = el.closest('[data-countdown]');
|
|
var expired = wrap ? wrap.querySelector('[data-countdown-expired]') : null;
|
|
function pad(n){ return (n < 10 ? '0' : '') + n; }
|
|
function set(unit, value){ var node = el.querySelector('[data-unit="' + unit + '"]'); if (node) node.textContent = value; }
|
|
var interval;
|
|
function tick(){
|
|
var diff = target - Date.now();
|
|
if (diff <= 0){
|
|
el.style.display = 'none';
|
|
if (expired) expired.classList.remove('hidden');
|
|
if (interval) clearInterval(interval);
|
|
return;
|
|
}
|
|
set('days', Math.floor(diff / 86400000));
|
|
set('hours', pad(Math.floor(diff % 86400000 / 3600000)));
|
|
set('minutes', pad(Math.floor(diff % 3600000 / 60000)));
|
|
set('seconds', pad(Math.floor(diff % 60000 / 1000)));
|
|
}
|
|
tick();
|
|
interval = setInterval(tick, 1000);
|
|
});
|
|
})();
|
|
</script>
|