summaryrefslogtreecommitdiffstats
path: root/assets/css/components/hero.css
AgeCommit message (Collapse)AuthorFilesLines
2026-04-10fix: move canvas from baseof to hero section onlyDanilo M.1-4/+5
The matrix canvas was duplicated - one in baseof.html (body level) and one we added to hero.html. This caused conflicts and visibility issues. Changes: - Remove canvas from baseof.html entirely - it should only be in the hero section - Keep canvas in hero.html with data-mode="hero" - Simplify matrix-rain.js to handle data-mode attribute and use offsetWidth/offsetHeight with fallbacks - Update hero.css with proper absolute positioning (inset: 0) Now there's only one canvas element positioned absolutely within the hero section, avoiding conflicts and ensuring proper rendering. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-10fix: align matrix rain implementation with mockup-a.htmlDanilo M.1-2/+4
Simplified and aligned the matrix rain implementation to match mockup-a.html exactly: - Use width: 100%; height: 100% in CSS instead of inset/display properties for more reliable sizing - Simplify canvas init() to use offsetWidth/offsetHeight directly without fallbacks - Use getThemeColors() helper function for consistent color management - Simplify tick() to only use the two colors (bright green head at 4%, purple trail) - Remove unused data-mode attribute logic - Streamline event listeners to match mockup structure This matches the proven working implementation from the mockup. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-10fix: improve matrix canvas sizing and z-index for hero sectionDanilo M.1-0/+2
- Add z-index: 1 to matrix canvas to ensure it renders above the dot grid background but below content - Add display: block to ensure canvas renders properly - Fix canvas sizing logic to use getBoundingClientRect() as primary method for hero mode, with fallbacks to offsetWidth/height and viewport dimensions - This ensures the canvas gets proper dimensions even if offset measurements are unavailable during initialization Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-10feat: align homepage to mockup-a with centered hero, terminal animation, ↵Danilo M.1-48/+84
article grid Restructure hero layout with centered .hero-container (max-width 1080px), update hero text (prompt "welcome to", button "About Me" → /is/), add terminal widget title bar and staggered fade-in animation, replace scroll indicator with animated line. Add section header (eyebrow + title) above articles, new vertical .article-card grid layout with solid type badges (sharp corners, sharp badges), implement scroll reveal stagger (90ms per sibling). Update terminal color palette to use proper CSS variables. Remove ambient glow from hero. Changes follow THEMING-STANDARD: semantic color variables, mobile-first responsive design, prefers-reduced-motion support, WCAG AA accessibility. - hero.html: new .hero-container wrapper, typed terminal content, scroll line - hero.css: restructure layout, add color classes, stagger animation, scroll pulse - home.html: add section header, .articles-grid, pass context="home" flag - post-card.html: context-conditional rendering (homepage vertical vs. other horizontal) - card.css: new .article-card, .articles-grid, .article-* styles - main.css: add section utilities, .reveal/.revealed base states - variables.css: add --terminal-prompt, --terminal-text, --terminal-accent - scroll-reveal.js: add 90ms per-item stagger with cleanup - 404.css: remove hardcoded terminal color fallbacks Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-10feat: complete Hugo theme implementation from mockupsDanilo M.1-48/+258
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>
2026-04-05tweak: increase matrix rain canvas opacityDanilo M.1-2/+2
Increased opacity from 0.25→0.4 (dark) and 0.35→0.5 (light) to make the matrix rain effect more visible on the hero section. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-05fix: resolve matrix rain opacity, menu styling, and featured articlesDanilo M.1-16/+2
Issues fixed: 1. Added missing header.css and footer.css imports to main.css (fixes unstyled menu) 2. Increased matrix rain canvas opacity (0.13→0.25, 0.18→0.35) for better visibility 3. Updated home.html to display featured articles first, then latest 3 4. Removed invalid pseudo-element CSS rule on canvas element The form on /is/here should now be visible, menu properly styled, and matrix rain more prominent. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-05style: add hero section with matrix canvas stylingDanilo M.1-0/+117