website/src/routes/index.lisp

32 lines
1.1 KiB
Common Lisp
Raw Normal View History

2024-06-15 18:13:04 +09:00
(defpackage #:hp/routes/index
2024-06-15 16:42:44 +09:00
(:use #:cl
2024-10-02 23:36:30 +09:00
#:hsx)
2024-04-14 16:40:47 +09:00
(:export #:handle-get))
2024-02-02 01:07:19 +09:00
(in-package #:hp/routes/index)
2025-03-28 23:12:07 +09:00
(defparameter *links*
'(("Keyoxide" "https://keyoxide.org/f39d5b2c951d16732a5cd3528f0c1a22f26d7e62")
("GitHub" "https://github.com/skyizwhite")
("Forgejo" "https://code.skyizwhite.dev/paku")
2025-04-13 06:55:47 +09:00
("Fediverse" "https://himagine.club/@skyizwhite")
2025-03-28 23:12:07 +09:00
("Service Status" "https://status.skyizwhite.dev")))
2024-12-12 13:21:19 +09:00
(defcomp ~page ()
2024-06-01 22:21:15 +09:00
(hsx
2025-03-28 23:12:07 +09:00
(section :class "flex flex-col items-center justify-center h-full"
2025-04-29 19:13:40 +09:00
(img :src "/img/avatar.webp" :alt "avatar" :class "size-40 rounded-xl shadow-sm")
2025-03-28 23:12:07 +09:00
(div :class "flex flex-col items-center gap-2 py-6"
2025-04-29 18:04:02 +09:00
(h1 :class "font-bold text-2xl text-center"
2025-03-28 23:12:07 +09:00
"Akira Tempaku")
(p :class "text-xl"
"Web developer"))
2025-04-29 18:04:02 +09:00
(div :class "flex flex-col items-center"
2025-03-28 23:12:07 +09:00
(loop
:for (name url) :in *links*
2025-04-29 18:04:02 +09:00
:collect (hsx (a :href url :target "_blank" :class "text-lg underline hover:text-pink-500"
2025-03-28 23:12:07 +09:00
name)))))))
2025-03-29 02:47:17 +09:00
2024-04-14 16:40:47 +09:00
(defun handle-get (params)
2024-02-02 01:07:19 +09:00
(declare (ignore params))
2024-12-12 13:21:19 +09:00
(~page))