VSL Hero 2
Application VSL hero on a lit stage: one big poster frame, a chapter rail that makes the video skimmable (lowering the cost of pressing play), then one apply action.
Use it in a prompt
Use hero/vsl-hero-2 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/hero/vsl-hero-2.tsx. - Import it and pass your copy and images (Props tab):
import { VslHero2 } from "@/components/funneldna/hero/vsl-hero-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/vsl-hero-2/component.tsx 365 lines
// layout: spotlight-row
// Application VSL hero on a lit stage: one big poster frame, a chapter rail that makes the video skimmable (lowering the cost of pressing play), then one apply action.
'use client'
import * as React from 'react'
import { AudioLines, Clock, Lock, Play } from 'lucide-react'
import { FX_HOST, Spotlight } from '../fx/fx'
export type VslHero2Chapter = {
title: string
/** Start time as m:ss or h:mm:ss, e.g. '4:12'. */
time: string
/** One short line on what the chapter answers. */
detail?: string
}
export type VslHero2Props = {
/** Pre-head naming who the video is for. */
audience?: string
headline?: React.ReactNode
/** A phrase inside a string headline that gets the marker stroke. */
highlight?: string
subheadline?: React.ReactNode
/** Poster still of the presenter on set (slot: presenter). */
presenterImage?: string
presenterAlt?: string
/** The real player (iframe or video). Replaces the poster when supplied. */
video?: React.ReactNode
playLabel?: string
/** Shown under the play label, e.g. '16 min'. */
runtime?: string
/** Accessible name of the poster button; {label} is replaced with playLabel. */
playAria?: string
onPlay?: () => void
chapters?: VslHero2Chapter[]
/** Playback position in seconds from the real player; tracks the active chapter. */
currentTime?: number
/** Total length as m:ss, used for the last chapter's progress. */
duration?: string
onSeek?: (seconds: number, chapter: VslHero2Chapter, index: number) => void
railNote?: string
railLabel?: string
/** Accessible name per chapter; {title} and {time} are replaced. */
seekLabel?: string
ctaLabel?: string
href?: string
onAction?: () => void
disabled?: boolean
/** One reassurance line under the button. */
ctaNote?: string
callPrompt?: string
callLabel?: string
callHref?: string
onCall?: () => void
state?: 'default' | 'hover' | 'active' | 'disabled'
className?: string
}
const DEFAULT_CHAPTERS: VslHero2Chapter[] = [
{ title: 'The mistake', time: '0:00' },
{ title: 'The shift', time: '4:12' },
{ title: 'The plan', time: '9:30' },
{ title: 'How to apply', time: '14:05' },
]
export function VslHero2({
audience = 'For owners ready to grow without doing it all themselves',
headline = 'Watch the short screening, then apply for your seat',
highlight,
subheadline,
presenterImage,
presenterAlt = '',
video,
playLabel = 'Watch the screening',
runtime,
playAria = 'Play the video: {label}',
onPlay,
chapters = DEFAULT_CHAPTERS,
currentTime,
duration,
onSeek,
railNote = 'Short on time? Jump straight to the part you need.',
railLabel = 'Video chapters',
seekLabel = 'Jump to {title} at {time}',
ctaLabel = 'Send Me The Application',
href,
onAction,
disabled = false,
ctaNote,
callPrompt = 'Prefer a call?',
callLabel = 'Book one',
callHref,
onCall,
state = 'default',
className,
}: VslHero2Props) {
const railRef = React.useRef<HTMLOListElement>(null)
const starts = chapters.map((c) => toSeconds(c.time))
const end = duration ? toSeconds(duration) : undefined
const tracking = typeof currentTime === 'number' && Number.isFinite(currentTime)
const active = tracking ? findActive(starts, currentTime as number) : -1
const isDisabled = disabled || state === 'disabled'
const force = state === 'hover' ? ' is-hover' : state === 'active' ? ' is-press' : ''
const forceIdx = chapters.length - 1 === active ? 0 : chapters.length - 1
React.useEffect(() => {
const rail = railRef.current
if (!rail || active < 0 || rail.scrollWidth <= rail.clientWidth + 1) return
const first = rail.children[0] as HTMLElement | undefined
const item = rail.children[active] as HTMLElement | undefined
if (!first || !item) return
const reduce = window.matchMedia('(prefers-reduced-motion: reduce)').matches
rail.scrollTo({ left: item.offsetLeft - first.offsetLeft, behavior: reduce ? 'auto' : 'smooth' })
}, [active])
const progress = (i: number) => {
if (active < 0 || i > active) return 0
if (i < active) return 1
const s = starts[i]
const e = i + 1 < starts.length ? starts[i + 1] : end
if (!e || e <= s) return 1
return clamp(((currentTime as number) - s) / (e - s))
}
const label = <span className='v2-apply-label'>{ctaLabel}</span>
return (
<section className={['cf-vsl-hero-2', className].filter(Boolean).join(' ')} style={FX_HOST}>
<style>{CSS}</style>
<Spotlight />
<div className='v2-inner'>
{audience && <p className='v2-for'>{audience}</p>}
<h1 className='v2-h1'>{markHeadline(headline, highlight)}</h1>
{subheadline && <p className='v2-lead'>{subheadline}</p>}
<div className='v2-frame v2-rise'>
<div className='v2-screen'>
{video ?? (
<button
type='button'
className={'v2-poster' + force}
onClick={onPlay}
aria-label={fill(playAria, { label: playLabel })}
>
{presenterImage && <img src={presenterImage} alt={presenterAlt} />}
<span className='v2-scrim' aria-hidden />
<span className='v2-play' aria-hidden>
<span className='v2-disc'>
<Play size={26} fill='currentColor' strokeWidth={2.5} strokeLinejoin='round' />
</span>
<span className='v2-play-text'>
<span className='v2-play-label'>{playLabel}</span>
{runtime && (
<span className='v2-runtime'>
<Clock size={16} strokeWidth={2.5} />
{runtime}
</span>
)}
</span>
</span>
</button>
)}
</div>
</div>
{chapters.length > 0 && (
<>
{railNote && (
<p className='v2-railnote'>
<Clock size={16} strokeWidth={2.5} aria-hidden className='v2-inline-icon' />
{railNote}
</p>
)}
<ol ref={railRef} className='v2-rail' aria-label={railLabel}>
{chapters.map((c, i) => {
const current = i === active
const cls =
'v2-ch' +
(current ? ' is-current' : '') +
(i < active ? ' is-done' : '') +
(i === forceIdx ? force : '')
return (
<li key={c.time + c.title} className='v2-rise' style={{ '--i': i + 1 } as React.CSSProperties}>
<button
type='button'
className={cls}
onClick={() => onSeek?.(starts[i], c, i)}
aria-current={current ? 'true' : undefined}
aria-label={fill(seekLabel, { title: c.title, time: c.time })}
>
<span className='v2-ch-time'>
{current ? (
<AudioLines size={16} strokeWidth={2.5} aria-hidden />
) : (
<Play size={16} strokeWidth={2.5} aria-hidden />
)}
<time dateTime={'PT' + starts[i] + 'S'}>{c.time}</time>
</span>
<span className='v2-ch-title'>{c.title}</span>
{c.detail && <span className='v2-ch-detail'>{c.detail}</span>}
{tracking && (
<span className='v2-meter' aria-hidden>
<span style={{ transform: `scaleX(${progress(i)})` }} />
</span>
)}
</button>
</li>
)
})}
</ol>
</>
)}
<div className='v2-action'>
{href && !isDisabled ? (
<a className={'v2-apply' + force} href={href} onClick={onAction}>
{label}
</a>
) : (
<button type='button' className={'v2-apply' + force} onClick={onAction} disabled={isDisabled}>
{label}
</button>
)}
{ctaNote && (
<p className='v2-note'>
<Lock size={16} strokeWidth={2.5} aria-hidden className='v2-inline-icon' />
{ctaNote}
</p>
)}
{callLabel && (callHref || onCall) && (
<p className='v2-call'>
{callPrompt}{' '}
{callHref ? (
<a href={callHref} onClick={onCall}>
{callLabel}
</a>
) : (
<button type='button' className='v2-call-link' onClick={onCall}>
{callLabel}
</button>
)}
</p>
)}
</div>
</div>
</section>
)
}
export default VslHero2
function markHeadline(headline: React.ReactNode, phrase?: string) {
if (typeof headline !== 'string' || !phrase) return headline
const at = headline.indexOf(phrase)
if (at < 0) return headline
return (
<>
{headline.slice(0, at)}
<span className='v2-mark'>{phrase}</span>
{headline.slice(at + phrase.length)}
</>
)
}
function fill(template: string, values: Record<string, string>) {
return Object.keys(values).reduce((s, k) => s.split('{' + k + '}').join(values[k]), template)
}
function toSeconds(time: string) {
return time
.split(':')
.map(Number)
.reduce((acc, n) => acc * 60 + (Number.isFinite(n) ? n : 0), 0)
}
function findActive(starts: number[], t: number) {
let found = -1
starts.forEach((s, i) => {
if (t >= s) found = i
})
return found
}
function clamp(n: number) {
return Math.min(1, Math.max(0, n))
}
// Every colour comes from theme tokens; the marker ink is derived from the marker hue so it reads on the stroke.
const CSS = `
.cf-vsl-hero-2{--v2-gutter:clamp(16px,5vw,48px);--v2-shadow:var(--shadow,oklch(0.22 0.03 260));--v2-band:var(--band,oklch(0.27 0.07 256));--v2-on:var(--band-ink,#fff);--v2-btn:var(--button-bg,var(--cta,oklch(0.58 0.21 29)));--v2-btn-2:var(--button-bg-2,var(--cta-2,oklch(0.51 0.21 29)));--v2-marker:oklch(from var(--marker,#fae37c) clamp(0.86,l,0.95) clamp(0.08,c,0.15) h / 1);position:relative;width:100%;overflow:hidden;background:var(--v2-band);color:var(--v2-on);font-family:var(--font-body);padding:clamp(56px,8vw,112px) var(--v2-gutter) clamp(64px,8.5vw,120px)}
.cf-vsl-hero-2,.cf-vsl-hero-2 *,.cf-vsl-hero-2 *::before,.cf-vsl-hero-2 *::after{box-sizing:border-box}
.cf-vsl-hero-2 .v2-inner{position:relative;z-index:1;width:100%;max-width:60rem;margin-inline:auto;display:flex;flex-direction:column;align-items:center;text-align:center}
.cf-vsl-hero-2 .v2-for{margin:0 0 16px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:700;color:var(--v2-on);text-wrap:balance}
.cf-vsl-hero-2 .v2-h1{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.025em);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;color:var(--v2-on);text-wrap:balance;position:relative;isolation:isolate}
.cf-vsl-hero-2 .v2-mark{position:relative;z-index:-1;color:oklch(from var(--v2-marker) 0.2 0.04 h);background:linear-gradient(var(--v2-marker),var(--v2-marker)) 0 62%/100% 84% no-repeat;padding:0 .12em;margin:0 -.02em;border-radius:.1em .22em .14em .26em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-vsl-hero-2 .v2-lead{margin:clamp(16px,1.6vw,24px) 0 0;max-width:44rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--v2-on);text-wrap:pretty}
.cf-vsl-hero-2 .v2-frame{width:100%;margin-top:clamp(32px,4vw,48px);padding:8px;border-radius:calc(var(--radius,12px) + 8px);background:oklch(from var(--v2-band) calc(l + 0.06) c h);box-shadow:inset 0 1px 0 oklch(from var(--v2-on) l c h / .14),0 2px 4px oklch(from var(--v2-shadow) l c h / .4),0 24px 40px -16px oklch(from var(--v2-shadow) l c h / .7)}
.cf-vsl-hero-2 .v2-screen{position:relative;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:oklch(from var(--v2-band) calc(l - 0.05) c h)}
.cf-vsl-hero-2 .v2-screen>iframe,.cf-vsl-hero-2 .v2-screen>video{display:block;width:100%;height:100%;border:0}
.cf-vsl-hero-2 .v2-poster{position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;cursor:pointer;-webkit-tap-highlight-color:transparent}
.cf-vsl-hero-2 .v2-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)}
.cf-vsl-hero-2 .v2-scrim{position:absolute;inset:0;background:radial-gradient(ellipse 55% 50% at 50% 50%,oklch(from var(--v2-band) l c h / .55),oklch(from var(--v2-band) l c h / 0) 72%)}
.cf-vsl-hero-2 .v2-play{position:relative;display:inline-flex;align-items:center;gap:14px;padding:8px 24px 8px 8px;border-radius:999px;background:var(--card,#fff);color:var(--ink,#101828);box-shadow:0 2px 4px oklch(from var(--v2-shadow) l c h / .35),0 14px 28px -10px oklch(from var(--v2-shadow) l c h / .6);transition:transform .16s ease,box-shadow .16s ease}
.cf-vsl-hero-2 .v2-disc{display:grid;place-items:center;flex:none;width:64px;height:64px;border-radius:999px;background:linear-gradient(oklch(from var(--v2-btn) calc(l + 0.04) c h),oklch(from var(--v2-btn-2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink,#fff));box-shadow:inset 0 1px 0 oklch(from var(--v2-btn) calc(l + 0.14) c h / .7),inset 0 -3px 0 oklch(from var(--v2-btn) calc(l - 0.16) c h);transition:background .16s ease,box-shadow .16s ease}
.cf-vsl-hero-2 .v2-disc svg{margin-left:4px}
.cf-vsl-hero-2 .v2-play-text{display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-width:0;text-align:left}
.cf-vsl-hero-2 .v2-play-label{font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;white-space:nowrap}
.cf-vsl-hero-2 .v2-runtime{display:inline-flex;align-items:center;gap:6px;font-size:.875rem;font-weight:800;line-height:1.2;color:var(--muted,#475467);font-variant-numeric:tabular-nums}
.cf-vsl-hero-2 .v2-poster:hover img,.cf-vsl-hero-2 .v2-poster.is-hover img{transform:scale(1.03)}
.cf-vsl-hero-2 .v2-poster:hover .v2-play,.cf-vsl-hero-2 .v2-poster.is-hover .v2-play{transform:translateY(-2px);box-shadow:0 2px 4px oklch(from var(--v2-shadow) l c h / .4),0 18px 32px -10px oklch(from var(--v2-shadow) l c h / .7)}
.cf-vsl-hero-2 .v2-poster:hover .v2-disc,.cf-vsl-hero-2 .v2-poster.is-hover .v2-disc{background:linear-gradient(oklch(from var(--v2-btn) calc(l - 0.01) c h),oklch(from var(--v2-btn-2) calc(l - 0.07) c h))}
.cf-vsl-hero-2 .v2-poster:active .v2-play,.cf-vsl-hero-2 .v2-poster.is-press .v2-play{transform:translateY(0) scale(.97)}
.cf-vsl-hero-2 .v2-poster:active .v2-disc,.cf-vsl-hero-2 .v2-poster.is-press .v2-disc{box-shadow:inset 0 2px 4px oklch(from var(--v2-btn) calc(l - 0.2) c h / .6),inset 0 -1px 0 oklch(from var(--v2-btn) calc(l - 0.16) c h)}
.cf-vsl-hero-2 .v2-poster:focus-visible{outline:none}
.cf-vsl-hero-2 .v2-poster:focus-visible .v2-play{outline:3px solid var(--v2-on);outline-offset:4px}
.cf-vsl-hero-2 .v2-inline-icon{display:inline-block;vertical-align:-0.18em;margin-inline-end:.4em}
.cf-vsl-hero-2 .v2-railnote{margin:24px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--v2-on);text-wrap:pretty}
.cf-vsl-hero-2 .v2-rail{position:relative;width:100%;margin:12px 0 0;padding:0;list-style:none;display:grid;grid-template-columns:repeat(auto-fit,minmax(12rem,1fr));gap:12px;text-align:left}
.cf-vsl-hero-2 .v2-rail>li{display:flex;min-width:0}
.cf-vsl-hero-2 .v2-ch{position:relative;display:flex;flex-direction:column;align-items:flex-start;gap:6px;width:100%;margin:0;padding:16px 16px 28px;border:1px solid oklch(from var(--v2-on) l c h / .16);border-radius:var(--radius,12px);background:oklch(from var(--v2-on) l c h / .07);color:var(--v2-on);font:inherit;text-align:left;cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease,border-color .16s ease}
.cf-vsl-hero-2 .v2-ch:hover,.cf-vsl-hero-2 .v2-ch.is-hover{background:oklch(from var(--v2-on) l c h / .13);border-color:oklch(from var(--v2-on) l c h / .3);transform:translateY(-2px)}
.cf-vsl-hero-2 .v2-ch:active,.cf-vsl-hero-2 .v2-ch.is-press{background:oklch(from var(--v2-on) l c h / .18);transform:translateY(0) scale(.98)}
.cf-vsl-hero-2 .v2-ch:focus-visible{outline:3px solid var(--v2-on);outline-offset:3px}
.cf-vsl-hero-2 .v2-ch.is-current{background:var(--card,#fff);color:var(--ink,#101828);border-color:color-mix(in oklch,var(--accent,oklch(0.5 0.17 257)) 45%,var(--card,#fff));transform:translateY(-4px);box-shadow:var(--shadow-lg,0 2px 4px oklch(0.22 0.03 256 / .22),0 12px 24px -8px oklch(0.22 0.03 256 / .32))}
.cf-vsl-hero-2 .v2-ch.is-current:active{transform:translateY(-2px) scale(.98)}
.cf-vsl-hero-2 .v2-ch-time{display:inline-flex;align-items:center;gap:8px;font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.02em;font-variant-numeric:tabular-nums}
.cf-vsl-hero-2 .v2-ch.is-current .v2-ch-time{color:var(--accent,oklch(0.5 0.17 257))}
.cf-vsl-hero-2 .v2-ch-title{font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance}
.cf-vsl-hero-2 .v2-ch-detail{font-size:.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-vsl-hero-2 .v2-ch.is-current .v2-ch-detail{color:var(--muted,#475467)}
.cf-vsl-hero-2 .v2-meter{position:absolute;left:16px;right:16px;bottom:12px;height:4px;overflow:hidden;border-radius:999px;background:oklch(from var(--v2-on) l c h / .18)}
.cf-vsl-hero-2 .v2-meter>span{display:block;height:100%;border-radius:inherit;background:oklch(from var(--v2-on) l c h / .6);transform-origin:left center;transition:transform .4s linear}
.cf-vsl-hero-2 .v2-ch.is-current .v2-meter{background:color-mix(in oklch,var(--ink,#101828) 10%,var(--card,#fff))}
.cf-vsl-hero-2 .v2-ch.is-current .v2-meter>span{background:var(--accent-fill,var(--accent,oklch(0.5 0.17 257)))}
.cf-vsl-hero-2 .v2-action{width:100%;margin-top:clamp(32px,4vw,48px);display:flex;flex-direction:column;align-items:center;gap:12px}
.cf-vsl-hero-2 .v2-apply{display:inline-flex;align-items:center;justify-content:center;width:min(100%,30rem);min-height:72px;margin:0;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--v2-btn) calc(l + 0.04) c h),oklch(from var(--v2-btn-2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink,#fff));font-family:var(--button-font,var(--font-display));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow,none);text-wrap:balance;cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--v2-btn) calc(l + 0.14) c h / .7),inset 0 -3px 0 oklch(from var(--v2-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--v2-shadow) l c h / .45),0 8px 16px -6px oklch(from var(--v2-shadow) l c h / .6));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-vsl-hero-2 .v2-apply:not(:disabled):hover,.cf-vsl-hero-2 .v2-apply.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--v2-btn) calc(l - 0.01) c h),oklch(from var(--v2-btn-2) calc(l - 0.07) c h));transform:translateY(-1px);box-shadow:inset 0 1px 0 oklch(from var(--v2-btn) calc(l + 0.1) c h / .6),inset 0 -3px 0 oklch(from var(--v2-btn) calc(l - 0.2) c h),0 1px 2px oklch(from var(--v2-shadow) l c h / .5),0 12px 20px -6px oklch(from var(--v2-shadow) l c h / .7)}
.cf-vsl-hero-2 .v2-apply:not(:disabled):active,.cf-vsl-hero-2 .v2-apply.is-press:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--v2-btn) calc(l - 0.2) c h / .55),inset 0 -2px 0 oklch(from var(--v2-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--v2-shadow) l c h / .45)}
.cf-vsl-hero-2 .v2-apply:focus-visible{outline:3px solid var(--v2-on);outline-offset:4px}
.cf-vsl-hero-2 .v2-apply:disabled{cursor:not-allowed;background:color-mix(in oklch,var(--v2-on) 16%,var(--v2-band));color:var(--v2-on);text-shadow:none;box-shadow:none;transform:none}
.cf-vsl-hero-2 .v2-note{margin:0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--v2-on);text-wrap:pretty}
.cf-vsl-hero-2 .v2-call{margin:0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--v2-on);text-wrap:pretty}
.cf-vsl-hero-2 .v2-call a,.cf-vsl-hero-2 .v2-call-link{margin:0;padding:0;border:0;background:none;font:inherit;font-weight:700;color:var(--v2-on);text-decoration:underline;text-decoration-color:oklch(from var(--v2-on) l c h / .5);text-underline-offset:.18em;cursor:pointer}
.cf-vsl-hero-2 .v2-call a:hover,.cf-vsl-hero-2 .v2-call-link:hover{text-decoration-color:currentColor}
.cf-vsl-hero-2 .v2-call a:focus-visible,.cf-vsl-hero-2 .v2-call-link:focus-visible{outline:3px solid var(--v2-on);outline-offset:3px;border-radius:4px}
@keyframes v2-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
.cf-vsl-hero-2 .v2-rise{animation:v2-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:min(calc(var(--i,0) * .07s),.28s)}
@media (max-width:640px){
.cf-vsl-hero-2 .v2-frame{padding:6px;border-radius:calc(var(--radius,12px) + 6px)}
.cf-vsl-hero-2 .v2-play{gap:10px;max-width:calc(100% - 24px);padding:6px 18px 6px 6px}
.cf-vsl-hero-2 .v2-play-label{font-size:1rem;white-space:normal;text-wrap:balance}
.cf-vsl-hero-2 .v2-disc{width:48px;height:48px}
.cf-vsl-hero-2 .v2-disc svg{width:20px;height:20px;margin-left:3px}
.cf-vsl-hero-2 .v2-rail{display:flex;align-self:stretch;width:auto;margin:12px calc(-1 * var(--v2-gutter)) 0;padding:8px var(--v2-gutter) 16px;overflow-x:auto;scroll-snap-type:x mandatory;scroll-padding-inline:var(--v2-gutter);scrollbar-width:none;overscroll-behavior-x:contain}
.cf-vsl-hero-2 .v2-rail::-webkit-scrollbar{display:none}
.cf-vsl-hero-2 .v2-rail>li{flex:0 0 min(76%,17rem);scroll-snap-align:start}
.cf-vsl-hero-2 .v2-apply{width:100%}
}
@media (prefers-reduced-motion:reduce){
.cf-vsl-hero-2 .v2-rise{animation:none}
.cf-vsl-hero-2 .v2-poster img,.cf-vsl-hero-2 .v2-play,.cf-vsl-hero-2 .v2-disc,.cf-vsl-hero-2 .v2-ch,.cf-vsl-hero-2 .v2-meter>span,.cf-vsl-hero-2 .v2-apply{transition:none}
.cf-vsl-hero-2 .v2-poster:hover img,.cf-vsl-hero-2 .v2-poster.is-hover img{transform:none}
}
`
pieces/hero/vsl-hero-2/specimen.tsx 40 lines
import __studioImage84119ef8 from "../assets/5fe315eb61c265f6.webp";
// Specimen: the Foundry Agency Accelerator application VSL, paused mid-way through chapter two so the rail shows its tracking.
import { VslHero2, type VslHero2Props } from '../vsl-hero-2'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled']
export default function VslHero2Specimen({ state = 'default' }: { state?: VslHero2Props['state'] }) {
return (
<VslHero2
state={state}
audience='For agency owners who still close every deal themselves'
headline='The one mistake that keeps your agency the size of your calendar'
highlight='the size of your calendar'
subheadline='16 minutes on the shift that takes sales off your plate, and how to apply to the Foundry Agency Accelerator.'
presenterImage={slot(
'presenter',
__studioImage84119ef8
)}
presenterAlt='The Foundry Agency Accelerator host on set'
playLabel='Watch the screening'
runtime='16 min'
chapters={[
{ title: 'The mistake', time: '0:00', detail: 'Why closing every deal yourself caps your growth' },
{ title: 'The shift', time: '4:12', detail: 'Hand the sale to a process your team can run' },
{ title: 'The plan', time: '9:30', detail: 'Your first 90 days, step by step' },
{ title: 'How to apply', time: '14:05', detail: 'Who it is for and what happens next' },
]}
currentTime={430}
duration='16:20'
railNote='Short on time? Jump straight to the part you need.'
ctaLabel='Send Me The Application'
href='#apply'
ctaNote='Takes about 5 minutes. No payment to apply.'
callPrompt='Prefer a call?'
callLabel='Book one'
callHref='#book-a-call'
/>
)
}
| Name | Type | Details |
|---|---|---|
audience OptionalVslHero2 |
string |
Default 'For owners ready to grow without doing it all themselves'
|
headline OptionalVslHero2 |
React.ReactNode |
Default 'Watch the short screening, then apply for your seat'
|
highlight OptionalVslHero2 |
string |
|
subheadline OptionalVslHero2 |
React.ReactNode |
|
presenterImage OptionalVslHero2 |
string |
|
presenterAlt OptionalVslHero2 |
string |
Default ''
|
video OptionalVslHero2 |
React.ReactNode |
|
playLabel OptionalVslHero2 |
string |
Default 'Watch the screening'
|
runtime OptionalVslHero2 |
string |
|
playAria OptionalVslHero2 |
string |
Default 'Play the video: {label}'
|
onPlay OptionalVslHero2 |
() => void |
|
chapters OptionalVslHero2 |
VslHero2Chapter[] |
Default DEFAULT_CHAPTERS
|
currentTime OptionalVslHero2 |
number |
|
duration OptionalVslHero2 |
string |
|
onSeek OptionalVslHero2 |
(seconds: number, chapter: VslHero2Chapter, index: number) => void |
|
railNote OptionalVslHero2 |
string |
Default 'Short on time? Jump straight to the part you need.'
|
railLabel OptionalVslHero2 |
string |
Default 'Video chapters'
|
seekLabel OptionalVslHero2 |
string |
Default 'Jump to {title} at {time}'
|
ctaLabel OptionalVslHero2 |
string |
Default 'Send Me The Application'
|
href OptionalVslHero2 |
string |
|
onAction OptionalVslHero2 |
() => void |
|
disabled OptionalVslHero2 |
boolean |
Default false
|
ctaNote OptionalVslHero2 |
string |
|
callPrompt OptionalVslHero2 |
string |
Default 'Prefer a call?'
|
callLabel OptionalVslHero2 |
string |
Default 'Book one'
|
callHref OptionalVslHero2 |
string |
|
onCall OptionalVslHero2 |
() => void |
|
state OptionalVslHero2 |
'default' | 'hover' | 'active' | 'disabled' |
Default 'default'
|
className OptionalVslHero2 |
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.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
presenter- A photo of the host, coach or founder.
-
5fe315eb61c265f6.webp
image/webp · 25.8 KB