summaryrefslogtreecommitdiff
path: root/pages/about/index.fnl
blob: 3a54ef223c33cef6cd5d25a46e27836746577f99 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
(import-macros {:compile-html HTML} :macros)
(local templates (require :templates))

(local %page-title "О нас")

(fn content [authenticated?]
  [(HTML
    [:aside {}
     (templates.header "/about" authenticated?)])
   (HTML
    [:div {:class "content"}
     [:div {:class "back"} [:a {:href "/"} "⟵ Обратно на главную"]]
     [:section {:class "mb-2"}
      [:h2 {:id "contact"} %page-title]
      [:p {:class "mb-0-5"} [:strong {} "Адрес:"]
        "г. Омск, ул. Пушкина, д. 133/9, этаж 2. Вход с крыльца Магнита, дверь слева, домофон 4."]
      [:p {:class "mb-0-5"} [:strong {:class "mb-0-5"} "Телеграм:"]
        [:a {:href "https://t.me/whitetoadvlad"} "@whitetoadvlad"]]
      [:p {} [:strong {} "E-mail:"]
        [:a {:href "mailto:vlad@whitetoad.ru"} "vlad@whitetoad.ru"]]]

     [:section {:class "mb-2"}
      [:h3 {} "Реквизиты"]
      [:p {:class "mb-0-5"} "ИП Горенкин Владислав Константинович"]
      [:p {:class "mb-0-5"} [:strong {:class "mb-0-5"} "ИНН:"] "550414799930"]
      [:p {} [:strong {} "ОГРН:"] "325554300088182"]]

     [:section {}
      [:h3 {:id "conditions"} "Документы"]
       [:p {:class "mb-0-25"}
        [:a {:href "/about/privacy-policy"}
          "Политика обработки и хранения персональных данных"]]
       ;; [:p {} [:a {:href "/about/offer"} "Публичная оферта"]]
       ]])])

(fn render [request db authenticated?]
  (values 200 {} (templates.base (content authenticated?) %page-title)))

{: render}