import { useScroll, useTransform, motion, useInView, AnimatePresence, } from 'motion/react'; import { useRef, useState } from 'react'; import { dubaiMarinaFeatures, dubaiMarinaDescription, roveHomeDescription, dubaiMarinaSlider, sliderBadgesCategory, } from '../data/aboutDubaiMarina'; import EqualIcon from '../components/icons/EqualIcon'; import TextBox from '../components/ui/TextBox'; import clsx from 'clsx'; import Slider from '../components/Slider'; import PlusIcon from '../components/icons/map/PlusIcon'; import useWindowSize from '../hooks/useWindowSize'; import FullScreenButton from '../components/FullScreenButton'; import SliderMobile from '../components/SliderMobile'; function AboutComplexPage() { const containerRef = useRef(null); const sliderRef = useRef(null); const mapRef = useRef(null); const { width } = useWindowSize(); const [selectedCategorySlider, setSelectedCategorySlider] = useState('Wellness'); const { scrollYProgress } = useScroll({ target: containerRef, offset: ['start start', 'end start'], }); const firstSectionOpacity = useTransform(scrollYProgress, [0, 0.2], [1, 0]); const secondSectionY = useTransform( scrollYProgress, [0, 0.4], ['100dvh', '0dvh'] ); const isSliderInView = useInView(sliderRef, { once: true, amount: 0.1, }); const isMapInView = useInView(mapRef, { once: true, margin: `0px 0px ${-window.innerHeight / 2}px 0px`, }); return (
768 ? firstSectionOpacity : 1, }} >
dubai marina about dubai marina about

{`Rove Home Dubai Marina`}

{roveHomeDescription.map((description) => ( ))}

{`Own the last slice of Dubai Marina, ROVE Style`}

{`With an extended playlist of life-enhancing amenities, Rove Home is a complete ecosystem that has everything you'll ever need.`}

768 ? secondSectionY : 0, zIndex: 1, }} >

{`Own the last slice of Dubai Marina, ROVE Style`}

{`With an extended playlist of life-enhancing amenities, Rove Home is a complete ecosystem that has everything you'll ever need.`}

Rove Home has it all

{`Rove Home Dubai Marina features modern-day conveniences, carefully curated for an active and social lifestyle.`}

{dubaiMarinaFeatures.map((feature) => (
{feature.name}
))}

Dubai, within reach

{dubaiMarinaDescription.map((descriptionItem) => (
setSelectedCategorySlider(descriptionItem.title) } >
{descriptionItem.title}

{descriptionItem.description}

))}
{sliderBadgesCategory[selectedCategorySlider].map( (badgeItem, index) => ( ) )}

Dubai's first-ever combinable Apartments

{`Enjoy the option to combine 2 apartments and create a larger space and configuration.`}

Studio²

Studio²

1 Bedroom²

or

Studio²

1 Bedroom²

2 Bedroom²

Live central. Live centred

{`Located in the heart of Dubai Marina, Rove Home Dubai Marina is where active living meets modern convenience. Enjoy an energetic lifestyle surrounded by trendy cafés, shops, and entertainment options – all within reach.`}

central map
{}} onFullScreenChange={() => {}} />
); } export default AboutComplexPage;