"use client"; import { useState, useRef, MouseEvent } from "react"; import Image from "next/image"; import { FloatingHouse, RotatingKey } from "./PropertyAnimations"; export default function Lifestyle() { const [zoomProps, setZoomProps] = useState({ x: 0, y: 0, show: false }); const imageRef = useRef(null); const handleMouseMove = (e: MouseEvent) => { if (!imageRef.current) return; const { left, top, width, height } = imageRef.current.getBoundingClientRect(); const x = ((e.clientX - left) / width) * 100; const y = ((e.clientY - top) / height) * 100; setZoomProps({ x, y, show: true }); }; const handleMouseLeave = () => { setZoomProps((prev) => ({ ...prev, show: false })); }; return (
{/* Decorative Animations */}
{/* Image Side with Zoom Effect */}
Aurora Lifestyle Clubhouse and Amenities {/* Overlay Text - Hidden on Hover to see details */}
Clubhouse & Amenities
{/* Content Side */}

Experience the
Aurora Lifestyle.

Designed for those who seek more than just a home. Immerse yourself in a world of leisure, wellness, and community.

    {[ { title: "World-Class Clubhouse", desc: "A sprawling hub for recreation and social gatherings.", }, { title: "Green Spaces", desc: "Acres of landscaped gardens and breathing spaces.", }, { title: "24/7 Security", desc: "Advanced surveillance and gated community safety.", }, ].map((item, idx) => (
  • {item.title}

    {item.desc}

  • ))}
); }