summaryrefslogtreecommitdiffstats
path: root/layouts/_partials/hero.html
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-10 11:29:00 +0200
committerDanilo M. <danix@danix.xyz>2026-04-10 11:29:00 +0200
commitc42150058196f5affad5c6c590e99dd2fc7321c3 (patch)
treecb0a7ad297128a43d32111e403959491573b6ace /layouts/_partials/hero.html
parentd51e4ef7dcd8609cd008a803f9d51674ac3d3ed2 (diff)
downloaddanixxyz-theme-c42150058196f5affad5c6c590e99dd2fc7321c3.tar.gz
danixxyz-theme-c42150058196f5affad5c6c590e99dd2fc7321c3.zip
feat: complete Hugo theme implementation from mockups
Transform all production-ready mockup files into a fully functional Hugo theme with all design patterns, components, and interactivity. Implements the complete plan: token alignment, global shell, homepage, articles section, single article views, photo gallery, static pages, and 404 page. Changes: - Phase 0: Token alignment (--color-* → --type-*, add spacing/z-index/timing scales) - Phase 1a: Global shell (baseof.html, hamburger menu, theme toggle, matrix rain) - Phase 1b: Homepage (hero layout, glitch/typing/scroll-reveal effects) - Phase 1c: Articles section (timeline layout, filter system, featured cards) - Phase 1d: Single article (meta bar, share sidebar, footer nav, progress bar) - Phase 1e: Photo gallery (lightbox, grid layout, shortcode updates) - Phase 1f: Static pages (about/contact page layout) - Phase 1g: 404 page (standalone HTML, quote randomization, recent articles) New files: - 6 CSS components: hamburger, article-hero, share-sidebar, timeline, lightbox, 404 - 8 JS modules: hamburger, glitch, typing, scroll-reveal, share-sidebar, lightbox, 404, photo-utils - 6 template partials: article-single, featured-card, photo-article, share-sidebar, static-page, timeline-item - 1 layout: 404.html (standalone) Updated: - All CSS variables with comprehensive token system - All JS modules integrated into main.js - All shortcodes (gallery, gal-img) for lightbox compatibility - All layout files (baseof, home, section, page) with new dispatching logic Verified: Hugo build succeeds with 21 pages, no errors. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Diffstat (limited to 'layouts/_partials/hero.html')
-rw-r--r--layouts/_partials/hero.html44
1 files changed, 36 insertions, 8 deletions
diff --git a/layouts/_partials/hero.html b/layouts/_partials/hero.html
index 11034be..ac8a4e1 100644
--- a/layouts/_partials/hero.html
+++ b/layouts/_partials/hero.html
@@ -1,11 +1,39 @@
-<section class="hero">
- {{ partial "matrix-canvas.html" . }}
- <div class="hero-content">
- <div class="hero-avatar">{{ .Site.Params.avatar }}</div>
- <div class="hero-text">
- <h1>{{ .Site.Params.author }}</h1>
- <div class="hero-role">// engineer • writer • human</div>
- <p class="hero-bio">{{ .Site.Params.description }}</p>
+<section class="hero" role="region" aria-label="Hero">
+ <div class="hero-left">
+ <div class="hero-prompt">// Featured</div>
+ <h1 class="hero-name" data-text="{{ .Site.Params.author }}">{{ .Site.Params.author }}</h1>
+ <div class="hero-role" id="typed" data-phrases='{{ .Site.Params.typingPhrases | jsonify }}'></div>
+ <p class="hero-tagline">{{ .Site.Params.description }}</p>
+ <div class="hero-buttons">
+ <a href="/articles/" class="btn btn-primary">Read Articles</a>
+ <a href="#articles" class="btn btn-outline">Explore</a>
</div>
</div>
+
+ <div class="hero-right">
+ <div class="hero-terminal">
+ <div class="terminal-bar">
+ <span class="terminal-dot" style="background: #ff6b6b;"></span>
+ <span class="terminal-dot" style="background: #ffd93d;"></span>
+ <span class="terminal-dot" style="background: #6bcf7f;"></span>
+ </div>
+ <div class="terminal-content">
+ <div>$ <span class="terminal-prompt">whoami</span></div>
+ <div>danilo</div>
+ <div>$ <span class="terminal-prompt">pwd</span></div>
+ <div>/home/danilo/web</div>
+ <div>$ <span class="terminal-prompt">ls -la</span></div>
+ <div>total 48</div>
+ <div>drwxr-xr-x 5 danilo staff 160 Apr 9 2026 .</div>
+ <div>-rw-r--r-- 1 danilo staff 4.2K blog.md</div>
+ </div>
+ </div>
+ </div>
+
+ <div class="scroll-indicator">
+ <span>Scroll to explore</span>
+ <svg width="20" height="20" viewBox="0 0 20 20" fill="none">
+ <path d="M10 3v10M6 9l4 4 4-4" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"/>
+ </svg>
+ </div>
</section>