From 08a44524fdb03be1cdc05be2bb7e91f3916f5116 Mon Sep 17 00:00:00 2001 From: Aravind Date: Thu, 2 Jul 2026 10:43:29 +0530 Subject: [PATCH] how to works image fix --- src/components/home/BusinessSection.tsx | 87 +++++++++++-- src/components/home/HowItWorks.tsx | 143 +++++++++++++-------- src/components/home/HyperlocalFeatures.tsx | 105 ++------------- 3 files changed, 179 insertions(+), 156 deletions(-) diff --git a/src/components/home/BusinessSection.tsx b/src/components/home/BusinessSection.tsx index 7b136e0..eab81dc 100644 --- a/src/components/home/BusinessSection.tsx +++ b/src/components/home/BusinessSection.tsx @@ -64,6 +64,73 @@ const BENEFITS = [ }, ]; +function LocalDiscoveryVisual() { + return ( +
+ {/* Map Background (SVG) */} + + + + + + + + + + + {/* Halos around main pin */} +
+
+ + {/* Main Pin */} +
+
+
+
+
+ + {/* Other Pins */} + {[ + ["left-[15%] top-[25%]", "bg-primary", "scale-75"], + ["left-[50%] top-[15%]", "bg-primary", "scale-[0.65]"], + ["left-[22%] top-[68%]", "bg-primary", "scale-[0.70]"], + ].map(([pos, color, scale], i) => ( +
+
+
+
+
+ ))} + + {/* Store Card (Right Side) */} +
+
+ Owner +
+
+

Kumar Provision Store

+

Gandhi Nagar, West Delhi

+ +
+ Groceries + Essentials +
+ +
+ Open + + Closes 10:00 PM +
+ + +
+
+
+ ); +} + export function BusinessSection() { return (
@@ -181,14 +248,18 @@ export function BusinessSection() {
- {feature.alt} + {feature.title === "Local Discovery" ? ( + + ) : ( + {feature.alt} + )}
))} diff --git a/src/components/home/HowItWorks.tsx b/src/components/home/HowItWorks.tsx index 5ca179d..608034b 100644 --- a/src/components/home/HowItWorks.tsx +++ b/src/components/home/HowItWorks.tsx @@ -112,69 +112,110 @@ function GrowthPill() { function PhoneMapVisual() { return (
-
-
-
-
-
- 9:41 - -
+
+ + {/* REALISTIC MOBILE DEVICE FRAME */} +
+ + {/* Hardware Buttons */} +
+
+
+
-
- + {/* Inner Black Bezel */} +
+ + {/* Inner Screen */} +
+ + {/* Dynamic Island */} +
+
+
+
+
- {[ - ["left-[17%] top-[30%]", "bg-primary"], - ["right-[16%] top-[28%]", "bg-[#006D37]"], - ["left-[20%] bottom-[33%]", "bg-[#006D37]"], - ["right-[18%] bottom-[32%]", "bg-primary"], - ["right-[35%] top-[20%]", "bg-primary"], - ].map(([position, color]) => ( -
-
-
+ {/* Status Bar */} +
+ 9:41 +
+ {/* Signal */} +
+
+
+
+
+
+ {/* Wifi */} + + + + + {/* Battery */} +
+
+
- ))} - -
-
-
-
-
-
-

Your Store

-
- - - 4.8 - - Open - 0.8 km + {/* Map Visual Content */} +
+ + + {[ + ["left-[17%] top-[30%]", "bg-primary"], + ["right-[16%] top-[28%]", "bg-[#006D37]"], + ["left-[20%] bottom-[33%]", "bg-[#006D37]"], + ["right-[18%] bottom-[32%]", "bg-primary"], + ["right-[35%] top-[20%]", "bg-primary"], + ].map(([position, color]) => ( +
+
+
+
+
+ ))} + +
+
+
+
+
+
+ +
+

Your Store

+
+ + + 4.8 + + Open + 0.8 km +
-
+
Offers
-
+
Shop
diff --git a/src/components/home/HyperlocalFeatures.tsx b/src/components/home/HyperlocalFeatures.tsx index 3b04910..421039c 100644 --- a/src/components/home/HyperlocalFeatures.tsx +++ b/src/components/home/HyperlocalFeatures.tsx @@ -48,103 +48,14 @@ export function HyperlocalFeatures() { whileInView="visible" viewport={viewport} > -
-
- - -
-
- -
- - Offers Nearby -
- -
- - Open Now -
- - {[ - ["left-[31%] top-[24%]", "bg-primary", "scale-90"], - ["right-[20%] top-[22%]", "bg-[#006D37]", "scale-100"], - ["right-[13%] top-[39%]", "bg-primary", "scale-90"], - ["left-[20%] top-[52%]", "bg-primary", "scale-80"], - ["left-[37%] bottom-[31%]", "bg-[#006D37]", "scale-95"], - ["right-[31%] top-[33%]", "bg-primary", "scale-100"], - ].map(([position, color, scale]) => ( -
-
-
-
-
- ))} - -
-
-
-
-
-
-
- -
-
-
- Sri Krishna Groceries storefront -
-
-
Sri Krishna Groceries
-

Fresh Harvest & Daily Needs

-
- - - 4.8 - - - - Open Now - - 0.8 km away -
-
-
-
- -
-
- -
-
-

Order Confirmed

-

Your local store is preparing your order

-
-
- + Map Background {/* Right Column: Feature Panel directly on page background */}