From 1ac2899bc8cc8f02dfb531aa3fa0027369cfc073 Mon Sep 17 00:00:00 2001 From: clarth Date: Wed, 2 Dec 2026 17:34:39 -0500 Subject: [PATCH] Add animated 404 page and nginx error_page config --- 404.html | 94 +++++++++++++++++++++++ deploy/nginx-preview.conf | 6 ++ styles.css | 152 ++++++++++++++++++++++++++++++++++++++ 3 files changed, 252 insertions(+) create mode 100644 404.html diff --git a/404.html b/404.html new file mode 100644 index 0000000..7abc68e --- /dev/null +++ b/404.html @@ -0,0 +1,94 @@ + + + + + + 404 - Channel Not Found | Claytonia Fluxer + + + + + + + + + + + + + + + +
+
+ + +

Error 404

+

404

+

Channel not found.

+

Looks like this page got yeeted into the void by a rogue mod. Either the link is cursed, the page moved, or it never existed in this timeline.

+ + + + +
+
+ + + + + + diff --git a/deploy/nginx-preview.conf b/deploy/nginx-preview.conf index fb357a3..fdd6bda 100644 --- a/deploy/nginx-preview.conf +++ b/deploy/nginx-preview.conf @@ -6,6 +6,12 @@ server { root /home/clay/Projects/git/fluxer-website; index index.html; + error_page 404 /404.html; + + location = /404.html { + internal; + } + location / { try_files $uri $uri/ =404; } diff --git a/styles.css b/styles.css index 46ca0ba..2372f2c 100644 --- a/styles.css +++ b/styles.css @@ -569,6 +569,158 @@ details p { } .policy-list li + li { margin-top: 0.45rem; } +/* 404 page */ +.nf-main { width: min(860px, 100% - 2.5rem); margin: 0 auto; padding-bottom: 2rem; } +.nf-hero { text-align: center; padding: clamp(2rem, 6vw, 4rem) 0 1rem; } +.nf-visual { display: flex; justify-content: center; margin-bottom: 1.5rem; } +.nf-orbit { + position: relative; + width: 220px; + height: 220px; + display: grid; + place-items: center; +} +.nf-planet { + width: 120px; + height: 120px; + border-radius: 50%; + background: linear-gradient(145deg, rgba(139,124,255,0.35), rgba(94,234,212,0.15) 60%, rgba(244,114,182,0.25)); + border: 1px solid rgba(255,255,255,0.1); + display: grid; + place-items: center; + box-shadow: 0 0 60px rgba(139,124,255,0.25), inset 0 -10px 30px rgba(0,0,0,0.3); + animation: nf-float 5s ease-in-out infinite; +} +.nf-face { + font-size: 3rem; + font-weight: 800; + color: var(--text); + text-shadow: 0 0 20px rgba(139,124,255,0.6); + animation: nf-blink 4s ease-in-out infinite; +} +.nf-ring { + position: absolute; + width: 190px; + height: 56px; + border: 2px solid rgba(94,234,212,0.35); + border-radius: 50%; + transform: rotate(-18deg); + animation: nf-spin 12s linear infinite; +} +.nf-ring::after { + content: ""; + position: absolute; + inset: 6px; + border: 1px solid rgba(139,124,255,0.2); + border-radius: 50%; +} +.nf-sat { + position: absolute; + inset: 0; + animation: nf-orbit 6s linear infinite; +} +.nf-sat span { + position: absolute; + top: 8px; + left: 50%; + width: 14px; + height: 14px; + margin-left: -7px; + border-radius: 4px; + background: linear-gradient(135deg, var(--accent-2), var(--accent)); + box-shadow: 0 0 12px rgba(94,234,212,0.8); +} +.nf-sat span::before, .nf-sat span::after { + content: ""; + position: absolute; + top: 3px; + width: 10px; + height: 8px; + background: rgba(94,234,212,0.45); + border: 1px solid rgba(94,234,212,0.5); +} +.nf-sat span::before { right: 14px; border-radius: 2px 0 0 2px; } +.nf-sat span::after { left: 14px; border-radius: 0 2px 2px 0; } +.nf-dot { + position: absolute; + border-radius: 50%; + background: var(--accent-2); + opacity: 0.7; + animation: nf-twinkle 2.4s ease-in-out infinite alternate; +} +.nf-dot-a { width: 6px; height: 6px; top: 18px; right: 28px; } +.nf-dot-b { width: 4px; height: 4px; bottom: 30px; left: 20px; animation-delay: .7s; background: var(--accent-3); } +.nf-dot-c { width: 5px; height: 5px; top: 40px; left: 12px; animation-delay: 1.4s; background: var(--accent); } +.nf-title { font-size: clamp(4.5rem, 12vw, 8rem); margin: 0.1em 0 0; line-height: 1; } +.nf-glitch { position: relative; display: inline-block; } +.nf-glitch::before, .nf-glitch::after { + content: attr(data-text); + position: absolute; + top: 0; left: 0; + width: 100%; height: 100%; + background: var(--bg); + -webkit-background-clip: text; + background-clip: text; + color: transparent; + opacity: 0; +} +.nf-glitch::before { + text-shadow: 2px 0 rgba(94,234,212,0.7); + animation: nf-glitch 5s infinite; +} +.nf-glitch::after { + text-shadow: -2px 0 rgba(244,114,182,0.7); + animation: nf-glitch 5s infinite 0.15s; +} +.nf-sub { font-size: 1.4rem; font-weight: 700; color: var(--text); margin: 0 0 0.5rem; } +.nf-lead { margin: 0 auto 1.5rem; max-width: 620px; } +.nf-terminal { + max-width: 560px; + margin: 0 auto 2rem; + text-align: left; + border-radius: 14px; + background: rgba(20,20,29,0.85); + border: 1px solid var(--border); + overflow: hidden; + box-shadow: 0 20px 50px -20px rgba(0,0,0,0.6); +} +.nf-terminal-bar { + display: flex; gap: 6px; padding: 0.65rem 0.9rem; + background: var(--surface); + border-bottom: 1px solid var(--border); +} +.nf-terminal-bar span { width: 10px; height: 10px; border-radius: 50%; background: #3a3a4a; } +.nf-terminal-bar span:nth-child(1) { background: #f87171; } +.nf-terminal-bar span:nth-child(2) { background: #fbbf24; } +.nf-terminal-bar span:nth-child(3) { background: #34d399; } +.nf-terminal-body { padding: 1rem 1.2rem; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 0.9rem; } +.nf-terminal-body p { margin: 0.35rem 0; color: var(--muted); } +.nf-prompt { color: var(--accent-2); margin-right: 0.4rem; } +.nf-dim { opacity: 0.75; } +.nf-err { color: #fda4af !important; } +.nf-cursor { + display: inline-block; + width: 0.55em; + height: 1.1em; + vertical-align: text-bottom; + background: var(--accent-2); + animation: nf-cursor 1s step-end infinite; +} +@keyframes nf-float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-10px); } } +@keyframes nf-orbit { from{ transform: rotate(0deg); } to{ transform: rotate(360deg); } } +@keyframes nf-spin { from{ transform: rotate(-18deg); } to{ transform: rotate(342deg); } } +@keyframes nf-twinkle { from{ opacity: .3; transform: scale(.8); } to{ opacity: 1; transform: scale(1.3); } } +@keyframes nf-blink { 0%,42%,44%,100%{ opacity: 1; } 43%{ opacity: .2; } } +@keyframes nf-cursor { 0%,50%{ opacity: 1; } 50.01%,100%{ opacity: 0; } } +@keyframes nf-glitch { + 0%,88%,100%{ opacity: 0; transform: translate(0); } + 89%{ opacity: .8; transform: translate(-2px, 1px); } + 90%{ opacity: .8; transform: translate(2px, -1px); } + 91%{ opacity: 0; transform: translate(0); } + 96%{ opacity: .6; transform: translate(1px, 0); } + 97%{ opacity: 0; transform: translate(0); } +} + /* responsive */ @media (max-width: 960px) { .hero { grid-template-columns: 1fr; min-height: auto; }