Pictures trio row — About block

Free

about-pictures-trio-row · for about, home, landing pages

Pictures trio row

Centred words over a row of pictures of unequal heights resting on one line: a team or a place told in three pictures; 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-trio-row

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import AboutPicturesTrioRow from '@/components/trame/blocks/about/about-pictures-trio-row.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>
<AboutPicturesTrioRow v-bind="props" />
</template>

Props

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

PropTypeDescription
eyebrowstringWordswhat this is ("Our story", "The workshop")
title*stringWordswho 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
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
Picture pictures[] · 3 props
PropTypeDescription
src*stringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the picture shows, in a sentence, for those who do not see it; empty when the words around it already say it (decorative)
captionstringWordsa short caption the merchant wrote (a place, a name, a gesture)
Cta cta · 3 props
PropTypeDescription
label*stringWordswhat happens ("Visit the workshop")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Options options · 2 props
PropTypeDescription
reversebooleanthe 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' | 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: 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

  • 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.
  • Principles quote and values: a mission statement on top and tiles with an accent rule under it: a conviction followed by its values; the merchant’s own only.
  • Principles refusals: cards of things the brand does not do, each with its date: a list of dated refusals; the merchant’s own only.
  • Signed story quote feature: the signed quote set very large as the headline, the story in two short columns below: when one real sentence says the brand better than any text.

All 35 about blocks