setting up front 1

This commit is contained in:
elvira
2026-07-31 17:41:55 +03:00
parent b88fde739c
commit bf8b9219fc
48 changed files with 2250 additions and 11 deletions
@@ -0,0 +1,21 @@
@props([
'title' => null,
'products' => [],
])
<section {{ $attributes }}>
@if($title)
<h2 class="font-display font-extrabold text-h2 mb-10">{{ $title }}</h2>
@endif
<div class="grid grid-cols-2 md:grid-cols-4 gap-6">
@foreach($products as $product)
<x-ui.product-card
:name="$product['name']"
:price="$product['price'] ?? null"
:image="$product['image'] ?? null"
:href="$product['href'] ?? '#'"
/>
@endforeach
</div>
</section>