diff --git a/src/components/PropertyDetailClient.tsx b/src/components/PropertyDetailClient.tsx index 3d58a13..96a7548 100644 --- a/src/components/PropertyDetailClient.tsx +++ b/src/components/PropertyDetailClient.tsx @@ -21,6 +21,32 @@ import axios from "axios"; import { useCompare } from "@/context/CompareContext"; import dynamic from 'next/dynamic'; +import { motion } from "framer-motion"; + +const AnimateSection = ({ children, className, id, direction = "left" }: { children: React.ReactNode, className?: string, id?: string, direction?: "left" | "right" | "up" | "down" }) => { + const variants = { + hidden: { + opacity: 0, + x: direction === "left" ? -50 : direction === "right" ? 50 : 0, + y: direction === "up" ? 50 : direction === "down" ? -50 : 0 + }, + visible: { opacity: 1, x: 0, y: 0 } + }; + + return ( + + {children} + + ); +}; @@ -592,7 +618,11 @@ export default function PropertyDetailClient({ property }: { property: Property {/* Image Gallery */} - + + + + +
@@ -602,7 +632,7 @@ export default function PropertyDetailClient({ property }: { property: Property
-

{property.title}

+

{property.title}

@@ -630,7 +660,7 @@ export default function PropertyDetailClient({ property }: { property: Property
Starting from
-
+
{property.price} @@ -644,15 +674,15 @@ export default function PropertyDetailClient({ property }: { property: Property {/* Quick Stats */} -
+
-
{property.overview.bhk}
+
{property.overview.bhk}
Configuration
-
{property.overview.size}
+
{property.overview.size}
Area
@@ -684,7 +714,7 @@ export default function PropertyDetailClient({ property }: { property: Property {/* Overview Section */} -
+ {/* Header with title and badges */} @@ -904,11 +934,11 @@ export default function PropertyDetailClient({ property }: { property: Property
-
+ -
+
@@ -942,13 +972,13 @@ export default function PropertyDetailClient({ property }: { property: Property -
+
{/* Info Cards Grid */} -
+ {/* RERA Card */} @@ -1056,7 +1086,7 @@ export default function PropertyDetailClient({ property }: { property: Property
-
+ @@ -1064,7 +1094,7 @@ export default function PropertyDetailClient({ property }: { property: Property {/* Pricing Section - Moved and Redesigned */} -
+

Pricing

@@ -1138,13 +1168,13 @@ export default function PropertyDetailClient({ property }: { property: Property
-
+ {/* Connectivity Section (Formerly Location) */} -
+

Connectivity

@@ -1194,13 +1224,13 @@ export default function PropertyDetailClient({ property }: { property: Property -
+ {/* Master Plan Section */} -
+
@@ -1262,7 +1292,7 @@ export default function PropertyDetailClient({ property }: { property: Property {/* Stats Grid */} -
+
@@ -1304,13 +1334,13 @@ export default function PropertyDetailClient({ property }: { property: Property
-
+ {/* Propsoch Clarity Engine Section */} -
+
@@ -1502,13 +1532,13 @@ export default function PropertyDetailClient({ property }: { property: Property
-
+ {/* Floor Plans Section */} -
+

Floor Plans

@@ -1654,13 +1684,13 @@ export default function PropertyDetailClient({ property }: { property: Property
-
+ {/* Amenities Section */} -
+

Amenities

@@ -1808,7 +1838,7 @@ export default function PropertyDetailClient({ property }: { property: Property -
+ @@ -1816,7 +1846,7 @@ export default function PropertyDetailClient({ property }: { property: Property {/* Approvals Section */} -
+

Approvals

@@ -2082,13 +2112,13 @@ export default function PropertyDetailClient({ property }: { property: Property
-
+
{/* About the Builder Section */} -
+

About the builder

@@ -2136,7 +2166,7 @@ export default function PropertyDetailClient({ property }: { property: Property
-
+ @@ -2146,7 +2176,7 @@ export default function PropertyDetailClient({ property }: { property: Property {/* Locality Section */} -
+

Locality

@@ -2260,7 +2290,7 @@ export default function PropertyDetailClient({ property }: { property: Property {/* Checkout Nearby Properties Section */} -
+

Checkout Nearby Properties

@@ -2360,9 +2390,9 @@ export default function PropertyDetailClient({ property }: { property: Property -
+
-
+ @@ -2378,7 +2408,7 @@ export default function PropertyDetailClient({ property }: { property: Property {/* FAQ Section */} -
+

Frequently Asked Questions

@@ -2484,7 +2514,7 @@ export default function PropertyDetailClient({ property }: { property: Property
-
+ @@ -2500,7 +2530,7 @@ export default function PropertyDetailClient({ property }: { property: Property {/* Contact Form */} -
+

Get in Touch

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