Remove stuffs
This commit is contained in:
parent
04b66cecb3
commit
365a262e9d
7 changed files with 2 additions and 60 deletions
|
@ -1,5 +1,3 @@
|
||||||
# homepage (WIP)
|
# homepage (WIP)
|
||||||
|
|
||||||
My homepage made with Common Lisp, HTMX and Alpine.js.
|
My homepage made with Common Lisp, HTMX and Alpine.js.
|
||||||
|
|
||||||
work log (ja): https://zenn.dev/skyizwhite/scraps/66ff6a053f959b
|
|
||||||
|
|
|
@ -1,7 +0,0 @@
|
||||||
@scope ([data-css='pages/about.css']) {
|
|
||||||
:scope {
|
|
||||||
height: 100svh;
|
|
||||||
display: grid;
|
|
||||||
place-content: center;
|
|
||||||
}
|
|
||||||
}
|
|
0
assets/js/pages/.keep
Normal file
0
assets/js/pages/.keep
Normal file
|
@ -1,7 +0,0 @@
|
||||||
export const aboutPage = () => ({
|
|
||||||
count: 0,
|
|
||||||
|
|
||||||
decrement() {
|
|
||||||
this.count--
|
|
||||||
}
|
|
||||||
})
|
|
|
@ -1,7 +0,0 @@
|
||||||
export const indexPage = () => ({
|
|
||||||
count: 0,
|
|
||||||
|
|
||||||
increment() {
|
|
||||||
this.count++
|
|
||||||
}
|
|
||||||
})
|
|
|
@ -1,25 +0,0 @@
|
||||||
(defpackage #:hp/routes/about
|
|
||||||
(:use #:cl)
|
|
||||||
(:local-nicknames (#:pi #:piccolo))
|
|
||||||
(:local-nicknames (#:view #:hp/view/*))
|
|
||||||
(:export #:handle-get))
|
|
||||||
(in-package #:hp/routes/about)
|
|
||||||
|
|
||||||
(defparameter *metadata*
|
|
||||||
'(:title "about"
|
|
||||||
:description "pakuの自己紹介"))
|
|
||||||
|
|
||||||
(pi:define-element page ()
|
|
||||||
(pi:h
|
|
||||||
(section (view:cmp-props :css "pages/about.css"
|
|
||||||
:js "pages/about.js"
|
|
||||||
:x-data "aboutPage")
|
|
||||||
(h1 "About")
|
|
||||||
(a :href "/" :hx-boost "true"
|
|
||||||
"top")
|
|
||||||
(button :@click "decrement()"
|
|
||||||
(span :x-text "count")))))
|
|
||||||
|
|
||||||
(defun handle-get (params)
|
|
||||||
(declare (ignore params))
|
|
||||||
(view:render (page) :metadata *metadata*))
|
|
|
@ -7,18 +7,8 @@
|
||||||
|
|
||||||
(pi:define-element page ()
|
(pi:define-element page ()
|
||||||
(pi:h
|
(pi:h
|
||||||
(section (view:cmp-props :css "pages/index.css"
|
(div (view:cmp-props :css "pages/index.css")
|
||||||
:js "pages/index.js"
|
(h1 "Hello, World!"))))
|
||||||
:x-data "indexPage")
|
|
||||||
(h1
|
|
||||||
"Hello, World!")
|
|
||||||
(a :href "/about" :hx-boost "true"
|
|
||||||
"About")
|
|
||||||
(button :x-data t :@click "$store.darkMode.toggle()"
|
|
||||||
"Toggle theme")
|
|
||||||
(button
|
|
||||||
:@click "increment()"
|
|
||||||
(span :x-text "count")))))
|
|
||||||
|
|
||||||
(defun handle-get (params)
|
(defun handle-get (params)
|
||||||
(declare (ignore params))
|
(declare (ignore params))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue