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)
|
(update-routes)
|
||||||
|
|
||||||
(defparameter *app*
|
(defparameter *app*
|
||||||
(lack:builder (:static
|
(lack:builder :accesslog
|
||||||
:path "/dist/assets/"
|
(:static
|
||||||
:root (asdf:system-relative-pathname :hp "assets/"))
|
:path "/assets/"
|
||||||
|
:root (asdf:system-relative-pathname :hp "dist/assets/"))
|
||||||
|
(:static
|
||||||
|
:path "/public/"
|
||||||
|
:root (asdf:system-relative-pathname :hp "public/"))
|
||||||
*raw-app*))
|
*raw-app*))
|
||||||
|
|
||||||
; for clackup cmd
|
; for clackup cmd
|
||||||
|
|
|
@ -12,8 +12,12 @@
|
||||||
(pi:h
|
(pi:h
|
||||||
(cmp:layout
|
(cmp:layout
|
||||||
(section :class "h-full flex justify-center items-center"
|
(section :class "h-full flex justify-center items-center"
|
||||||
(p :class "text-primary text-4xl"
|
(div :class "flex flex-col items-center gap-2"
|
||||||
"Hello World!")))))
|
(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
|
;;; Controller
|
||||||
|
|
||||||
|
|
|
@ -5,4 +5,7 @@ export default {
|
||||||
"./src/components/**/*.lisp"
|
"./src/components/**/*.lisp"
|
||||||
],
|
],
|
||||||
plugins: [require("daisyui")],
|
plugins: [require("daisyui")],
|
||||||
|
daisyui: {
|
||||||
|
themes: ["retro"]
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue