2024-04-14 23:11:47 +09:00
|
|
|
(defpackage #:hp/routes/not-found
|
2024-04-26 01:22:50 +09:00
|
|
|
(:use #:cl
|
2024-06-01 22:21:15 +09:00
|
|
|
#:hsx)
|
|
|
|
(:import-from #:hp/view/responser
|
|
|
|
#:response)
|
2024-04-14 23:11:47 +09:00
|
|
|
(:export #:handle-not-found))
|
|
|
|
(in-package #:hp/routes/not-found)
|
|
|
|
|
|
|
|
(defparameter *metadata*
|
|
|
|
'(:title "404 Not Found"
|
|
|
|
:description "お探しのページは見つかりませんでした。"))
|
|
|
|
|
2024-06-01 22:21:15 +09:00
|
|
|
(defcomp page ()
|
|
|
|
(hsx
|
|
|
|
(div :class "h-full place-content-center"
|
|
|
|
(h1
|
|
|
|
:class "text-rose-400 text-4xl text-center"
|
|
|
|
"404 Not Found"))))
|
2024-04-14 23:11:47 +09:00
|
|
|
|
|
|
|
(defun handle-not-found ()
|
2024-06-01 22:21:15 +09:00
|
|
|
(response (page)
|
|
|
|
:status :not-found
|
|
|
|
:metadata *metadata*))
|