Use assets instead

This commit is contained in:
Akira Tempaku 2025-05-25 18:30:44 +09:00
parent 7821782646
commit bdbcf416f0
Signed by: paku
GPG key ID: 5B4E8402BCC50607
2 changed files with 20 additions and 21 deletions
assets/img
src/routes

BIN
assets/img/avatar.webp Normal file

Binary file not shown.

After

(image error) Size: 26 KiB

View file

@ -27,27 +27,26 @@
(defun handle-get (params)
(declare (ignore params))
(let ((about (get-about :query '(:fields "avatar"))))
(hsx
(div :class "flex flex-col items-center justify-center h-full"
(img
:src (accesses about :avatar :url)
:alt "avatar" :class "size-40 rounded-xl shadow-sm")
(div :class "flex flex-col items-center gap-2 py-6"
(h1 :class "font-bold text-2xl text-center"
"Akira Tempaku")
(p :class "text-xl"
"Web developer"))
(div :class "flex flex-col gap-2 items-left"
(loop
:for (name url icon) :in *links*
:collect (hsx (a
:href url
:target "_blank"
:class "flex items-center gap-2 text-lg hover:text-pink-500"
:rel "me"
(img :src icon :alt name :class "size-4 mt-1")
(span name)))))))))
(hsx
(div :class "flex flex-col items-center justify-center h-full"
(img
:src "/assets/img/avatar.webp"
:alt "avatar" :class "size-40 rounded-xl shadow-sm")
(div :class "flex flex-col items-center gap-2 py-6"
(h1 :class "font-bold text-2xl text-center"
"Akira Tempaku")
(p :class "text-xl"
"Web developer"))
(div :class "flex flex-col gap-2 items-left"
(loop
:for (name url icon) :in *links*
:collect (hsx (a
:href url
:target "_blank"
:class "flex items-center gap-2 text-lg hover:text-pink-500"
:rel "me"
(img :src icon :alt name :class "size-4 mt-1")
(span name))))))))
; for health check
(defun handle-head (params)