From ba2deadca80138241d9e5284167e5a6d9e441d31 Mon Sep 17 00:00:00 2001 From: unwox Date: Thu, 31 Oct 2024 14:42:42 +0600 Subject: add footer with disclaimer text --- bin/serve.fnl | 4 +++- static/style.css | 14 ++++++++++++-- texts.fnl | 5 +++++ 3 files changed, 20 insertions(+), 3 deletions(-) diff --git a/bin/serve.fnl b/bin/serve.fnl index 27cfae5..4b8a991 100644 --- a/bin/serve.fnl +++ b/bin/serve.fnl @@ -396,7 +396,9 @@ spellfix-suggestion spellfix-suggestion)] [:NO-ESCAPE texts.no-results])) - [:footer {} paginator]]]]]]) + [:div {} paginator] + [:footer {} + [:p {:class "text"} [:NO-ESCAPE texts.footer-text]]]]]]]]) (fn root-handler [{: path : query}] (local cache-key (.. "page:" path "?" (serialize-query query))) diff --git a/static/style.css b/static/style.css index d4c0001..ed44a8d 100644 --- a/static/style.css +++ b/static/style.css @@ -165,10 +165,20 @@ h1, h2, h3, h4, h5, h6 { object-fit: contain; } -.description-text { +.text { max-width: 50rem; - margin-bottom: 2rem; line-height: 1.4; + margin: 0; +} + +.description-text { + margin-bottom: 2rem; +} + +footer { + padding-top: 1rem; + border-top: 1px solid #cfcfcf99; + margin-top: 1rem; } @media screen and (max-width: 44.9rem) { diff --git a/texts.fnl b/texts.fnl index fe5d784..e825c4a 100644 --- a/texts.fnl +++ b/texts.fnl @@ -2,6 +2,11 @@ :no-results-with-suggestion "По вашему запросу нет результатов. Возможно, вы имели в виду %s?" :meta-title "everytea.ru — каталог китайского чая" :meta-description "Каталог китайского чая и связанных товаров, автоматически собирающий данные с сайтов чайных." + :footer-text "everytea.ru не является интернет-магазином. +Все права на изображения и названия товаров принадлежат +соответствующим авторам. Наличие товаров, актуальность цен, +условия доставки и прочие детали необходимо уточнять на сайтах продавцов. +E-mail для связи: contact@everytea.ru." :red-tea-description "

Красный китайский чай (хун ча, 红茶), известный за пределами Китая как черный чай.

-- cgit v1.2.3