diff --git a/src/app/layout.tsx b/src/app/layout.tsx index c18e521..9b1b8e3 100644 --- a/src/app/layout.tsx +++ b/src/app/layout.tsx @@ -61,7 +61,7 @@ export default function RootLayout({ {children} - + {/* */} diff --git a/src/components/About.tsx b/src/components/About.tsx index 8e0a96d..7622c8b 100644 --- a/src/components/About.tsx +++ b/src/components/About.tsx @@ -1,46 +1,9 @@ "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 (
@@ -81,128 +44,22 @@ export default function About() { - {/* 3D Cube Container */} + {/* Parallax Image Container */} + {/* Parallax Image Container - Visible on all screens */}
-
- {/* 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
-
-
+ {/* Empty container for the image background */}
- -
); } diff --git a/src/components/Header.tsx b/src/components/Header.tsx index ad8a677..1fc7236 100644 --- a/src/components/Header.tsx +++ b/src/components/Header.tsx @@ -22,7 +22,7 @@ export default function Header() { <>