From 114faaaefdfd90c69e6c90f6f1cae87e065cf008 Mon Sep 17 00:00:00 2001 From: bender Date: Sun, 8 Mar 2026 15:07:05 +0000 Subject: [PATCH] Update src/app/page.tsx --- src/app/page.tsx | 192 +++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 185 insertions(+), 7 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 8ec77d0..204eff4 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -10,9 +10,103 @@ import TestimonialCardFifteen from '@/components/sections/testimonial/Testimonia import TextSplitAbout from '@/components/sections/about/TextSplitAbout'; import ContactCTA from '@/components/sections/contact/ContactCTA'; import FooterBaseCard from '@/components/sections/footer/FooterBaseCard'; +import MetricCardTen from '@/components/sections/metrics/MetricCardTen'; import { MapPin } from 'lucide-react'; +import { useState } from 'react'; export default function LandingPage() { + const [activeCity, setActiveCity] = useState('bhuj'); + + const cityData = { + bhuj: { + name: 'Bhuj, Gujarat', + metrics: [ + { + id: '1', + title: 'Main Store', + subtitle: 'Bhuj City Center · Dine-in & Delivery', + category: 'Est. Location', + value: 'Open Daily', + buttons: [{ text: 'Get Directions', href: 'https://maps.google.com/?q=6MP3+G6+Bhuj,+Gujarat' }] + }, + { + id: '2', + title: 'University Campus', + subtitle: 'Near SVNIT Campus · Student Favorite', + category: 'Popular Spot', + value: '9AM-11PM', + buttons: [{ text: 'Visit Now', href: 'tel:09920997568' }] + }, + { + id: '3', + title: 'Weekend Hub', + subtitle: 'Mandvi Gate · Perfect for Groups', + category: 'Hangout Zone', + value: '11AM-12AM', + buttons: [{ text: 'Call Ahead', href: 'tel:09920997568' }] + } + ] + }, + ahmedabad: { + name: 'Ahmedabad', + metrics: [ + { + id: '1', + title: 'Premium Outlet', + subtitle: 'CG Road · High-End Location', + category: 'Premium', + value: '10AM-10PM', + buttons: [{ text: 'Get Directions', href: 'https://maps.google.com/?q=ahmedabad+cg+road' }] + }, + { + id: '2', + title: 'College Point', + subtitle: 'Near CEPT Campus · Student Zone', + category: 'College Hub', + value: '9AM-11PM', + buttons: [{ text: 'Visit Now', href: 'tel:09920997568' }] + }, + { + id: '3', + title: 'South City', + subtitle: 'Thaltej · Modern Setup', + category: 'New Branch', + value: '10AM-12AM', + buttons: [{ text: 'Call Ahead', href: 'tel:09920997568' }] + } + ] + }, + gandhinagar: { + name: 'Gandhinagar', + metrics: [ + { + id: '1', + title: 'City Center', + subtitle: 'Main Road · Family Friendly', + category: 'Family Zone', + value: 'Open Daily', + buttons: [{ text: 'Get Directions', href: 'https://maps.google.com/?q=gandhinagar+main+road' }] + }, + { + id: '2', + title: 'Tech Park Branch', + subtitle: 'Infopark · Corporate Area', + category: 'Business District', + value: '9AM-9PM', + buttons: [{ text: 'Visit Now', href: 'tel:09920997568' }] + }, + { + id: '3', + title: 'Entertainment Zone', + subtitle: 'Mall Area · Shopping Hub', + category: 'Retail Zone', + value: '10AM-11PM', + buttons: [{ text: 'Call Ahead', href: 'tel:09920997568' }] + } + ] + } + }; + return ( +
+
+
+ {/* Header */} +
+
+ Store Locator +
+

Visit Size Zero Cafe

+

Discover our locations across cities with unique vibes and authentic cafe culture. Find the perfect spot near you.

+
+ + {/* City Tabs */} +
+ {Object.entries(cityData).map(([key, value]) => ( + + ))} +
+ + {/* Locations Grid */} +
+ +
+ + {/* Map Visualization (3D Effect) */} +
+ {cityData[activeCity as keyof typeof cityData].metrics.map((location, idx) => ( +
+ {/* 3D Background Effect */} +
+ +
+
+ + {location.category} +
+

{location.title}

+

{location.subtitle}

+
+ {location.value} +
+
+ {location.buttons?.map((btn, btnIdx) => ( + + {btn.text} + + ))} +
+
+
+ ))} +
+
+
+
+