Video Testimonial Grid 1
Video testimonial route: supplied video stories become stops on a route from where they started to the result,
Use it in a prompt
Use proof/video-testimonial-grid from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/proof/video-testimonial-grid.tsx. - Import it and pass your copy and images (Props tab):
import { VideoTestimonialGrid } from "@/components/funneldna/proof/video-testimonial-grid"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/video-testimonial-grid/component.tsx 437 lines
// layout: route-map
// Video testimonial route: supplied video stories become stops on a route from where they started to the result,
// and the route ends at a risk-first, dear-friend close with the price and one action.
// Theme: every colour, face, radius and shadow reads the theme tokens (theme-contract.md). No official marks or fixed hues.
// The poster is a media button: it takes the button face role (--button-font); its play disc stays on --card/--ink
// so the glyph keeps contrast over any supplied photo, whatever the theme does to the secondary button.
import * as React from 'react'
import { Flag, Lock, Play } from 'lucide-react'
export type VideoTestimonial = {
/** Name as it should appear, e.g. a first name and initial. */
name: string
/** Short line beside the name: city, role or business. */
detail?: string
/** The one-line result, in their words. */
result: React.ReactNode
/** Poster frame for the video (src). */
posterImage: string
/** Where the real video lives; opened in a new tab when no onPlay handler is given. */
videoUrl?: string
/** Running time, e.g. 1:48. */
duration?: string
/** Milestone on the route, e.g. Night one. */
stage?: string
}
export type VideoTestimonialGridLetter = {
salutation?: string
paragraphs?: React.ReactNode[]
signOff?: string
/** Shown in the signature face. */
signer?: string
signerRole?: string
}
export type VideoTestimonialGridCopy = {
/** Accessible poster label. Placeholder: {name}. */
play?: string
/** Running-time label. Placeholder: {duration}. */
duration?: string
/** Route stop label. Placeholder: {number}. */
stop?: string
/** Label at the end of the route, above the close. */
finish?: string
/** Button label used when label is not set. Placeholder: {price}. */
button?: string
}
export type VideoTestimonialGridProps = {
headline?: React.ReactNode
lead?: React.ReactNode
/** Supplied video stories only. Empty by default, so a page shows only the proof it has. */
testimonials?: VideoTestimonial[]
/** Opens the real video; the page wires the player. */
onPlay?: (testimonial: VideoTestimonial, index: number) => void
letter?: VideoTestimonialGridLetter
/** The risk reversal that leads the close. */
riskHeadline?: React.ReactNode
riskBody?: React.ReactNode
price?: string
/** Small line under the price, e.g. one-time payment. */
priceNote?: string
label?: string
reassurance?: string
href?: string
onAction?: (event: React.MouseEvent<HTMLElement>) => void
disabled?: boolean
state?: 'default' | 'hover' | 'active' | 'disabled'
copy?: VideoTestimonialGridCopy
/** Optional Google Fonts stylesheet for a signature face; the page sets --signature-face to use it. Off by default so the sign-off follows the page fonts. */
signatureFontUrl?: string
className?: string
}
const DEFAULT_COPY = {
play: 'Play {name}’s story',
duration: '{duration} video',
stop: 'Stop {number}',
finish: 'Your turn',
button: 'Start Risk-Free for {price}',
}
const DEFAULT_LETTER = {
salutation: 'Dear friend,',
paragraphs: [
'You just saw where these stories started, and where they ended up.',
'Your route can start tonight. Follow the plan one step at a time and see how far it takes you.',
] as React.ReactNode[],
signOff: 'To your first launch,',
}
export function VideoTestimonialGrid(props: VideoTestimonialGridProps) {
const {
headline = 'Watch where they started, and where they are now',
lead = 'Press play on any stop along the route, then take your first step below.',
testimonials = [],
onPlay,
letter,
riskHeadline = 'Try it for 30 days, risk free',
riskBody = 'Work through the plan. If it isn’t right for you, ask for a full refund within 30 days.',
price = '$47',
priceNote = 'one-time payment',
label,
reassurance = 'Secure checkout · Instant access',
href,
onAction,
disabled = false,
state = 'default',
copy,
signatureFontUrl,
className = '',
} = props
const words = {
play: copy?.play ?? DEFAULT_COPY.play,
duration: copy?.duration ?? DEFAULT_COPY.duration,
stop: copy?.stop ?? DEFAULT_COPY.stop,
finish: copy?.finish ?? DEFAULT_COPY.finish,
button: copy?.button ?? DEFAULT_COPY.button,
}
const note = {
salutation: letter?.salutation ?? DEFAULT_LETTER.salutation,
paragraphs: letter?.paragraphs ?? DEFAULT_LETTER.paragraphs,
signOff: letter?.signOff ?? DEFAULT_LETTER.signOff,
signer: letter?.signer ?? '',
signerRole: letter?.signerRole ?? '',
}
const headingId = React.useId()
const isDisabled = disabled || state === 'disabled'
const count = testimonials.length
const routeStyle = {
'--vtg-c3': Math.max(1, Math.min(3, count)),
'--vtg-c2': Math.max(1, Math.min(2, count)),
} as React.CSSProperties
const parts = splitPrice(price)
const buttonLabel = label ?? fill(words.button, { price })
const handleAction = (event: React.MouseEvent<HTMLElement>) => {
if (isDisabled) {
event.preventDefault()
return
}
onAction?.(event)
}
const labelNodes = keepHyphenated(buttonLabel)
const cta =
href && !isDisabled ? (
<a className='vtg-cta' href={href} onClick={handleAction}>
{labelNodes}
</a>
) : (
<button type='button' className='vtg-cta' disabled={isDisabled} onClick={handleAction}>
{labelNodes}
</button>
)
return (
<section
className={`cf-video-testimonial-grid ${className}`.trim()}
data-state={state}
aria-labelledby={headingId}
>
{note.signer && signatureFontUrl ? <link rel='stylesheet' href={signatureFontUrl} /> : null}
<style>{CSS}</style>
<div className='vtg-inner'>
<header className='vtg-head'>
<h2 id={headingId} className='vtg-h2'>
{headline}
</h2>
{lead ? <p className='vtg-lead'>{lead}</p> : null}
</header>
{count > 0 ? (
<ol className='vtg-route' style={routeStyle}>
{testimonials.map((item, i) => (
<li
className='vtg-stop'
key={`${item.name}-${i}`}
style={{ '--vtg-i': i } as React.CSSProperties}
>
<div className='vtg-marker'>
<span className='vtg-stage'>
{fill(words.stop, { number: String(i + 1) })}
{item.stage ? <span className='vtg-stage-name'> · {item.stage}</span> : null}
</span>
<span className='vtg-track' aria-hidden='true'>
<span className='vtg-line' />
<span className='vtg-dot' />
</span>
</div>
<article className='vtg-card'>
<Poster
item={item}
index={i}
onPlay={onPlay}
label={fill(words.play, { name: item.name }) + (item.duration ? ', ' + item.duration : '')}
/>
<div className='vtg-body'>
<h3 className='vtg-result'>“{item.result}”</h3>
<p className='vtg-who'>
<span className='vtg-name'>{item.name}</span>
{item.detail ? <span className='vtg-detail'>{item.detail}</span> : null}
{item.duration ? (
<span className='vtg-length'>{fill(words.duration, { duration: item.duration })}</span>
) : null}
</p>
</div>
</article>
</li>
))}
</ol>
) : null}
{count > 0 ? (
<div className='vtg-finish'>
<span className='vtg-finish-line' aria-hidden='true' />
<span className='vtg-flag' aria-hidden='true'>
<Flag size={20} strokeWidth={2.5} />
</span>
<p className='vtg-finish-label'>{words.finish}</p>
</div>
) : null}
<div className='vtg-close'>
<div className='vtg-letter'>
{note.salutation ? <p className='vtg-salutation'>{note.salutation}</p> : null}
{note.paragraphs.map((paragraph, i) => (
<p className='vtg-para' key={i}>
{paragraph}
</p>
))}
{note.signOff || note.signer ? (
<div className='vtg-sign'>
{note.signOff ? <p className='vtg-signoff'>{note.signOff}</p> : null}
{note.signer ? <p className='vtg-signer'>{note.signer}</p> : null}
{note.signerRole ? <p className='vtg-role'>{note.signerRole}</p> : null}
</div>
) : null}
</div>
<div className='vtg-offer'>
<h3 className='vtg-risk'>{riskHeadline}</h3>
{riskBody ? <p className='vtg-risk-body'>{riskBody}</p> : null}
<p className='vtg-price'>
{parts.symbol ? <span className='vtg-price-sym'>{parts.symbol}</span> : null}
<span>{parts.amount}</span>
{parts.rest ? <span className='vtg-price-rest'>{parts.rest}</span> : null}
</p>
{priceNote ? <p className='vtg-price-note'>{priceNote}</p> : null}
{cta}
{reassurance ? (
<p className='vtg-reassure'>
<Lock className='vtg-reassure-icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{reassurance}
</p>
) : null}
</div>
</div>
</div>
</section>
)
}
export default VideoTestimonialGrid
function Poster({
item,
index,
onPlay,
label,
}: {
item: VideoTestimonial
index: number
onPlay?: (testimonial: VideoTestimonial, index: number) => void
label: string
}) {
const art = (
<>
<img src={item.posterImage} alt='' width={640} height={400} loading='lazy' decoding='async' />
<span className='vtg-play' aria-hidden='true'>
<Play size={24} strokeWidth={2.5} fill='currentColor' />
</span>
</>
)
if (!onPlay && item.videoUrl) {
return (
<a className='vtg-poster' href={item.videoUrl} target='_blank' rel='noopener noreferrer' aria-label={label}>
{art}
</a>
)
}
return (
<button type='button' className='vtg-poster' aria-label={label} onClick={() => onPlay?.(item, index)}>
{art}
</button>
)
}
// Keeps hyphenated words (Risk-Free) whole, so a narrow or uppercase button never breaks at the hyphen.
function keepHyphenated(text: string) {
const words = text.split(' ')
return words.map((word, i) => (
<React.Fragment key={i}>
{word.includes('-') ? <span className='vtg-nowrap'>{word}</span> : word}
{i < words.length - 1 ? ' ' : null}
</React.Fragment>
))
}
function isDigit(char: string) {
return char >= '0' && char <= '9'
}
// Splits $47 into a superscript symbol, the figure and any trailing text.
function splitPrice(value: string) {
let start = 0
while (start < value.length && !isDigit(value[start])) start++
if (start === value.length) return { symbol: '', amount: value, rest: '' }
let end = start
while (end < value.length && (isDigit(value[end]) || value[end] === '.' || value[end] === ',')) end++
return { symbol: value.slice(0, start).trim(), amount: value.slice(start, end), rest: value.slice(end) }
}
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((out, key) => out.split('{' + key + '}').join(values[key]), template)
}
const S = '.cf-video-testimonial-grid'
const CSS = `
${S}{--vtg-gap:clamp(20px,2.4vw,32px);--vtg-row:48px;--vtg-band:var(--band,oklch(0.27 0.067 256));--vtg-band-ink:var(--band-ink,oklch(1 0 0));--vtg-band-muted:color-mix(in oklch,var(--vtg-band-ink) 80%,var(--vtg-band));--vtg-rail:color-mix(in oklch,var(--vtg-band-ink) 34%,var(--vtg-band));--vtg-card-radius:var(--card-radius,var(--radius,14px));--vtg-shadow:var(--shadow,oklch(0.22 0.03 256));--vtg-ink:var(--ink,oklch(0.21 0.034 263));--vtg-card:var(--card,oklch(1 0 0));--vtg-accent-fill:var(--accent-fill,var(--accent,oklch(0.5 0.17 257)));position:relative;background:var(--vtg-band);color:var(--vtg-band-ink);font-family:var(--font-body,system-ui,sans-serif);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);overflow-x:clip}
${S} *,${S} *::before,${S} *::after{box-sizing:border-box}
${S} .vtg-inner{position:relative;max-width:1120px;margin-inline:auto}
${S} .vtg-head{max-width:46rem;margin-inline:auto;text-align:center}
${S} .vtg-h2{margin:0;font-family:var(--font-display,inherit);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);text-wrap:balance;color:var(--vtg-band-ink)}
${S} .vtg-lead{margin:16px auto 0;max-width:40rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--vtg-band-muted);text-wrap:balance}
${S} .vtg-route{list-style:none;margin:clamp(40px,5vw,64px) auto 0;padding:0;display:grid;gap:var(--vtg-row) var(--vtg-gap);grid-template-columns:repeat(var(--vtg-c3,3),minmax(0,1fr));max-width:calc(var(--vtg-c3,3) * 400px + (var(--vtg-c3,3) - 1) * var(--vtg-gap))}
${S} .vtg-stop{position:relative;display:flex;flex-direction:column;min-width:0;animation:vtg-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--vtg-i,0) * .07s),.28s)}
${S} .vtg-marker{display:flex;flex-direction:column;gap:12px;margin-bottom:16px}
${S} .vtg-stage{font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--vtg-band-ink)}
${S} .vtg-stage-name{color:var(--vtg-band-muted)}
${S} .vtg-track{position:relative;display:block;height:16px}
${S} .vtg-dot{position:absolute;left:0;top:0;z-index:1;width:16px;height:16px;border-radius:999px;background:var(--vtg-accent-fill);outline:4px solid var(--vtg-band)}
${S} .vtg-line{position:absolute;left:8px;right:calc(-1 * (var(--vtg-gap) + 8px));top:7px;height:2px;border-radius:2px;background:var(--vtg-rail);transform-origin:left center;animation:vtg-draw-x .6s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(min(calc(var(--vtg-i,0) * .07s),.28s) + .2s)}
${S} .vtg-card{flex:1;display:flex;flex-direction:column;padding:12px;background:var(--vtg-card);color:var(--vtg-ink);border:1px solid var(--card-border,oklch(from var(--vtg-ink) l c h / .12));border-radius:var(--vtg-card-radius);box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--vtg-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--vtg-shadow) l c h / .2)))}
${S} .vtg-poster{position:relative;display:block;width:100%;aspect-ratio:16 / 10;margin:0;padding:0;border:0;border-radius:calc(var(--vtg-card-radius) - 4px);overflow:hidden;isolation:isolate;cursor:pointer;font:inherit;font-family:var(--button-font,var(--font-body,inherit));color:inherit;text-decoration:none;background:color-mix(in oklch,var(--vtg-ink) 10%,var(--vtg-card))}
${S} .vtg-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 30%;transition:transform .5s cubic-bezier(.2,.7,.2,1)}
${S} .vtg-poster::after{content:'';position:absolute;inset:0;background:oklch(from var(--vtg-shadow) l c h / .2);transition:background-color .16s ease;pointer-events:none}
${S} .vtg-play{position:absolute;left:50%;top:50%;z-index:1;display:grid;place-items:center;width:64px;height:64px;margin:-32px 0 0 -32px;border-radius:999px;background:var(--vtg-card);color:var(--vtg-ink);box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--vtg-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--vtg-shadow) l c h / .2));transition:transform .16s ease,background-color .16s ease,color .16s ease}
${S} .vtg-play svg{margin-left:3px}
@media (hover:hover){
${S} .vtg-poster:hover img{transform:scale(1.04)}
${S} .vtg-poster:hover::after{background:oklch(from var(--vtg-shadow) l c h / .08)}
${S} .vtg-poster:hover .vtg-play{background:var(--vtg-accent-fill);color:var(--accent-fill-ink,var(--vtg-card));transform:scale(1.06)}
}
${S} .vtg-poster:active .vtg-play{transform:scale(.96)}
${S} .vtg-poster:focus-visible{outline:3px solid var(--field-focus,var(--accent,oklch(0.5 0.17 257)));outline-offset:3px}
${S} .vtg-body{flex:1;display:flex;flex-direction:column;padding:16px 12px 12px}
${S} .vtg-result{margin:0;font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;text-wrap:balance;color:var(--vtg-ink)}
${S} .vtg-who{margin:auto 0 0;padding-top:16px;display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;font-size:.9375rem;line-height:1.4}
${S} .vtg-name{font-weight:800;color:var(--vtg-ink)}
${S} .vtg-detail{font-weight:500;color:var(--muted,oklch(0.45 0.03 258))}
${S} .vtg-length{margin-left:auto;font-weight:600;font-variant-numeric:tabular-nums;color:var(--muted,oklch(0.45 0.03 258))}
${S} .vtg-finish{display:flex;flex-direction:column;align-items:center;gap:12px;margin-top:8px}
${S} .vtg-finish-line{display:block;width:2px;height:40px;border-radius:2px;background:var(--vtg-rail)}
${S} .vtg-flag{display:grid;place-items:center;flex:0 0 auto;width:40px;height:40px;border-radius:999px;background:var(--vtg-accent-fill);color:var(--accent-fill-ink,var(--vtg-card));box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--vtg-shadow) l c h / .25))}
${S} .vtg-finish-label{margin:0;font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--vtg-band-ink)}
${S} .vtg-close{margin:16px auto 0;max-width:1000px;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:clamp(24px,4vw,48px);align-items:start;padding:clamp(20px,3vw,32px);background:var(--vtg-card);color:var(--vtg-ink);border:1px solid var(--card-border,oklch(from var(--vtg-ink) l c h / .12));border-radius:var(--vtg-card-radius);box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--vtg-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--vtg-shadow) l c h / .32)))}
${S} .vtg-letter{padding-top:clamp(0px,1vw,8px)}
${S} .vtg-salutation{margin:0;font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;color:var(--vtg-ink)}
${S} .vtg-para{margin:12px 0 0;max-width:64ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--vtg-ink);text-wrap:pretty}
${S} .vtg-salutation + .vtg-para{margin-top:16px}
${S} .vtg-sign{margin-top:24px}
${S} .vtg-signoff{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted,oklch(0.45 0.03 258))}
${S} .vtg-signer{margin:12px 0 0;font-family:var(--signature-font,var(--signature-face,var(--font-display,inherit)));font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;color:var(--signature-ink,var(--vtg-ink))}
${S} .vtg-role{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted,oklch(0.45 0.03 258))}
${S} .vtg-offer{display:flex;flex-direction:column;align-items:center;text-align:center;padding:clamp(20px,3vw,28px);border-radius:calc(var(--vtg-card-radius) - 4px);background:color-mix(in oklch,var(--vtg-ink) 4%,var(--vtg-card))}
${S} .vtg-risk{margin:0;font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;text-wrap:balance;color:var(--vtg-ink)}
${S} .vtg-risk-body{margin:12px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted,oklch(0.45 0.03 258));text-wrap:pretty}
${S} .vtg-price{margin:24px 0 0;display:inline-flex;align-items:flex-start;font-family:var(--font-display,inherit);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:var(--display-weight,800);letter-spacing:-.03em;font-variant-numeric:tabular-nums;color:var(--vtg-ink)}
${S} .vtg-price-sym{margin:.14em .06em 0 0;font-size:.45em;line-height:1;letter-spacing:0}
${S} .vtg-price-rest{margin:.14em 0 0 .06em;font-size:.45em;line-height:1;letter-spacing:0}
${S} .vtg-price-note{margin:20px 0 0;font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted,oklch(0.45 0.03 258))}
${S} .vtg-cta{--vtg-bg:var(--button-bg,var(--cta,oklch(0.58 0.21 29)));--vtg-bg2:var(--button-bg-2,var(--cta-2,oklch(0.51 0.21 29)));appearance:none;margin-top:24px;display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:72px;padding:12px 20px;border:0;border-radius:var(--button-radius,var(--radius,12px));cursor:pointer;background:linear-gradient(oklch(from var(--vtg-bg) calc(l + .04) c h),oklch(from var(--vtg-bg2) calc(l - .02) c h));color:var(--button-ink,var(--cta-ink,oklch(1 0 0)));font-family:var(--button-font,var(--font-display,inherit));font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;font-weight:var(--button-weight,800);text-transform:var(--button-case,none);text-align:center;text-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--vtg-bg) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--vtg-bg) calc(l - .16) c h),0 1px 2px oklch(from var(--vtg-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--vtg-shadow) l c h / .45));transition:background .16s ease,box-shadow .16s ease,transform .16s ease}
${S} .vtg-cta:hover:not(:disabled),${S}[data-state='hover'] .vtg-cta:not(:disabled){background:linear-gradient(oklch(from var(--vtg-bg) calc(l - .01) c h),oklch(from var(--vtg-bg2) calc(l - .07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--vtg-bg) calc(l + .1) c h / .6),inset 0 -3px 0 oklch(from var(--vtg-bg) calc(l - .2) c h),0 1px 2px oklch(from var(--vtg-shadow) l c h / .34),0 10px 18px -6px oklch(from var(--vtg-shadow) l c h / .52))}
${S} .vtg-cta:active:not(:disabled),${S}[data-state='active'] .vtg-cta:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--vtg-bg) calc(l - .04) c h),oklch(from var(--vtg-bg2) calc(l - .08) c h));box-shadow:inset 0 2px 4px oklch(from var(--vtg-bg) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--vtg-bg) calc(l - .16) c h),0 1px 2px oklch(from var(--vtg-shadow) l c h / .3)}
${S} .vtg-cta:focus-visible{outline:3px solid var(--field-focus,var(--accent,oklch(0.5 0.17 257)));outline-offset:3px}
${S} .vtg-cta:disabled{cursor:not-allowed;background:var(--secondary,oklch(0.93 0.015 263));color:var(--secondary-ink,var(--vtg-ink));text-shadow:none;transform:none;box-shadow:inset 0 -2px 0 oklch(from var(--secondary,oklch(0.93 0.015 263)) calc(l - .1) c h)}
${S} .vtg-nowrap{white-space:nowrap}
${S} .vtg-reassure{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted,oklch(0.45 0.03 258));text-wrap:pretty}
${S} .vtg-reassure-icon{display:inline-block;vertical-align:-.15em;margin-inline-end:.4em;color:var(--success,oklch(0.5 0.14 150))}
@media (min-width:1024px){
${S} .vtg-stop:nth-child(3n) .vtg-line{display:none}
}
@media (min-width:640px) and (max-width:1023px){
${S} .vtg-route{grid-template-columns:repeat(var(--vtg-c2,2),minmax(0,1fr));max-width:calc(var(--vtg-c2,2) * 400px + (var(--vtg-c2,2) - 1) * var(--vtg-gap))}
${S} .vtg-stop:nth-child(2n) .vtg-line{display:none}
}
@media (min-width:640px){
${S} .vtg-stop:last-child .vtg-line{display:none}
}
@media (max-width:767px){
${S} .vtg-close{grid-template-columns:1fr}
}
@media (max-width:639px){
${S}{--vtg-row:32px}
${S} .vtg-route{grid-template-columns:1fr;max-width:none}
${S} .vtg-stop{padding-left:44px}
${S} .vtg-marker{margin-bottom:12px}
${S} .vtg-track{position:absolute;left:0;top:0;bottom:0;width:40px;height:auto}
${S} .vtg-dot{left:12px;top:1px}
${S} .vtg-line{left:19px;right:auto;top:9px;bottom:calc(-1 * (var(--vtg-row) + 9px));width:2px;height:auto;transform-origin:center top;animation-name:vtg-draw-y}
${S} .vtg-stop:last-child .vtg-line{bottom:calc(-1 * var(--vtg-row))}
${S} .vtg-finish{flex-direction:row;justify-content:flex-start;margin-top:var(--vtg-row)}
${S} .vtg-finish-line{display:none}
${S} .vtg-offer{padding:20px 16px}
${S} .vtg-cta{padding:12px 16px}
${S} .vtg-length{margin-left:0;flex-basis:100%}
}
@keyframes vtg-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes vtg-draw-x{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes vtg-draw-y{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media (prefers-reduced-motion:reduce){
${S} .vtg-stop,${S} .vtg-line{animation:none}
${S} .vtg-poster img,${S} .vtg-poster::after,${S} .vtg-play,${S} .vtg-cta{transition:none}
${S} .vtg-poster:hover img{transform:none}
${S} .vtg-poster:hover .vtg-play,${S} .vtg-poster:active .vtg-play{transform:none}
${S} .vtg-cta:active:not(:disabled),${S}[data-state='active'] .vtg-cta:not(:disabled){transform:none}
}
`
pieces/proof/video-testimonial-grid/specimen.tsx 64 lines
import __studioImage1a48cb35 from "../assets/b55bb33847c63e44.webp";
import __studioImage506c4524 from "../assets/b0de412c74cd3c11.webp";
import __studioImage09932b8b from "../assets/cbceb056bbeb4d7c.webp";
import * as React from 'react'
import { VideoTestimonialGrid } from '../video-testimonial-grid'
import { slot } from '../../slots'
import defaults from '../../studio-defaults.json'
const sample = defaults.sample
export const states = ['default', 'hover', 'active', 'disabled']
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled'
export default function VideoTestimonialGridSpecimen({ state = 'default' }: { state?: SpecimenState }) {
return (
<VideoTestimonialGrid
state={state}
headline='Watch three first funnels go from blank page to live'
lead='Press play on any stop along the route, then take your first step below.'
testimonials={[
{
stage: 'Night one',
result: 'I mapped every page of my funnel before bed.',
name: 'Dana R.',
detail: 'Austin, TX',
duration: '1:48',
posterImage: slot('testimonial-1', __studioImage1a48cb35),
},
{
stage: 'First weekend',
result: 'My sales page copy was done by Sunday night.',
name: 'Marcus T.',
detail: 'Leeds, UK',
duration: '2:12',
posterImage: slot('testimonial-2', __studioImage506c4524),
},
{
stage: 'Launch day',
result: 'I checked every link and went live without the panic.',
name: 'Priya S.',
detail: 'Toronto, ON',
duration: '2:35',
posterImage: slot('testimonial-3', __studioImage09932b8b),
},
]}
letter={{
salutation: 'Dear friend,',
paragraphs: [
'You just watched Dana, Marcus and Priya go from a blank page to a live funnel.',
`Your route starts the same way: one plan, one page, one step at a time. ${sample.name} hands you all three tonight.`,
],
signOff: 'To your first launch,',
signer: 'Jordan Lee',
signerRole: `Creator, ${sample.name}`,
}}
riskHeadline='Try the kit for 30 days, risk free'
riskBody='Plan your funnel, write your page and check every step. If it isn’t right for you, ask for a full refund within 30 days.'
price={sample.price}
priceNote='one-time payment'
reassurance={sample.sublabel}
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalVideoTestimonialGrid |
React.ReactNode |
|
lead OptionalVideoTestimonialGrid |
React.ReactNode |
|
testimonials OptionalVideoTestimonialGrid |
VideoTestimonial[] |
|
onPlay OptionalVideoTestimonialGrid |
(testimonial: VideoTestimonial, index: number) => void |
|
letter OptionalVideoTestimonialGrid |
VideoTestimonialGridLetter |
|
riskHeadline OptionalVideoTestimonialGrid |
React.ReactNode |
|
riskBody OptionalVideoTestimonialGrid |
React.ReactNode |
|
price OptionalVideoTestimonialGrid |
string |
|
priceNote OptionalVideoTestimonialGrid |
string |
|
label OptionalVideoTestimonialGrid |
string |
|
reassurance OptionalVideoTestimonialGrid |
string |
|
href OptionalVideoTestimonialGrid |
string |
|
onAction OptionalVideoTestimonialGrid |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalVideoTestimonialGrid |
boolean |
|
state OptionalVideoTestimonialGrid |
'default' | 'hover' | 'active' | 'disabled' |
|
copy OptionalVideoTestimonialGrid |
VideoTestimonialGridCopy |
|
signatureFontUrl OptionalVideoTestimonialGrid |
string |
|
className OptionalVideoTestimonialGrid |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
testimonial-1- An image this piece places.
testimonial-2- An image this piece places.
testimonial-3- An image this piece places.
-
b0de412c74cd3c11.webp
image/webp · 76.9 KB
-
b55bb33847c63e44.webp
image/webp · 84.8 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
cbceb056bbeb4d7c.webp
image/webp · 79.7 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB