Trusted logo strip — Hero block

Pro

hero-trusted-logo-strip · for home, landing pages

Trusted logo strip

A B2B opening whose proof is who already uses it: the merchant’s own logos under a thin rule

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-trusted-logo-strip

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import HeroTrustedLogoStrip from '@/components/trame/blocks/hero/hero-trusted-logo-strip.vue'

const props = {
title: "A desk by the harbor, by the day or by the month",
subtitle: "Dockside Works is ninety desks, six quiet rooms and one long kitchen table in a former net loft. Come for a day, stay for the Friday lunch.",
primaryAction: {
label: "Book a day pass",
action: "signup"
},
secondaryAction: {
label: "Visit the loft",
action: "demo"
},
logos: [
{
src: "https://placehold.co/160x48?text=Paperkite",
alt: "Paperkite Studio"
},
{
src: "https://placehold.co/160x48?text=Tidewater",
alt: "Tidewater Robotics"
}
],
options: {
eyebrow: "New: six quiet rooms upstairs",
note: "Your first day is on us",
caption: "Teams who work here"
}
}
</script>

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

Props

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

PropTypeDescription
title*stringWordsthe one promise, in a sentence (60 to 90 characters at most)
subtitlestringWordswhat it is 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
logos*Logo[]the companies that use the product, the merchant’s own only
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
Logo logos[] · 2 props
PropTypeDescription
src*stringPicturea picture: a root-relative path (/media/…) or an absolute URL
alt*stringWordsthe company’s name
Options options · 5 props
PropTypeDescription
eyebrowstringWordsa short chip above the title ("New")
notestringWordsfine print under the actions ("No bank card")
captionstringWordsthe line above the logos ("They trust us")
background'aurora' | 'pattern' | 'none'the section’s background: aurora, pattern, none
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 @vueuse/core, 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

  • Tour board below: the same promise centred, then a wide board across the whole window under it, toured the same way: a range to see as a whole first, wider than tall, for an opening that leads with the words (the host’s own work only).
  • Tour board side: the promise at the start and, on the other side to the window’s edge, a flat masonry board of the host’s pieces that a camera tours at the expressive level (steps back, comes close on one, holds, moves on): a studio, a shop or a library whose range is the argument and wants the words read beside it (the host’s own work only).
  • Trio split: the promise in its own column beside the products, the first one tall and the others stacked next to it, names and prices laid on the pictures: one lead product backed by one or two companions.
  • Trio staggered: the promise above three featured products set at different heights: a small range the shop is proud of in full.
  • Type centered: centred, the pictures under it in a row whose middle one stands taller: a launch, a calmer brand.
  • Type inline pictures: left-aligned, 1 to 3 of the pictures set inside the sentence at cap height (a pill, or overlapping circles), no strip: a team, a studio or a maker whose faces or objects belong in the sentence.
  • Type statement: left-aligned and huge, the text and the action on a rule under the statement, the pictures in a staggered strip: a brand with a voice.
  • Video ambient: the film plays by itself, muted and in a loop, behind the words at the foot of the first screen, with a pause button and a "Watch the film" button for the whole film with its sound: a place, a craft or a product in use, shown before it is told; a short file of a few MB, the merchant’s own film only.

All 102 hero blocks