Skip to content

Commit

Permalink
feat: Add Blade component for products section
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] committed Mar 10, 2024
1 parent 75e972f commit cec7bdd
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions resources/views/components/products_section.blade.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<div>
<section class="products-section">
<h2>Our Products</h2>
<p>Discover our range of genealogy tools designed to help you explore your ancestry.</p>
<div class="products-grid">
@foreach($products as $product)
<div class="product-card">
<img src="{{ $product->image }}" alt="{{ $product->name }}">
<div class="product-info">
<h3>{{ $product->name }}</h3>
<p>{{ $product->description }}</p>
<button wire:click="addToCart('{{ $product->id }}')">Add to Cart</button>
</div>
</div>
@endforeach
</div>
</section>
</div>

0 comments on commit cec7bdd

Please sign in to comment.