Partner tiers tiered — Trust and logos block

Pro

trust-partner-tiers-tiered · for home, landing, about pages

Partner tiers tiered

Sponsors or partners grouped under their level, the logos shrinking from the first tier to the last: an event or an association with sponsors the merchant names; the merchant’s own 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/trust-partner-tiers-tiered

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import TrustPartnerTiersTiered from '@/components/trame/blocks/trust/trust-partner-tiers-tiered.vue'

const props = {
label: "They support the festival",
items: [
{
name: "Atelier Lumen"
},
{
name: "Maison des Champs"
}
],
tiers: [
{
label: "Lead partner",
logos: [
{
name: "Atelier Lumen"
},
{
name: "Maison des Champs"
}
]
},
{
label: "Gold partners",
logos: [
{
name: "Quay Bookshop"
},
{
name: "Port Fine Foods"
}
]
}
]
}
</script>

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

Props

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

PropTypeDescription
labelstringWordsa few words naming them ("They trust us", "Sold at", "They talk about us")
headingstringWordsa heading, where the variant has room for one
leadstringWordsone sentence under the heading
items*Item[]the items shown, in order
tiersTier[]tiers: the sponsors the merchant names, grouped by level, the first tier the largest; a tier without logos is not shown; absent, items stand as one level
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Item items[] · 5 props
PropTypeDescription
name*stringWordsthe customer, stockist or publication, as it is called: shown in text when there is no logo file
logostringPicturethe logo file the merchant gives (SVG or transparent PNG): never one drawn or found by the block
hrefstringActionthe page that tells more (a case, a stockist page)
urlstringDesignan address outside the app (the article, the stockist’s site)
resultstringWordswith-results: one line of the real result for this customer
Tier tiers[] · 2 props
PropTypeDescription
label*stringWordsthe level, as the merchant names it ("Main partner", "Gold", "Silver")
logos*Logo[]the partners in this tier, each a name and an optional logo
Logo tiers[].logos[] · 4 props
PropTypeDescription
name*stringWordsthe sponsor or partner, as it is called: shown in text when there is no logo file
logostringPicturethe logo file the merchant gives: never one drawn or found by the block
hrefstringActionthe page that tells more
urlstringDesignan address outside the app (the sponsor’s site)
Options options · 3 props
PropTypeDescription
grayscalebooleangrey the logos at rest, in colour on hover or focus (on by default)
monobooleandraw each logo with the text colour through a mask, so it follows the theme (needs the file on the same origin; on in band)
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
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: items[].href, tiers[].logos[].href

A trust and logos section, for home, landing, about pages; it uses @vueuse/core, clsx, motion, tailwind-merge.

More trust and logos blocks

  • Logos dense wall: bordered cells in a quiet wall, for many names (nine and more); the merchant’s own only.
  • Logos grid heading: a heading and a sentence at the left, the logos as tiles at the right: customers worth a title; the merchant’s own only.
  • Logos lead partner: the first name told large beside the heading, the others as a quieter row below: one anchor customer or stockist the merchant puts first; the merchant’s own only.
  • Logos ledger: a ruled list, one line per name with its result or a link: stockists or customers the visitor may look up one by one; the merchant’s own only.
  • Logos with results: each customer as a card with its real result in one line and a link to the story; the merchant’s own only.
  • Promises band: a firm full-width band (inverse unless the page sets a mood), the heading at the left and three or four commitments in ruled columns at the right: a home page’s commitments between two sections; the merchant’s own only.
  • Promises pillars: three or four centered pillars with a large round icon: the home’s reassurance; the merchant’s own only.
  • Promises statement: one large guarantee sentence, centered, with a link to its conditions; the merchant’s own only.

All 23 trust and logos blocks