Exhibitions season — Portfolio block
Proportfolio-exhibitions-season · for home, landing pages
Exhibitions season
A sideways rail of tall posters ordered from now to the past with a line marking each status: a season to browse from left to right
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-seasonUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import PortfolioExhibitionsSeason from '@/components/trame/blocks/portfolio/portfolio-exhibitions-season.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>
<PortfolioExhibitionsSeason v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title | string | Wordsthe section’s heading |
| lead | string | Wordsone or two lines under the heading |
| exhibitions* | Exhibition[] | Datathe venue’s exhibitions, most recent first, in its own words |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Exhibition exhibitions[] · 11 props
| Prop | Type | Description |
|---|---|---|
| id* | string | Designthe exhibition’s identifier, unique in the list |
| title* | string | Wordsthe exhibition’s title |
| byline | string | Wordsthe artist, the collective or the curator, as the venue credits them |
| dates* | string | Wordsthe dates as the venue wrote them ("Until 4 January"), never computed |
| status* | 'current' | 'upcoming' | 'past' | where the exhibition stands, as the venue says it |
| place | string | Wordswhere in the venue ("Room 3", "Ground floor") |
| image | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| alt | string | Wordswhat the picture shows, when the title does not say it |
| text | string | Wordstwo or three sentences on the exhibition, written by the venue |
| action* | string | Actionthe exhibition’s page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| mood | 'inverse' | 'brand' | 'warm' | 'tint' | string | a 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).
| Member | What it is for |
|---|---|
| href | the address an action leads to, or null to hide what leads there |
| act | runs a change (subscribe, add to cart, save) and answers { ok } or { ok: false, error } |
| can | whether the page has this action |
| asset | a picture’s address as your app serves it |
| Link | your router’s link component |
| cartCount | the cart badge’s number |
| cartDrawer | whether your app has a cart drawer |
| cartOpen | whether the cart drawer is open |
| label | your 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:
| Key | English | French |
|---|---|---|
| newsletter.already | You are already subscribed. | Vous êtes déjà inscrit. |
| newsletter.done | Done: you are subscribed. | C’est noté : vous êtes inscrit. |
| newsletter.invalid | Check the email address. | Vérifiez l’adresse e-mail. |
| newsletter.tooMany | Too 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
exhibitionsfrom your app
A portfolio section, for home, landing pages; it uses @lucide/vue, clsx, motion, tailwind-merge.
More portfolio blocks
- 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.
- Project index preview: a typographic index of project names with a large picture that follows the hovered or focused row: a long, confident list where the names lead (a studio, an agency); the merchant’s own only.
- Project index rows: horizontal cards, picture left and text right, in a single column: projects with real descriptions to read; the merchant’s own only.