diff --git a/src/templates/hotel/page.tsx b/src/templates/hotel/page.tsx index c7f35ec..094b0d7 100644 --- a/src/templates/hotel/page.tsx +++ b/src/templates/hotel/page.tsx @@ -1,136 +1,41 @@ -import { ReactLenis } from "lenis/react"; -import { motion } from "motion/react"; -import { StyleProvider } from "@/components/ui/StyleProvider"; -import SiteBackgroundSlot from "@/components/ui/SiteBackgroundSlot"; -import NavbarFullscreen from "@/components/ui/NavbarFullscreen"; -import HeroVideoExpand from "@/components/sections/hero/HeroVideoExpand"; -import AboutParallax from "@/components/sections/about/AboutParallax"; -import FeaturesAttributeCards from "@/components/sections/features/FeaturesAttributeCards"; -import FeaturesMediaGrid from "@/components/sections/features/FeaturesMediaGrid"; -import FeaturesRevealCardsBentoSharp from "@/components/sections/features/FeaturesRevealCardsBentoSharp"; -import FooterBrand from "@/components/sections/footer/FooterBrand"; -import ContactSplitFormSharp from "@/components/sections/contact/ContactSplitFormSharp"; -import "./theme.css"; +import { useEffect, useRef } from 'react'; + +export default function HeroVideoExpand({ + title, + description, + videoSrc, + onComplete +}: { + title: string; + description: string; + videoSrc: string; + onComplete: () => void; +}) { + const videoRef = useRef(null); + + useEffect(() => { + const video = videoRef.current; + if (video) { + video.onended = onComplete; + } + return () => { + if (video) video.onended = null; + }; + }, [onComplete]); -export default function HotelTemplate() { return ( - - - - - - - - -
- -
- -
- -
- -
- -
- -
- -
- -
-
- -
- -
- - -
-
+
+
); -} +} \ No newline at end of file