-
-
Notifications
You must be signed in to change notification settings - Fork 65
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add Blade component for products section
- Loading branch information
1 parent
75e972f
commit cec7bdd
Showing
1 changed file
with
18 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |