firebreak/web/app/templates/error.html
ZTatman 4a3d045b85 style(web): design token system + Firebreak branding pass
Dark-only Tailwind v4 @theme tokens, cinematic landing hero, operational
dashboard styling, and the Firebreak logo/wordmark assets. Templates use
semantic component classes instead of inline styles and color literals.
2026-06-10 17:03:10 -04:00

110 lines
4.4 KiB
HTML

{% extends "base.html" %}
{% 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">
<div class="error-backdrop-logo">
<img src="/static/img/firebreak-logo-red.svg"
alt="Firebreak"
width="240"
height="268" />
</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>
<h1 class="mt-1 text-xl font-semibold text-foreground">{{ title }}</h1>
<p class="mt-4 text-sm leading-6 text-foreground/60">{{ detail }}</p>
{% 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="text-xs italic text-foreground/30">{{ quips | random }}</p>
{% endif %}
<div class="mt-8">
<a href="/" class="btn-link" 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 %}