Proof panel stacked — Hero block
Prohero-proof-panel-stacked · for home, landing pages
Proof panel stacked
The same proof in a quieter, wider opening: the promise centred on top, the figures and the clients’ logos in two frosted panels side by side under it — the merchant’s own figures and clients 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/hero-proof-panel-stackedUsage
Its demo data, shortened (Using blocks).
<script setup lang="ts">
import HeroProofPanelStacked from '@/components/trame/blocks/hero/hero-proof-panel-stacked.vue'
const props = {
eyebrow: "Brand and product studio, Portland",
title: "We design the products people come back to",
subtitle: "Fieldwork is a team of twenty-two designers and engineers. We take a product from first sketch to launch, then stay on to make it better.",
primaryAction: {
label: "Start a project",
action: "contact"
},
secondaryAction: {
label: "See our work",
action: "work"
},
picture: {
src: "https://images.unsplash.com/photo-1629774631755-0a7faf26a3f9?w=1600&q=80",
alt: ""
},
stats: [
{
value: "140+",
label: "products shipped since 2014"
},
{
value: "22",
label: "designers and engineers"
}
],
meter: {
label: "Projects delivered on time",
value: 96
},
logos: [
{
src: "https://placehold.co/160x48/transparent/8a8a8a?text=Tidewell&font=montserrat",
alt: "Tidewell Bank"
},
{
src: "https://placehold.co/160x48/transparent/8a8a8a?text=Orchard&font=playfair-display",
alt: "Orchard & Pike"
}
]
}
</script>
<template>
<HeroProofPanelStacked v-bind="props" />
</template>Props
Each prop says who changes it: Words, Picture, Action, Design, Data.* required.
| Prop | Type | Description |
|---|---|---|
| eyebrow | string | Wordswho and what, in a few words ("Brand and product studio, Lisbon") |
| title* | string | Wordsthe one promise, in a sentence (40 to 80 characters): the page’s h1 |
| subtitle | string | Wordswhat is done and for whom, in one or two sentences |
| primaryAction* | PrimaryAction | the main button: its words and the page action it runs |
| secondaryAction | SecondaryAction | a quieter second action beside the main one: its words and the page action |
| picture | Picture | an atmospheric picture behind the whole opening, fading into the page at its foot (a place, a material, the work); without alt it is decoration |
| stats* | Stat[] | 2 to 4 figures the merchant states: the first is the lead figure, shown large with its label; the others stand in a ruled row under it |
| meter | Meter | one share the merchant states, drawn as a bar under the lead figure |
| logos* | Logo[] | 3 to 12 of the merchant’s own clients, by their logo files |
| options | Options | the block’s settings: layout choices and secondary words, read by every variant |
PrimaryAction primaryAction · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Try for free") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
SecondaryAction secondaryAction · 3 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat happens ("Try for free") |
| action* | string | Actiona named action of the page |
| record | Record<string, unknown> | Datathe record the action opens, if any |
Picture picture · 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 |
Stat stats[] · 2 props
| Prop | Type | Description |
|---|---|---|
| value* | string | Wordsthe figure as the merchant states it ("120+", "9 years") |
| label* | string | Wordswhat it counts ("projects shipped since 2016") |
Meter meter · 2 props
| Prop | Type | Description |
|---|---|---|
| label* | string | Wordswhat the share measures ("Projects delivered on time") |
| value* | number | the share, in percent, as the merchant states it |
Logo logos[] · 2 props
| Prop | Type | Description |
|---|---|---|
| src* | string | Picturethe client’s logo file the merchant gives (SVG or transparent PNG) |
| alt* | string | Wordsthe client’s name |
Options options · 1 props
| Prop | Type | Description |
|---|---|---|
| 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:
primaryAction,secondaryAction
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
- Project inquiry split form: someone who wants to be written to: the key facts on one side, a short contact form on the other — the merchant’s own only.
- Projects numbered: a portfolio led by its work: a short intro and a numbered list of projects with their discipline and year — the merchant’s own only.
- Prompt centered: the opening of an AI tool, a generator or a search-first product: a centred promise over a wide prompt field that glows, the example prompts under it.
- Prompt split: the same prompt as a working card beside the promise: a product whose promise needs a longer sentence, or a page whose heroes start on one side.
- Reel mosaic: the promise centred on a quiet pattern that lights up around the pointer (the grid with a few brief light streaks), then a calm bento of short muted clips within the page width: a studio, a tool or a library whose own work is the argument (the host’s own work only).
- Reel side: the mosaic turned on its side: a wide feature clip with up to three smaller ones under it on the start side, the promise beside them aligned to the start, over the same quiet pattern: a studio, a tool or a library that leads with one piece of its work and wants the words read alongside it (the host’s own work only).
- Reel tilted wall: the same centred promise over a wall of clips laid on a plane turned in 3D, running off both edges and fading at the foot: a body of work seen as a whole, more atmosphere than detail (the host’s own work only).
- Request bar: one to three short fields in a single bar under a centred promise: an address to leave, a quick callback.