summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-04-28 10:52:29 +0600
committerunwox <me@unwox.com>2025-04-28 10:52:29 +0600
commit334367bac51fda43952fe24c1d38048e39f67be9 (patch)
treea972bdbc4936604a5c5fea9450c7ce67997256cd
parent79495b24ae0a1e92921e3acd552609c16136493f (diff)
content adjustments
-rw-r--r--bin/serve.fnl2
-rw-r--r--pages/index.fnl53
-rw-r--r--static/style.css82
3 files changed, 105 insertions, 32 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl
index 8235468..222c4b5 100644
--- a/bin/serve.fnl
+++ b/bin/serve.fnl
@@ -51,4 +51,4 @@
(luna.router.static "GET /static/" "static/")
(when luna.debug
- (luna.evalfn (fn [code] (fennel.eval code {:env _G}))))
+ (luna.on-eval (fn [code] (fennel.eval code {:env _G}))))
diff --git a/pages/index.fnl b/pages/index.fnl
index 7d14412..d6a1d2e 100644
--- a/pages/index.fnl
+++ b/pages/index.fnl
@@ -8,23 +8,42 @@
[:img {:src (.. "static/" chosen.name "-p.webp") :alt chosen.alt}]]]))
(fn content []
- [[:article {:class "article"}
- [:img {:class "logo" :src "/static/logo.svg"
- :alt "Белая жаба в мультяшном стиле с чайником на голове"}]
- [:h1 {} [:NO-ESCAPE "Чайная «Белая&nbsp;жаба»"]]
- [:nav {}
- [:a {:href "https://t.me/whitetoadtea"} "телеграм"]
- [:span {} "~"]
- [:a {:href "https://vk.com/whitetoadtea"} "вконтакте"]]
- [:p {}
- [:NO-ESCAPE
- (..
- "Уютная чайная комната в&nbsp;Омске: Омск, ул.&nbsp;Пушкина, д.&nbsp;133/9, этаж&nbsp;2. "
- "Вход с&nbsp;крыльца Магнита, дверь слева, домофон&nbsp;4. "
- "Посещение по&nbsp;предварительной договоренности, стоимость 500&nbsp;рублей с&nbsp;человека.")]]
- [:p {}
- [:a {:href "https://t.me/whitetoadvlad" :class "button"}
- "Записаться"]]]
+ [[:div {:class "content"}
+ [:article {:class "article"}
+ [:img {:class "logo" :src "/static/logo.svg"
+ :alt "Белая жаба в мультяшном стиле с чайником на голове"}]
+ [:h1 {} [:NO-ESCAPE "Чайная комната «Белая&nbsp;жаба»"]]
+ [:nav {}
+ [:a {:href "https://t.me/whitetoadtea"} "телеграм"]
+ [:span {} "~"]
+ [:a {:href "https://vk.com/whitetoadtea"} "вконтакте"]]]
+ [:article {:class "article"}
+ [:h2 {} "Адрес"]
+ [:p {}
+ [:NO-ESCAPE
+ (..
+ "г.&nbsp;Омск, ул.&nbsp;Пушкина, д.&nbsp;133/9, этаж&nbsp;2. "
+ "Вход с&nbsp;крыльца Магнита, дверь слева, домофон&nbsp;4")]]]
+ [:article {:class "article"}
+ [:h2 {} "Форматы участия"]
+ [:ol {}
+ [:li {}
+ [:NO-ESCAPE
+ (..
+ "Индивидуальная чайная церемония: мастер готовит для&nbsp;вас чай "
+ "на ваш выбор. О&nbsp;времени встречи договариваемся. "
+ "Стоимость 1000&nbsp;рублей с&nbsp;человека, до&nbsp;5&nbsp;человек.")]
+ [:div {:class "button-wrapper"}
+ [:a {:href "https://t.me/whitetoadvlad" :class "button"} "Записаться"]]]
+ [:li {}
+ [:NO-ESCAPE
+ (..
+ "Еженедельное мероприятие: каждую субботу в&nbsp;15:00 мы&nbsp;собираемся "
+ "и&nbsp;пьем чай из&nbsp;нашей коллекции. Для&nbsp;посещения необходима запись "
+ "в&nbsp;комментариях под&nbsp;соответствующим постом в&nbsp;нашей группе "
+ "в&nbsp;телеграме. Стоимость 500&nbsp;рублей с&nbsp;человека.")]
+ [:div {:class "button-wrapper"}
+ [:a {:href "https://t.me/whitetoadtea" :class "button"} "Подписаться"]]]]]]
[:div {:class "gallery"}
(pick-gallery-photo [{:name "people" :alt "Люди в чайной"}
{:name "gaiwan2" :alt "Близко сфотографированный чайный столик с пиалами и гайванью"}
diff --git a/static/style.css b/static/style.css
index 6b252c3..fb3fb3a 100644
--- a/static/style.css
+++ b/static/style.css
@@ -1,26 +1,42 @@
body {
background: #ffffff;
- margin: 3rem;
+ margin: 4rem;
font-family: sans-serif, monospace, serif;
+ line-height: 1.4;
+}
+
+nav {
+ margin-bottom: 0.5rem;
+}
+
+ol {
+ padding-left: 0;
+ margin-top: 0;
}
.container {
display: flex;
flex-wrap: wrap;
- gap: 3rem;
+ gap: 4rem;
+}
+
+.button-wrapper {
+ display: block;
+ margin-top: 0.5rem;
+ margin-bottom: 1.5rem;
}
.button {
+ border: 0.1875rem solid;
+ box-shadow: 1px 1px 0 0, 2px 2px 0 0, 3px 3px 0 0, 4px 4px 0 0;
+ color: #000000;
display: inline-block;
font-size: 1rem;
- text-decoration: none;
- text-transform: uppercase;
font-weight: bold;
- color: #000000;
- border: 0.1875rem solid;
padding: 0.75rem 2.5rem;
- box-shadow: 1px 1px 0 0, 2px 2px 0 0, 3px 3px 0 0, 4px 4px 0 0;
position: relative;
+ text-decoration: none;
+ text-transform: uppercase;
transition: box-shadow 0.2s, top 0.2s, left: 0.2s;
}
@@ -31,22 +47,39 @@ body {
}
.logo {
- width: 294px;
- height: 259px;
+ width: 227px;
+ height: 200px;
}
-h1 {
+h1,
+h2 {
font-weight: 900;
font-style: italic;
- font-size: 1.75rem;
- margin-bottom: 0.75rem;
+ margin-bottom: 0.5rem;
+ line-height: 1.1;
}
-.article {
+h1 {
+ font-size: 2rem;
+}
+
+h2 {
+ font-size: 1.375rem;
+}
+
+.content {
max-width: 30rem;
font-size: 1.25rem;
}
+.article + .article {
+ margin-top: 2rem;
+}
+
+p {
+ margin-top: 0;
+}
+
.form-row {
display: block;
margin: 0.5rem 0;
@@ -108,7 +141,28 @@ h1 {
@media screen and (max-width: 50rem) {
body {
- margin: 2rem 1rem 1rem;
+ margin: 2rem;
+ }
+
+ ol {
+ counter: ol-counter;
+ }
+
+ ol li {
+ counter-increment: ol-counter;
+ }
+
+ ol li::before {
+ display: block;
+ content: counter(ol-counter) ".";
+ }
+
+ ol li::marker {
+ content: '';
+ }
+
+ .content {
+ max-width: 100%;
}
.container {