Brand statement poster — Hero block
Freehero-brand-statement-poster · for home, landing pages
Brand statement poster
A condensed, oversized headline in capitals on a flat brand field, a ruled strip of facts and one picture on the half: a launch, an event, a bold brand.
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/hero-brand-statement-posterUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import HeroBrandStatementPoster from '@/components/trame/blocks/hero/hero-brand-statement-poster.vue'
const props = {
title: "Everyday clothes, designed for the {word}.",
images: [
{
src: "https://images.unsplash.com/photo-1515886657613-9f3515b0c78f?w=1600&q=80",
alt: "A yellow tracksuit on a seaside basketball court"
}
],
text: "Cut in small batches in our workshop, repairable for life.",
action: {
label: "Visit the shop",
action: "catalog"
},
strip: [
{
label: "Workshop",
value: "Portland, Southeast"
},
{
label: "Open",
value: "Tuesday to Saturday"
}
],
options: {
words: [
"city",
"mountain"
],
eyebrow: "Independent workshop"
}
}
</script>
<template>
<HeroBrandStatementPoster v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| title* | string | Wordsthe statement, 4 to 12 words; with options.words, "{word}" marks where the turning word goes, inside the sentence; without it the words are not shown |
| images | Image[] | one wide picture, or a strip of 3 to 5 small ones: the business’s own |
| text | string | Wordsone or two sentences under the statement |
| action | Action | the call to action: its words and the page action it runs |
| strip | Strip[] | poster and type-behind: a few facts in a ruled strip under the statement, the business’s own; absent, no strip |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
Image images[] · 2 props
| Prop | Type | Description |
|---|---|---|
| src* | string | Picturea picture: a root-relative path (/media/…) or an absolute URL |
| alt | string | Wordswhat the picture shows, when the words do not say it |
Action action · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("See the shop") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Strip strip[] · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat it is ("Workshop", "Open") |
| value* | string | Wordsthe fact as the business writes it ("Lyon", "Tuesday to Saturday") |
Options options · 3 props
| Prop | Type | Description |
|---|---|---|
| words | string[] | Wordsthe turning word’s values, each true of the business, the first written by the server ("route", "trail", "trail") |
| eyebrow | string | Wordsa few words above the statement |
| 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
- Expressive motion, within its budget; still under reduced motion
- Real buttons and links, a visible focus
- Asks your app through actions:
action
A hero section, for home, landing pages; it uses 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 hero blocks
- Audience centered: a pill switch above a centred promise, the chosen side’s picture in a wide frame below: a two-sided product whose sides weigh the same and whose pictures read best wide (freelancers and companies, patients and practitioners).
- Audience split: the switch and the words on the left, the chosen side’s picture tall on the right: a two-sided product with portrait pictures of people at work, or a page that needs its actions high on the first screen.
- Bento cascade: the promise in a tall cell, the collections as tall portrait cards overlapping in a rising staircase beside it: 2 to 4 collections with tall, graphic pictures, for a shop that wants depth more than a grid.
- Bento promise left: the promise in a tall cell on the left, the collections’ pictures in a grid beside it: 3 or 4 collections to open at once.
- Bento promise top: the promise as a wide band across the top, the collections’ pictures in a row under it: 2 or 3 collections, or a long promise.
- Bundle kit: a bundle of two to five pieces: what is in it, what it costs bought apart, and what the kit saves.
- Capabilities chips: many small capabilities: a row of chips under the actions says what the product covers at a glance.
- Centered framed: the same centred promise set inside a bordered panel with corner marks, the eyebrow as a tab on its edge and the fine print along its foot: a launch or an announcement that should read like a printed notice.