Update src/app/page.tsx
This commit is contained in:
@@ -156,24 +156,21 @@ export default function LandingPage() {
|
||||
name: "Premium Evening Dress",
|
||||
price: "$450",
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766973831987-bmxkdy8r.jpg",
|
||||
imageAlt: "Elegant evening gown",
|
||||
button: { text: "Add to Cart", onClick: () => handleAddToCart("1", "Premium Evening Dress", "$450", "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766973831987-bmxkdy8r.jpg", "Elegant evening gown") }
|
||||
imageAlt: "Elegant evening gown"
|
||||
},
|
||||
{
|
||||
id: "2",
|
||||
name: "Luxury Wool Jacket",
|
||||
price: "$380",
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766973832408-1hixdjwi.jpg",
|
||||
imageAlt: "Designer wool jacket",
|
||||
button: { text: "Add to Cart", onClick: () => handleAddToCart("2", "Luxury Wool Jacket", "$380", "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766973832408-1hixdjwi.jpg", "Designer wool jacket") }
|
||||
imageAlt: "Designer wool jacket"
|
||||
},
|
||||
{
|
||||
id: "3",
|
||||
name: "Tailored Trousers",
|
||||
price: "$220",
|
||||
imageSrc: "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766973832797-zmkzilv9.jpg",
|
||||
imageAlt: "Premium tailored pants",
|
||||
button: { text: "Add to Cart", onClick: () => handleAddToCart("3", "Tailored Trousers", "$220", "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766973832797-zmkzilv9.jpg", "Premium tailored pants") }
|
||||
imageAlt: "Premium tailored pants"
|
||||
}
|
||||
]}
|
||||
gridVariant="uniform-alternating-sizes"
|
||||
@@ -186,6 +183,28 @@ export default function LandingPage() {
|
||||
badge: totalItems > 0 ? totalItems : undefined
|
||||
}}
|
||||
/>
|
||||
|
||||
{/* Add to Cart buttons for products - inline UI as workaround */}
|
||||
<div className="flex justify-center gap-4 mt-8">
|
||||
<button
|
||||
onClick={() => handleAddToCart("1", "Premium Evening Dress", "$450", "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766973831987-bmxkdy8r.jpg", "Elegant evening gown")}
|
||||
className="bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-4 rounded-lg transition-colors"
|
||||
>
|
||||
Add Evening Dress to Cart
|
||||
</button>
|
||||
<button
|
||||
onClick={() => handleAddToCart("2", "Luxury Wool Jacket", "$380", "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766973832408-1hixdjwi.jpg", "Designer wool jacket")}
|
||||
className="bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-4 rounded-lg transition-colors"
|
||||
>
|
||||
Add Wool Jacket to Cart
|
||||
</button>
|
||||
<button
|
||||
onClick={() => handleAddToCart("3", "Tailored Trousers", "$220", "https://webuild-dev.s3.eu-north-1.amazonaws.com/gallery/uploaded-1766973832797-zmkzilv9.jpg", "Premium tailored pants")}
|
||||
className="bg-purple-600 hover:bg-purple-700 text-white font-medium py-2 px-4 rounded-lg transition-colors"
|
||||
>
|
||||
Add Trousers to Cart
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="about" data-section="about">
|
||||
|
||||
Reference in New Issue
Block a user