Proof by segment quote cards — Case studies block

Pro

case-studies-proof-by-segment-quote-cards · for home, landing, about pages

Proof by segment quote cards

The heading and a vertical list of customer kinds at the start, the chosen kind’s quotes as one to three cards with their faces beside it, its logos small under them: kinds of customer with several voices each and real portraits; the merchant’s own logos and quotes 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/case-studies-proof-by-segment-quote-cards

Usage

Its demo data, shortened (Using blocks).

<script setup lang="ts">
import CaseStudiesProofBySegmentQuoteCards from '@/components/trame/blocks/case-studies/case-studies-proof-by-segment-quote-cards.vue'

const props = {
eyebrow: "Customer stories",
title: "Teams like yours, in their own words",
intro: "Gridline is used by agencies, in-house teams and people working on their own. Pick the one that sounds like you.",
segments: [
{
label: "Agencies",
logos: [
{
name: "Northpine",
logo: "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20141%2048%22%20width%3D%22141%22%20height%3D%2248%22%3E%3Cg%20fill%3D%22%238a8a8a%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2224%22%20r%3D%2212%22%2F%3E%3Ctext%20x%3D%2240%22%20y%3D%2231.5%22%20font-family%3D%22Helvetica%2C%20Arial%2C%20sans-serif%22%20font-size%3D%2219%22%20font-weight%3D%22700%22%20letter-spacing%3D%22-0.3%22%3ENorthpine%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E"
},
{
name: "Halfmoon & Co.",
logo: "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20194%2048%22%20width%3D%22194%22%20height%3D%2248%22%3E%3Cg%20fill%3D%22%238a8a8a%22%3E%3Crect%20x%3D%226%22%20y%3D%2212%22%20width%3D%2224%22%20height%3D%2224%22%20rx%3D%225%22%2F%3E%3Ctext%20x%3D%2240%22%20y%3D%2231.5%22%20font-family%3D%22Helvetica%2C%20Arial%2C%20sans-serif%22%20font-size%3D%2219%22%20font-weight%3D%22700%22%20letter-spacing%3D%22-0.3%22%3EHalfmoon%20%26amp%3B%20Co.%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E"
}
],
quotes: [
{
text: "We used to close every month with three spreadsheets and a headache. Now the timesheets, the budgets and the invoices agree with each other, and I get my Fridays back.",
author: {
name: "Dana Whitfield",
role: "Operations Director",
company: "Northpine",
avatar: "https://images.unsplash.com/photo-1580489944761-15a19d654956?w=400&q=80"
}
},
{
text: "Our producers see a project drifting over budget in week two, not after the client call.",
author: {
name: "Marcus Ellery",
role: "Head of Production",
company: "Field Day",
avatar: "https://images.unsplash.com/photo-1507003211169-0a1dd7228f2d?w=400&q=80"
}
}
],
link: {
label: "See agency stories",
action: "case-studies",
record: {
segment: "agencies"
}
}
},
{
label: "In-house teams",
logos: [
{
name: "Corvel Outdoor",
logo: "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20194%2048%22%20width%3D%22194%22%20height%3D%2248%22%3E%3Cg%20fill%3D%22%238a8a8a%22%3E%3Cpath%20d%3D%22M6%2036%20L18%2012%20L30%2036Z%22%2F%3E%3Ctext%20x%3D%2240%22%20y%3D%2231.5%22%20font-family%3D%22Helvetica%2C%20Arial%2C%20sans-serif%22%20font-size%3D%2219%22%20font-weight%3D%22700%22%20letter-spacing%3D%22-0.3%22%3ECorvel%20Outdoor%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E"
},
{
name: "Mapleton Health",
logo: "data:image/svg+xml;utf8,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20viewBox%3D%220%200%20205%2048%22%20width%3D%22205%22%20height%3D%2248%22%3E%3Cg%20fill%3D%22%238a8a8a%22%3E%3Ccircle%20cx%3D%2218%22%20cy%3D%2224%22%20r%3D%2212%22%2F%3E%3Ctext%20x%3D%2240%22%20y%3D%2231.5%22%20font-family%3D%22Helvetica%2C%20Arial%2C%20sans-serif%22%20font-size%3D%2219%22%20font-weight%3D%22700%22%20letter-spacing%3D%22-0.3%22%3EMapleton%20Health%3C%2Ftext%3E%3C%2Fg%3E%3C%2Fsvg%3E"
}
],
quotes: [
{
text: "Marketing, legal and the printer finally look at the same version of a brief. Our launches stopped slipping on the last day.",
author: {
name: "Helen Achebe",
role: "Creative Director",
company: "Corvel Outdoor",
avatar: "https://images.unsplash.com/photo-1573496359142-b8d87734a5a2?w=400&q=80"
}
},
{
text: "We stopped losing requests in email. Every ask has an owner and a date, and nobody chases anyone on Slack.",
author: {
name: "Tom Brannigan",
role: "Marketing Operations Lead",
company: "Mapleton Health",
avatar: "https://images.unsplash.com/photo-1500648767791-00dcc994a43e?w=400&q=80"
}
}
],
link: {
label: "See in-house stories",
action: "case-studies",
record: {
segment: "in-house"
}
}
}
]
}
</script>

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

