Portfolio
Postcard gallery that flips to the back
Couple photos as postcards: on cream card with a tape strip and a handwritten caption; a click flips the card — on the back, ruled lines, a stamp, a round postmark with the city and date, the postcard text and an address. A masonry layout with three card shapes.
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
- eyebrow, title, lede, addressee
- cards (src, alt, caption, back, from, date, shape)
- 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/portfolio-009?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
<Portfolio009
title="What we wrote to you"
addressee="Dear guests"
cards={[
{ src: "/photos/postcard-01.webp", caption: "A bike for two", back: "Sonya rides the crossbar and gives orders.", from: "Trinidad", date: "03.2026", shape: "wide" },
{ src: "/photos/postcard-02.webp", caption: "A door in Havana", back: "Blue, peeling, perfect.", from: "La Habana", date: "10.2025", shape: "tall" },
]}
/>A sample call. The agent installs the component itself from the registry via the “Copy for AI” link.
Settings
- Title
title· default: What we wrote to you- Theme
tone· default: auto- Accent
accent· default: theme colour- Background
background· default: theme colour
Used in scenarios
- Wedding in CubaPostcards
More in Portfolio
FAQ
- How do I add Postcard gallery that flips to the back 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 Postcard gallery that flips to the back depend on?
- No npm packages beyond React and Tailwind CSS. It also installs catalog components: button-103.
- What can I change in Postcard gallery that flips to the back?
- Adapt: eyebrow, title, lede, addressee; cards (src, alt, caption, back, from, date, shape); accent and background, tone. Keep as installed: the button-103 imports from @/components/vibeui/ — do not inline their code into the block or swap in your own; the parts receive props only; the click flip and the postcard back with the stamp, postmark and ruled lines; the tape strip and handwritten caption on the front.
- Is Postcard gallery that flips to the back 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/portfolio-009.jsonThis 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-103 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, zero npm dependencies, “use client” for the flip (a Set of flipped indices in state). A card is a <button aria-pressed> with perspective, inside [data-part=inner] with transform-style:preserve-3d and rotateY(180deg) on data-flipped; front and back are backface-visibility:hidden. The back is a 1.2fr/1fr grid with a ::before vertical line, handwritten text, a stamp (dashed frame) on the right, an SVG postmark with city and date and three address lines. Shapes: wide 3:2, tall 4:5, square 1:1. CSS columns: 2 below 40rem, 3 below 64rem, 4 above. Palette --vibeui-portfolio-009-* is neutral: ink and paper via light-dark(), the site colours come through the accent, ink and background props; dark theme via .dark/[data-theme] or tone. Oswald, Lobster and Manrope come via <link precedence> from Google Fonts with system fallbacks. accent and background override colours, prefers-reduced-motion disables animations.
Tags
- wedding
- travel
- gallery
- postcards
- flip
- 3d
- masonry
- stamp
- postmark
- photos
- cuba
- retro
- composite
Component source
The same file your agent installs. Here in case you would rather copy it by hand.
Loading…