Phrase band one row — About block

Pro

about-phrase-band-one-row · for home, landing, article pages

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)

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-one-row

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import AboutPhraseBandOneRow from '@/components/trame/blocks/about/about-phrase-band-one-row.vue'

const props = {
phrases: [
"Cast by hand",
"Recycled gold"
],
label: "What the atelier stands for"
}
</script>

<template>
<AboutPhraseBandOneRow v-bind="props" />
</template>

Props

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

PropTypeDescription
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
labelstringWordsthe band’s accessible name, read before the phrases, e.g. "What the atelier stands for" (the host’s word when absent)
optionsOptionsthe block’s settings: layout choices, read by every variant
Options options · 4 props
PropTypeDescription
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' | 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
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
  • 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 clsx, motion, tailwind-merge.

More about blocks

  • Manifesto lit: the conviction alone, very large, its words lighting up one after the other as it scrolls by at the expressive level: a calm statement elsewhere; the merchant’s own only.
  • Manifesto split: the conviction beside a tall picture of the brand (its workshop, its people, its ground); the merchant’s own only.
  • 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.

All 35 about blocks