store-product.html 636 B

123456789101112131415161718
  1. {% assign product-id = include.product-id | default: 1 %}
  2. {% assign product = products[product-id] %}
  3. <div class="card">
  4. <div class="card-body">
  5. <div class="mb-4 text-center">
  6. <img src="{{ base }}/img/products/{{ product.image }}" alt="Apple iPhone 7 128GB" class="img-fluid">
  7. </div>
  8. <h4 class="card-title"><a href="#">{{ product.name }}</a></h4>
  9. <div class="mt-5 d-flex align-items-center">
  10. <div class="h3 mb-0">
  11. <strong>{{ product.price }}</strong>
  12. </div>
  13. <div class="ms-auto">
  14. <a href="#" class="btn btn-primary">{% include "ui/icon.html" icon='plus' %} Add to cart</a>
  15. </div>
  16. </div>
  17. </div>
  18. </div>