From 79495b24ae0a1e92921e3acd552609c16136493f Mon Sep 17 00:00:00 2001 From: unwox Date: Sun, 27 Apr 2025 17:41:31 +0600 Subject: new photos in gallery --- pages/index.fnl | 41 +++++++++++++++++++++-------------------- static/boiling-p.webm | Bin 0 -> 2320493 bytes static/boiling_p.webm | Bin 2320493 -> 0 bytes static/flowers-p.webp | Bin 0 -> 43543 bytes static/flowers.webp | Bin 0 -> 195960 bytes static/gaiwan-p.webm | Bin 0 -> 401083 bytes static/gaiwan-p.webp | Bin 0 -> 28574 bytes static/gaiwan.jpg | Bin 910488 -> 0 bytes static/gaiwan.webp | Bin 0 -> 173114 bytes static/gaiwan2-p.webp | Bin 0 -> 64302 bytes static/gaiwan2.webp | Bin 0 -> 253518 bytes static/gaiwan_p.jpg | Bin 50361 -> 0 bytes static/gaiwan_p.webm | Bin 401083 -> 0 bytes static/people-p.webp | Bin 0 -> 70574 bytes static/people.jpg | Bin 1681149 -> 0 bytes static/people.webp | Bin 0 -> 450732 bytes static/people_p.jpg | Bin 96001 -> 0 bytes static/rack-p.webp | Bin 0 -> 61306 bytes static/rack.jpg | Bin 1381423 -> 0 bytes static/rack.webp | Bin 0 -> 365538 bytes static/rack_p.jpg | Bin 84853 -> 0 bytes static/table-p.webp | Bin 0 -> 15932 bytes static/table.jpg | Bin 704281 -> 0 bytes static/table.webp | Bin 0 -> 142870 bytes static/table_p.jpg | Bin 28053 -> 0 bytes static/teapot-p.webp | Bin 0 -> 35824 bytes static/teapot.webp | Bin 0 -> 759734 bytes static/teapot2-p.webp | Bin 0 -> 32204 bytes static/teapot2.webp | Bin 0 -> 168596 bytes static/teapot3-p.webp | Bin 0 -> 50510 bytes static/teapot3.webp | Bin 0 -> 299170 bytes static/wall-p.webp | Bin 0 -> 62082 bytes static/wall.webp | Bin 0 -> 456140 bytes 33 files changed, 21 insertions(+), 20 deletions(-) create mode 100644 static/boiling-p.webm delete mode 100644 static/boiling_p.webm create mode 100644 static/flowers-p.webp create mode 100644 static/flowers.webp create mode 100644 static/gaiwan-p.webm create mode 100644 static/gaiwan-p.webp delete mode 100644 static/gaiwan.jpg create mode 100644 static/gaiwan.webp create mode 100644 static/gaiwan2-p.webp create mode 100644 static/gaiwan2.webp delete mode 100644 static/gaiwan_p.jpg delete mode 100644 static/gaiwan_p.webm create mode 100644 static/people-p.webp delete mode 100644 static/people.jpg create mode 100644 static/people.webp delete mode 100644 static/people_p.jpg create mode 100644 static/rack-p.webp delete mode 100644 static/rack.jpg create mode 100644 static/rack.webp delete mode 100644 static/rack_p.jpg create mode 100644 static/table-p.webp delete mode 100644 static/table.jpg create mode 100644 static/table.webp delete mode 100644 static/table_p.jpg create mode 100644 static/teapot-p.webp create mode 100644 static/teapot.webp create mode 100644 static/teapot2-p.webp create mode 100644 static/teapot2.webp create mode 100644 static/teapot3-p.webp create mode 100644 static/teapot3.webp create mode 100644 static/wall-p.webp create mode 100644 static/wall.webp 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 (.. - "Маленькая уютная чайная для своих: Омск, ул. Пушкина, д. 133/9, этаж 2. " + "Уютная чайная комната в Омске: Омск, ул. Пушкина, д. 133/9, этаж 2. " "Вход с крыльца Магнита, дверь слева, домофон 4. " "Посещение по предварительной договоренности, стоимость 500 рублей с человека.")]] [: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 new file mode 100644 index 0000000..166318f Binary files /dev/null and b/static/boiling-p.webm differ diff --git a/static/boiling_p.webm b/static/boiling_p.webm deleted file mode 100644 index 166318f..0000000 Binary files a/static/boiling_p.webm and /dev/null differ diff --git a/static/flowers-p.webp b/static/flowers-p.webp new file mode 100644 index 0000000..e3d599d Binary files /dev/null and b/static/flowers-p.webp differ diff --git a/static/flowers.webp b/static/flowers.webp new file mode 100644 index 0000000..39da15c Binary files /dev/null and b/static/flowers.webp differ diff --git a/static/gaiwan-p.webm b/static/gaiwan-p.webm new file mode 100644 index 0000000..a6a03ec Binary files /dev/null and b/static/gaiwan-p.webm differ diff --git a/static/gaiwan-p.webp b/static/gaiwan-p.webp new file mode 100644 index 0000000..1a88c9a Binary files /dev/null and b/static/gaiwan-p.webp differ diff --git a/static/gaiwan.jpg b/static/gaiwan.jpg deleted file mode 100644 index 9202153..0000000 Binary files a/static/gaiwan.jpg and /dev/null differ diff --git a/static/gaiwan.webp b/static/gaiwan.webp new file mode 100644 index 0000000..32ac9df Binary files /dev/null and b/static/gaiwan.webp differ diff --git a/static/gaiwan2-p.webp b/static/gaiwan2-p.webp new file mode 100644 index 0000000..cf29828 Binary files /dev/null and b/static/gaiwan2-p.webp differ diff --git a/static/gaiwan2.webp b/static/gaiwan2.webp new file mode 100644 index 0000000..a301062 Binary files /dev/null and b/static/gaiwan2.webp differ diff --git a/static/gaiwan_p.jpg b/static/gaiwan_p.jpg deleted file mode 100644 index c3c025d..0000000 Binary files a/static/gaiwan_p.jpg and /dev/null differ diff --git a/static/gaiwan_p.webm b/static/gaiwan_p.webm deleted file mode 100644 index a6a03ec..0000000 Binary files a/static/gaiwan_p.webm and /dev/null differ diff --git a/static/people-p.webp b/static/people-p.webp new file mode 100644 index 0000000..e6afe3b Binary files /dev/null and b/static/people-p.webp differ diff --git a/static/people.jpg b/static/people.jpg deleted file mode 100644 index 1a3bef8..0000000 Binary files a/static/people.jpg and /dev/null differ diff --git a/static/people.webp b/static/people.webp new file mode 100644 index 0000000..c22b66b Binary files /dev/null and b/static/people.webp differ diff --git a/static/people_p.jpg b/static/people_p.jpg deleted file mode 100644 index 97c52ef..0000000 Binary files a/static/people_p.jpg and /dev/null differ diff --git a/static/rack-p.webp b/static/rack-p.webp new file mode 100644 index 0000000..d3c8f46 Binary files /dev/null and b/static/rack-p.webp differ diff --git a/static/rack.jpg b/static/rack.jpg deleted file mode 100644 index 076d353..0000000 Binary files a/static/rack.jpg and /dev/null differ diff --git a/static/rack.webp b/static/rack.webp new file mode 100644 index 0000000..8e204f6 Binary files /dev/null and b/static/rack.webp differ diff --git a/static/rack_p.jpg b/static/rack_p.jpg deleted file mode 100644 index 6bb653d..0000000 Binary files a/static/rack_p.jpg and /dev/null differ diff --git a/static/table-p.webp b/static/table-p.webp new file mode 100644 index 0000000..28ada8d Binary files /dev/null and b/static/table-p.webp differ diff --git a/static/table.jpg b/static/table.jpg deleted file mode 100644 index 4dd1390..0000000 Binary files a/static/table.jpg and /dev/null differ diff --git a/static/table.webp b/static/table.webp new file mode 100644 index 0000000..9125e4d Binary files /dev/null and b/static/table.webp differ diff --git a/static/table_p.jpg b/static/table_p.jpg deleted file mode 100644 index 4cf0d13..0000000 Binary files a/static/table_p.jpg and /dev/null differ diff --git a/static/teapot-p.webp b/static/teapot-p.webp new file mode 100644 index 0000000..4d88b39 Binary files /dev/null and b/static/teapot-p.webp differ diff --git a/static/teapot.webp b/static/teapot.webp new file mode 100644 index 0000000..46ccce0 Binary files /dev/null and b/static/teapot.webp differ diff --git a/static/teapot2-p.webp b/static/teapot2-p.webp new file mode 100644 index 0000000..a48a665 Binary files /dev/null and b/static/teapot2-p.webp differ diff --git a/static/teapot2.webp b/static/teapot2.webp new file mode 100644 index 0000000..505669b Binary files /dev/null and b/static/teapot2.webp differ diff --git a/static/teapot3-p.webp b/static/teapot3-p.webp new file mode 100644 index 0000000..5d5111a Binary files /dev/null and b/static/teapot3-p.webp differ diff --git a/static/teapot3.webp b/static/teapot3.webp new file mode 100644 index 0000000..dfd7c3e Binary files /dev/null and b/static/teapot3.webp differ diff --git a/static/wall-p.webp b/static/wall-p.webp new file mode 100644 index 0000000..53ccac5 Binary files /dev/null and b/static/wall-p.webp differ diff --git a/static/wall.webp b/static/wall.webp new file mode 100644 index 0000000..20bda56 Binary files /dev/null and b/static/wall.webp differ -- cgit v1.2.3