From 253a7aa5d243a432ec7c31d5a890d6a324526d9d Mon Sep 17 00:00:00 2001 From: akash Date: Mon, 8 Dec 2025 23:20:50 +0530 Subject: [PATCH] Mobile responisve are fixed --- src/components/About.tsx | 18 +++- src/components/ConnectivityMap.tsx | 23 ++++- src/components/Header.tsx | 56 ++++++------ src/components/InnerBanner.tsx | 4 +- src/components/Properties.tsx | 4 +- src/components/PropertyDetailClient.tsx | 46 +++++----- src/components/Testimonials.tsx | 2 +- src/components/WhyChooseUs.tsx | 2 +- src/data/properties.ts | 116 ++++++++++++++++++++---- 9 files changed, 192 insertions(+), 79 deletions(-) diff --git a/src/components/About.tsx b/src/components/About.tsx index 11aef59..0100516 100644 --- a/src/components/About.tsx +++ b/src/components/About.tsx @@ -15,7 +15,7 @@ export default function About() { // Parallax effect: Moving the image vertically as the user scrolls // The image height is significantly larger than the container // We move from 0% (top aligned) to a negative percentage to reveal the bottom - const y = useTransform(scrollYProgress, [0, 1], ["0%", "-30%"]); + const y = useTransform(scrollYProgress, [0, 1], ["0%", "-50%"]); return (
@@ -32,7 +32,7 @@ export default function About() {
-
+
{/* Text Content */}

@@ -60,16 +60,24 @@ export default function About() { {/* Parallax Image Container */}
Where Sky Meets Soil
diff --git a/src/components/ConnectivityMap.tsx b/src/components/ConnectivityMap.tsx index 3042f67..89f5ac2 100644 --- a/src/components/ConnectivityMap.tsx +++ b/src/components/ConnectivityMap.tsx @@ -1,6 +1,6 @@ "use client"; -import { useState, useEffect, useMemo } from 'react'; +import { useState, useEffect, useMemo, useRef } from 'react'; import { MapContainer, TileLayer, Marker, Popup, useMap } from 'react-leaflet'; import L from 'leaflet'; import 'leaflet/dist/leaflet.css'; @@ -130,6 +130,24 @@ function ZoomHandler({ zoomIn, zoomOut }: { zoomIn: () => void, zoomOut: () => v export default function ConnectivityMap() { const [activeTab, setActiveTab] = useState("Commute"); + const tabsRef = useRef(null); + + useEffect(() => { + if (activeTab && tabsRef.current) { + const activeBtn = document.getElementById(`connectivity-tab-${activeTab}`); + if (activeBtn) { + const container = tabsRef.current; + const activeBtnRect = activeBtn.getBoundingClientRect(); + const containerRect = container.getBoundingClientRect(); + const scrollLeft = container.scrollLeft + (activeBtnRect.left - containerRect.left) - (container.offsetWidth / 2) + (activeBtn.offsetWidth / 2); + + container.scrollTo({ + left: scrollLeft, + behavior: "smooth" + }); + } + } + }, [activeTab]); const [searchQuery, setSearchQuery] = useState(""); const [mapZoom, setMapZoom] = useState(13); const [mapRef, setMapRef] = useState(null); @@ -159,10 +177,11 @@ export default function ConnectivityMap() { return (
{/* Tabs */} -
+
{["Commute", "Education", "Hospitals", "Work", "Entertainment", "Search"].map((tab) => ( -
-
- - ); - } + // if (!mounted) { + // return ( + //
+ //
+ // + //
+ // Sky and Soil Logo + //
+ // + //
+ // + //
+ //
+ //
+ // ); + // } const isLight = resolvedTheme === "light"; @@ -67,6 +68,7 @@ export default function Header() { alt="Sky and Soil Logo" fill className="object-contain" + priority />
{/* +
{/* Background Image */}
0 && (
-

See {property.title} brochure

+

{property.brochureCard?.title || `See ${property.title} brochure`}

-

Beware, beautiful brochures don't show hidden realities

+

{property.brochureCard?.description || "Download the detailed brochure"}

@@ -891,7 +891,7 @@ export default function PropertyDetailClient({ property }: { property: Property

Pricing

-

Last updated on 03 Nov 2025

+

Last updated on {property.pricingUpdateDate || "Recently"}

@@ -947,7 +947,7 @@ export default function PropertyDetailClient({ property }: { property: Property

- + {property.connectivity?.description || `${property.title} is located in ${property.location}.`}

@@ -963,7 +963,7 @@ export default function PropertyDetailClient({ property }: { property: Property onClick={() => setIsConnectivityExpanded(!isConnectivityExpanded)} - className="text-orange-500 font-medium hover:text-orange-600 transition-colors mt-2 text-sm underline" + className="text-blue-500 font-medium hover:text-blue-600 transition-colors mt-2 text-sm underline" > @@ -999,9 +999,9 @@ export default function PropertyDetailClient({ property }: { property: Property
- +
@@ -1071,17 +1071,17 @@ export default function PropertyDetailClient({ property }: { property: Property - {/* Propsoch Clarity Engine Section */} + {/* Sky & Soil Clarity Engine Section */}
-

The Propsoch Clarity Engine

+

The Sky & Soil Clarity Engine

- 300+ families found safer homes with Propsoch. You could be next + 300+ families found safer homes with Sky & Soil. You could be next ☝️ @@ -1154,7 +1154,7 @@ export default function PropertyDetailClient({ property }: { property: Property {/* Trusted Badge */}

- TRUSTED BY {property.propsochClarity?.familiesHelped || "300+"} FAMILIES + TRUSTED BY {property.skyandsoilClarity?.familiesHelped || "300+"} FAMILIES WITH SKY & SOIL
diff --git a/src/components/Testimonials.tsx b/src/components/Testimonials.tsx index 69763eb..e4f4553 100644 --- a/src/components/Testimonials.tsx +++ b/src/components/Testimonials.tsx @@ -126,7 +126,7 @@ export default function Testimonials() { {testimonials.map((item, index) => (
{/* Header with Avatar and Info */} diff --git a/src/components/WhyChooseUs.tsx b/src/components/WhyChooseUs.tsx index 8001a76..9705046 100644 --- a/src/components/WhyChooseUs.tsx +++ b/src/components/WhyChooseUs.tsx @@ -87,7 +87,7 @@ export default function WhyChooseUs() {

-
+
{features.map((feature, index) => (
; }; @@ -152,9 +166,23 @@ export const properties: Property[] = [ parkArea: "22.5 Acres", landType: "Residential" }, - propsochClarity: { + skyandsoilClarity: { familiesHelped: "300+", }, + pricingUpdateDate: "03 Nov 2025", + reraInfo: { + isApproved: true, + approvalDate: "Nov 2024" + }, + brochureCard: { + title: "See BARCA at Godrej MSR City brochure", + description: "Beware, beautiful brochures don't show hidden realities" + }, + prosConsCard: { + title: "See the truth beyond the brochures", + description: "See every risk & potential clearly with our experts", + buttonText: "Get Pros & Cons" + }, floorPlans: [ { id: "30 x 40", price: "₹1.24 Crores", area: "1200 sqft", direction: "North West, South East, North" }, { id: "30 x 50", price: "₹1.55 Crores", area: "1500 sqft", direction: "North West, South East, East, West" }, @@ -238,10 +266,10 @@ export const properties: Property[] = [ { question: "What is Service Guided Home Buying (GHB) and Peace of Mind (POM) service?", answer: "Service Guided Home Buying (GHB) and Peace of Mind (POM) service provide end-to-end assistance in your home buying journey, ensuring a hassle-free and transparent experience from selection to possession." }, { question: "Why should I get an advisor to help me buy a property?", answer: "An advisor acts as your unbiased partner, helping you navigate the complex real estate market, verify documents, negotiate prices, and avoid common pitfalls." }, { question: "Which type of properties do you help with?", answer: "We assist with all types of residential properties including apartments, villas, plots, and gated communities across various budget segments." }, - { question: "Can I buy homes via Propsoch?", answer: "Yes, you can explore, shortlist, and book homes directly through Propsoch with the help of our expert advisors." }, + { question: "Can I buy homes via Sky and Soil?", answer: "Yes, you can explore, shortlist, and book homes directly through Sky and Soil with the help of our expert advisors." }, { question: "How do I know I am seeing all possible options in the market?", answer: "Our database covers 99% of the market inventory, and our advisors provide unbiased recommendations based on your specific requirements, not just what we want to sell." }, { question: "How can I be assured that I am paying the right price?", answer: "We provide data-backed market analysis and comparative pricing reports to ensure you get the best value for your investment." }, - { question: "What other services can Propsoch help me with after booking?", answer: "Post-booking, we assist with legal verification, loan processing, registration, and even interior design and property management services." }, + { question: "What other services can Sky & Soil help me with after booking?", answer: "Post-booking, we assist with legal verification, loan processing, registration, and even interior design and property management services." }, { question: "What is the cost of the services?", answer: "Our basic advisory services are free for home buyers. We charge a nominal fee only for premium services like legal verification and dedicated relationship management." }, ] } @@ -293,9 +321,23 @@ export const properties: Property[] = [ parkArea: "19.2 Acres", landType: "Residential" }, - propsochClarity: { + skyandsoilClarity: { familiesHelped: "300+", }, + pricingUpdateDate: "15 Oct 2025", + reraInfo: { + isApproved: true, + approvalDate: "Aug 2024" + }, + brochureCard: { + title: "See Godrej Woods brochure", + description: "Download detailed brochure to explore forest-themed living" + }, + prosConsCard: { + title: "Forest living insights from experts", + description: "Discover every aspect of forest-themed community lifestyle", + buttonText: "Get Expert Analysis" + }, floorPlans: [ { id: "30 x 40", price: "₹1.24 Crores", area: "1200 sqft", direction: "North West, South East, North" }, { id: "30 x 50", price: "₹1.55 Crores", area: "1500 sqft", direction: "North West, South East, East, West" }, @@ -379,10 +421,10 @@ export const properties: Property[] = [ { question: "What is Service Guided Home Buying (GHB) and Peace of Mind (POM) service?", answer: "Service Guided Home Buying (GHB) and Peace of Mind (POM) service provide end-to-end assistance in your home buying journey, ensuring a hassle-free and transparent experience from selection to possession." }, { question: "Why should I get an advisor to help me buy a property?", answer: "An advisor acts as your unbiased partner, helping you navigate the complex real estate market, verify documents, negotiate prices, and avoid common pitfalls." }, { question: "Which type of properties do you help with?", answer: "We assist with all types of residential properties including apartments, villas, plots, and gated communities across various budget segments." }, - { question: "Can I buy homes via Propsoch?", answer: "Yes, you can explore, shortlist, and book homes directly through Propsoch with the help of our expert advisors." }, + { question: "Can I buy homes via Sky and Soil?", answer: "Yes, you can explore, shortlist, and book homes directly through Sky and Soil with the help of our expert advisors." }, { question: "How do I know I am seeing all possible options in the market?", answer: "Our database covers 99% of the market inventory, and our advisors provide unbiased recommendations based on your specific requirements, not just what we want to sell." }, { question: "How can I be assured that I am paying the right price?", answer: "We provide data-backed market analysis and comparative pricing reports to ensure you get the best value for your investment." }, - { question: "What other services can Propsoch help me with after booking?", answer: "Post-booking, we assist with legal verification, loan processing, registration, and even interior design and property management services." }, + { question: "What other services can Sky & Soil help me with after booking?", answer: "Post-booking, we assist with legal verification, loan processing, registration, and even interior design and property management services." }, { question: "What is the cost of the services?", answer: "Our basic advisory services are free for home buyers. We charge a nominal fee only for premium services like legal verification and dedicated relationship management." }, ] } @@ -431,9 +473,23 @@ export const properties: Property[] = [ parkArea: "12.6 Acres", landType: "Residential" }, - propsochClarity: { + skyandsoilClarity: { familiesHelped: "300+", }, + pricingUpdateDate: "20 Oct 2025", + reraInfo: { + isApproved: true, + approvalDate: "Sep 2024" + }, + brochureCard: { + title: "See Godrej Hoskote brochure", + description: "Get comprehensive details about community living at Hoskote" + }, + prosConsCard: { + title: "Community living clarity", + description: "Get detailed pros & cons analysis for this location", + buttonText: "View Analysis" + }, floorPlans: [ { id: "30 x 40", price: "₹1.24 Crores", area: "1200 sqft", direction: "North West, South East, North" }, { id: "30 x 50", price: "₹1.55 Crores", area: "1500 sqft", direction: "North West, South East, East, West" }, @@ -517,10 +573,10 @@ export const properties: Property[] = [ { question: "What is Service Guided Home Buying (GHB) and Peace of Mind (POM) service?", answer: "Service Guided Home Buying (GHB) and Peace of Mind (POM) service provide end-to-end assistance in your home buying journey, ensuring a hassle-free and transparent experience from selection to possession." }, { question: "Why should I get an advisor to help me buy a property?", answer: "An advisor acts as your unbiased partner, helping you navigate the complex real estate market, verify documents, negotiate prices, and avoid common pitfalls." }, { question: "Which type of properties do you help with?", answer: "We assist with all types of residential properties including apartments, villas, plots, and gated communities across various budget segments." }, - { question: "Can I buy homes via Propsoch?", answer: "Yes, you can explore, shortlist, and book homes directly through Propsoch with the help of our expert advisors." }, + { question: "Can I buy homes via Sky and Soil?", answer: "Yes, you can explore, shortlist, and book homes directly through Sky and Soil with the help of our expert advisors." }, { question: "How do I know I am seeing all possible options in the market?", answer: "Our database covers 99% of the market inventory, and our advisors provide unbiased recommendations based on your specific requirements, not just what we want to sell." }, { question: "How can I be assured that I am paying the right price?", answer: "We provide data-backed market analysis and comparative pricing reports to ensure you get the best value for your investment." }, - { question: "What other services can Propsoch help me with after booking?", answer: "Post-booking, we assist with legal verification, loan processing, registration, and even interior design and property management services." }, + { question: "What other services can Sky & Soil help me with after booking?", answer: "Post-booking, we assist with legal verification, loan processing, registration, and even interior design and property management services." }, { question: "What is the cost of the services?", answer: "Our basic advisory services are free for home buyers. We charge a nominal fee only for premium services like legal verification and dedicated relationship management." }, ] } @@ -569,9 +625,23 @@ export const properties: Property[] = [ parkArea: "25.2 Acres", landType: "Residential" }, - propsochClarity: { + skyandsoilClarity: { familiesHelped: "300+", }, + pricingUpdateDate: "25 Oct 2025", + reraInfo: { + isApproved: true, + approvalDate: "Jul 2024" + }, + brochureCard: { + title: "See Godrej Lakeside Orchard brochure", + description: "Explore luxury lakeside living with our detailed brochure" + }, + prosConsCard: { + title: "Lakeside living insights", + description: "Expert analysis of luxury lakefront lifestyle & amenities", + buttonText: "Get Insights" + }, floorPlans: [ { id: "30 x 40", price: "₹1.24 Crores", area: "1200 sqft", direction: "North West, South East, North" }, { id: "30 x 50", price: "₹1.55 Crores", area: "1500 sqft", direction: "North West, South East, East, West" }, @@ -655,10 +725,10 @@ export const properties: Property[] = [ { question: "What is Service Guided Home Buying (GHB) and Peace of Mind (POM) service?", answer: "Service Guided Home Buying (GHB) and Peace of Mind (POM) service provide end-to-end assistance in your home buying journey, ensuring a hassle-free and transparent experience from selection to possession." }, { question: "Why should I get an advisor to help me buy a property?", answer: "An advisor acts as your unbiased partner, helping you navigate the complex real estate market, verify documents, negotiate prices, and avoid common pitfalls." }, { question: "Which type of properties do you help with?", answer: "We assist with all types of residential properties including apartments, villas, plots, and gated communities across various budget segments." }, - { question: "Can I buy homes via Propsoch?", answer: "Yes, you can explore, shortlist, and book homes directly through Propsoch with the help of our expert advisors." }, + { question: "Can I buy homes via Sky and Soil?", answer: "Yes, you can explore, shortlist, and book homes directly through Sky and Soil with the help of our expert advisors." }, { question: "How do I know I am seeing all possible options in the market?", answer: "Our database covers 99% of the market inventory, and our advisors provide unbiased recommendations based on your specific requirements, not just what we want to sell." }, { question: "How can I be assured that I am paying the right price?", answer: "We provide data-backed market analysis and comparative pricing reports to ensure you get the best value for your investment." }, - { question: "What other services can Propsoch help me with after booking?", answer: "Post-booking, we assist with legal verification, loan processing, registration, and even interior design and property management services." }, + { question: "What other services can Sky & Soil help me with after booking?", answer: "Post-booking, we assist with legal verification, loan processing, registration, and even interior design and property management services." }, { question: "What is the cost of the services?", answer: "Our basic advisory services are free for home buyers. We charge a nominal fee only for premium services like legal verification and dedicated relationship management." }, ] } @@ -707,9 +777,23 @@ export const properties: Property[] = [ parkArea: "6.8 Acres", landType: "Residential" }, - propsochClarity: { + skyandsoilClarity: { familiesHelped: "300+", }, + pricingUpdateDate: "01 Nov 2025", + reraInfo: { + isApproved: true, + approvalDate: "Oct 2024" + }, + brochureCard: { + title: "See Godrej Tiara brochure", + description: "Discover exclusive luxury apartments with panoramic city views" + }, + prosConsCard: { + title: "Premium living analysis", + description: "Get expert evaluation of this exclusive luxury development", + buttonText: "Get Premium Analysis" + }, floorPlans: [ { id: "30 x 40", price: "₹1.24 Crores", area: "1200 sqft", direction: "North West, South East, North" }, { id: "30 x 50", price: "₹1.55 Crores", area: "1500 sqft", direction: "North West, South East, East, West" }, @@ -793,10 +877,10 @@ export const properties: Property[] = [ { question: "What is Service Guided Home Buying (GHB) and Peace of Mind (POM) service?", answer: "Service Guided Home Buying (GHB) and Peace of Mind (POM) service provide end-to-end assistance in your home buying journey, ensuring a hassle-free and transparent experience from selection to possession." }, { question: "Why should I get an advisor to help me buy a property?", answer: "An advisor acts as your unbiased partner, helping you navigate the complex real estate market, verify documents, negotiate prices, and avoid common pitfalls." }, { question: "Which type of properties do you help with?", answer: "We assist with all types of residential properties including apartments, villas, plots, and gated communities across various budget segments." }, - { question: "Can I buy homes via Propsoch?", answer: "Yes, you can explore, shortlist, and book homes directly through Propsoch with the help of our expert advisors." }, + { question: "Can I buy homes via Sky and Soil?", answer: "Yes, you can explore, shortlist, and book homes directly through Sky and Soil with the help of our expert advisors." }, { question: "How do I know I am seeing all possible options in the market?", answer: "Our database covers 99% of the market inventory, and our advisors provide unbiased recommendations based on your specific requirements, not just what we want to sell." }, { question: "How can I be assured that I am paying the right price?", answer: "We provide data-backed market analysis and comparative pricing reports to ensure you get the best value for your investment." }, - { question: "What other services can Propsoch help me with after booking?", answer: "Post-booking, we assist with legal verification, loan processing, registration, and even interior design and property management services." }, + { question: "What other services can Sky & Soil help me with after booking?", answer: "Post-booking, we assist with legal verification, loan processing, registration, and even interior design and property management services." }, { question: "What is the cost of the services?", answer: "Our basic advisory services are free for home buyers. We charge a nominal fee only for premium services like legal verification and dedicated relationship management." }, ] }