Pictures cover overlay — About block
Freeabout-pictures-cover-overlay · for about, home, landing pages
Pictures cover overlay
The title and the first paragraph over one full-width picture, the rest under it: when the picture is the statement; the merchant’s own pictures 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/about-pictures-cover-overlayUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import AboutPicturesCoverOverlay from '@/components/trame/blocks/about/about-pictures-cover-overlay.vue'
const props = {
eyebrow: "Ember & Rye",
title: "One wood fire, cooked over from lunch to the last table.",
body: [
"Ember & Rye opened in 2019 in a former smokehouse by the docks. Everything on the menu passes over the same oak and apple-wood fire, lit at seven every morning.",
"Our vegetables come from three farms within forty miles; the menu changes with what they bring on Tuesday."
],
pictures: [
{
src: "https://images.unsplash.com/photo-1622021142947-da7dedc7c39a?w=1600&q=80",
alt: "A chef in white at work in a steel professional kitchen",
caption: "The kitchen at Ember & Rye, an hour before service"
},
{
src: "https://images.unsplash.com/photo-1705917893168-e03c7da62577?w=1600&q=80",
alt: "A hand spooning sauce onto a dish in a grey bowl"
}
],
cta: {
label: "Book a table",
action: "page",
record: {
id: "reservations"
}
}
}
</script>
<template>
<AboutPicturesCoverOverlay v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordswhat this is ("Our story", "The workshop") |
| title* | string | Wordswho the brand is, in one sentence, as the merchant would say it |
| body* | string[] | Wordsone paragraph of the merchant’s own words |
| pictures* | Picture[] | the merchant’s own pictures, one to six, in the order they are read |
| cta | Cta | the call to action: its words and the page action it runs |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Picture pictures[] · 3 props
| Prop | Type | Description |
|---|---|---|
| src* | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| alt | string | Wordswhat the picture shows, in a sentence, for those who do not see it; empty when the words around it already say it (decorative) |
| caption | string | Wordsa short caption the merchant wrote (a place, a name, a gesture) |
Cta cta · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Visit the workshop") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Options options · 2 props
| Prop | Type | Description |
|---|---|---|
| reverse | boolean | the pictures on the other side: left of the words instead of right, or above them instead of under; the words over a cover sit at its other end |
| 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
- Subtle motion: one short reveal; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
cta
A about section, for about, home, landing pages; it uses @lucide/vue, class-variance-authority, clsx, motion, reka-ui, tailwind-merge.
More about blocks
- Personal intro client ledger: a small round portrait and the role, the bio in two columns, then a ruled ledger of clients and project counts: a freelancer whose track record is the argument; the person’s own clients and counts only.
- Personal intro portrait left: a tall portrait beside the name, the bio and a row of facts, the work and the clients under them: a maker or a freelancer whose face is the brand; the person’s own clients only.
- Personal intro wide cover columns: the name set large over one wide picture of the person at work, then three columns (about, bio, facts and clients): a studio-like portfolio page with a strong picture; the person’s own clients only.
- Phrase band one row: one line of the brand’s phrases in very large type passing slowly across the full width between two hairlines, still and wrapped below the expressive level: a pause between two sections that says the house’s voice in a few words (the merchant’s own phrases only).
- Phrase band tilted: the phrases on a filled ribbon crossing the page at a slight angle, over a fainter ribbon tilted the other way: a playful, poster-like break for a launch, a collection or a brand page (the merchant’s own phrases only).
- Phrase band two rows: two lines travelling in opposite directions, the phrases in solid type above their outlined echo, offset by half a phrase: a bolder typographic interlude for an editorial home or a lookbook (the merchant’s own phrases only).
- Principles glossary: term, definition and what it is never used for: words the brand pins to a meaning; the merchant’s own only.
- Principles pillars: three to four centred cards with an icon, under a mission line: a short list of values; the merchant’s own only.