From 8785c79b83fd035ae4425ad1a4da01e79871bc95 Mon Sep 17 00:00:00 2001 From: KarolG Date: Sat, 3 Jun 2023 04:14:52 +0200 Subject: [PATCH 1/3] improved mobile views --- artel/artel/templates/base.html | 4 +-- .../templates/menu/custom_main_menu.html | 10 +++--- .../store/partials/product_card.html | 32 +++++++++++-------- .../templates/store/product_list_page.html | 15 ++++----- 4 files changed, 32 insertions(+), 29 deletions(-) diff --git a/artel/artel/templates/base.html b/artel/artel/templates/base.html index 4ad7ce8..744e33a 100644 --- a/artel/artel/templates/base.html +++ b/artel/artel/templates/base.html @@ -37,10 +37,10 @@ {% wagtailuserbar %}
-
+
{% main_menu max_levels=3 template="menu/custom_main_menu.html" %}
-
+
{% block content %}{% endblock %}
diff --git a/artel/artel/templates/menu/custom_main_menu.html b/artel/artel/templates/menu/custom_main_menu.html index 3c10bd5..31fd6a8 100644 --- a/artel/artel/templates/menu/custom_main_menu.html +++ b/artel/artel/templates/menu/custom_main_menu.html @@ -1,9 +1,9 @@ -{% load static %} +{% load static %} {% load menu_tags %} -
- +
+ Portal Logo
diff --git a/artel/store/templates/store/partials/product_card.html b/artel/store/templates/store/partials/product_card.html index ad6acc0..f02e85a 100644 --- a/artel/store/templates/store/partials/product_card.html +++ b/artel/store/templates/store/partials/product_card.html @@ -1,18 +1,22 @@ -{% load static %} +{% load static %} -
-
{{item.title}}
-
- +
+
{{item.title}}
+
+ {{item.title}}

{{item.description}}

- - -
- \ No newline at end of file + +
diff --git a/artel/store/templates/store/product_list_page.html b/artel/store/templates/store/product_list_page.html index 3238d59..a8af2da 100644 --- a/artel/store/templates/store/product_list_page.html +++ b/artel/store/templates/store/product_list_page.html @@ -4,14 +4,13 @@ {% block content %}
-
- {% for item in items %} -
- {% include 'store/partials/product_card.html' %} -
- {% endfor %} -
- +
+ {% for item in items %} +
+ {% include 'store/partials/product_card.html' %} +
+ {% endfor %} +
-
+ - - - \ No newline at end of file diff --git a/artel/store/templates/store/partials/product_card.html b/artel/store/templates/store/partials/product_card.html index 72bc8ea..db404e7 100644 --- a/artel/store/templates/store/partials/product_card.html +++ b/artel/store/templates/store/partials/product_card.html @@ -1,7 +1,7 @@ {% load static %} -
-
{{item.title}}
+
+
{{item.title}}
@@ -10,8 +10,8 @@
-