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>
37 lines
3.0 KiB
Plaintext
37 lines
3.0 KiB
Plaintext
{# auth-status y2k override — reproduces the builtin's hardcoded wiring: /login + /login?tab=register when logged out; /account, /account/reviews, and hx-post /api/auth/logout dropdown when logged in; hx-post /api/auth/resend-verification banner when unverified. State from context.*. #}
|
|
{% if not context.isPublicLoggedIn %}
|
|
<div class="auth-status flex items-center gap-2">
|
|
<a href="/login" class="y2k-mono rounded-md px-3 py-1.5 text-sm font-medium uppercase tracking-wide opacity-80 transition-colors hover:bg-primary/10 hover:opacity-100">Login</a>
|
|
<a href="/login?tab=register" class="y2k-mono clip-cut rounded-md bg-accent px-3 py-1.5 text-sm font-medium uppercase tracking-wide text-accent-foreground hover:bg-accent/90">Sign Up</a>
|
|
</div>
|
|
{% else %}
|
|
{% if not context.publicEmailVerified %}<div class="fixed top-16 inset-x-0 z-40 border-y border-destructive/50 bg-destructive/15 px-4 py-2 text-center text-sm text-destructive">
|
|
<span class="y2k-mono uppercase tracking-wide">Verify your email address.</span> <button hx-post="/api/auth/resend-verification" hx-swap="outerHTML" class="underline font-medium">Resend verification email</button>
|
|
</div>{% endif %}
|
|
<div class="auth-status relative">
|
|
<button type="button" onclick="this.nextElementSibling.classList.toggle('hidden')" class="flex items-center gap-2 rounded-md px-3 py-1.5 text-sm font-medium opacity-90 transition-colors hover:bg-primary/10 hover:opacity-100">
|
|
<span class="clip-cut flex h-7 w-7 items-center justify-center rounded-md bg-accent text-accent-foreground"><svg class="h-4 w-4" aria-hidden="true"><use href="/icons/lucide.svg#user"></use></svg></span>
|
|
<span class="y2k-mono uppercase tracking-wide">{{ context.publicDisplayName|default:context.publicUsername }}</span>
|
|
<svg class="h-4 w-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M19 9l-7 7-7-7"/></svg>
|
|
</button>
|
|
<div id="auth-dropdown-menu" class="hud-frame hidden absolute right-0 top-full mt-1 w-48 rounded-md border border-primary/40 bg-card py-1 text-card-foreground neon-edge-magenta z-50">
|
|
<a href="/account" class="y2k-mono block px-4 py-2 text-sm uppercase tracking-wide text-card-foreground hover:bg-primary/10">My Profile</a>
|
|
<a href="/account/reviews" class="y2k-mono block px-4 py-2 text-sm uppercase tracking-wide text-card-foreground hover:bg-primary/10">My Reviews</a>
|
|
<hr class="my-1 border-border"/>
|
|
<button hx-post="/api/auth/logout" hx-swap="none" class="y2k-mono block w-full px-4 py-2 text-left text-sm uppercase tracking-wide text-destructive hover:bg-primary/10">Logout</button>
|
|
</div>
|
|
<script>
|
|
(function(){
|
|
document.addEventListener('click', function(e) {
|
|
var menu = document.getElementById('auth-dropdown-menu');
|
|
var btn = document.querySelector('.auth-status > button');
|
|
if (!menu || !btn) return;
|
|
if (!btn.contains(e.target) && !menu.contains(e.target)) {
|
|
menu.classList.add('hidden');
|
|
}
|
|
});
|
|
})();
|
|
</script>
|
|
</div>
|
|
{% endif %}
|