Add admin panel, cart, checkout, and digital key delivery
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
+20
-14
@@ -6,11 +6,11 @@
|
||||
<p class="brand-mark">{{ app_name }}</p>
|
||||
<h1>Цифровые товары без ожидания</h1>
|
||||
<p class="hero-lead">
|
||||
Ключи, софт и подарочные карты — оплатил и сразу получил доступ в личном кабинете.
|
||||
Ключи, софт и подарочные карты — оплатил и сразу получил код.
|
||||
</p>
|
||||
<div class="hero-actions">
|
||||
<a class="btn btn-primary" href="#catalog">Смотреть каталог</a>
|
||||
<a class="btn btn-ghost" href="#how">Как это работает</a>
|
||||
<a class="btn btn-ghost" href="/lookup">Найти заказ</a>
|
||||
</div>
|
||||
</div>
|
||||
<div class="hero-visual" aria-hidden="true">
|
||||
@@ -46,14 +46,18 @@
|
||||
<div class="featured-rail" aria-label="Избранное">
|
||||
{% for product in featured %}
|
||||
<article class="product product-featured gradient-{{ product.image_gradient }} reveal">
|
||||
<div class="product-media"></div>
|
||||
<a class="product-media" href="/product/{{ product.slug }}"></a>
|
||||
<div class="product-body">
|
||||
<p class="product-tag">{{ product.delivery_note }}</p>
|
||||
<h3>{{ product.title }}</h3>
|
||||
<h3><a href="/product/{{ product.slug }}">{{ product.title }}</a></h3>
|
||||
<p>{{ product.short_description }}</p>
|
||||
<div class="product-meta">
|
||||
<span class="price">{{ product.price | rub }}</span>
|
||||
<button type="button" class="btn btn-small" data-buy="{{ product.slug }}">Купить</button>
|
||||
<form method="post" action="/cart/add/{{ product.id }}">
|
||||
<button type="submit" class="btn btn-small" {% if stock_map.get(product.id, 0) < 1 %}disabled{% endif %}>
|
||||
{% if stock_map.get(product.id, 0) < 1 %}Нет в наличии{% else %}В корзину{% endif %}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -64,14 +68,18 @@
|
||||
<div class="product-grid">
|
||||
{% for product in products %}
|
||||
<article class="product gradient-{{ product.image_gradient }} reveal">
|
||||
<div class="product-media"></div>
|
||||
<a class="product-media" href="/product/{{ product.slug }}"></a>
|
||||
<div class="product-body">
|
||||
<p class="product-tag">{{ product.delivery_note }}</p>
|
||||
<h3>{{ product.title }}</h3>
|
||||
<h3><a href="/product/{{ product.slug }}">{{ product.title }}</a></h3>
|
||||
<p>{{ product.short_description }}</p>
|
||||
<div class="product-meta">
|
||||
<span class="price">{{ product.price | rub }}</span>
|
||||
<button type="button" class="btn btn-small" data-buy="{{ product.slug }}">Купить</button>
|
||||
<form method="post" action="/cart/add/{{ product.id }}">
|
||||
<button type="submit" class="btn btn-small" {% if stock_map.get(product.id, 0) < 1 %}disabled{% endif %}>
|
||||
{% if stock_map.get(product.id, 0) < 1 %}Нет в наличии{% else %}В корзину{% endif %}
|
||||
</button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
</article>
|
||||
@@ -90,20 +98,18 @@
|
||||
<li>
|
||||
<span class="step-num">01</span>
|
||||
<h3>Выберите товар</h3>
|
||||
<p>Ключ, подписка или карта пополнения из каталога.</p>
|
||||
<p>Добавьте ключ, подписку или карту в корзину.</p>
|
||||
</li>
|
||||
<li>
|
||||
<span class="step-num">02</span>
|
||||
<h3>Оплатите</h3>
|
||||
<p>Безопасная оплата картой или через доступные методы.</p>
|
||||
<h3>Оформите заказ</h3>
|
||||
<p>Укажите email — туда привязывается выдача.</p>
|
||||
</li>
|
||||
<li>
|
||||
<span class="step-num">03</span>
|
||||
<h3>Получите сразу</h3>
|
||||
<p>Код или доступ приходят автоматически после оплаты.</p>
|
||||
<p>Коды открываются на странице заказа мгновенно.</p>
|
||||
</li>
|
||||
</ol>
|
||||
</section>
|
||||
|
||||
<div class="toast" id="toast" hidden role="status" aria-live="polite"></div>
|
||||
{% endblock %}
|
||||
|
||||
Reference in New Issue
Block a user