diff --git a/src/pages/HomePage/sections/Products.tsx b/src/pages/HomePage/sections/Products.tsx index 860c330..e81719b 100644 --- a/src/pages/HomePage/sections/Products.tsx +++ b/src/pages/HomePage/sections/Products.tsx @@ -11,37 +11,44 @@ const items = [ { imageSrc: "http://img.b2bpic.net/free-photo/front-view-delicious-chocolate-cake_23-2148549963.jpg", href: "#", - rating: 5 + rating: 5, + recipe: "Rich chocolate cake layers with smooth chocolate buttercream and dark chocolate ganache drip." }, { imageSrc: "http://img.b2bpic.net/free-photo/delicious-pastry-with-dried-orange-slices-black-board-high-quality-photo_114579-69077.jpg", href: "#", - rating: 4 + rating: 4, + recipe: "Flaky pastry filled with orange zest cream and topped with candied orange slices." }, { imageSrc: "http://img.b2bpic.net/free-photo/marshmallow-white-plate-table-with-mug-hot-coffee_114579-604.jpg", href: "#", - rating: 5 + rating: 5, + recipe: "Homemade vanilla bean marshmallows, perfect for pairing with our signature hot coffee." }, { imageSrc: "http://img.b2bpic.net/free-photo/top-view-sliced-crusty-bread-cutting-board-wooden-background-with-copy-space_141793-25656.jpg", href: "#", - rating: 3 + rating: 3, + recipe: "Artisan sourdough bread with a crusty exterior and soft, chewy interior." }, { imageSrc: "http://img.b2bpic.net/free-photo/beautiful-cake-sweet-snacks_181624-27093.jpg", href: "#", - rating: 4 + rating: 4, + recipe: "Delicate sponge cake with fresh berries and light whipped cream frosting." }, { imageSrc: "http://img.b2bpic.net/free-photo/homemade-delicious-rustic-summer-berry-tartles_114579-10242.jpg", href: "#", - rating: 5 + rating: 5, + recipe: "Rustic tartlets filled with a mix of summer berries and a hint of lemon zest." }, { imageSrc: "http://img.b2bpic.net/free-photo/wedding-cake-with-flowers_23-2148120660.jpg", href: "#", - rating: 4 + rating: 4, + recipe: "Elegant multi-tiered wedding cake decorated with fresh, edible flowers." } ]; @@ -114,28 +121,37 @@ const ProductsInline = () => {
{items.map((item, index) => { const content = ( -
- -
- {[...Array(item.rating || 5)].map((_, i) => ( - - ))} +
+ {/* Front side */} +
+ +
+ {[...Array(item.rating || 5)].map((_, i) => ( + + ))} +
+
+ + {/* Back side */} +
+

Recipe Details

+

{item.recipe}

); return ( - + {item.href ? ( - + {content} ) : ( -
+
{content}
)}