Industry sections
Hall gallery with parallax and a lightbox
A dining hall gallery: three columns of photos of different heights, columns move at different speeds on scroll, a caption floats up on hover. A click flies the frame out of its box to the centre of the screen on a dark backdrop; Escape and a backdrop click close.
React + Tailwind, shadcn-compatible: press “Copy for AI” and your Cursor or Claude Code agent installs it with the shadcn CLI.
What you can change
- photos: src, aspect, caption, alt
- eyebrow, title, lede, closeLabel
- accent and background, tone
Built from
The install command brings these components too. The block only passes them props: their palette and behaviour stay their own.
A link for your AI agent: preview, code and instructions.
Preview

Use it with AI
- 1. Copy the link.
- 2. Write to your agent in your own words and drop the link into the sentence.
- 3. The agent opens the link and installs the component from the registry.
put this on the home page as the hero:
https://vibeui.club/c/restaurant-005?lang=en&theme=dark
Not sure where to paste it? Step-by-step guide
Show the full instructions
What the link says, spelled out. Use it when your agent cannot open links — paste this text instead.
Loading…
How to use
<Restaurant005
title="Candles, wood and a courtyard view"
photos={[
{ src: "/photos/hall-01.webp", aspect: "3 / 2", caption: "bar" },
{ src: "/photos/hall-02.webp", aspect: "2 / 3", caption: "by the window" },
{ src: "/photos/hall-04.webp", aspect: "1", caption: "table setting" },
]}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Theme
tone· default: auto- Title
title· default: Candles, wood and a courtyard view- Accent
accent· default: theme colour- Background
background· default: theme colour
Used in scenarios
- RestaurantHall
More in Industry sections
- Geocoder sandbox: address → a dot on a CSS map and a JSON response
- API status board: regions with lamps, live p50 and 24-hour sparklines
- Features with a sticky phone whose screen changes on scroll
- “Before / after” with a chart comparison slider
- Playground: toggles change the code and a live table
- Episode List
FAQ
- How do I add Hall gallery with parallax and a lightbox with Cursor or Claude Code?
- Press “Copy for AI” on this page and paste it into your agent's chat. The instruction contains the shadcn CLI install command, the dependencies and what to keep, so the agent installs this exact component instead of recreating a lookalike.
- What does Hall gallery with parallax and a lightbox depend on?
- npm packages: react-dom. It also installs catalog components: button-094.
- What can I change in Hall gallery with parallax and a lightbox?
- Adapt: photos: src, aspect, caption, alt; eyebrow, title, lede, closeLabel; accent and background, tone. Keep as installed: the button-094 imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; column parallax through one progress CSS variable — no re-renders on scroll; the lightbox flying out of the frame's box and back: a portal into body, a reflow before the start.
- Is Hall gallery with parallax and a lightbox free?
- The preview is open to everyone; the source is available with a PRO subscription.
For developers
npx shadcn@latest add https://vibeui.club/r/pro/restaurant-005.jsonnpm dependencies: react-dom
This command needs a signed link: sign in and open “Component source” below — it issues a working link valid for 30 minutes. All install options
Technical notes
A composite block: imports button-094 from @/components/vibeui/ — the install command brings them along with the block. The block owns the layout and its own text, passes the parts props only and leaves their --vibeui-<name>-* palettes alone. One file, the only dependency is react-dom (createPortal), “use client”. Photos are laid out in three height-balanced columns: in descending height (from aspect) each goes into the shortest column, keeping source order inside a column; parallax is one section-progress variable in the viewport (−1…1), written in rAF on scroll without re-rendering; columns shift translateY(p × k) with their own k. A frame is a <button> with aspect-ratio from photo.aspect. Lightbox: a position:fixed layer in a portal, the flyer starts from the frame's getBoundingClientRect, after a reflow and requestAnimationFrame moves to the centred box (top/left/width/height with a .55s transition), the original is hidden; closing reverses and focus returns to the frame; scroll is locked with scrollbar compensation. reduced-motion disables parallax and transitions. Palette --vibeui-restaurant-005-* is neutral: ink and paper via light-dark(), the site colours come through the accent, ink and background props; Playfair Display and Manrope via <link precedence> from Google Fonts with system fallbacks. tone pins the scheme, accent, ink and background override colours.
Tags
- restaurant
- cafe
- bar
- food
- menu
- dining
- gallery
- parallax
- lightbox
- masonry
- composite
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…