Proof panel stacked — Hero block

Pro

hero-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-stacked

Usage

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.

PropTypeDescription
eyebrowstringWordswho and what, in a few words ("Brand and product studio, Lisbon")
title*stringWordsthe one promise, in a sentence (40 to 80 characters): the page’s h1
subtitlestringWordswhat is done and for whom, in one or two sentences
primaryAction*PrimaryActionthe main button: its words and the page action it runs
secondaryActionSecondaryActiona quieter second action beside the main one: its words and the page action
picturePicturean 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
meterMeterone 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
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
PrimaryAction primaryAction · 3 props
PropTypeDescription
label*stringWordswhat happens ("Try for free")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
SecondaryAction secondaryAction · 3 props
PropTypeDescription
label*stringWordswhat happens ("Try for free")
action*stringActiona named action of the page
recordRecord<string, unknown>Datathe record the action opens, if any
Picture picture · 2 props
PropTypeDescription
src*stringPicturea picture: a root-relative path (/media/…) or an absolute URL
altstringWordswhat the picture shows, when the words do not say it
Stat stats[] · 2 props
PropTypeDescription
value*stringWordsthe figure as the merchant states it ("120+", "9 years")
label*stringWordswhat it counts ("projects shipped since 2016")
Meter meter · 2 props
PropTypeDescription
label*stringWordswhat the share measures ("Projects delivered on time")
value*numberthe share, in percent, as the merchant states it
Logo logos[] · 2 props
PropTypeDescription
src*stringPicturethe client’s logo file the merchant gives (SVG or transparent PNG)
alt*stringWordsthe client’s name
Options options · 1 props
PropTypeDescription
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
asseta picture’s address as your app serves it
Linkyour router’s link component
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
  • 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.

All 102 hero blocks