From c42150058196f5affad5c6c590e99dd2fc7321c3 Mon Sep 17 00:00:00 2001 From: "Danilo M." Date: Fri, 10 Apr 2026 11:29:00 +0200 Subject: feat: complete Hugo theme implementation from mockups MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 --- assets/css/components/share-sidebar.css | 107 ++++++++++++++++++++++++++++++++ 1 file changed, 107 insertions(+) create mode 100644 assets/css/components/share-sidebar.css (limited to 'assets/css/components/share-sidebar.css') diff --git a/assets/css/components/share-sidebar.css b/assets/css/components/share-sidebar.css new file mode 100644 index 0000000..8bc8d1d --- /dev/null +++ b/assets/css/components/share-sidebar.css @@ -0,0 +1,107 @@ +/* share-sidebar.css */ + +.share-sidebar { + position: fixed; + right: 2rem; + bottom: 50%; + transform: translateY(50%); + z-index: 30; + display: none; +} + +@media (min-width: 1200px) { + .share-sidebar { + display: block; + } +} + +.share-buttons { + display: flex; + flex-direction: column; + gap: 1rem; +} + +.share-btn { + width: 44px; + height: 44px; + border-radius: 50%; + background: var(--surface); + border: 1px solid var(--border); + color: var(--text); + cursor: pointer; + display: flex; + align-items: center; + justify-content: center; + transition: all var(--duration-base) ease; + position: relative; +} + +.share-btn:hover { + background: var(--accent); + border-color: var(--accent); + color: #000; + transform: scale(1.1); +} + +.share-btn svg { + width: 20px; + height: 20px; +} + +/* Tooltip */ +.share-btn::after { + content: attr(data-label); + position: absolute; + right: 100%; + top: 50%; + transform: translateY(-50%); + margin-right: 0.75rem; + background: var(--surface); + border: 1px solid var(--border); + padding: 0.4rem 0.8rem; + border-radius: 4px; + white-space: nowrap; + font-size: 0.75rem; + color: var(--text-dim); + opacity: 0; + visibility: hidden; + transition: all var(--duration-base) ease; + pointer-events: none; +} + +.share-btn:hover::after { + opacity: 1; + visibility: visible; + margin-right: 1rem; +} + +/* Mobile: horizontal strip below article */ +@media (max-width: 1199px) { + .share-sidebar { + position: static; + transform: none; + display: flex; + justify-content: center; + margin: 2rem 0; + padding: 2rem 1.5rem; + border-top: 1px solid var(--border); + border-bottom: 1px solid var(--border); + } + + .share-buttons { + flex-direction: row; + flex-wrap: wrap; + justify-content: center; + } +} + +@media (prefers-reduced-motion: reduce) { + .share-btn, + .share-btn::after { + transition: none; + } + + .share-btn:hover { + transform: none; + } +} -- cgit v1.2.3