,
+ title: "Quick Contact",
+ details: ["+91-95388-34444"],
+ type: "phone"
+ },
+ {
+ icon:
,
+ title: "Email Address",
+ details: ["support@skyandsoil.com"],
+ type: "email"
+ },
+ {
+ icon:
,
+ title: "Mailing Address",
+ details: [
+ "HSR Layout, Bengaluru, Karnataka 560102"
+ ],
+ type: "address"
+ }
+ ];
+
+ return (
+
+
+ {cards.map((card, index) => (
+
+
+ {card.icon}
+
+
+
+ {card.title}
+
+
+
+ {card.details.map((line, i) => (
+
+ {line}
+
+ ))}
+
+
+ ))}
+
+
+ );
+}
diff --git a/src/components/HeaderWrapper.tsx b/src/components/HeaderWrapper.tsx
index fb2fca6..030e431 100644
--- a/src/components/HeaderWrapper.tsx
+++ b/src/components/HeaderWrapper.tsx
@@ -1,6 +1,15 @@
"use client";
+import { useEffect, useState } from "react";
import Header from "./Header";
export default function HeaderWrapper() {
+ const [mounted, setMounted] = useState(false);
+
+ useEffect(() => {
+ setMounted(true);
+ }, []);
+
+ if (!mounted) return null;
+
return
;
}
diff --git a/src/components/PropertiesClient.tsx b/src/components/PropertiesClient.tsx
index 0eeb076..7b480a7 100644
--- a/src/components/PropertiesClient.tsx
+++ b/src/components/PropertiesClient.tsx
@@ -12,9 +12,18 @@ import { motion } from "framer-motion";
interface PropertiesClientProps {
initialFilters?: Partial
;
headerRenderer?: (props: { filteredCount: number; totalCount: number }) => React.ReactNode;
+ bannerTitle?: string;
+ bannerSubtitle?: string;
+ bannerBackgroundImage?: string;
}
-export default function PropertiesClient({ initialFilters, headerRenderer }: PropertiesClientProps = {}) {
+export default function PropertiesClient({
+ initialFilters,
+ headerRenderer,
+ bannerTitle = "Our Properties",
+ bannerSubtitle = "Discover your dream home from our exclusive collection of premium properties",
+ bannerBackgroundImage = "/assets/images/projects/projects-banner.webp"
+}: PropertiesClientProps = {}) {
const searchParams = useSearchParams();
const [filteredProperties, setFilteredProperties] = useState(properties);
const [initializedFilters, setInitializedFilters] = useState | undefined>(undefined);
@@ -106,13 +115,13 @@ export default function PropertiesClient({ initialFilters, headerRenderer }: Pro
diff --git a/src/context/CompareContext.tsx b/src/context/CompareContext.tsx
index 99363e3..aa3628f 100644
--- a/src/context/CompareContext.tsx
+++ b/src/context/CompareContext.tsx
@@ -15,6 +15,7 @@ const CompareContext = createContext
(undefined);
export function CompareProvider({ children }: { children: React.ReactNode }) {
const [compareList, setCompareList] = useState([]);
+ const [isLoaded, setIsLoaded] = useState(false);
// Load from localStorage on mount
useEffect(() => {
@@ -26,12 +27,15 @@ export function CompareProvider({ children }: { children: React.ReactNode }) {
console.error("Failed to load compare list:", e);
}
}
+ setIsLoaded(true);
}, []);
- // Save to localStorage whenever compareList changes
+ // Save to localStorage whenever compareList changes, but ONLY after initial load
useEffect(() => {
- localStorage.setItem("compareProperties", JSON.stringify(compareList));
- }, [compareList]);
+ if (isLoaded) {
+ localStorage.setItem("compareProperties", JSON.stringify(compareList));
+ }
+ }, [compareList, isLoaded]);
const addToCompare = (property: Property) => {
if (compareList.length >= 4) {
diff --git a/src/data/properties.ts b/src/data/properties.ts
index abbe698..af152b8 100644
--- a/src/data/properties.ts
+++ b/src/data/properties.ts
@@ -360,10 +360,10 @@ export const properties: Property[] = [
{ title: "Development Rights", description: "Outlines the agreed terms of development between the land owner & the builder" },
],
builder: {
- name: "Modern Spaaces",
- description: "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.",
- establishedYear: "2012",
- completedProjects: "No Data",
+ name: "Godrej Properties",
+ description: "Godrej Properties brings the Godrej Group philosophy of innovation, sustainability, and excellence to the real estate industry. Each Godrej Properties development combines a 122-year legacy of excellence and trust with a commitment to cutting-edge design and technology.",
+ establishedYear: "1990",
+ completedProjects: "80+",
},
locality: {
name: "Varthur",
@@ -666,10 +666,10 @@ export const properties: Property[] = [
{ title: "Development Rights", description: "Outlines the agreed terms of development between the land owner & the builder" },
],
builder: {
- name: "Modern Spaaces",
- description: "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.",
- establishedYear: "2012",
- completedProjects: "No Data",
+ name: "Godrej Properties",
+ description: "Godrej Properties brings the Godrej Group philosophy of innovation, sustainability, and excellence to the real estate industry. Each Godrej Properties development combines a 122-year legacy of excellence and trust with a commitment to cutting-edge design and technology.",
+ establishedYear: "1990",
+ completedProjects: "80+",
},
locality: {
name: "Varthur",
@@ -819,10 +819,10 @@ export const properties: Property[] = [
{ title: "Development Rights", description: "Outlines the agreed terms of development between the land owner & the builder" },
],
builder: {
- name: "Modern Spaaces",
- description: "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.",
- establishedYear: "2012",
- completedProjects: "No Data",
+ name: "Godrej Properties",
+ description: "Godrej Properties brings the Godrej Group philosophy of innovation, sustainability, and excellence to the real estate industry. Each Godrej Properties development combines a 122-year legacy of excellence and trust with a commitment to cutting-edge design and technology.",
+ establishedYear: "1990",
+ completedProjects: "80+",
},
locality: {
name: "Varthur",