From 8f8eef41079f8e9e5f0a8756979dd284bf6b81b2 Mon Sep 17 00:00:00 2001 From: imperosol Date: Sat, 14 Dec 2024 02:45:11 +0100 Subject: [PATCH] display products as cards --- counter/static/counter/css/admin.scss | 11 +++++++++ counter/templates/counter/product_list.jinja | 25 ++++++++++++++++---- 2 files changed, 32 insertions(+), 4 deletions(-) create mode 100644 counter/static/counter/css/admin.scss diff --git a/counter/static/counter/css/admin.scss b/counter/static/counter/css/admin.scss new file mode 100644 index 00000000..b5022819 --- /dev/null +++ b/counter/static/counter/css/admin.scss @@ -0,0 +1,11 @@ +.product-group { + display: flex; + flex-direction: column; + gap: 15px; + margin-bottom: 30px; + + @media screen and (min-width: 768px) { + max-width: 50%; + } +} + diff --git a/counter/templates/counter/product_list.jinja b/counter/templates/counter/product_list.jinja index b713693c..99ab4cf2 100644 --- a/counter/templates/counter/product_list.jinja +++ b/counter/templates/counter/product_list.jinja @@ -9,6 +9,11 @@ {% endblock %} +{% block additional_css %} + + +{% endblock %} + {% block content %}
@@ -58,12 +63,24 @@
{{ paginate_alpine("page", "nbPages") }}