Re-skin gotham to the locked nightlife / private members' club persona: cinematic near-black luxe, brass hairline accents, letterboxed heroes and tall condensed display type. Codeless .bnp; MID motion tier (JS effects, no canvas), prefers-reduced-motion honored, no-JS fallback. - 49 mandatory builtin overrides in templates/overrides/gotham/ (chrome, marketing, primitives, commerce/local, blog family, auth surface, 404). Field reads, provider fields, form wiring and block JS preserved verbatim from the frozen builtins (cms a0f07e2ae); only presentation reskinned. - 8 page templates (default, landing, article, full-width, blog-index, contact, auth + retained centered), dual-mode via theme_mode. - 4 persona blocks: door_strip, events_marquee, membership_tiers, bottle_menu. Removed old theme blocks that duplicated builtins (hero, stats, features, footer) — now overrides. - 5 dual-mode presets (all 19 tokens, light + dark intentional). - Bundled OFL woff2: Antonio (heading), Cormorant Garamond (body), Inter (meta), IBM Plex Mono (mono); all font-family via var(--font-*). - Themed email-safe wrapper, master pages, seed demo (home/about/blog x3/ contact+workflow/login) in private-club voice. - Gotham utility CSS (reel-*, film-grain, spotlight, letterbox-scrim, reveal) via manifest css.input_css_append; semantic color tokens only. - plugin.mod kind="theme", required_icon_packs=["lucide"]; *.bnp gitignored. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
34 lines
4.6 KiB
Plaintext
34 lines
4.6 KiB
Plaintext
{# auth-form override — gilded login/register. Wiring is UNTOUCHABLE and reproduced exactly from builtin auth_blocks.go: single shared #auth-message, /api/auth/login (email,password) and /api/auth/register (username,email,password), hx-target #auth-message. Captcha widget injected from _captcha_widget when captchaEnabled (server enforces). Fields: default_tab, show_social (social omitted — needs Go/site config; graceful). #}
|
|
{% if context.isPublicLoggedIn %}
|
|
<div data-block-override="gotham:auth-form" class="auth-form-logged-in mx-auto max-w-md text-center py-8">
|
|
<p class="italic" style="color:hsl(var(--muted-foreground));font-family:var(--font-body, 'Cormorant Garamond', Georgia, serif);">You are signed in as <strong style="color:hsl(var(--foreground));">{{ context.publicUsername }}</strong></p>
|
|
<a href="/account" class="reel-link mt-3 inline-block">My account</a>
|
|
</div>
|
|
{% else %}
|
|
<div data-block-override="gotham:auth-form" class="auth-form reel-frame mx-auto max-w-md bg-card p-8">
|
|
<div id="auth-message"></div>
|
|
<div class="mb-6 flex border-b border-[hsl(var(--primary)/0.3)]">
|
|
<button type="button" onclick="document.getElementById('login-panel').classList.remove('hidden');document.getElementById('register-panel').classList.add('hidden');this.setAttribute('data-active','1');this.nextElementSibling.removeAttribute('data-active');" data-auth-tab {% if default_tab != "register" %}data-active="1"{% endif %} class="reel-caps flex-1 py-2 text-center text-xs border-b-2 border-transparent data-[active]:border-[hsl(var(--primary))] data-[active]:text-primary">Sign in</button>
|
|
<button type="button" onclick="document.getElementById('register-panel').classList.remove('hidden');document.getElementById('login-panel').classList.add('hidden');this.setAttribute('data-active','1');this.previousElementSibling.removeAttribute('data-active');" data-auth-tab {% if default_tab == "register" %}data-active="1"{% endif %} class="reel-caps flex-1 py-2 text-center text-xs border-b-2 border-transparent data-[active]:border-[hsl(var(--primary))] data-[active]:text-primary">Register</button>
|
|
</div>
|
|
<div id="login-panel" class="{% if default_tab == "register" %}hidden{% endif %}">
|
|
<form hx-post="/api/auth/login" hx-target="#auth-message" hx-swap="innerHTML">
|
|
<div class="mb-3"><label class="reel-caps block text-xs mb-1" style="color:hsl(var(--primary));">Email</label><input type="email" name="email" required class="w-full rounded-none border border-input bg-background px-3 py-2 text-sm focus:outline-none focus:border-[hsl(var(--primary))] focus:ring-1 focus:ring-ring" /></div>
|
|
<div class="mb-4"><label class="reel-caps block text-xs mb-1" style="color:hsl(var(--primary));">Password</label><input type="password" name="password" required class="w-full rounded-none border border-input bg-background px-3 py-2 text-sm focus:outline-none focus:border-[hsl(var(--primary))] focus:ring-1 focus:ring-ring" /></div>
|
|
{% if _captcha_widget %}{{ _captcha_widget|safe }}{% endif %}
|
|
<button type="submit" class="reel-btn w-full" hx-disabled-elt="this">Sign in</button>
|
|
<p class="text-center mt-3 text-sm"><a href="/forgot-password" class="reel-link">Forgot password?</a></p>
|
|
</form>
|
|
</div>
|
|
<div id="register-panel" class="{% if default_tab != "register" %}hidden{% endif %}">
|
|
<form hx-post="/api/auth/register" hx-target="#auth-message" hx-swap="innerHTML">
|
|
<div class="mb-3"><label class="reel-caps block text-xs mb-1" style="color:hsl(var(--primary));">Username</label><input type="text" name="username" required pattern="[a-zA-Z0-9_-]{3,30}" class="w-full rounded-none border border-input bg-background px-3 py-2 text-sm focus:outline-none focus:border-[hsl(var(--primary))] focus:ring-1 focus:ring-ring" /></div>
|
|
<div class="mb-3"><label class="reel-caps block text-xs mb-1" style="color:hsl(var(--primary));">Email</label><input type="email" name="email" required class="w-full rounded-none border border-input bg-background px-3 py-2 text-sm focus:outline-none focus:border-[hsl(var(--primary))] focus:ring-1 focus:ring-ring" /></div>
|
|
<div class="mb-4"><label class="reel-caps block text-xs mb-1" style="color:hsl(var(--primary));">Password</label><input type="password" name="password" required minlength="8" class="w-full rounded-none border border-input bg-background px-3 py-2 text-sm focus:outline-none focus:border-[hsl(var(--primary))] focus:ring-1 focus:ring-ring" /></div>
|
|
{% if _captcha_widget %}{{ _captcha_widget|safe }}{% endif %}
|
|
<button type="submit" class="reel-btn w-full" hx-disabled-elt="this">Create account</button>
|
|
</form>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|