A hotel hero over a muted, looping background film that eases in from a slight zoom behind a scrim and film grain, with a serif headline settling in word by word, two pills, and a round play and pause control whose hairline ring traces the loop as it plays. Reduced motion keeps the still poster.
A full-bleed muted film loops behind a dark scrim and a layer of film grain, easing in from a slight zoom, while a serif headline settles in word by word above two pills and a round play and pause control whose hairline ring traces the loop as it plays.
Upgrade to Pro
Pro blocks install through the shadcn CLI with your license key and ship their full source. Docs and live previews stay open to everyone, so you can read every block's details first.
Swap YOUR_EMAIL and YOUR_KEY for the email and license key on your account. Find your license key on your account page.
Radix flavor
npx shadcn add "https://beste.dev/r/hotel34?email=YOUR_EMAIL&license_key=YOUR_KEY"Base UI flavor
npx shadcn add "https://beste.dev/r-base/hotel34?email=YOUR_EMAIL&license_key=YOUR_KEY"This installs the block to components/beste/block/hotel34.tsx plus the button22 sliding-marker pill used for the two actions and the text1 word stagger used for the headline.
The installed file exports hotel34Demo alongside the block: the exact props behind the preview above. Spread it to get a working section in one line.
import { Hotel34, hotel34Demo } from "@/components/beste/block/hotel34";
export default function Page() {
return <Hotel34 {...hotel34Demo} />;
}Then replace the demo with your own props. Written out, a trimmed setup looks like this:
import { Hotel34 } from "@/components/beste/block/hotel34";
export default function Page() {
return (
<Hotel34
eyebrow="Ostria, Paros"
heading="Watch the evening arrive on the cove."
description="Twelve rooms, one long table and a pool that holds the last of the light."
buttons={[
{ label: "Book a stay", href: "/book", tone: "light" },
{ label: "See the rooms", href: "/rooms", tone: "outline" },
]}
video={{
src: "https://oud.pics/b/hotel/ostria-video-exterior.mp4",
poster: "https://oud.pics/b/hotel/ostria-exterior-golden.webp",
label: "The hotel on the hillside above the cove at golden hour",
}}
labels={{ play: "Play the film", pause: "Pause the film" }}
/>
);
}| Prop | Type | Default | Description |
|---|---|---|---|
eyebrow | string | – | Small line above the headline |
heading | string | – | Serif <h1>, revealed word by word through Text1 |
description | string | – | Paragraph under the headline |
buttons | ActionButton[] | [] | Pill actions through Button22; tone defaults to light |
video | Video | – | Background film, poster and accessible label; also turns on the play control |
labels | Labels | {} | Accessible names for the play and pause control |
className | string | – | Extra classes for the outer <section> |
type ActionButton = {
label: string;
href: string;
tone?: "primary" | "light" | "dark" | "outline";
};
type Video = {
src: string;
poster: string;
label: string;
};
type Labels = {
play?: string;
pause?: string;
};requestAnimationFrame loop that writes strokeDashoffset from currentTime and duration, so it traces each loop without re-rendering React.aria-label swap between labels.play and labels.pause from the video's own play and pause events.video the section keeps its dark bg-foreground ground, scrim and grain, and the play control is not rendered.lg the copy takes eight of twelve columns and the control sits bottom right; below that the control follows the buttons.