"use client"; import { useState, useRef, MouseEvent } from "react"; import Image from "next/image"; import Link from "next/link"; import { FloatingHouse, RotatingKey, GrowingBuilding } from "./PropertyAnimations"; export default function About() { const [rotation, setRotation] = useState({ x: -10, y: 0 }); const [isHovering, setIsHovering] = useState(false); const containerRef = useRef(null); const handleMouseMove = (e: MouseEvent) => { if (!containerRef.current) return; const rect = containerRef.current.getBoundingClientRect(); const x = e.clientX - rect.left; const y = e.clientY - rect.top; const width = rect.width; const height = rect.height; // Calculate rotation based on mouse position // Y-axis rotation (horizontal mouse movement): -180 to 180 degrees const rotateY = ((x / width) * 360) - 180; // X-axis rotation (vertical mouse movement): -90 (top view) to 90 (bottom view) // Inverting Y so top of screen corresponds to seeing the top face const rotateX = -(((y / height) * 180) - 90); setRotation({ x: rotateX, y: rotateY }); }; const handleMouseEnter = () => { setIsHovering(true); }; const handleMouseLeave = () => { setIsHovering(false); setRotation({ x: -10, y: 0 }); // Reset to default angle }; return (
{/* Decorative Animation */}
{/* Text Content */}

Where the Sky Meets
The Soil.

At Sky and Soil, we curate exceptional living spaces that harmonize with nature. As authorized sales partners for Godrej Properties, we bring you the finest homes in Bangalore's most sought-after locations.

Our mission is to connect you with homes that offer not just a roof over your head, but a lifestyle grounded in luxury and elevated by nature. From North Bengaluru to Sarjapur, discover a life of abundance.

Learn More About Us
{/* 3D Cube Container */}
{/* Front Face */}
Front View
Front View
{/* Back Face */}
Back View
Back View
{/* Right Face */}
Right View
Right View
{/* Left Face */}
Left View
Left View
{/* Top Face */}
Top View
Top View
{/* Bottom Face */}
Bottom View
Bottom View
); }