İçeriğe geç
Tüm kodlar

ER3NSHOP

Kurulum sihirbazlı online mağaza sistemi

15 satır · 1,1 KBHamİndir
<div class="grid items-center gap-10 lg:grid-cols-2 lg:gap-20">
    <div class="aspect-[4/5] overflow-hidden rounded-[var(--radius-panel)] bg-zinc-100 sm:aspect-[5/4] lg:aspect-[4/5] <?= $s['reverse'] === '1' ? 'lg:order-2' : '' ?>">
        <?= image_tag($s['image'], $s['title'] ?: store_name(), 'h-full w-full object-cover', 'text-[12rem]') ?>
    </div>
    <div class="max-w-xl">
        <?php if ($s['eyebrow']): ?><p class="eyebrow"><?= e($s['eyebrow']) ?></p><?php endif ?>
        <h2 class="heading mt-4 text-4xl <?= heading_weight_class() ?> leading-tight sm:text-5xl"><?= e($s['title']) ?></h2>
        <?php if ($s['content']): ?>
            <div class="rich mt-6 text-lg leading-8 text-zinc-600"><?php foreach (preg_split('/\n\s*\n/', $s['content']) as $paragraph): ?><p><?= nl2br(e($paragraph)) ?></p><?php endforeach ?></div>
        <?php endif ?>
        <?php if ($s['button_text']): ?>
            <a href="<?= e(section_link($s['link'])) ?>" class="btn-primary mt-8"><?= e($s['button_text']) ?><?= icon('arrow', 'size-4', '2') ?></a>
        <?php endif ?>
    </div>
</div>

Lisans bilgisi projenin LICENSE dosyasında.