Add public directory
This commit is contained in:
parent
824c0e6295
commit
fd294a00af
4 changed files with 16 additions and 5 deletions
BIN
public/img/me.jpg
Normal file
BIN
public/img/me.jpg
Normal file
Binary file not shown.
After ![]() (image error) Size: 211 KiB |
10
src/app.lisp
10
src/app.lisp
|
@ -18,9 +18,13 @@
|
|||
(update-routes)
|
||||
|
||||
(defparameter *app*
|
||||
(lack:builder (:static
|
||||
:path "/dist/assets/"
|
||||
:root (asdf:system-relative-pathname :hp "assets/"))
|
||||
(lack:builder :accesslog
|
||||
(:static
|
||||
:path "/assets/"
|
||||
:root (asdf:system-relative-pathname :hp "dist/assets/"))
|
||||
(:static
|
||||
:path "/public/"
|
||||
:root (asdf:system-relative-pathname :hp "public/"))
|
||||
*raw-app*))
|
||||
|
||||
; for clackup cmd
|
||||
|
|
|
@ -12,8 +12,12 @@
|
|||
(pi:h
|
||||
(cmp:layout
|
||||
(section :class "h-full flex justify-center items-center"
|
||||
(p :class "text-primary text-4xl"
|
||||
"Hello World!")))))
|
||||
(div :class "flex flex-col items-center gap-2"
|
||||
(div :class "avatar"
|
||||
(div :class "w-32 mask mask-squircle"
|
||||
(img :src "/public/img/me.jpg")))
|
||||
(p :class "text-primary text-3xl text-center"
|
||||
"Hello, World!"))))))
|
||||
|
||||
;;; Controller
|
||||
|
||||
|
|
|
@ -5,4 +5,7 @@ export default {
|
|||
"./src/components/**/*.lisp"
|
||||
],
|
||||
plugins: [require("daisyui")],
|
||||
daisyui: {
|
||||
themes: ["retro"]
|
||||
},
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue