]> danix's work - danix.xyz-2.git/commit
fix: rewrite hamburger menu using Alpine.js event dispatcher
authorDanilo M. <redacted>
Thu, 16 Apr 2026 13:57:37 +0000 (15:57 +0200)
committerDanilo M. <redacted>
Thu, 16 Apr 2026 13:57:37 +0000 (15:57 +0200)
commit80286039c0795211162b4ff4b8227f51b39fd918
tree244d8e61c670becc12f8309087a182fc7471cb37
parenta614ed818b7d435546bb86a887f97de53f019af1
fix: rewrite hamburger menu using Alpine.js event dispatcher

- Replace vanilla JS click handlers with Alpine.js @toggle-menu event
- Hamburger button dispatches toggle-menu event on click
- Menu overlay listens to toggle-menu and toggles menuOpen state
- Alpine controls visibility via :class bindings (opacity/invisible)
- Alpine controls panel slide via :class bindings (translate-x)
- All menu interactions (close button, links, ESC, backdrop) use Alpine
- Remove complex vanilla JS that wasn't working reliably
- Rebuild CSS: main.min.css updated

Co-Authored-By: Claude Haiku 4.5 <redacted>
themes/danix-xyz-hacker/assets/css/main.min.css
themes/danix-xyz-hacker/layouts/partials/hamburger-menu.html
themes/danix-xyz-hacker/layouts/partials/header.html