summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorunwox <me@unwox.com>2024-11-14 23:47:47 +0600
committerunwox <me@unwox.com>2024-11-14 23:54:25 +0600
commit43e4bcb301ca469427e5022e510fb06e94225117 (patch)
tree813da522b5eff1fc4695913348f66164c87ce4b8
parent5b13a916af68a8d7edb220b9b97911827b61d6e2 (diff)
improve semantics on listing pages
-rw-r--r--bin/serve.fnl2
-rw-r--r--static/style.css3
2 files changed, 3 insertions, 2 deletions
diff --git a/bin/serve.fnl b/bin/serve.fnl
index 420100e..4c2253e 100644
--- a/bin/serve.fnl
+++ b/bin/serve.fnl
@@ -309,7 +309,7 @@
:alt product.title} ""]]
(site-name-template product.site)
[:a {:href link :style "text-decoration: none;" :rel "nofollow"}
- [:NO-ESCAPE (.. "<h2>" (unescape product.title) "</h2>")]]
+ [:NO-ESCAPE (.. "<div class=\"title\">" (unescape product.title) "</div>")]]
[:div {:class "price"}
(if product.price (.. (str.format-price product.price) "₽") "")
(if (< 0 product.weight)
diff --git a/static/style.css b/static/style.css
index a1e9c86..898d7bf 100644
--- a/static/style.css
+++ b/static/style.css
@@ -66,8 +66,9 @@ h1, h2, h3, h4, h5, h6 {
width: 12.5rem;
}
-.tile h2 {
+.tile .title {
font-size: 1rem;
+ font-weight: 900;
margin-bottom: 0.25rem;
margin-top: 0;
}