Phrase band two rows — About block
Proabout-phrase-band-two-rows · for home, landing, article pages
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)
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-phrase-band-two-rowsUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import AboutPhraseBandTwoRows from '@/components/trame/blocks/about/about-phrase-band-two-rows.vue'
const props = {
phrases: [
"Cast by hand",
"Recycled gold"
],
label: "What the atelier stands for"
}
</script>
<template>
<AboutPhraseBandTwoRows v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| phrases* | string[] | Words1 to 8 of the brand’s own phrases, in the order they pass: each a few words (under 40 characters reads best), separated by a small glyph |
| label | string | Wordsthe band’s accessible name, read before the phrases, e.g. "What the atelier stands for" (the host’s word when absent) |
| options | Options | the block’s settings: layout choices, read by every variant |
Options options · 4 props
| Prop | Type | Description |
|---|---|---|
| speed | 'slow' | 'slower' | the pace of the drift at the expressive level: slow (the default) or slower |
| direction | 'left' | 'right' | the way the phrases travel: toward the left (the default) or the right; a second row goes the other way |
| glyph | 'dot' | 'diamond' | 'star' | the small mark between two phrases: a dot (the default), a diamond or a four-pointed star |
| 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 |
| 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, landing, article pages; it uses @vueuse/core, clsx, motion, 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.
- Pictures bento pair: the words beside a mosaic of a tall, a wide and two small pictures: a rich story with four pictures of the making; the merchant’s own pictures only.
- 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.
- Pictures side portrait: one tall picture of a person or a room beside the words: a founder, a maker or a single place; the merchant’s own pictures only.
- Pictures staggered collage: a narrow column of words beside small pictures set at three heights in a loose diagonal: a young, informal brand with five or six snapshots; the merchant’s own pictures only.
- 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.