Add header
This commit is contained in:
parent
23bacbbe41
commit
5a0e0016e9
4 changed files with 36 additions and 18 deletions
src/routes
|
@ -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))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue