16 lines
567 B
JavaScript
16 lines
567 B
JavaScript
|
export function getProductItem(image, name, price) {
|
|||
|
return `
|
|||
|
<div class="col-lg-3 col-md-4 col-sm-6 col-12 mb-4">
|
|||
|
<div class="card">
|
|||
|
<img src="${image}" class="card-img-top" alt="Product Image">
|
|||
|
<div class="card-body">
|
|||
|
<h5 class="card-title">${name}</h5>
|
|||
|
</div>
|
|||
|
<div class="card-footer">
|
|||
|
<div class="text-success font-weight-bold">Цена ${price}₽</div>
|
|||
|
<button class="btn">В корзину</button>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
</div>
|
|||
|
`;
|
|||
|
}
|