From f58c176e592475e2b16e26f86548551ab27d6c9a Mon Sep 17 00:00:00 2001 From: unwox Date: Fri, 27 Sep 2024 16:47:38 +0600 Subject: add missing site badges --- bin/serve.fnl | 10 +++++++++- static/artoftea.png | Bin 0 -> 2321 bytes static/ozchai.ico | Bin 0 -> 32988 bytes static/style.css | 6 +++--- 4 files changed, 12 insertions(+), 4 deletions(-) create mode 100644 static/artoftea.png create mode 100644 static/ozchai.ico diff --git a/bin/serve.fnl b/bin/serve.fnl index f4ef3c7..0368bed 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -36,10 +36,18 @@ (fn site-name-template [name] (if - (= name "ipuer.ru") + (= name "ipuer") [:a {:class "site-icon" :href "https://ipuer.ru"} [:img {:src "/static/ipuer.jpg"}] "Институт чая пуэр"] + (= name "artoftea") + [:a {:class "site-icon" :href "https://artoftea.ru"} + [:img {:src "/static/artoftea.png"}] + "Art of tea"] + (= name "ozchai") + [:a {:class "site-icon" :href "https://ozchai.ru"} + [:img {:src "/static/ozchai.ico"}] + "Чайная #OZCHAI"] "")) (fn item-template [product] diff --git a/static/artoftea.png b/static/artoftea.png new file mode 100644 index 0000000..c0d37eb Binary files /dev/null and b/static/artoftea.png differ diff --git a/static/ozchai.ico b/static/ozchai.ico new file mode 100644 index 0000000..f3328c7 Binary files /dev/null and b/static/ozchai.ico differ diff --git a/static/style.css b/static/style.css index 9b47676..388ce24 100644 --- a/static/style.css +++ b/static/style.css @@ -96,13 +96,13 @@ body { display: flex; gap: 0.5rem; align-items: center; - margin: 0.5rem 0 0.25rem; + margin: 0.5rem 0 0.375rem; text-decoration: none; font-size: 0.75rem; } .site-icon img { - width: 32px; + height: 24px; + width: auto; object-fit: contain; - height: auto; } -- cgit v1.2.3