Add public directory

This commit is contained in:
Akira Tempaku 2024-02-24 11:44:10 +09:00
parent 824c0e6295
commit fd294a00af
4 changed files with 16 additions and 5 deletions

BIN
public/img/me.jpg Normal file

Binary file not shown.

After

(image error) Size: 211 KiB

View file

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

View file

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

View file

@ -5,4 +5,7 @@ export default {
"./src/components/**/*.lisp"
],
plugins: [require("daisyui")],
daisyui: {
themes: ["retro"]
},
};