17 lines
739 B
JavaScript
17 lines
739 B
JavaScript
export function getItemHTML(object) {
|
||
return `
|
||
<div class="row w-100">
|
||
<div class="col-12 col-lg-6">
|
||
<div><img src="${object.photo}" class="w-100 h-auto" /></div>
|
||
</div>
|
||
<div class="col-12 col-lg-6 text-light">
|
||
<p class="fs-1">${object.name}</p>
|
||
<a href="index.html" class="mb-4 gold-color fs-4 text-decoration-underline">Вернуться в каталог</a>
|
||
<p class="m-0 mt-4 fs-3">${object.price}₽</p>
|
||
<p class="fs-3 gold-color fw-bold m-0 mt-2">Информация о товаре</p>
|
||
<p class="fs-3 m-0">${object.info}</p>
|
||
<button class="btn btn-lg btn-warning mt-3">Купить</button>
|
||
</div>
|
||
</div>
|
||
`;
|
||
} |