diff --git a/assets/img/avatar.webp b/assets/img/avatar.webp new file mode 100644 index 0000000..892723a Binary files /dev/null and b/assets/img/avatar.webp differ diff --git a/src/routes/index.lisp b/src/routes/index.lisp index 2999d9e..a7863d5 100644 --- a/src/routes/index.lisp +++ b/src/routes/index.lisp @@ -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)