Exhibitions grid — Portfolio block

Pro

portfolio-exhibitions-grid · for home, landing pages

Exhibitions grid

Every status under its own heading with picture cards, the headings in a margin column: a venue with several shows at once to compare

Documentation

Installation

One command copies the block into your project with the shadcn CLI (the registry is set once: Installation).

pnpm dlx shadcn-vue@latest add @trame/portfolio-exhibitions-grid

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import PortfolioExhibitionsGrid from '@/components/trame/blocks/portfolio/portfolio-exhibitions-grid.vue'

const props = {
title: "On at the museum",
lead: "What’s on the walls today, what opens soon, and the exhibitions that have already closed.",
exhibitions: [
{
id: "e-1",
title: "What the Light Holds",
byline: "Nora Valcourt, paintings and drawings",
dates: "Through January 4",
status: "current",
place: "Rooms 1 to 3",
image: "https://images.unsplash.com/photo-1774021796059-d5ea30abb3e0?w=1600&q=80",
alt: "A large white room lit by a glass roof, with a concrete floor",
text: "Fifteen years of canvases painted in north light: large formats, sketchbooks, and the studio rebuilt in the last room.",
action: "exhibition",
record: {
id: "e-1"
}
},
{
id: "e-2",
title: "Thread by Thread",
byline: "Stitch Collective, textile and volume",
dates: "Through February 22",
status: "current",
place: "Room 4",
image: "https://images.unsplash.com/photo-1774021794777-4ada1deaf41f?w=1600&q=80",
alt: "An exhibition room with a polished floor reflecting the ceiling’s light rails",
text: "Monumental weavings hung above visitors, made by many hands during a yearlong residency.",
action: "exhibition",
record: {
id: "e-2"
}
}
]
}
</script>

<template>
<PortfolioExhibitionsGrid v-bind="props" />
</template>

Props

Each prop says who changes it: Words, Picture, Action, Design, Data.* required.

PropTypeDescription
titlestringWordsthe section’s heading
leadstringWordsone or two lines under the heading
exhibitions*Exhibition[]Datathe venue’s exhibitions, most recent first, in its own words
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Exhibition exhibitions[] · 11 props
PropTypeDescription
id*stringDesignthe exhibition’s identifier, unique in the list
title*stringWordsthe exhibition’s title
bylinestringWordsthe artist, the collective or the curator, as the venue credits them
dates*stringWordsthe dates as the venue wrote them ("Until 4 January"), never computed
status*'current' | 'upcoming' | 'past'where the exhibition stands, as the venue says it
placestringWordswhere in the venue ("Room 3", "Ground floor")
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the picture shows, when the title does not say it
textstringWordstwo or three sentences on the exhibition, written by the venue
action*stringActionthe exhibition’s page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 1 props
PropTypeDescription
mood'inverse' | 'brand' | 'warm' | 'tint' | stringa band of the page that redefines the theme surfaces inside it
What it asks your app for

The block never knows your app: it asks it, through one context provided once, where its links lead, what its actions do, how a price reads and which words to say (The host context).

MemberWhat it is for
hrefthe address an action leads to, or null to hide what leads there
actruns a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error }
canwhether the page has this action
asseta picture’s address as your app serves it
Linkyour router’s link component
cartCountthe cart badge’s number
cartDrawerwhether your app has a cart drawer
cartOpenwhether the cart drawer is open
labelyour word for an interface key, or undefined to keep the block’s own

The words it says itself, in English and French; label(key) replaces any of them:

KeyEnglishFrench
newsletter.alreadyYou are already subscribed.Vous êtes déjà inscrit.
newsletter.doneDone: you are subscribed.C’est noté : vous êtes inscrit.
newsletter.invalidCheck the email address.Vérifiez l’adresse e-mail.
newsletter.tooManyToo many attempts, try again in a moment.Trop de tentatives, réessayez dans un moment.

Features

  • Every word in the server HTML
  • Same markup in Vue and React
  • Theme tokens only: every theme, light and dark
  • Shows what you give it, invents nothing
  • Expressive motion, within its budget; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: exhibitions[]
  • Reads exhibitions from your app

A portfolio section, for home, landing pages; it uses @lucide/vue, clsx, motion, tailwind-merge.

More portfolio blocks

  • Decision log device pairs: Wide and narrow views of the same decision; the merchant’s own only.
  • Decision log directions: Visual directions with explicit selection and a decision ledger; the merchant’s own only.
  • Decision log receipts: Author supplied research quotations paired with the resulting change; the merchant’s own only.
  • Decision log rounds timeline: Iterations along a dated rail, with images when available; the merchant’s own only.
  • Decision log: References, dates and statuses in a compact decision register; the merchant’s own only.
  • Postmortem event log: Incident sections beside a timestamped event log; the merchant’s own only.
  • Project index filterable: a long list of pieces with a search field and category chips showing their count: more than six, in several kinds; the merchant’s own only.
  • Project index grid: three to twelve pieces of work as cards with picture, title, one line and tags: a portfolio’s plain, scannable home; the merchant’s own only.

All 29 portfolio blocks