summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDanilo M. <danix@danix.xyz>2026-04-10 12:12:07 +0200
committerDanilo M. <danix@danix.xyz>2026-04-10 12:12:07 +0200
commit06083567247d15fec3d7620de995ca78911954c3 (patch)
treec6aea2d3238fa235d1065f4c6da3b1666bf63942
parent70fab005093cd92bfbde1bfa3380c3dc873bdfcf (diff)
downloaddanixxyz-theme-06083567247d15fec3d7620de995ca78911954c3.tar.gz
danixxyz-theme-06083567247d15fec3d7620de995ca78911954c3.zip
fix: add missing matrix canvas element to hero section
The matrix-rain.js script was looking for #matrix-canvas but the element was not being rendered in the hero template, causing the matrix rain animation to be invisible. Added the canvas element with data-mode="hero" attribute for proper sizing relative to the hero container. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
-rw-r--r--layouts/_partials/hero.html1
1 files changed, 1 insertions, 0 deletions
diff --git a/layouts/_partials/hero.html b/layouts/_partials/hero.html
index 1be5f71..57d223d 100644
--- a/layouts/_partials/hero.html
+++ b/layouts/_partials/hero.html
@@ -1,4 +1,5 @@
<section class="hero" role="region" aria-label="Hero">
+ <canvas id="matrix-canvas" data-mode="hero" aria-hidden="true"></canvas>
<div class="hero-container">
<div class="hero-left">
<div class="hero-prompt">welcome to</div>