WMGZON/templates/content.html

22 lines
1.0 KiB
HTML
Raw Normal View History

<link rel="stylesheet" href="{{ url_for('static', filename='css/products.css') }}">
2023-12-31 19:03:29 +00:00
<div class="product-container">
2024-01-21 22:22:29 +00:00
{% if products is not None %}
{% for product in products %}
<a href="/products/{{product.id}}" class="product product-link">
<div class="product-title">{{product.name}}</div>
<div class="product-information">
<div class="product-image">
<img src="{{url_for('static', filename='assets/img/products/' + product.image)}}" alt="Brake Disks" height="auto" width="150px" />
</div>
<div class="product-details">
<div class="product-price">£{{product.cost}}</div>
<div class="product-description">{{product.description}}</div>
</div>
</div>
<div class="product-add-to-cart"></div>
</a>
{% endfor %}
{% endif %}
2023-12-31 19:03:29 +00:00
</div>