Add header

This commit is contained in:
Akira Tempaku 2024-11-16 14:45:06 +09:00
commit 5a0e0016e9
4 changed files with 36 additions and 18 deletions
src/routes

View file

@ -6,18 +6,9 @@
(defcomp page ()
(hsx
(<>
(h1 :class "text-green-600"
"こんにちは")
(div :x-data "{
open: false,
get isOpen() { return this.open },
toggle() { this.open = ! this.open },
}"
(button :@click "toggle()"
"Toggle")
(div :x-show "isOpen"
"Content ...")))))
(div :class "h-full grid place-items-center"
(h1 :class "text-pink-600"
"Hello World"))))
(defun handle-get (params)
(declare (ignore params))