summaryrefslogtreecommitdiff
path: root/assets/static
diff options
context:
space:
mode:
authorDennis Fink2026-11-04 19:46:20 +0100
committerDennis Fink2026-11-04 19:46:20 +0100
commitde94696ed7428311c9832d2f0d55ee1d2d87a196 (patch)
tree977eabb58af68a84ed934af1d511b4109aec7bcc /assets/static
parentf284b9ad986a33e4121eb40a0fb3106ac052a984 (diff)
downloaddennisfink.me-de94696ed7428311c9832d2f0d55ee1d2d87a196.tar.gz
dennisfink.me-de94696ed7428311c9832d2f0d55ee1d2d87a196.zip
Add custom 404 error page
This adds a dedicated 404 page with a playful message that reflects the blog's title and tagline, along with a colourful gradient heading and animated thinking dots. It also provides reduced-motion support, excludes the page from search engine and Pagefind indexing, and directs visitors to the site's navigation and search.
Diffstat (limited to '')
-rw-r--r--assets/static/css/404.css65
1 files changed, 65 insertions, 0 deletions
diff --git a/assets/static/css/404.css b/assets/static/css/404.css
new file mode 100644
index 0000000..a0ee30f
--- /dev/null
+++ b/assets/static/css/404.css
@@ -0,0 +1,65 @@
+@charset "UTF-8";
+
+article {
+ text-align: center;
+
+ > p:first-of-type {
+ margin: 0;
+ font-size: clamp(6rem, 28vw, 13rem);
+ font-weight: 700;
+ line-height: 1;
+ letter-spacing: -0.04em;
+ background: linear-gradient(
+ to right,
+ var(--red),
+ var(--orange),
+ var(--yellow),
+ var(--green),
+ var(--cyan),
+ var(--blue),
+ var(--magenta),
+ var(--pink)
+ );
+ -webkit-background-clip: text;
+ background-clip: text;
+ color: transparent;
+ }
+
+ > p:last-of-type {
+ color: var(--dim-foreground);
+ font-size: 0.85rem;
+ width: 100%;
+ max-inline-size: inherit;
+ }
+
+ .dots span {
+ opacity: 0.2;
+ animation: thinking 1.4s infinite;
+
+ &:nth-child(2) {
+ animation-delay: 0.2s;
+ }
+
+ &:nth-child(3) {
+ animation-delay: 0.4s;
+ }
+ }
+}
+
+@keyframes thinking {
+ 0%,
+ 80%,
+ 100% {
+ opacity: 0.2;
+ }
+ 40% {
+ opacity: 1;
+ }
+}
+
+@media (prefers-reduced-motion: reduce) {
+ .dots span {
+ animation: none;
+ opacity: 1;
+ }
+}