summaryrefslogtreecommitdiffstats
path: root/assets/js
AgeCommit message (Collapse)AuthorFilesLines
8 daysfix: guard against missing twemoji global in init scriptDanilo M.1-0/+2
8 daysfeat: add Twemoji init script for article proseDanilo M.1-0/+4
2026-04-22fix: capture form load time for timing checkDanilo M.1-1/+2
2026-04-22fix: correct contact form POST URL and data format (JSON→FormData)Danilo M.1-5/+10
2026-04-22chore: replace with extracted danix.xyz-hacker theme (danix2-hugo-theme)Danilo M.24-1065/+881
2026-04-10fix: move canvas from baseof to hero section onlyDanilo M.1-2/+4
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-37/+17
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-3/+4
- 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-11/+25
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.13-58/+894
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-05feat: add filter functionality, archetypes, and sample contentDanilo M.1-0/+28
- Create filters.js for post filtering by type (tech, life, quote, link, photo) - Add article.md and page.md archetypes with appropriate fields - Update default.md archetype with correct TOML syntax - Create sample content for home, articles, and about pages - Fix section.html template resource permalink syntax Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-05feat: add JavaScript modules (theme toggle, matrix rain, progress tracking, ↵Danilo M.5-1/+233
copy-to-clipboard) Implement all 4 JavaScript modules: - theme-toggle.js: Theme switching with localStorage persistence - matrix-rain.js: Animated matrix-style rain effect on canvas - progress-bar.js: Reading progress tracking during scroll - copy-code.js: Copy-to-clipboard functionality for code blocks Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
2026-04-04initial theme setup.Danilo M.1-0/+1