-
+
- {property.description}
+ ✦
- {/* Simulating more content if description is short, or just showing description.
+ {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.
- For the purpose of "Read More", we usually need a longer text.
-
- If property.description is short, this might not look like the screenshot.
-
- Assuming property.description is the main content. */}
+ The area is well-connected to major IT hubs, schools, and hospitals, making it an ideal choice for families and professionals alike.
+ {!isConnectivityExpanded && (
-
- {!isExpanded && (
-
-
+
)}
@@ -944,13 +932,13 @@ export default function PropertyDetailClient({ property }: { property: Property
@@ -1084,13 +1072,13 @@ export default function PropertyDetailClient({ property }: { property: Property
-
+
Total Range
-
{property.price}
+
{property.price}
@@ -1108,7 +1096,7 @@ export default function PropertyDetailClient({ property }: { property: Property
-
₹ 73K - ₹ 1.82 L
+
₹ 73K - ₹ 1.82 L
diff --git a/src/components/PropertyGallery.tsx b/src/components/PropertyGallery.tsx
index 6a5361c..3eec8ca 100644
--- a/src/components/PropertyGallery.tsx
+++ b/src/components/PropertyGallery.tsx
@@ -56,7 +56,7 @@ export default function PropertyGallery({ images, title }: PropertyGalleryProps)
while (displayImages.length < 5) {
- displayImages.push("/assets/images/image.png");
+ displayImages.push("/assets/images/projects/details/barca-2.webp");
}
diff --git a/src/components/PropertyNav.tsx b/src/components/PropertyNav.tsx
index 0bb3737..fbe1de8 100644
--- a/src/components/PropertyNav.tsx
+++ b/src/components/PropertyNav.tsx
@@ -1,6 +1,6 @@
"use client";
-import { useState, useEffect } from "react";
+import { useState, useEffect, useRef } from "react";
interface PropertyNavProps {
sections: { id: string; label: string }[];
@@ -8,6 +8,7 @@ interface PropertyNavProps {
export default function PropertyNav({ sections }: PropertyNavProps) {
const [activeSection, setActiveSection] = useState(sections[0]?.id || "");
+ const navRef = useRef
(null);
useEffect(() => {
const handleScroll = () => {
@@ -29,6 +30,19 @@ export default function PropertyNav({ sections }: PropertyNavProps) {
return () => window.removeEventListener("scroll", handleScroll);
}, [sections]);
+ useEffect(() => {
+ if (activeSection && navRef.current) {
+ const activeBtn = document.getElementById(`nav-btn-${activeSection}`);
+ if (activeBtn) {
+ activeBtn.scrollIntoView({
+ behavior: 'smooth',
+ block: 'nearest',
+ inline: 'center'
+ });
+ }
+ }
+ }, [activeSection]);
+
const scrollToSection = (id: string) => {
const element = document.getElementById(id);
if (element) {
@@ -47,10 +61,11 @@ export default function PropertyNav({ sections }: PropertyNavProps) {
-