diff options
| author | unwox <me@unwox.com> | 2024-10-31 14:42:42 +0600 |
|---|---|---|
| committer | unwox <me@unwox.com> | 2024-10-31 14:57:51 +0600 |
| commit | ba2deadca80138241d9e5284167e5a6d9e441d31 (patch) | |
| tree | 318d75f0fe8595e097715ec388f5f21653e037b7 | |
| parent | e3b39158d923cf0d7e67e5bc53d53346e5d0d383 (diff) | |
add footer with disclaimer text
| -rw-r--r-- | bin/serve.fnl | 4 | ||||
| -rw-r--r-- | static/style.css | 14 | ||||
| -rw-r--r-- | 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) { @@ -2,6 +2,11 @@ :no-results-with-suggestion "По вашему запросу нет результатов. Возможно, вы имели в виду <a href=\"?query=%s\">%s</a>?" :meta-title "everytea.ru — каталог китайского чая" :meta-description "Каталог китайского чая и связанных товаров, автоматически собирающий данные с сайтов чайных." + :footer-text "everytea.ru не является интернет-магазином. +Все права на изображения и названия товаров принадлежат +соответствующим авторам. Наличие товаров, актуальность цен, +условия доставки и прочие детали необходимо уточнять на сайтах продавцов. +E-mail для связи: <a href=\"mailto:contact@everytea.ru\">contact@everytea.ru</a>." :red-tea-description " <p>Красный китайский чай (хун ча, 红茶), известный за пределами Китая как черный чай.</p> |
