Refresh storefront design with full-bleed hero and new type system

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
orohi
2026-07-25 05:40:56 +03:00
co-authored by Cursor
parent 54eaff4c70
commit 67acce62f1
8 changed files with 497 additions and 275 deletions
+24 -37
View File
@@ -9,44 +9,31 @@
</div>
{% if not items %}
<p class="empty">Корзина пуста. <a href="/#catalog">Перейти в каталог</a></p>
<div class="empty-state">
<p>Корзина пуста</p>
<a class="btn btn-primary" href="/#catalog">Перейти в каталог</a>
</div>
{% else %}
<div class="table-wrap">
<table class="data-table">
<thead>
<tr>
<th>Товар</th>
<th>Цена</th>
<th>Кол-во</th>
<th>Сумма</th>
<th></th>
</tr>
</thead>
<tbody>
{% for item in items %}
<tr>
<td>
<a href="/product/{{ item.product.slug }}">{{ item.product.title }}</a>
<div class="muted">В наличии: {{ item.stock }}</div>
</td>
<td>{{ item.product.price | rub }}</td>
<td>
<form method="post" action="/cart/update" class="inline-form">
<input type="hidden" name="product_id" value="{{ item.product.id }}" />
<input type="number" name="quantity" min="0" max="{{ item.stock }}" value="{{ item.quantity }}" />
<button class="btn btn-ghost btn-tiny" type="submit">OK</button>
</form>
</td>
<td>{{ item.line_total | rub }}</td>
<td>
<form method="post" action="/cart/remove/{{ item.product.id }}">
<button class="btn btn-ghost btn-tiny" type="submit">Удалить</button>
</form>
</td>
</tr>
{% endfor %}
</tbody>
</table>
<div class="cart-list">
{% for item in items %}
<article class="cart-row tone-{{ item.product.image_gradient }}">
<div class="cart-thumb"><span class="product-mark">{{ item.product.title[:1] }}</span></div>
<div class="cart-info">
<a href="/product/{{ item.product.slug }}">{{ item.product.title }}</a>
<div class="muted">В наличии: {{ item.stock }}</div>
</div>
<div class="cart-price">{{ item.product.price | rub }}</div>
<form method="post" action="/cart/update" class="inline-form">
<input type="hidden" name="product_id" value="{{ item.product.id }}" />
<input type="number" name="quantity" min="0" max="{{ item.stock }}" value="{{ item.quantity }}" />
<button class="btn btn-ghost btn-tiny" type="submit">OK</button>
</form>
<div class="cart-line">{{ item.line_total | rub }}</div>
<form method="post" action="/cart/remove/{{ item.product.id }}">
<button class="btn btn-ghost btn-tiny" type="submit">Удалить</button>
</form>
</article>
{% endfor %}
</div>
<div class="cart-summary">
<div class="price big">Итого: {{ total | rub }}</div>