Tidy up homepage and navigation

This commit is contained in:
Dan Milne
2025-11-09 20:58:13 +11:00
parent c9e2992fe0
commit 1f4428348d
56 changed files with 2822 additions and 955 deletions

View File

@@ -0,0 +1,17 @@
import { Controller } from "@hotwired/stimulus"
export default class extends Controller {
static targets = ["menu", "open", "close"]
toggle(event) {
event.preventDefault()
const menu = this.menuTarget
const openIcon = this.openTarget
const closeIcon = this.closeTarget
menu.classList.toggle("hidden")
openIcon.classList.toggle("hidden")
closeIcon.classList.toggle("hidden")
}
}