summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2025-04-27 17:41:31 +0600
committerunwox <me@unwox.com>2025-04-27 17:41:38 +0600
commit79495b24ae0a1e92921e3acd552609c16136493f (patch)
treef89506687aff8fef298c62e23003fdda534aa519
parentc4abe1c6a61826d3a6ecb6053ac76e68e82712c5 (diff)
new photos in gallery
-rw-r--r--pages/index.fnl41
-rw-r--r--static/boiling-p.webm (renamed from static/boiling_p.webm)bin2320493 -> 2320493 bytes
-rw-r--r--static/flowers-p.webpbin0 -> 43543 bytes
-rw-r--r--static/flowers.webpbin0 -> 195960 bytes
-rw-r--r--static/gaiwan-p.webm (renamed from static/gaiwan_p.webm)bin401083 -> 401083 bytes
-rw-r--r--static/gaiwan-p.webpbin0 -> 28574 bytes
-rw-r--r--static/gaiwan.jpgbin910488 -> 0 bytes
-rw-r--r--static/gaiwan.webpbin0 -> 173114 bytes
-rw-r--r--static/gaiwan2-p.webpbin0 -> 64302 bytes
-rw-r--r--static/gaiwan2.webpbin0 -> 253518 bytes
-rw-r--r--static/gaiwan_p.jpgbin50361 -> 0 bytes
-rw-r--r--static/people-p.webpbin0 -> 70574 bytes
-rw-r--r--static/people.jpgbin1681149 -> 0 bytes
-rw-r--r--static/people.webpbin0 -> 450732 bytes
-rw-r--r--static/people_p.jpgbin96001 -> 0 bytes
-rw-r--r--static/rack-p.webpbin0 -> 61306 bytes
-rw-r--r--static/rack.jpgbin1381423 -> 0 bytes
-rw-r--r--static/rack.webpbin0 -> 365538 bytes
-rw-r--r--static/rack_p.jpgbin84853 -> 0 bytes
-rw-r--r--static/table-p.webpbin0 -> 15932 bytes
-rw-r--r--static/table.jpgbin704281 -> 0 bytes
-rw-r--r--static/table.webpbin0 -> 142870 bytes
-rw-r--r--static/table_p.jpgbin28053 -> 0 bytes
-rw-r--r--static/teapot-p.webpbin0 -> 35824 bytes
-rw-r--r--static/teapot.webpbin0 -> 759734 bytes
-rw-r--r--static/teapot2-p.webpbin0 -> 32204 bytes
-rw-r--r--static/teapot2.webpbin0 -> 168596 bytes
-rw-r--r--static/teapot3-p.webpbin0 -> 50510 bytes
-rw-r--r--static/teapot3.webpbin0 -> 299170 bytes
-rw-r--r--static/wall-p.webpbin0 -> 62082 bytes
-rw-r--r--static/wall.webpbin0 -> 456140 bytes
31 files changed, 21 insertions, 20 deletions
diff --git a/pages/index.fnl b/pages/index.fnl
index 439adb6..7d14412 100644
--- a/pages/index.fnl
+++ b/pages/index.fnl
@@ -1,7 +1,13 @@
(local templates (require :templates))
(local html (require :vendor.html))
-(local content
+(fn pick-gallery-photo [list]
+ (let [chosen (. list (math.random (# list)))]
+ [:div {}
+ [:a {:href (.. "static/" chosen.name ".webp") :target "_blank"}
+ [:img {:src (.. "static/" chosen.name "-p.webp") :alt chosen.alt}]]]))
+
+(fn content []
[[:article {:class "article"}
[:img {:class "logo" :src "/static/logo.svg"
:alt "Белая жаба в мультяшном стиле с чайником на голове"}]
@@ -13,36 +19,31 @@
[:p {}
[:NO-ESCAPE
(..
- "Маленькая уютная чайная для&nbsp;своих: Омск, ул.&nbsp;Пушкина, д.&nbsp;133/9, этаж&nbsp;2. "
+ "Уютная чайная комната в&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 "gallery"}
- [:div {}
- [:a {:href "static/people.jpg" :target "_blank"}
- [:img {:src "static/people_p.jpg" :alt "Люди в чайной"}]]]
- [:div {}
- [:a {:href "static/table.jpg" :target "_blank"}
- [:img {:src "static/table_p.jpg"
- :alt "Сфотографированные сверху пиалы на японском столике"}]]]
+ (pick-gallery-photo [{:name "people" :alt "Люди в чайной"}
+ {:name "gaiwan2" :alt "Близко сфотографированный чайный столик с пиалами и гайванью"}
+ {:name "teapot2" :alt "Пиала и чайник на фоне гирлянды"}])
+ (pick-gallery-photo [{:name "table" :alt "Сфотографированные сверху пиалы на японском столике"}])
[:div {}
[:video {:autoplay true :loop true :muted true}
- [:source {:src "static/boiling_p.webm" :type "video/webm"}]]]
- [:div {}
- [:a {:href "static/gaiwan.jpg" :target "_blank"}
- [:img {:src "static/gaiwan_p.jpg"
- :alt "Гайвань и ширма с гирляндами на фоне"}]]]
- [:div {}
- [:a {:href "static/rack.jpg" :target "_blank"}
- [:img {:src "static/rack_p.jpg"
- :alt "Стеллаж с чайной посудой"}]]]
+ [:source {:src "static/boiling-p.webm" :type "video/webm"}]]]
+ (pick-gallery-photo [{:name "gaiwan" :alt "Гайвань и ширма с гирляндами на фоне"}
+ {:name "wall" :alt "Белая стена с веером и тенью окна"}
+ {:name "teapot" :alt "Чайник в темноте на светлом фоне гирлянд"}
+ {:name "teapot3" :alt "Чайник в руке на фоне растений"}])
+ (pick-gallery-photo [{:name "rack" :alt "Стеллаж с чайной посудой"}
+ {:name "flowers" :alt "Ваза с цветами рядом с чайным столиком"}])
[:div {}
[:video {:autoplay true :loop true :muted true}
- [:source {:src "static/gaiwan_p.webm" :type "video/webm"}]]]]])
+ [:source {:src "static/gaiwan-p.webm" :type "video/webm"}]]]]])
(fn render [request]
- (values 200 {} (html.render (templates.base-template content) true)))
+ (values 200 {} (html.render (templates.base-template (content)) true)))
{: render}
diff --git a/static/boiling_p.webm b/static/boiling-p.webm
index 166318f..166318f 100644
--- a/static/boiling_p.webm
+++ b/static/boiling-p.webm
Binary files differ
diff --git a/static/flowers-p.webp b/static/flowers-p.webp
new file mode 100644
index 0000000..e3d599d
--- /dev/null
+++ b/static/flowers-p.webp
Binary files differ
diff --git a/static/flowers.webp b/static/flowers.webp
new file mode 100644
index 0000000..39da15c
--- /dev/null
+++ b/static/flowers.webp
Binary files differ
diff --git a/static/gaiwan_p.webm b/static/gaiwan-p.webm
index a6a03ec..a6a03ec 100644
--- a/static/gaiwan_p.webm
+++ b/static/gaiwan-p.webm
Binary files differ
diff --git a/static/gaiwan-p.webp b/static/gaiwan-p.webp
new file mode 100644
index 0000000..1a88c9a
--- /dev/null
+++ b/static/gaiwan-p.webp
Binary files differ
diff --git a/static/gaiwan.jpg b/static/gaiwan.jpg
deleted file mode 100644
index 9202153..0000000
--- a/static/gaiwan.jpg
+++ /dev/null
Binary files differ
diff --git a/static/gaiwan.webp b/static/gaiwan.webp
new file mode 100644
index 0000000..32ac9df
--- /dev/null
+++ b/static/gaiwan.webp
Binary files differ
diff --git a/static/gaiwan2-p.webp b/static/gaiwan2-p.webp
new file mode 100644
index 0000000..cf29828
--- /dev/null
+++ b/static/gaiwan2-p.webp
Binary files differ
diff --git a/static/gaiwan2.webp b/static/gaiwan2.webp
new file mode 100644
index 0000000..a301062
--- /dev/null
+++ b/static/gaiwan2.webp
Binary files differ
diff --git a/static/gaiwan_p.jpg b/static/gaiwan_p.jpg
deleted file mode 100644
index c3c025d..0000000
--- a/static/gaiwan_p.jpg
+++ /dev/null
Binary files differ
diff --git a/static/people-p.webp b/static/people-p.webp
new file mode 100644
index 0000000..e6afe3b
--- /dev/null
+++ b/static/people-p.webp
Binary files differ
diff --git a/static/people.jpg b/static/people.jpg
deleted file mode 100644
index 1a3bef8..0000000
--- a/static/people.jpg
+++ /dev/null
Binary files differ
diff --git a/static/people.webp b/static/people.webp
new file mode 100644
index 0000000..c22b66b
--- /dev/null
+++ b/static/people.webp
Binary files differ
diff --git a/static/people_p.jpg b/static/people_p.jpg
deleted file mode 100644
index 97c52ef..0000000
--- a/static/people_p.jpg
+++ /dev/null
Binary files differ
diff --git a/static/rack-p.webp b/static/rack-p.webp
new file mode 100644
index 0000000..d3c8f46
--- /dev/null
+++ b/static/rack-p.webp
Binary files differ
diff --git a/static/rack.jpg b/static/rack.jpg
deleted file mode 100644
index 076d353..0000000
--- a/static/rack.jpg
+++ /dev/null
Binary files differ
diff --git a/static/rack.webp b/static/rack.webp
new file mode 100644
index 0000000..8e204f6
--- /dev/null
+++ b/static/rack.webp
Binary files differ
diff --git a/static/rack_p.jpg b/static/rack_p.jpg
deleted file mode 100644
index 6bb653d..0000000
--- a/static/rack_p.jpg
+++ /dev/null
Binary files differ
diff --git a/static/table-p.webp b/static/table-p.webp
new file mode 100644
index 0000000..28ada8d
--- /dev/null
+++ b/static/table-p.webp
Binary files differ
diff --git a/static/table.jpg b/static/table.jpg
deleted file mode 100644
index 4dd1390..0000000
--- a/static/table.jpg
+++ /dev/null
Binary files differ
diff --git a/static/table.webp b/static/table.webp
new file mode 100644
index 0000000..9125e4d
--- /dev/null
+++ b/static/table.webp
Binary files differ
diff --git a/static/table_p.jpg b/static/table_p.jpg
deleted file mode 100644
index 4cf0d13..0000000
--- a/static/table_p.jpg
+++ /dev/null
Binary files differ
diff --git a/static/teapot-p.webp b/static/teapot-p.webp
new file mode 100644
index 0000000..4d88b39
--- /dev/null
+++ b/static/teapot-p.webp
Binary files differ
diff --git a/static/teapot.webp b/static/teapot.webp
new file mode 100644
index 0000000..46ccce0
--- /dev/null
+++ b/static/teapot.webp
Binary files differ
diff --git a/static/teapot2-p.webp b/static/teapot2-p.webp
new file mode 100644
index 0000000..a48a665
--- /dev/null
+++ b/static/teapot2-p.webp
Binary files differ
diff --git a/static/teapot2.webp b/static/teapot2.webp
new file mode 100644
index 0000000..505669b
--- /dev/null
+++ b/static/teapot2.webp
Binary files differ
diff --git a/static/teapot3-p.webp b/static/teapot3-p.webp
new file mode 100644
index 0000000..5d5111a
--- /dev/null
+++ b/static/teapot3-p.webp
Binary files differ
diff --git a/static/teapot3.webp b/static/teapot3.webp
new file mode 100644
index 0000000..dfd7c3e
--- /dev/null
+++ b/static/teapot3.webp
Binary files differ
diff --git a/static/wall-p.webp b/static/wall-p.webp
new file mode 100644
index 0000000..53ccac5
--- /dev/null
+++ b/static/wall-p.webp
Binary files differ
diff --git a/static/wall.webp b/static/wall.webp
new file mode 100644
index 0000000..20bda56
--- /dev/null
+++ b/static/wall.webp
Binary files differ