Update contents
This commit is contained in:
parent
0801dbc1f6
commit
2622eb3f0d
9 changed files with 17 additions and 14 deletions
src
static
|
@ -1,15 +1,20 @@
|
||||||
(defpackage #:hp/lib/cms
|
(defpackage #:hp/lib/cms
|
||||||
(:use #:cl)
|
(:use #:cl)
|
||||||
(:import-from #:microcms
|
(:import-from #:microcms
|
||||||
#:define-list-client)
|
#:define-list-client
|
||||||
|
#:define-object-client)
|
||||||
(:import-from #:hp/lib/env
|
(:import-from #:hp/lib/env
|
||||||
#:microcms-service-domain
|
#:microcms-service-domain
|
||||||
#:microcms-api-key)
|
#:microcms-api-key)
|
||||||
(:export #:get-blog-list
|
(:export #:get-blog-list
|
||||||
#:get-blog-detail))
|
#:get-blog-detail
|
||||||
|
#:get-bio
|
||||||
|
#:get-work))
|
||||||
(in-package :hp/lib/cms)
|
(in-package :hp/lib/cms)
|
||||||
|
|
||||||
(setf microcms:*service-domain* (microcms-service-domain))
|
(setf microcms:*service-domain* (microcms-service-domain))
|
||||||
(setf microcms:*api-key* (microcms-api-key))
|
(setf microcms:*api-key* (microcms-api-key))
|
||||||
|
|
||||||
|
(define-object-client bio)
|
||||||
|
(define-object-client work)
|
||||||
(define-list-client blog)
|
(define-list-client blog)
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
(defparameter *metadata-template*
|
(defparameter *metadata-template*
|
||||||
(list :title (lambda (title) (format nil "~@[~a - ~]~a" title "skyizwhite.dev"))
|
(list :title (lambda (title) (format nil "~@[~a - ~]~a" title "skyizwhite.dev"))
|
||||||
:description "The personal website of Akira Tempaku (paku) - projects, thoughts, and more."
|
:description "The personal website of Akira Tempaku (paku) - bio, work, blog and more."
|
||||||
:canonical #'path->url
|
:canonical #'path->url
|
||||||
:og-url #'path->url
|
:og-url #'path->url
|
||||||
:og-type "website"
|
:og-type "website"
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
(defcomp ~page ()
|
(defcomp ~page ()
|
||||||
(hsx
|
(hsx
|
||||||
(section :class "flex flex-col items-center justify-center h-full"
|
(section :class "flex flex-col items-center justify-center h-full"
|
||||||
(img :src "/img/avatar.jpg" :alt "avatar" :class "size-40 rounded-xl shadow-sm")
|
(img :src "/img/avatar.webp" :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")
|
||||||
|
|
|
@ -40,29 +40,26 @@
|
||||||
(link :rel "manifest" :href "/img/site.webmanifest")
|
(link :rel "manifest" :href "/img/site.webmanifest")
|
||||||
(link :rel "stylesheet" :href (bust-cache "/style/dist.css"))
|
(link :rel "stylesheet" :href (bust-cache "/style/dist.css"))
|
||||||
(link :rel "preconnect" :href "https://fonts.googleapis.com")
|
(link :rel "preconnect" :href "https://fonts.googleapis.com")
|
||||||
(link :rel "stylesheet" :href "https://fonts.googleapis.com/css2?family=Zen+Kurenaido&display=swap")
|
(link :rel "stylesheet" :href "https://fonts.googleapis.com/css2?family=Zen+Maru+Gothic&display=swap")
|
||||||
(script :src "https://cdn.jsdelivr.net/npm/htmx.org@2.0.0/dist/htmx.min.js")
|
(script :src "https://cdn.jsdelivr.net/npm/htmx.org@2.0.0/dist/htmx.min.js")
|
||||||
(script :src "https://cdn.jsdelivr.net/npm/htmx-ext-preload@2.0.0/preload.min.js")
|
|
||||||
(script :src "https://cdn.jsdelivr.net/npm/htmx-ext-head-support@2.0.0/head-support.min.js")
|
(script :src "https://cdn.jsdelivr.net/npm/htmx-ext-head-support@2.0.0/head-support.min.js")
|
||||||
(script :src "https://cdn.jsdelivr.net/npm/htmx-ext-response-targets@2.0.0/response-targets.min.js")
|
(script :src "https://cdn.jsdelivr.net/npm/htmx-ext-response-targets@2.0.0/response-targets.min.js")
|
||||||
(script :src "https://cdn.jsdelivr.net/npm/alpinejs@3.14.0/dist/cdn.min.js" :defer t))
|
(script :src "https://cdn.jsdelivr.net/npm/alpinejs@3.14.0/dist/cdn.min.js" :defer t))
|
||||||
(body
|
(body
|
||||||
:hx-ext "head-support, response-targets, preload"
|
:hx-ext "head-support, response-targets"
|
||||||
:hx-boost "true" :hx-target-404 "body" :hx-target-5* "body"
|
:hx-boost "true" :hx-target-404 "body" :hx-target-5* "body"
|
||||||
:class (<>
|
:class (<>
|
||||||
"h-[100svh] flex flex-col bg-[url(/img/bg.jpg)] bg-cover bg-center "
|
"h-[100svh] flex flex-col bg-[url(/img/bg.webp)] bg-cover bg-center "
|
||||||
"p-2 md:p-8")
|
"p-2 md:p-8")
|
||||||
(div :class (<>
|
(div :class (<>
|
||||||
"bg-amber-50/90 flex flex-col flex-1 w-full max-w-[700px] overflow-hidden shadow-sm "
|
"bg-amber-50/90 flex flex-col flex-1 w-full max-w-[700px] overflow-hidden shadow-sm "
|
||||||
"px-2 pt-2 mx-auto md:px-8 md:pt-8")
|
"px-2 pt-2 mx-auto md:px-8 md:pt-8")
|
||||||
(header :class "flex justify-between pb-2 md:pb-4 border-b-1"
|
(header :class "flex justify-between pb-2 md:pb-4 border-b-1"
|
||||||
(h1 :class "text-2xl md:text-4xl font-bold"
|
(h1 :class "text-2xl md:text-3xl font-bold"
|
||||||
(a :href "/"
|
(a :href "/"
|
||||||
"skyizwhite"))
|
"skyizwhite"))
|
||||||
(nav :class "flex items-end"
|
(nav :class "flex items-end"
|
||||||
(ul
|
(ul :class "flex gap-4 text-lg [&_a]:underline [&_a]:hover:text-pink-500"
|
||||||
:class "flex gap-4 text-lg [&_a]:underline [&_a]:hover:text-pink-500"
|
|
||||||
:preload t
|
|
||||||
(li (a :href "/bio" "bio"))
|
(li (a :href "/bio" "bio"))
|
||||||
(li (a :href "/work" "work"))
|
(li (a :href "/work" "work"))
|
||||||
(li (a :href "/blog" "blog")))))
|
(li (a :href "/blog" "blog")))))
|
||||||
|
|
Binary file not shown.
Before ![]() (image error) Size: 96 KiB |
BIN
static/img/avatar.webp
Normal file
BIN
static/img/avatar.webp
Normal file
Binary file not shown.
After ![]() (image error) Size: 5.3 KiB |
Binary file not shown.
Before ![]() (image error) Size: 943 KiB |
BIN
static/img/bg.webp
Normal file
BIN
static/img/bg.webp
Normal file
Binary file not shown.
After ![]() (image error) Size: 620 KiB |
|
@ -1,11 +1,12 @@
|
||||||
@import "tailwindcss";
|
@import "tailwindcss";
|
||||||
|
@plugin "@tailwindcss/typography";
|
||||||
|
|
||||||
:root {
|
:root {
|
||||||
font-family: "Zen Kurenaido", sans-serif;
|
font-family: "Zen Maru Gothic", sans-serif;
|
||||||
}
|
}
|
||||||
|
|
||||||
@supports (font-variation-settings: normal) {
|
@supports (font-variation-settings: normal) {
|
||||||
:root {
|
:root {
|
||||||
font-family: "Zen Kurenaido", sans-serif;
|
font-family: "Zen Maru Gothic", sans-serif;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue