Full-color brand art (cream + red) is hero/dark-ground only; on light ground the mark is a single-ink stamp that takes its context's text color. This is the one treatment that survives a future ash-and-ember dark mode with zero new assets — currentColor follows --color-foreground on flip. - Add partials/_brand.html: one currentColor Firebreak mark, colored by a text-* utility at each call site. - Header: mark + real-text wordmark in text-foreground (replaces the cold #17191C logo that clashed with the warm page); also fold the inline border style into border-b border-border. - Complete the account-dropdown Alpine migration (same file): wire the panel id/aria-controls, drive the open-state highlight and focus-return through Alpine, drop the <details> cruft, add a transition. - Setup: replace the invisible cream-on-light logo (and its compensating drop-shadow) with the ink mark. - 404: "Outside the break" copy, token-driven watermark at 25%, and a guard so the duplicate detail line no longer renders. - Delete 3 now-unused logo SVGs (black, red, brand). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
119 lines
5 KiB
HTML
119 lines
5 KiB
HTML
{% extends "base.html" %}
|
|
{% from "partials/_brand.html" import mark %}
|
|
{% block title %}{{ status_code }} — Firebreak{% endblock %}
|
|
{% block main_class %}flex-1 flex flex-col{% endblock %}
|
|
{% block content %}
|
|
<section class="relative flex flex-1 items-center justify-center px-6 py-20 overflow-hidden">
|
|
{# Watermark, not hero — the ring frames the message, it doesn't compete #}
|
|
<div class="absolute left-1/2 h-full w-full max-w-200 -translate-x-1/2 text-danger opacity-25 inset-bs-8"
|
|
aria-hidden="true">
|
|
{{ mark("block h-auto w-full") }}
|
|
</div>
|
|
<div class="relative z-10 w-full max-w-md text-center">
|
|
<p class="font-bold text-8xl text-foreground/20 sm:text-9xl">{{ status_code }}</p>
|
|
{% if status_code == 404 %}
|
|
<h1 class="mt-1 text-xl font-semibold text-foreground">Outside the break</h1>
|
|
<p class="mt-4 text-sm leading-6 text-muted-foreground">This path lies beyond the cleared ground.</p>
|
|
{% else %}
|
|
<h1 class="mt-1 text-xl font-semibold text-foreground">{{ title }}</h1>
|
|
{# FastAPI defaults detail to the title text — don't say it twice #}
|
|
{% if detail and detail != title %}
|
|
<p class="mt-4 text-sm leading-6 text-muted-foreground">{{ detail }}</p>
|
|
{% endif %}
|
|
{% endif %}
|
|
{% if status_code == 401 %}
|
|
{% set quips = [
|
|
"I'm not saying you're a data scraper, but I AM saying that this page is off-limits.",
|
|
"I'm watching you Wazowski… ALWAYS watching.",
|
|
"He doesn't bite. He just harvests your data.",
|
|
"Move along clanker! Nothing to see here.",
|
|
"Just get out of here you STUPID, DUMB ANIMAL!"
|
|
] %}
|
|
<p class="mt-3 text-xs italic text-muted-foreground">{{ quips | random }}</p>
|
|
{% endif %}
|
|
<div class="mt-8">
|
|
{# The only recovery action on the page — it earns button weight #}
|
|
<a href="/" class="btn btn-secondary" id="go-home-btn">Go home</a>
|
|
</div>
|
|
</div>
|
|
{% if status_code == 401 %}
|
|
<div class="absolute pointer-events-none guard-dog-wrap -bottom-4 -right-8 w-44 sm:w-56"
|
|
aria-hidden="true">
|
|
<div class="guard-dog-trot">
|
|
<div class="guard-dog-look">
|
|
<div class="relative">
|
|
<img src="/static/img/mark_cuckerberg.png"
|
|
alt=""
|
|
class="w-full opacity-65 grayscale" />
|
|
<div class="laser-eye laser-eye-left"></div>
|
|
<div class="laser-eye laser-eye-right"></div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
{% endif %}
|
|
</section>
|
|
{% if status_code == 401 %}
|
|
<script>
|
|
console.log('Unauthorized access detected. Deploying CUCKerberg.');
|
|
|
|
function fireBeam(eye, target) {
|
|
const eyeRect = eye.getBoundingClientRect();
|
|
const btnRect = target.getBoundingClientRect();
|
|
const x1 = eyeRect.left + eyeRect.width / 2;
|
|
const y1 = eyeRect.top + eyeRect.height / 2;
|
|
const x2 = btnRect.left + btnRect.width / 2;
|
|
const y2 = btnRect.top + btnRect.height / 2;
|
|
const dx = x2 - x1;
|
|
const dy = y2 - y1;
|
|
const length = Math.hypot(dx, dy);
|
|
const angle = Math.atan2(dy, dx) * (180 / Math.PI);
|
|
|
|
const beam = document.createElement('div');
|
|
beam.className = 'laser-beam';
|
|
beam.style.left = x1 + 'px';
|
|
beam.style.top = y1 + 'px';
|
|
beam.style.width = length + 'px';
|
|
beam.style.transform = 'rotate(' + angle + 'deg)';
|
|
document.body.appendChild(beam);
|
|
|
|
requestAnimationFrame(() => beam.classList.add('fire'));
|
|
return beam;
|
|
}
|
|
|
|
const btn = document.getElementById('go-home-btn');
|
|
let armed = false;
|
|
if (btn) {
|
|
setTimeout(() => { armed = true; }, 7500);
|
|
|
|
btn.addEventListener('click', (e) => {
|
|
if (!armed) return;
|
|
e.preventDefault();
|
|
const eyes = document.querySelectorAll('.laser-eye');
|
|
const beams = [];
|
|
eyes.forEach((eye) => beams.push(fireBeam(eye, btn)));
|
|
btn.classList.add('btn-zapped');
|
|
|
|
// Intensify glow over 2 seconds
|
|
let start = performance.now();
|
|
function intensify(now) {
|
|
const t = Math.min((now - start) / 2000, 1);
|
|
const spread = 12 + t * 20;
|
|
const blur = 30 + t * 40;
|
|
const opacity = 0.5 + t * 0.4;
|
|
const scale = 1 + t * 0.06;
|
|
const primaryGlow = `color-mix(in oklab, var(--color-brand-red) ${Math.round(opacity * 100)}%, transparent)`;
|
|
const secondaryGlow = `color-mix(in oklab, var(--color-brand-red) ${Math.round(opacity * 50)}%, transparent)`;
|
|
btn.style.boxShadow = `0 0 ${spread}px ${spread / 3}px ${primaryGlow}, 0 0 ${blur}px ${blur / 3}px ${secondaryGlow}`;
|
|
btn.style.scale = scale;
|
|
if (t < 1) requestAnimationFrame(intensify);
|
|
}
|
|
requestAnimationFrame(intensify);
|
|
|
|
// Redirect right at peak intensity
|
|
setTimeout(() => { window.location.href = '/'; }, 2000);
|
|
});
|
|
}
|
|
</script>
|
|
{% endif %}
|
|
{% endblock %}
|