Restaurant
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.
What you can change
- photos: src, aspect, caption, alt
- eyebrow, title, lede, closeLabel
- accent and background, tone
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.ru/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…
For developers
The install command lives in the “Component source” block below — a signed link that stays valid for 24 hours.
Technical notes
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
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…