Merge version_1_1781349177053 into main #3

Merged
bender merged 1 commits from version_1_1781349177053 into main 2026-06-13 11:15:32 +00:00

View File

@@ -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<HTMLVideoElement>(null);
useEffect(() => {
const video = videoRef.current;
if (video) {
video.onended = onComplete;
}
return () => {
if (video) video.onended = null;
};
}, [onComplete]);
export default function HotelTemplate() {
return (
<ReactLenis root>
<StyleProvider siteBackground="none" heroBackground="none" buttonVariant="default">
<SiteBackgroundSlot />
<motion.div
initial={{ y: -100, opacity: 0 }}
animate={{ y: 0, opacity: 1 }}
transition={{ duration: 0.6, delay: 1.8, ease: [0.22, 1, 0.36, 1] }}
className="relative z-110"
>
<NavbarFullscreen
logo="Aurion"
navItems={[
{ name: "Rooms", href: "#rooms" },
{ name: "Experience", href: "#experience" },
{ name: "Dining", href: "#dining" },
{ name: "Contact", href: "#contact" },
]}
ctaButton={{ text: "Book Now", href: "#contact" }}
/>
</motion.div>
<div id="hero" data-section="hero">
<HeroVideoExpand
title="Aurion"
videoSrc="https://storage.googleapis.com/webild/default/templates/hotel/hero.mp4"
primaryButton={{ text: "Browse rooms", href: "#rooms" }}
secondaryButton={{ text: "Watch tour", href: "#tour" }}
/>
</div>
<div id="about" data-section="about">
<AboutParallax
tag="About"
title="A Sanctuary for Wellness & Rejuvenation"
description="From private fitness studios to guided meditation sessions, our amenities are designed to enhance your well-being and foster a sense of harmony."
frontImageSrc="https://storage.googleapis.com/webild/default/templates/hotel/about/magnific_recreate-this-in-higher-q_te7wx9evnr.webp"
backImageSrc="https://storage.googleapis.com/webild/default/templates/hotel/amenities/pool.jpg"
badge="Est. 1844"
/>
</div>
<div id="rooms" data-section="rooms">
<FeaturesAttributeCards
tag="Rooms & Suites"
title="Featured Rooms"
description="Each room is a sanctuary of refined comfort, designed with meticulous attention to detail."
items={[
{ title: "The Grand Suite", tags: "Panoramic, Terrace, Italian", badge: "Guest Favourite", details: [{ icon: "Bed", label: "Beds", value: 2 }, { icon: "Bath", label: "Baths", value: 2 }, { icon: "Maximize2", label: "Sqft", value: 1450 }], imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/rooms/grandsuite.webp" },
{ title: "Ocean Pavilion", tags: "Oceanfront, Serene, Bright", badge: null, details: [{ icon: "Bed", label: "Beds", value: 1 }, { icon: "Bath", label: "Baths", value: 1 }, { icon: "Maximize2", label: "Sqft", value: 980 }], imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/rooms/oceanpavillion.webp" },
{ title: "Garden Villa", tags: "Garden, Pool, Outdoor Living", badge: "Most Popular", details: [{ icon: "Bed", label: "Beds", value: 3 }, { icon: "Bath", label: "Baths", value: 2 }, { icon: "Maximize2", label: "Sqft", value: 2200 }], imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/rooms/gardenvilla.webp" },
{ title: "Presidential Suite", tags: "Expansive, Chef Kitchen, Butler", badge: "Guest Favourite", details: [{ icon: "Bed", label: "Beds", value: 3 }, { icon: "Bath", label: "Baths", value: 3 }, { icon: "Maximize2", label: "Sqft", value: 3400 }], imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/rooms/presidential-suite.webp" },
{ title: "Heritage Room", tags: "Classic, Restored, Elegant", badge: null, details: [{ icon: "Bed", label: "Beds", value: 1 }, { icon: "Bath", label: "Baths", value: 1 }, { icon: "Maximize2", label: "Sqft", value: 850 }], imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/rooms/heritage-room.webp" },
{ title: "Spa Retreat", tags: "Sauna, Soaking Tub, Wellness", badge: null, details: [{ icon: "Bed", label: "Beds", value: 2 }, { icon: "Bath", label: "Baths", value: 2 }, { icon: "Maximize2", label: "Sqft", value: 1600 }], imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/rooms/sparetreat.jpg" },
]}
/>
</div>
<div id="experience" data-section="amenities">
<FeaturesMediaGrid
tag="Amenities"
title="World-Class Experiences"
description="Every detail has been considered to create moments of extraordinary comfort and indulgence."
items={[
{ title: "Infinity Pool", description: "Heated oceanfront pool with panoramic sunset views", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/amenities/pool.jpg" },
{ title: "Private Spa", description: "Full-service wellness centre with bespoke treatments", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/amenities/spa.webp" },
{ title: "Fine Dining", description: "Michelin-starred cuisine with locally sourced ingredients", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/amenities/finedining.jpg" },
{ title: "Fitness Studio", description: "State-of-the-art equipment and personal training", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/amenities/fitnessstudio.webp" },
{ title: "Wine Cellar", description: "Curated collection of over 500 vintages", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/contact/bookyourstay.webp" },
{ title: "Concierge", description: "24-hour dedicated service for every request", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/amenities/concierge.jpg" },
]}
/>
</div>
<div id="journeys" data-section="journeys">
<FeaturesRevealCardsBentoSharp
tag="Journeys"
title="The Journeys"
description="Exclusive experiences curated for Aurion guests — from cloud forests to volcanic coastlines across Costa Rica's most breathtaking landscapes."
items={[
{ title: "Cloud Forest Expedition", description: "A private guided trek through Monteverde's misty canopy — hanging bridges, rare wildlife encounters, and a chef-prepared dinner in a hidden clearing.", href: "#", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/journeys/cloudforestexpedition.jpg" },
{ title: "Volcanic Hot Springs", description: "Exclusive access to secluded thermal pools fed by Arenal Volcano, paired with a volcanic mud ritual and open-air massage.", href: "#", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/journeys/volcanichotsprings.webp" },
{ title: "Pacific Coast Sailing", description: "A full-day private catamaran journey along the Guanacaste coastline — snorkeling, whale watching, and sunset cocktails aboard.", href: "#", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/journeys/sailing.webp" },
{ title: "Rainforest Immersion", description: "Descend into Osa Peninsula's pristine jungle for a two-day wildlife retreat with naturalist guides and a treehouse overnight stay.", href: "#", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/journeys/rainforestimmersion.webp" },
{ title: "Coffee Origin Trail", description: "Travel to the highlands of the Central Valley for an intimate single-origin coffee experience — from harvest to private tasting.", href: "#", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/journeys/coffeetrail.webp" },
{ title: "Sunset Safari", description: "An exclusive evening wildlife drive through private reserves, ending with a starlit dinner in the savanna.", href: "#", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/journeys/safari.webp" },
{ title: "Marine Sanctuary", description: "Dive into crystal-clear waters for a guided snorkeling experience among vibrant coral reefs and sea turtles.", href: "#", imageSrc: "https://storage.googleapis.com/webild/default/templates/hotel/journeys/marinesacntuary.webp" },
]}
/>
</div>
<div id="contact" data-section="contact">
<ContactSplitFormSharp
tag="Contact"
title="Book Your Stay"
description="Let us help you plan the perfect getaway. Our concierge team is available to assist with reservations and special requests."
inputs={[
{ name: "name", type: "text", placeholder: "Full Name", required: true },
{ name: "email", type: "email", placeholder: "Email Address", required: true },
{ name: "phone", type: "tel", placeholder: "Phone Number" },
{ name: "dates", type: "text", placeholder: "Preferred Dates" },
]}
textarea={{ name: "message", placeholder: "Special Requests or Questions", rows: 4 }}
buttonText="Send Inquiry"
imageSrc="https://storage.googleapis.com/webild/default/templates/hotel/contact/bookyourstay.webp"
/>
</div>
<FooterBrand
brand="Aurion"
columns={[
{ items: [{ label: "Rooms & Suites", href: "#rooms" }, { label: "Dining", href: "#dining" }, { label: "Amenities", href: "#experience" }] },
{ items: [{ label: "Journeys", href: "#journeys" }, { label: "Spa & Wellness", href: "#spa" }, { label: "Events", href: "#events" }] },
{ items: [{ label: "Book Now", href: "#contact" }, { label: "Location", href: "#location" }, { label: "Contact Us", href: "#contact" }] },
]}
/>
</StyleProvider>
</ReactLenis>
<section className="relative h-screen w-full overflow-hidden">
<video
ref={videoRef}
src={videoSrc}
autoPlay
muted
className="h-full w-full object-cover"
/>
<div className="absolute inset-0 flex flex-col items-center justify-center bg-black/40 p-6 text-center text-white">
<h1 className="text-5xl font-bold md:text-7xl">{title}</h1>
<p className="mt-4 max-w-2xl text-lg md:text-xl">{description}</p>
</div>
</section>
);
}
}