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) (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

View file

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

View file

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