diff options
| author | Danilo M. <danix@danix.xyz> | 2026-04-15 23:39:11 +0200 |
|---|---|---|
| committer | Danilo M. <danix@danix.xyz> | 2026-04-15 23:39:11 +0200 |
| commit | 455b5bf0a8cfba658446cc6f3fd2c5964b45d507 (patch) | |
| tree | 54e0b3319e540ed2a693fdfebf8f583fae345203 /themes/danix-xyz-hacker/layouts/articles/single.html | |
| parent | abf79d7123469dd27b59e3fb154aba41523688e7 (diff) | |
| download | danixxyz-455b5bf0a8cfba658446cc6f3fd2c5964b45d507.tar.gz danixxyz-455b5bf0a8cfba658446cc6f3fd2c5964b45d507.zip | |
Implement article type colors, reading progress bar, and optimize layout
- Add colored type pills to article list items (overlay on thumbnails, top-right)
- Add type accent corner (L-shaped) to single article headers with colored pill badge in metadata
- Implement smooth reading progress bar at viewport top (violet→green gradient)
- Progress bar only appears on single pages/articles, not on lists or homepage
- Constrain article width to max-w-7xl for comfortable reading with side gutters
- Use CSS variables for all colors to support dark/light theme switching
- Add reading-progress.js with requestAnimationFrame throttling for performance
- Update HANDOFF.md with current progress
Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'themes/danix-xyz-hacker/layouts/articles/single.html')
| -rw-r--r-- | themes/danix-xyz-hacker/layouts/articles/single.html | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/themes/danix-xyz-hacker/layouts/articles/single.html b/themes/danix-xyz-hacker/layouts/articles/single.html index c5d51e7..93abdb6 100644 --- a/themes/danix-xyz-hacker/layouts/articles/single.html +++ b/themes/danix-xyz-hacker/layouts/articles/single.html @@ -2,7 +2,7 @@ {{ $articleType := .Params.type | default "life" }} {{ $template := printf "article-types/%s.html" $articleType }} <article class="mx-auto px-4 py-12"> - <div class="grid md:grid-cols-3 gap-8"> + <div class="grid md:grid-cols-3 gap-8 max-w-7xl mx-auto"> <!-- Article section --> <div class="md:col-span-2"> <!-- Article header --> |