Props

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

PropTypeDescription
eyebrowstringWordsa short line above the title ("Customer stories")
title*stringWordsthe section’s heading ("Teams like yours, in their own words")
introstringWordsone or two sentences under the heading
segments*Segment[]2 to 6 kinds of customer, in the order of the switch; the first is shown first
optionsOptionsthe block’s settings: layout choices and secondary words, read by every variant
Segment segments[] · 4 props
PropTypeDescription
label*stringWordsthe kind of customer, as the switch names it, short ("Agencies", "In-house teams", 1 to 3 words)
logosLogo[]up to eight customers of this kind, the merchant’s own only: a logo file, or the name set in type; none is fine
quotes*Quote[]one to three quotes from customers of this kind, word for word and with their consent: never written by the agent; the first is told largest
linkLinkwhere this kind of customer reads more ("See agency stories")
Logo segments[].logos[] · 2 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
Quote segments[].quotes[] · 4 props
PropTypeDescription
text*stringWordsthe testimonial, in the customer’s own words
author*Authorwho said it
ratingnumberthe stars they gave, 1 to 5
sourcestringWordswhere it was collected, e.g. "Google reviews"
Author segments[].quotes[].author · 6 props
PropTypeDescription
idstring | numberDatathe record’s id in the tool that answers it
name*stringWordsthe person’s name
rolestringWordstheir role or job title
companystringWordswhere they work
avatarstringPicturea picture: a root-relative path (/media/…) or an absolute URL
urlstringDesigna page about them
Link segments[].link · 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
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
  • Subtle motion: one short reveal; still under reduced motion
  • Real buttons and links, a visible focus
  • Asks your app through actions: segments[].link

A case studies section, for home, landing, about pages; it uses @lucide/vue, clsx, motion, tailwind-merge.

More case studies blocks

  • Featured plus list: one featured story and a rail of the other stories, each with its main figure.
  • Featured: one story told large: the words at the left, its three figures in a column, the customer’s quote under.
  • Goals table: target against outcome with a status for each, a miss shown as plainly as a success.
  • Metrics story chart: a few figures as rows beside a chart of the merchant’s own series over time; the merchant’s own only.
  • Quotes and results: two to four customers whose words and figures both matter, on a landing page: their quotes in a row of cards, then one picture card per story with its first figure (the merchant’s own quotes and results only).
  • Study cards feature rows: two to four deep stories as wide alternating rows, the cover beside the headline and all the results as a strip of figures: a few customers told at length.
  • Study cards figure cover: cards whose cover carries the customer’s first figure very large, the headline and a second result under it: when the results are the pitch (the customer’s own figures only).
  • Study cards figure split: two to twelve stories as wide split cards in a rail, the customer and their first figure huge on one half and the cover on the other, the next card peeking: when one number per customer is the pitch and the covers are good (the customer’s own figures only).

All 20 case studies blocks