Project page cover overlay — Portfolio block

Free

portfolio-project-page-cover-overlay · for project, portfolio, case pages

Project page cover overlay

The cover full-bleed with the title over its foot, then the first part beside a small list of facts: a piece with one strong image; the merchant’s own only

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-project-page-cover-overlay

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import PortfolioProjectPageCoverOverlay from '@/components/trame/blocks/portfolio/portfolio-project-page-cover-overlay.vue'

const props = {
title: "A dinner service for a forty-seat dining room",
deck: "Plates, bowls and tumblers thrown in the studio for a neighborhood restaurant: two hundred forty pieces and a blue glaze developed with the kitchen.",
cover: "https://images.unsplash.com/photo-1785317177998-a7949db59548?w=1600&q=80",
alt: "Dark wood restaurant tables set with blue plates, glasses and white napkins, in front of cream armchairs",
facts: [
{
label: "Year",
value: "2025"
},
{
label: "Client",
value: "A neighborhood restaurant, Portland – Central Eastside"
}
],
sections: [
{
heading: "Where it started",
text: "The chef wanted plates that could take dinner service without chipping, in a color that wouldn’t upstage the food.\n\nWe started with a day in the kitchen, to see how the plates are stacked, washed and carried."
},
{
heading: "The tests",
text: "Six glazes were tested on shards, then on a full plate that spent three weeks in the restaurant’s dishwasher. The matte blue won; the speckled white went on the bowls.",
image: "https://images.unsplash.com/photo-1530006498959-b7884e829a04?w=1600&q=80",
alt: "Two speckled white stoneware bowls stacked on a white table in front of a dark gray wall"
}
],
pictures: [
{
image: "https://images.unsplash.com/photo-1763824372146-95e9b6d90926?w=1600&q=80",
alt: "Dozens of raw stoneware tumblers lined up tightly before firing",
caption: "The tumblers, before the first firing."
},
{
image: "https://images.unsplash.com/photo-1790788369204-69ec9d2d53e7?w=1600&q=80",
alt: "A hand shaping a bowl on the spinning wheel",
caption: "A bowl on the wheel."
}
],
credits: [
{
role: "Throwing and glazes",
name: "Lucie Bertrand"
},
{
role: "Trimming",
name: "Karim Ait-Said"
}
],
previous: {
id: "bols-epicerie",
title: "Soup bowls for a village grocery",
image: "https://images.unsplash.com/photo-1715690998809-11c2a60558fd?w=1600&q=80",
alt: "Two bowls and four sea-green plates stacked in front of a light wall"
},
next: {
id: "tasses-torrefaction",
title: "A hundred cups for a coffee roaster",
image: "https://images.unsplash.com/photo-1763824372146-95e9b6d90926?w=1600&q=80",
alt: "Raw stoneware tumblers lined up before firing"
},
open: "project",
cta: {
label: "Talk to us about your order",
action: "contact"
},
options: {
eyebrow: "Commission"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe project’s name ("A table service for Quai Restaurant")
deckstringWordsone sentence under the title: what the piece is and for whom
cover*stringPicturethe strongest picture of the finished work
alt*stringWordswhat the cover shows
factsFact[]Datathe project’s facts, in reading order: leave out what the merchant does not know
sections*Section[]Datathe story of the piece, part by part, in reading order
picturesPicture[]Datathe other pictures of the piece, in the order to see them
creditsCredit[]Datawho worked on it, with their consent
previousPreviousDatathe project before this one
nextNextDatathe project after this one
openstringActionthe action that opens another project; the project is its record
ctaCtathe call to action: its words and the page action it runs
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Fact facts[] · 2 props
PropTypeDescription
label*stringWordswhat the fact is ("Year", "Place", "Sponsor", "Role", "Materials")
value*stringWordsthe fact, as the merchant states it
Section sections[] · 4 props
PropTypeDescription
headingstringWordsthe part’s heading ("The starting point")
text*stringWordsthe story of this part; a blank line starts a new paragraph
imagestringPicturea picture of this part of the work
altstringWordswhat that picture shows
Picture pictures[] · 3 props
PropTypeDescription
image*stringPicturea picture of the finished work or of its making
alt*stringWordswhat the picture shows
captionstringWordsa short line under the picture
Credit credits[] · 2 props
PropTypeDescription
role*stringWordswhat they did ("Photographs", "Shooting")
name*stringWordswho did it, as they wish to be credited
Previous previous · 4 props
PropTypeDescription
id*string | numberDatathe project’s id in the tool that answers it
title*stringWordsthe other project’s title
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the picture shows
Next next · 4 props
PropTypeDescription
id*string | numberDatathe project’s id in the tool that answers it
title*stringWordsthe other project’s title
imagestringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the picture shows
Cta cta · 3 props
PropTypeDescription
label*stringWordswhat happens ("Talk about your project")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 2 props
PropTypeDescription
eyebrowstringWordswhat kind of work it is ("Order", "Interior architecture")
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
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: open, cta

A portfolio section, for project, portfolio, case pages; it uses @lucide/vue, @vueuse/core, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.

Built with

The components this block is made of; each one installs on its own too.

More portfolio blocks

  • 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.
  • 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.
  • Work grid carousel feature: one project at a time with arrows, picture left and facts right: a few projects that each need space; the merchant’s own only.
  • Work grid expandable list: rows with name, client and year that open to detail, tags and result: a long, quiet track record; the merchant’s own only.

All 29 portfolio blocks