главная добита по визуалу

This commit is contained in:
Alisa
2026-06-07 23:13:03 +03:00
parent 66e931e0d6
commit 3a065b34d6
12 changed files with 196 additions and 104 deletions
+2 -35
View File
@@ -235,9 +235,9 @@ $arrivalDate = $lastArrival->format('j') . ' ' . $months[(int) $lastArrival->for
<div class="home-catalog-heading">
<div>
<p class="eyebrow">Каталог продукции</p>
<h2>Подборки по категориям</h2>
<h2>Акции и новые поступления</h2>
</div>
<a class="subtle-link" href="/catalog">Весь каталог</a>
<a class="home-catalog-main-link" href="/catalog">Перейти во весь каталог</a>
</div>
<?php if (($homeCatalogSections ?? []) === []): ?>
@@ -245,7 +245,6 @@ $arrivalDate = $lastArrival->format('j') . ' ' . $months[(int) $lastArrival->for
<p class="muted">После наполнения каталога товары появятся здесь по категориям.</p>
</div>
<?php else: ?>
<?php $wishlistRequestRendered = false; ?>
<?php foreach ($homeCatalogSections as $section): ?>
<?php
$sectionProducts = $section['products'] ?? [];
@@ -254,10 +253,6 @@ $arrivalDate = $lastArrival->format('j') . ' ' . $months[(int) $lastArrival->for
}
$sectionKind = (string) ($section['kind'] ?? 'category');
?>
<?php if (!$wishlistRequestRendered && ($section['key'] ?? '') === 'myaso'): ?>
<?php require base_path('views/partials/wishlist-request-panel.php'); ?>
<?php $wishlistRequestRendered = true; ?>
<?php endif; ?>
<section class="home-product-section is-<?= e($sectionKind) ?>" id="home-<?= e((string) ($section['key'] ?? 'section')) ?>">
<div class="home-product-section-head">
<h3><?= e((string) ($section['title'] ?? 'Категория')) ?></h3>
@@ -277,35 +272,7 @@ $arrivalDate = $lastArrival->format('j') . ' ' . $months[(int) $lastArrival->for
<?php endforeach; ?>
</div>
</section>
<?php if (($section['key'] ?? '') === 'frukty-ovoschi-yagody-griby'): ?>
<section class="home-delivery-separator" aria-label="Расчет доставки">
<div>
<p class="eyebrow">Доставка и самовывоз</p>
<h3>Рассчитаем доставку до подъезда и подъем отдельно</h3>
<p>Внутри МКАД бесплатно от <?= e((string) ($settings['inside_mkad_free_from'] ?? '5000')) ?> руб. За МКАД бесплатная доставка от 10000 руб. до 10 км, дальше сумма бесплатной доставки зависит от расстояния.</p>
</div>
<form class="home-delivery-mini" action="/delivery" method="get">
<label>
<span>Сумма заказа</span>
<input type="number" name="amount" min="0" step="100" value="5000">
</label>
<label>
<span>Получение</span>
<select name="method">
<option value="pickup">Самовывоз</option>
<option value="inside" selected>Доставка внутри МКАД</option>
<option value="outside">Доставка за МКАД</option>
</select>
</label>
<button class="primary-button" type="submit">Открыть расчет</button>
</form>
</section>
<?php endif; ?>
<?php endforeach; ?>
<?php if (!$wishlistRequestRendered): ?>
<?php require base_path('views/partials/wishlist-request-panel.php'); ?>
<?php endif; ?>
<?php endif; ?>
</section>