HTMX + Alpine.js + TailwindCSS
This commit is contained in:
parent
b62a2dd8c4
commit
d614f039d3
37 changed files with 114 additions and 233 deletions
src/routes
|
@ -7,8 +7,13 @@
|
|||
|
||||
(pi:define-element page ()
|
||||
(pi:h
|
||||
(div :data-css "pages/index.css"
|
||||
(h1 "Hello, World!"))))
|
||||
(div :class "h-full place-content-center"
|
||||
(h1
|
||||
:x-data "{flag: true}"
|
||||
:@click "flag = ! flag"
|
||||
:class "text-4xl text-center"
|
||||
:|:class| "flag ? 'text-red-400' : 'text-blue-400'"
|
||||
"Hello, world!"))))
|
||||
|
||||
(defun handle-get (params)
|
||||
(declare (ignore params))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue