From cdaeec468a68b5577d66d865720ff64ededce08a Mon Sep 17 00:00:00 2001 From: Pablo Moreno Date: Fri, 31 Jan 2025 12:50:27 +0100 Subject: [PATCH] feat: added carousel --- README.md | 4 ++-- theme/templates/theme/base.html | 16 ++++++++++++++++ web/templates/web/product_detail.html | 24 +++++++++++++++++------- 3 files changed, 35 insertions(+), 9 deletions(-) diff --git a/README.md b/README.md index 0341967..8b125df 100644 --- a/README.md +++ b/README.md @@ -37,10 +37,10 @@ Con este usuario tendremos control total de la aplicación desde el [admin de Dj python manage.py createsuperuser ``` -### Tailwind +### Arrancar Tailwind ```bash -python manage.py tailwind start +tailwindcss -w -i theme/static/css/main.css -o theme/static/css/styles.css ``` ### Tareas de Celery diff --git a/theme/templates/theme/base.html b/theme/templates/theme/base.html index 0b7134c..24c71df 100644 --- a/theme/templates/theme/base.html +++ b/theme/templates/theme/base.html @@ -12,6 +12,22 @@ + + + + + + {% block extra_js %} {% endblock %} diff --git a/web/templates/web/product_detail.html b/web/templates/web/product_detail.html index d9ce22e..7927d47 100644 --- a/web/templates/web/product_detail.html +++ b/web/templates/web/product_detail.html @@ -10,14 +10,21 @@
- - + + + {% for image in product.images.all %} + + {{ product.name }} + + {% endfor %} +
-

+

{{ product.name }}

@@ -27,6 +34,8 @@ {{ product.price.price_with_tax }} €

+ +