fix: html refactor
This commit is contained in:
@@ -1,43 +1,24 @@
|
||||
{% load i18n %}
|
||||
<article>
|
||||
<div
|
||||
>
|
||||
<div class="h-56 w-full ">
|
||||
<a href="{% url 'web:product_detail' pk=product.pk slug=product.slug %}">
|
||||
<img class="mx-auto h-full " src="{{ product.images.all.0.m.url }}"
|
||||
alt="{{ product.name }}"/>
|
||||
<img class="mx-auto hidden h-full " src="{{ product.images.all.0.m_dark.url }}"
|
||||
alt="{{ product.name }}"/>
|
||||
</a>
|
||||
</div>
|
||||
<div class="pt-6">
|
||||
<article class="rounded-lg border-primary p-6 shadow-sm">
|
||||
|
||||
<a href="{% url 'web:product_detail' pk=product.pk slug=product.slug %}"
|
||||
class="link">{{ product.name }}</a>
|
||||
<a class="h-56 w-full" href="{% url 'web:product_detail' pk=product.pk slug=product.slug %}">
|
||||
<img class="mx-auto h-full " src="{{ product.images.all.0.m.url }}"
|
||||
alt="{{ product.name }}"/>
|
||||
</a>
|
||||
|
||||
<!-- <div class="mt-2 flex items-center gap-2">-->
|
||||
<!-- <div class="flex items-center">-->
|
||||
<!-- {% include 'components/icons/star.svg' %}-->
|
||||
<!-- {% include 'components/icons/star.svg' %}-->
|
||||
<!-- {% include 'components/icons/star.svg' %}-->
|
||||
<!-- {% include 'components/icons/star.svg' %}-->
|
||||
<!-- {% include 'components/icons/star.svg' %}-->
|
||||
<!-- </div>-->
|
||||
<div class="pt-6 flex justify-between">
|
||||
<a href="{% url 'web:product_detail' pk=product.pk slug=product.slug %}"
|
||||
class="link">
|
||||
<h1>{{ product.name }}</h1>
|
||||
|
||||
<!-- <p class="text-sm font-medium ">5.0</p>-->
|
||||
<!-- <p class="text-sm font-medium ">(455)</p>-->
|
||||
<!-- </div>-->
|
||||
<div class="mt-4 flex gap-4">
|
||||
<p class="txt-2xl">
|
||||
{% with product.current_prices.0 as price %}
|
||||
{{ price.price_with_tax }} €
|
||||
{% endwith %}
|
||||
</p>
|
||||
</div>
|
||||
<div class="mt-4">
|
||||
{% include 'components/cart/add_to_cart.html' %}
|
||||
</div>
|
||||
|
||||
</div>
|
||||
</a>
|
||||
<p class="txt-2xl">
|
||||
{% with product.current_prices.0 as price %}
|
||||
{{ price.price_with_tax }} €
|
||||
{% endwith %}
|
||||
</p>
|
||||
</div>
|
||||
<div class="mt-4">
|
||||
{% include 'components/cart/add_to_cart.html' %}
|
||||
</div>
|
||||
</article>
|
||||
Reference in New Issue
Block a user