Phrase band tilted — About block

Pro

about-phrase-band-tilted · for home, landing, article pages

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)

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-tilted

Usage

Its demo data, shortened (Using blocks).

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

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

<template>
<AboutPhraseBandTilted 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 @vueuse/core, clsx, motion, tailwind-merge.

More about blocks

  • 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.
  • 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.

All 35 about blocks