summaryrefslogtreecommitdiffstats
path: root/themes/danix-xyz-hacker/layouts/repository/list.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-17 11:18:19 +0200
committerDanilo M. <danix@danix.xyz>2026-04-17 11:18:19 +0200
commit9762d99097e1b71de64f0a32594eee77612e564a (patch)
tree9b02a4238c8b29904b789d2fc1723cce301dac59 /themes/danix-xyz-hacker/layouts/repository/list.html
parentd1cb52fc16492f02a1f995cc83f0580635e76215 (diff)
downloaddanixxyz-9762d99097e1b71de64f0a32594eee77612e564a.tar.gz
danixxyz-9762d99097e1b71de64f0a32594eee77612e564a.zip
Fix styling issues on 404 and Repository pages
- Add proper container styling (mx-auto, px-4, py-12) to main content wrappers matching single.html pattern - Replace gray color hardcodes with theme-aware CSS variables: - bg-gray-50/gray-900 → bg-bg/50 with hover:bg-bg/70 for article cards - text-gray-600/gray-400 → text-text-dim for text - border-gray-300/gray-700 → border-border for borders - bg-gray-200/gray-800 → bg-border/20 for tags - Fixes color inconsistency in both light and dark modes - Ensures 404 latest articles and Repository tags use theme colors instead of fixed gray Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/repository/list.html')
-rw-r--r--themes/danix-xyz-hacker/layouts/repository/list.html10
1 files changed, 5 insertions, 5 deletions
diff --git a/themes/danix-xyz-hacker/layouts/repository/list.html b/themes/danix-xyz-hacker/layouts/repository/list.html
index aa6805e..73ae222 100644
--- a/themes/danix-xyz-hacker/layouts/repository/list.html
+++ b/themes/danix-xyz-hacker/layouts/repository/list.html
@@ -1,12 +1,12 @@
{{ define "main" }}
<main class="min-h-screen px-4 py-12">
- <article class="max-w-4xl mx-auto">
+ <article class="mx-auto px-4 py-12 max-w-4xl">
<!-- Page Title (Hero) -->
<div class="mb-12">
<h1 class="text-5xl md:text-6xl font-bold mb-4 text-accent animate-fade-in">
{{ i18n "repositoryTitle" }}
</h1>
- <p class="text-xl text-gray-600 dark:text-gray-400 animate-fade-in-delay">
+ <p class="text-xl text-text-dim animate-fade-in-delay">
{{ i18n "repositorySubtitle" }}
</p>
</div>
@@ -22,7 +22,7 @@
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-3 gap-6">
{{ range $.Site.Data.repos.repos }}
- <div class="border border-gray-300 dark:border-gray-700 rounded-lg overflow-hidden hover:shadow-lg transition-shadow">
+ <div class="border border-border rounded-lg overflow-hidden hover:shadow-lg transition-shadow">
<!-- Card Image -->
<img
src="{{ .image }}"
@@ -35,7 +35,7 @@
<div class="p-6">
<h3 class="text-xl font-bold mb-2">{{ .name }}</h3>
- <p class="text-gray-600 dark:text-gray-400 mb-4">
+ <p class="text-text-dim mb-4">
{{ i18n .description_key }}
</p>
@@ -43,7 +43,7 @@
{{ if .tags }}
<div class="flex flex-wrap gap-2 mb-4">
{{ range .tags }}
- <span class="text-xs px-2 py-1 bg-gray-200 dark:bg-gray-800 rounded">
+ <span class="text-xs px-2 py-1 bg-border/20 rounded">
{{ . }}
</span>
{{ end }}