summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/404.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-17 11:22:02 +0200
committerDanilo M. <danix@danix.xyz>2026-04-17 11:22:02 +0200
commitd97d614328021a6c35dc69ef419d7b8f29db585a (patch)
tree72440f757802d572aa32a058e1695bb678302979 /themes/danix-xyz-hacker/layouts/404.html
parent9762d99097e1b71de64f0a32594eee77612e564a (diff)
downloaddanixxyz-d97d614328021a6c35dc69ef419d7b8f29db585a.tar.gz
danixxyz-d97d614328021a6c35dc69ef419d7b8f29db585a.zip
fix: improve styling and functionality for 404 and Repository pages
- 404.html: Move x-data directive to wrap entire content including modal, fixing Easter egg button click functionality. Add border, glow, and bg styling to main container. - repository/list.html: Add border, glow, rounded, and bg styling to article container for consistency with other pages. - Both pages now have consistent visual styling with borders, glows, and proper background colors. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/404.html')
-rw-r--r--themes/danix-xyz-hacker/layouts/404.html69
1 files changed, 35 insertions, 34 deletions
diff --git a/themes/danix-xyz-hacker/layouts/404.html b/themes/danix-xyz-hacker/layouts/404.html
index 6dbe1dd..e39784e 100644
--- a/themes/danix-xyz-hacker/layouts/404.html
+++ b/themes/danix-xyz-hacker/layouts/404.html
@@ -1,7 +1,7 @@
{{ define "main" }}
<main class="min-h-screen px-4 py-12">
- <div class="mx-auto px-4 py-12 max-w-4xl">
- <div class="text-center" x-data="notFoundPage()">
+ <div class="mx-auto px-4 py-12 max-w-4xl border border-border glow-accent rounded-lg bg-bg p-8" x-data="notFoundPage()">
+ <div class="text-center">
<!-- 404 Heading -->
<h1 class="text-7xl md:text-8xl font-bold text-accent mb-4 animate-fade-in">
404
@@ -83,46 +83,47 @@
</button>
</div>
- <!-- Easter Egg Modal (Hidden by default) -->
- <div
- class="fixed inset-0 z-50 hidden"
- :class="{ 'flex items-center justify-center': showEasterEgg }"
- x-show="showEasterEgg"
- x-cloak
- >
- <!-- Overlay -->
+ <!-- Easter Egg Modal (Hidden by default) -->
<div
- class="absolute inset-0 bg-black/50"
- @click="showEasterEgg = false"
- ></div>
+ class="fixed inset-0 z-50 hidden"
+ :class="{ 'flex items-center justify-center': showEasterEgg }"
+ x-show="showEasterEgg"
+ x-cloak
+ >
+ <!-- Overlay -->
+ <div
+ class="absolute inset-0 bg-black/50"
+ @click="showEasterEgg = false"
+ ></div>
- <!-- Modal Content -->
- <div class="relative bg-bg border-2 border-accent p-8 rounded-lg shadow-xl max-w-md mx-4">
- <h2 class="text-2xl font-bold mb-6 text-accent">{{ i18n "easterEggTitle" }}</h2>
+ <!-- Modal Content -->
+ <div class="relative bg-bg border-2 border-accent p-8 rounded-lg shadow-xl max-w-md mx-4">
+ <h2 class="text-2xl font-bold mb-6 text-accent">{{ i18n "easterEggTitle" }}</h2>
- <div class="space-y-4">
- <button
- @click="showEasterEgg = false; window.location.href = '{{ .Site.BaseURL }}'"
- class="w-full btn btn-primary"
- >
- 💊 {{ i18n "bluePill" }}
- </button>
+ <div class="space-y-4">
+ <button
+ @click="showEasterEgg = false; window.location.href = '{{ .Site.BaseURL }}'"
+ class="w-full btn btn-primary"
+ >
+ 💊 {{ i18n "bluePill" }}
+ </button>
+
+ <button
+ @click="goToRandomArticle()"
+ class="w-full btn btn-secondary"
+ >
+ 🐰 {{ i18n "redPill" }}
+ </button>
+ </div>
<button
- @click="goToRandomArticle()"
- class="w-full btn btn-secondary"
+ @click="showEasterEgg = false"
+ class="absolute top-4 right-4 text-text-dim hover:text-text dark:hover:text-text transition-colors"
+ aria-label="Close modal"
>
- 🐰 {{ i18n "redPill" }}
+ ✕
</button>
</div>
-
- <button
- @click="showEasterEgg = false"
- class="absolute top-4 right-4 text-text-dim hover:text-text dark:hover:text-text transition-colors"
- aria-label="Close modal"
- >
- ✕
- </button>
</div>
</div>
</div>