diff --git a/src/app/page.tsx b/src/app/page.tsx
index 4c58f5b..4c7a82a 100644
--- a/src/app/page.tsx
+++ b/src/app/page.tsx
@@ -15,6 +15,10 @@ import Link from "next/link";
import { Truck, RotateCcw, Lock, Headphones, Sparkles, Shield, Zap, Award, Star } from "lucide-react";
export default function HomePage() {
+ const handleProductClick = (productId: string, productName: string) => {
+ window.location.href = `/product/${productId}`;
+ };
+
return (
@@ -70,46 +72,22 @@ export default function HomePage() {
tagIcon={Sparkles}
products={[
{
- id: "1",
- name: "Smart Motion Sensor",
- price: "$79.99",
- imageSrc: "http://img.b2bpic.net/free-photo/white-wireless-earbuds-with-case_53876-96327.jpg?_wi=1",
- imageAlt: "Smart Motion Sensor",
+ id: "1", name: "Smart Motion Sensor", price: "$79.99", imageSrc: "http://img.b2bpic.net/free-photo/white-wireless-earbuds-with-case_53876-96327.jpg?_wi=1", imageAlt: "Smart Motion Sensor", onProductClick: () => handleProductClick("1", "Smart Motion Sensor"),
},
{
- id: "2",
- name: "Eco Smart Thermostat",
- price: "$129.99",
- imageSrc: "http://img.b2bpic.net/free-photo/top-view-virtual-reality-headset-white-headphones_23-2148912739.jpg?_wi=1",
- imageAlt: "Eco Smart Thermostat",
+ id: "2", name: "Eco Smart Thermostat", price: "$129.99", imageSrc: "http://img.b2bpic.net/free-photo/top-view-virtual-reality-headset-white-headphones_23-2148912739.jpg?_wi=1", imageAlt: "Eco Smart Thermostat", onProductClick: () => handleProductClick("2", "Eco Smart Thermostat"),
},
{
- id: "3",
- name: "Voice Control Hub",
- price: "$99.99",
- imageSrc: "http://img.b2bpic.net/free-photo/composition-tablet-with-home-automation-app_23-2149036813.jpg?_wi=1",
- imageAlt: "Voice Control Hub",
+ id: "3", name: "Voice Control Hub", price: "$99.99", imageSrc: "http://img.b2bpic.net/free-photo/composition-tablet-with-home-automation-app_23-2149036813.jpg?_wi=1", imageAlt: "Voice Control Hub", onProductClick: () => handleProductClick("3", "Voice Control Hub"),
},
{
- id: "4",
- name: "Smart Lighting Strip",
- price: "$49.99",
- imageSrc: "http://img.b2bpic.net/free-photo/female-couch-holding-her-phone-mug-sitting-front-table-with-gadgets_181624-56360.jpg?_wi=1",
- imageAlt: "Smart Lighting Strip",
+ id: "4", name: "Smart Lighting Strip", price: "$49.99", imageSrc: "http://img.b2bpic.net/free-photo/female-couch-holding-her-phone-mug-sitting-front-table-with-gadgets_181624-56360.jpg?_wi=1", imageAlt: "Smart Lighting Strip", onProductClick: () => handleProductClick("4", "Smart Lighting Strip"),
},
{
- id: "5",
- name: "AI Security Camera",
- price: "$149.99",
- imageSrc: "http://img.b2bpic.net/free-photo/female-couch-holding-her-phone-mug-sitting-front-table-with-gadgets_181624-56360.jpg?_wi=2",
- imageAlt: "AI Security Camera",
+ id: "5", name: "AI Security Camera", price: "$149.99", imageSrc: "http://img.b2bpic.net/free-photo/female-couch-holding-her-phone-mug-sitting-front-table-with-gadgets_181624-56360.jpg?_wi=2", imageAlt: "AI Security Camera", onProductClick: () => handleProductClick("5", "AI Security Camera"),
},
{
- id: "6",
- name: "Smart Door Lock",
- price: "$189.99",
- imageSrc: "http://img.b2bpic.net/free-photo/devices-arrangement-table_23-2148994216.jpg?_wi=1",
- imageAlt: "Smart Door Lock",
+ id: "6", name: "Smart Door Lock", price: "$189.99", imageSrc: "http://img.b2bpic.net/free-photo/devices-arrangement-table_23-2148994216.jpg?_wi=1", imageAlt: "Smart Door Lock", onProductClick: () => handleProductClick("6", "Smart Door Lock"),
},
]}
gridVariant="three-columns-all-equal-width"
@@ -127,24 +105,16 @@ export default function HomePage() {
tagIcon={Shield}
bulletPoints={[
{
- title: "Free Shipping",
- description: "Complimentary shipping on all orders across the entire range of smart home gadgets.",
- icon: Truck,
+ title: "Free Shipping", description: "Complimentary shipping on all orders across the entire range of smart home gadgets.", icon: Truck,
},
{
- title: "30-Day Money Back",
- description: "Full refund guarantee if you're not completely satisfied with your purchase.",
- icon: RotateCcw,
+ title: "30-Day Money Back", description: "Full refund guarantee if you're not completely satisfied with your purchase.", icon: RotateCcw,
},
{
- title: "Secure Checkout",
- description: "Bank-level encryption and trusted payment processing for your peace of mind.",
- icon: Lock,
+ title: "Secure Checkout", description: "Bank-level encryption and trusted payment processing for your peace of mind.", icon: Lock,
},
{
- title: "24/7 Support",
- description: "Dedicated customer support team ready to help you anytime, day or night.",
- icon: Headphones,
+ title: "24/7 Support", description: "Dedicated customer support team ready to help you anytime, day or night.", icon: Headphones,
},
]}
imageSrc="http://img.b2bpic.net/free-photo/white-wireless-earbuds-with-case_53876-96327.jpg?_wi=2"
@@ -165,28 +135,16 @@ export default function HomePage() {
features={[
{
id: 1,
- title: "Save Time Daily",
- description: "Automate routine tasks and reclaim hours every week with intelligent home automation.",
- imageSrc: "http://img.b2bpic.net/free-photo/top-view-virtual-reality-headset-white-headphones_23-2148912739.jpg?_wi=2",
- },
+ title: "Save Time Daily", description: "Automate routine tasks and reclaim hours every week with intelligent home automation.", imageSrc: "http://img.b2bpic.net/free-photo/top-view-virtual-reality-headset-white-headphones_23-2148912739.jpg?_wi=2"},
{
id: 2,
- title: "Enhance Convenience",
- description: "Control everything from your smartphone or voice commands for seamless living.",
- imageSrc: "http://img.b2bpic.net/free-photo/composition-tablet-with-home-automation-app_23-2149036813.jpg?_wi=2",
- },
+ title: "Enhance Convenience", description: "Control everything from your smartphone or voice commands for seamless living.", imageSrc: "http://img.b2bpic.net/free-photo/composition-tablet-with-home-automation-app_23-2149036813.jpg?_wi=2"},
{
id: 3,
- title: "Improve Security",
- description: "Monitor and protect your home 24/7 with advanced smart security solutions.",
- imageSrc: "http://img.b2bpic.net/free-photo/female-couch-holding-her-phone-mug-sitting-front-table-with-gadgets_181624-56360.jpg?_wi=3",
- },
+ title: "Improve Security", description: "Monitor and protect your home 24/7 with advanced smart security solutions.", imageSrc: "http://img.b2bpic.net/free-photo/female-couch-holding-her-phone-mug-sitting-front-table-with-gadgets_181624-56360.jpg?_wi=3"},
{
id: 4,
- title: "Reduce Energy Costs",
- description: "Optimize energy consumption and lower your bills with intelligent climate control.",
- imageSrc: "http://img.b2bpic.net/free-photo/female-couch-holding-her-phone-mug-sitting-front-table-with-gadgets_181624-56360.jpg?_wi=4",
- },
+ title: "Reduce Energy Costs", description: "Optimize energy consumption and lower your bills with intelligent climate control.", imageSrc: "http://img.b2bpic.net/free-photo/female-couch-holding-her-phone-mug-sitting-front-table-with-gadgets_181624-56360.jpg?_wi=4"},
]}
textboxLayout="default"
useInvertedBackground={false}
@@ -201,15 +159,7 @@ export default function HomePage() {
tag="Industry Leaders"
tagIcon={Award}
names={[
- "TechFlow",
- "SmartLiving Co",
- "InnovateTech",
- "CloudSync",
- "NextGen Solutions",
- "Digital Homes",
- "Future Living",
- "Smart Innovations",
- ]}
+ "TechFlow", "SmartLiving Co", "InnovateTech", "CloudSync", "NextGen Solutions", "Digital Homes", "Future Living", "Smart Innovations"]}
textboxLayout="default"
useInvertedBackground={false}
speed={40}
@@ -221,41 +171,17 @@ export default function HomePage() {
);
-}
\ No newline at end of file
+}