Emphasized statement underlined — About block
Proabout-emphasized-statement-underlined · for home, about, landing pages
Emphasized statement underlined
The conviction set large and centred, one key phrase underlined or highlighted: a short statement with one idea to keep; 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/about-emphasized-statement-underlinedUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import AboutEmphasizedStatementUnderlined from '@/components/trame/blocks/about/about-emphasized-statement-underlined.vue'
const props = {
text: "We believe a well-made garment doesn’t need replacing. We cut it in small batches, repair it for life, and would rather sell less, but better, to people who will wear it for a long time.",
options: {
eyebrow: "What we believe",
signature: "Camille and Julien",
role: "founders of the workshop",
phrase: "sell less, but better"
}
}
</script>
<template>
<AboutEmphasizedStatementUnderlined v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| text* | string | Wordsthe conviction itself, 1 to 4 sentences (20 to 60 words), in the merchant’s own voice: one paragraph |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Options options · 8 props
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordsa few words naming it, the section’s heading ("What we believe", "Why we exist") |
| phrase | string | Wordsunderlined: the key words of `text`, written exactly as they appear in it (3 to 8 words) |
| mark | 'underline' | 'highlight' | underlined: a drawn line under the phrase (default) or a marker behind it |
| signature | string | Wordswho says it: a founder’s or the team’s name, as the merchant gives it |
| role | string | Wordsthe signature’s role ("founder", "the workshop team") |
| image | string | Picturesplit: the tall picture beside the words (without it, set like lit); lit and underlined: a wide picture under them |
| alt | string | Wordsthe picture’s description, when it says something the words do not (empty: decorative) |
| 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 |
| 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
A about section, for home, about, landing pages; it uses clsx, motion, tailwind-merge.
Built with
The components this block is made of; each one installs on its own too.
More about blocks
- Build criteria questions: how the merchant picks what to build, as four questions: explaining the choices, not listing them.
- Commitments cards: cards with the rule, its text and what it costs the merchant: when honesty about the trade-off is the point; the merchant’s own only.
- Commitments numbered rows: large numerals, a title and two lines per rule: an ordered list of three to twelve principles; the merchant’s own only.
- Company facts list: a plain label and value list with the claim in prose beside it: the company’s facts in one place; the merchant’s own only.
- Founder letter: a signed letter in one narrow column, salutation, paragraphs, signature and date: one voice speaking to the customer; the merchant’s own only.
- Intro long prose: a wide headline then up to three paragraphs in a readable column: when there is real story to read.
- Intro rail lead: an editorial about page: the eyebrow as a quiet label in a left rail, the title, a large first paragraph and the others smaller at the right, the action as a text link.
- Intro split title: a short intro where the title and the words weigh the same: a very large title at the left, the paragraphs at the right on its last line.