From 2a9404d1e50a8513f8556a3f744729c24391748e Mon Sep 17 00:00:00 2001 From: akash Date: Fri, 5 Dec 2025 23:20:44 +0530 Subject: [PATCH] Map integration updated --- src/components/CompareBar.tsx | 2 +- src/components/Header.tsx | 2 +- src/components/PropertyCard.tsx | 32 +- src/components/PropertyDetailClient.tsx | 1645 +++++++++++++++++++++-- src/components/PropertyGallery.tsx | 190 ++- src/components/PropertyNav.tsx | 2 +- 6 files changed, 1767 insertions(+), 106 deletions(-) diff --git a/src/components/CompareBar.tsx b/src/components/CompareBar.tsx index cae3df4..ada80f4 100644 --- a/src/components/CompareBar.tsx +++ b/src/components/CompareBar.tsx @@ -21,7 +21,7 @@ export default function CompareBar() { Compare Properties ({compareList.length}/4) -
+
{compareList.map((property) => (
diff --git a/src/components/Header.tsx b/src/components/Header.tsx index 1fc7236..48bf8c0 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -21,7 +21,7 @@ export default function Header() { return ( <>
{property.status}
@@ -98,14 +98,26 @@ export default function PropertyCard({ property }: PropertyCardProps) { +
+ + {/* Info Cards Grid */} +
+ {/* RERA Card */} +
+
+ + + +
+ + + +
+
+

{property.title} is approved by RERA

+

It was approved on Nov 2024

+ +
+ + {/* Brochure Card */} +
+
+ + + + +
+

See {property.title} brochure

+

Beware, beautiful brochures don't show hidden realities

+ +
+ + {/* Pros & Cons Card */} +
+
+ + + +
+ + + + +
+
+

See the truth beyond the brochures

+

See every risk & potential clearly with our experts

+ +
+
+ + + {/* Pricing Section - Moved and Redesigned */} +
+

Pricing

+

Last updated on 03 Nov 2025

+ +
+
+
Total Range
+
{property.price}
+
+
+
+ Monthly EMI + + + +
+
₹ 73K - ₹ 1.82 L
+
+
+
+ Project's Avg. + + + +
+
₹ 10326 psft.
+
+
+
+ Market Avg. + + + +
+
₹ 9700 psft.
+
+
+
+ + {/* Connectivity Section (Formerly Location) */} +
+

Connectivity

+

{property.title}

+ +
+
+

+ + {property.title} is located in {property.location}. In its vicinity, the closest metro is Dommasandra Circle Metro Station. It takes approximately 84 mins to reach the Kempegowda Airport from this property. + The area is well-connected to major IT hubs, schools, and hospitals, making it an ideal choice for families and professionals alike. +

+ {!isConnectivityExpanded && ( +
+ )} +
+ +
+ + {/* Map Interface */} + +
+ + {/* Master Plan Section */} +
+
+
+

Master Plan

+

+ {property.title} is a plotted development with 658 plots. +

+
+ +
+ + {/* Master Plan Image */} +
setIsLightboxOpen(true)} + > + Master Plan +
+ + Click to zoom + +
+
+ + {/* Stats Grid */} +
+
+
Total Units
+
658
+
+
+
Water Source
+
+ Borewells + +1 +
+
+
+
Park Area
+
8.00 Acres
+
+
+
Land type
+
Agricultural
+
+
+
+ + {/* Propsoch Clarity Engine Section */} +
+
+

The Propsoch Clarity Engine

+

+ 300+ families found safer homes with Propsoch. You could be next + ☝️ +

+
+ +
+ {/* Card 1: Compare */} +
+ {/* Decorative Circle */} +
+ +
+ {/* House Icon Placeholder - Using SVG for 3D feel */} + + + + + + +
+ +

Like this project?

+

Compare it with the rest

+ +

+ Compare 2 properties side by side on 40+ parameters like connectivity, layout, price, specs and more +

+ + +
+ + {/* Card 2: Negotiate (Green) */} +
+ {/* Trusted Badge */} +
+ TRUSTED BY 300+ FAMILIES +
+ + {/* Sparkles */} +
+ +
+ +
+ {/* Trophy Icon */} + + + + +
+ +

Pay less. Get more.

+

Let us negotiate for you.

+ +

+ Get a free Peace of Mind report, solid negotiations & a loyalty reward up to ₹3.29 Lakhs when you work with us +

+ + +
+ + {/* Card 3: Report (Purple) */} +
+ {/* Decorative Triangle */} +
+ +
+ {/* Report Icon */} + + + + + + +
+ +

Almost convinced?

+

See what we uncovered

+ +

+ Ideal if you've already visited and close to deciding. Our Peace of Mind report shows you what builders won't. +

+ + +
+
+
+ + {/* Floor Plans Section */} +
+

Floor Plans

+

+ {property.title} has plots ranging from 1200 sqft to 3000 sqft. +

+ + {/* Tabs */} +
+
+ {floorPlans.map((plan) => ( + + ))} +
+
- - +
+
+ + {/* Active Plan Details Card */} +
+
+
+

{activePlanDetails.id}

+ {activePlanDetails.price} +
+ +
+
Saleable Area
+
{activePlanDetails.area}
+
+ +
+
Direction(s)
+
{activePlanDetails.direction}
+
+
+
+
+ + {/* Amenities Section */} +
+

Amenities

+

{property.title}

+ +
+ {/* Lifestyle */} +
+

Lifestyle Amenities

+
    + {amenitiesData.Lifestyle.map((item, idx) => ( +
  • +
    + {item.icon} +
    + + {item.name} + +
  • + ))} +
+
+ + {/* Sports */} +
+

Sports Amenities

+
    + {amenitiesData.Sports.map((item, idx) => ( +
  • +
    + {item.icon} +
    + + {item.name} + +
  • + ))} +
+
+ + {/* Natural */} +
+

Natural Amenities

+
    + {amenitiesData.Natural.map((item, idx) => ( +
  • +
    + {item.icon} +
    + + {item.name} + +
  • + ))} +
+
+
+ + +
+ + + {/* Approvals Section */} +
+

Approvals

+

+ {property.title} by Modern Spaaces has received 4 out of 4 important approvals as per RERA +

+ + {/* Approvals List - Two Columns */} +
+ {/* Left Column */} +
+
+ + + +
+
+

Approved by BBMP

+ +
+
+ + {/* Right Column */} +
+
+ + + +
+
+

Approved by BDA

+ +
+
+ + {/* Left Column */} +
+
+ + + +
+
+

Approved by BWSSB

+
+
+ + {/* Right Column */} +
+
+ + + +
+
+

Approved by MOEF

+ +
+
+
+ + {/* Documents Subsection */} +

Documents

+

+ Curated documents from various sources for {property.title} by Modern Spaaces +

+ +
+ {/* City Development Plan */} +
+
+ + + +
+
+ + + +
+

City Development Plan

+

+ Used to identify land types, sensitive zones/flood risks, future developments etc. +

+ +
+ + + + {/* Legal Opinion */} +
+
+ + + +
+
+ + + +
+

Legal Opinion

+

+ Used to only declare any litigations by the builder. Do NOT mistake for a clean title. +

+ +
+ + + {/* Development Rights */} +
+
+ + + +
+
+ + + +
+

Development Rights

+

+ Outlines the agreed terms of development between the land owner & the builder +

+ +
+
+
+ + {/* About the Builder Section */} +
+

About the builder

+

Modern Spaaces

+ +
+
+

+ Established in 2012, Modern Spaces focuses on delivering thoughtfully designed residential and commercial developments. With over 1 million sq. ft. completed, the company caters to mid-segment and premium buyers in Bengaluru. Key projects like Modern Greens, Modern Heights, and Modern Meadows are recognized for their innovative layouts and contemporary features. Modern Spaces integrates green practices such as energy-efficient construction and landscaped open spaces into its developments. Known for timely delivery and quality construction, Modern Spaces continues to serve Bengaluru's growing real estate market. +

+ + See all properties by Modern Spaaces + +
+
+
+

Established On

+

2012

+
+
+

Completed Projects

+

No Data

+
+
+
+
+ + + + {/* Locality Section */} +
+

Locality

+

Varthur

+ + {/* Large Image */} +
+ Varthur Locality +
+

Varthur

+
+
+ +

+ Varthur, located in East Bengaluru, is an upcoming residential locality that offers a serene living environment. The area is gaining popularity due to its proximity to tech parks and educational institutions. +

+ + {/* Gauges */} +
+ {/* Developing */} +
+
+
+
+
+
+

Developing

+

Living Experience

+
+ + {/* Medium */} +
+
+
+
+
+
+

Medium

+

Investment Potential

+
+ + {/* Moderate */} +
+
+
+
+
+
+

Moderate

+

Price Range

+
+ +
+ {/* Checkout Nearby Properties Section */} +
+

Checkout Nearby Properties

+

+ See properties similar to {property.title} by Modern Spaaces in the same neighbourhood +

+ +
+ {/* Property 1 */} +
+
+ Prestige Raintree Park +
+

Prestige Raintree Park

+

3.07 Crores - 5.67 Crores

+

Varthur

+ +
+ + {/* Property 2 */} +
+
+ Adarsh Park Heights +
+

Adarsh Park Heights

+

1.63 Crores - 2.32 Crores

+

Varthur

+ +
+ + {/* Property 3 */} +
+
+ Tru Aquapolis +
+

Tru Aquapolis

+

2.22 Crores - 3.51 Crores

+

Varthur

+ +
+
+ + + See all properties in Varthur + +
+
@@ -1175,269 +2381,550 @@ export default function PropertyDetailClient({ property }: { property: Property + + + + + + + {/* FAQ Section */} +
+

Frequently Asked Questions

+

+ 99% of your queries should get answered here, for others, you can always talk to us +

+ + {/* Tabs */} +
+ {['Project Details', 'Location & Connectivity', 'Price & Booking', 'Services'].map((tab) => ( + + ))} +
+ + + + {/* Accordion List */} +
+ {faqData[activeFaqTab]?.map((item, index) => ( +
+ + {expandedFaq === index && ( +
+ {item.answer} +
+ )} +
+ ))} +
+
+ +
+ + {/* Sidebar */} +
+
+ {/* Contact Form */} +
+

Get in Touch

+ + {alert.show && ( +
+ {alert.message} +
+ )} + +
+
+ + {formErrors.name && {formErrors.name}} +
+
+ + {formErrors.email && {formErrors.email}} +
+
+ + {formErrors.phone && {formErrors.phone}} +
+