From 863a04737c3b5867c337a5a4ab5235702215aa23 Mon Sep 17 00:00:00 2001 From: Pablo Moreno Date: Fri, 3 Jan 2025 14:12:32 +0100 Subject: [PATCH] fix: styling --- .../components/cart/add_to_cart.html | 7 ++-- web/templates/components/generic/navbar.html | 35 ++++++------------- web/templates/components/product_card.html | 11 +++--- 3 files changed, 23 insertions(+), 30 deletions(-) diff --git a/web/templates/components/cart/add_to_cart.html b/web/templates/components/cart/add_to_cart.html index 842797a..e37169f 100644 --- a/web/templates/components/cart/add_to_cart.html +++ b/web/templates/components/cart/add_to_cart.html @@ -3,8 +3,11 @@ {% csrf_token %} - diff --git a/web/templates/components/generic/navbar.html b/web/templates/components/generic/navbar.html index 38735ec..9eee69a 100644 --- a/web/templates/components/generic/navbar.html +++ b/web/templates/components/generic/navbar.html @@ -23,12 +23,12 @@ {% for category in navbar_categories %} -
  • - - {{ category.name }} - -
  • +
  • + + {{ category.name }} + +
  • {% endfor %} @@ -86,26 +86,13 @@ {% translate 'Inicio' %} + + {% for category in navbar_categories %}
  • - {% translate 'Más vendidos' %} -
  • -
  • - {% translate 'Ideas de regalo' %} -
  • -
  • - {% translate 'Juegos' %} -
  • -
  • - {% translate 'Electrónica' %} -
  • -
  • - {% translate 'Ofertas del día' %} + {{ category.name }}
  • + {% endfor %} diff --git a/web/templates/components/product_card.html b/web/templates/components/product_card.html index 7de63b2..3878e99 100644 --- a/web/templates/components/product_card.html +++ b/web/templates/components/product_card.html @@ -27,12 +27,15 @@

    5.0

    (455)

    -
    -

    {{ product.price.price_with_tax }}€

    - +
    +

    + {{ product.price.price_with_tax }}€ +

    +
    +
    {% include 'components/cart/add_to_cart.html' %}
    +
    \ No newline at end of file