Use assets instead
This commit is contained in:
parent
7821782646
commit
bdbcf416f0
2 changed files with 20 additions and 21 deletions
BIN
assets/img/avatar.webp
Normal file
BIN
assets/img/avatar.webp
Normal file
Binary file not shown.
After ![]() (image error) Size: 26 KiB |
|
@ -27,27 +27,26 @@
|
||||||
|
|
||||||
(defun handle-get (params)
|
(defun handle-get (params)
|
||||||
(declare (ignore params))
|
(declare (ignore params))
|
||||||
(let ((about (get-about :query '(:fields "avatar"))))
|
(hsx
|
||||||
(hsx
|
(div :class "flex flex-col items-center justify-center h-full"
|
||||||
(div :class "flex flex-col items-center justify-center h-full"
|
(img
|
||||||
(img
|
:src "/assets/img/avatar.webp"
|
||||||
:src (accesses about :avatar :url)
|
:alt "avatar" :class "size-40 rounded-xl shadow-sm")
|
||||||
:alt "avatar" :class "size-40 rounded-xl shadow-sm")
|
(div :class "flex flex-col items-center gap-2 py-6"
|
||||||
(div :class "flex flex-col items-center gap-2 py-6"
|
(h1 :class "font-bold text-2xl text-center"
|
||||||
(h1 :class "font-bold text-2xl text-center"
|
"Akira Tempaku")
|
||||||
"Akira Tempaku")
|
(p :class "text-xl"
|
||||||
(p :class "text-xl"
|
"Web developer"))
|
||||||
"Web developer"))
|
(div :class "flex flex-col gap-2 items-left"
|
||||||
(div :class "flex flex-col gap-2 items-left"
|
(loop
|
||||||
(loop
|
:for (name url icon) :in *links*
|
||||||
:for (name url icon) :in *links*
|
:collect (hsx (a
|
||||||
:collect (hsx (a
|
:href url
|
||||||
:href url
|
:target "_blank"
|
||||||
:target "_blank"
|
:class "flex items-center gap-2 text-lg hover:text-pink-500"
|
||||||
:class "flex items-center gap-2 text-lg hover:text-pink-500"
|
:rel "me"
|
||||||
:rel "me"
|
(img :src icon :alt name :class "size-4 mt-1")
|
||||||
(img :src icon :alt name :class "size-4 mt-1")
|
(span name))))))))
|
||||||
(span name)))))))))
|
|
||||||
|
|
||||||
; for health check
|
; for health check
|
||||||
(defun handle-head (params)
|
(defun handle-head (params)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue