Remove stuffs

This commit is contained in:
Akira Tempaku 2024-04-23 00:51:07 +09:00
parent 04b66cecb3
commit 365a262e9d
7 changed files with 2 additions and 60 deletions

View file

@ -1,5 +1,3 @@
# homepage (WIP)
My homepage made with Common Lisp, HTMX and Alpine.js.
work log (ja): https://zenn.dev/skyizwhite/scraps/66ff6a053f959b

View file

@ -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
View file

View file

@ -1,7 +0,0 @@
export const aboutPage = () => ({
count: 0,
decrement() {
this.count--
}
})

View file

@ -1,7 +0,0 @@
export const indexPage = () => ({
count: 0,
increment() {
this.count++
}
})

View file

@ -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*))

View file

@ -7,18 +7,8 @@
(pi:define-element page ()
(pi:h
(section (view:cmp-props :css "pages/index.css"
:js "pages/index.js"
: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")))))
(div (view:cmp-props :css "pages/index.css")
(h1 "Hello, World!"))))
(defun handle-get (params)
(declare (ignore params))