Signed story text quote — About block
Proabout-signed-story-text-quote · for about, home pages
Signed story text quote
The story in prose beside a signed quote: when a real person said something worth printing
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-signed-story-text-quoteUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import AboutSignedStoryTextQuote from '@/components/trame/blocks/about/about-signed-story-text-quote.vue'
const props = {
eyebrow: "Our story",
title: "Bags and textiles made to last, sewn a few streets from here.",
body: [
"The workshop grew out of a simple observation: the bags we buy wear out before we grow attached to them. We design a small number, cut and assemble them ourselves, and repair them when they come back.",
"Every model is tested for several months before it reaches the shop. The ones that don’t hold up aren’t sold."
],
quote: "You can tell a good bag by the way it ages. We’d rather you repair it than replace it.",
author: {
name: "Camille Laurent",
role: "Founder and leatherworker"
},
cta: {
label: "Visit the workshop",
action: "page",
record: {
id: "atelier"
}
}
}
</script>
<template>
<AboutSignedStoryTextQuote 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 |
| quote* | string | Wordsa real quote, said by a real person, with the signature in `author` |
| author | Author | Datawho signs the quote: name and role |
| 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 |
Author author · 6 props
| Prop | Type | Description |
|---|---|---|
| id | string | number | Datathe record’s id in the tool that answers it |
| name* | string | Wordsthe person’s name |
| role | string | Wordstheir role or job title |
| company | string | Wordswhere they work |
| avatar | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| url | string | Designa page about them |
Cta cta · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Discover the workshop") |
| action* | string | Actiona named action of the 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
- 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 pages; it uses @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 about blocks
- 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.
- Pictures wide cover: the title and the words side by side above one wide picture: one story carried by one strong picture of the place; the merchant’s own pictures 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.
- Story facts text facts: the story in prose beside one to four true figures, hairline divided: when a few facts carry the brand.
- Workshop story photo split: the place or the workshop in a picture beside the words, values and facts under it: when a good picture exists.