VSL Hero 1
Video sales letter hero with a click-to-play facade, the optional red Sound ON strip, and a CTA that unlocks after N seconds.
Use it in a prompt
Use hero/vsl-hero 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.tsx. - Import it and pass your copy and images (Props tab):
import { VslHero } from "@/components/funneldna/hero/vsl-hero"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/vsl-hero/component.tsx 196 lines
// Opens a video sales letter with a play facade and an optional timed offer reveal.
"use client"
import * as React from "react"
import { Play, Volume2 } from "lucide-react"
import { BelcherButton, type BelcherVariant } from "../offer/belcher-button"
import { YouTubeVideo } from "./youtube-video"
export type VslHeroProps = {
/** @deprecated Not rendered: the headline opens the section on its own. */
eyebrow?: string
headline: React.ReactNode
subheadline?: React.ReactNode
/** Local still shown before play. Without one the stage is a dark band. */
sceneImage?: string
/** Legacy alias for sceneImage. */
poster?: string
/** Title for the default embed's iframe. */
videoTitle?: string
/** The iframe or <video> mounted once the visitor clicks play. Defaults to the shared embed. */
children?: React.ReactNode
ctaLabel: string
/** Second line of the button: cost, time, risk or what happens next. */
ctaSublabel?: string
href?: string
/** Legacy alias for href. */
ctaHref?: string
onAction?: () => void
/** Legacy alias for onAction. */
onCtaClick?: () => void
variant?: BelcherVariant
/** Optional plain line under the button. */
microcopy?: string
revealCtaAfterMs?: number
/** Shown in the button's place while it is locked. */
lockedNote?: React.ReactNode
/** The classic red "Sound ON" header strip above the player. Pass a string to reword it. */
soundBar?: boolean | string
soundLead?: string
soundNote?: string
/** Replaces {title} with videoTitle. */
playLabel?: string
className?: string
}
export function VslHero({
headline,
subheadline,
poster,
sceneImage = poster,
videoTitle = "Sales video",
children,
ctaLabel,
ctaSublabel,
ctaHref,
href = ctaHref,
onCtaClick,
onAction = onCtaClick,
variant = "mono",
microcopy,
revealCtaAfterMs = 0,
lockedNote = "Watch the video. The offer opens at the end.",
soundBar = false,
soundLead = "Make sure your sound is turned ON!",
soundNote = "Please wait for the video to fully load",
playLabel = "Play: {title}",
className,
}: VslHeroProps) {
const [playing, setPlaying] = React.useState(false)
const [ctaVisible, setCtaVisible] = React.useState(revealCtaAfterMs === 0)
React.useEffect(() => {
if (!playing || ctaVisible) return
const id = setTimeout(() => setCtaVisible(true), revealCtaAfterMs)
return () => clearTimeout(id)
}, [playing, ctaVisible, revealCtaAfterMs])
return (
<section className={["cf-vsl-hero", "vslh", className].filter(Boolean).join(" ")}>
<style>{CSS}</style>
<div className="vslh-inner">
<h1 className="vslh-h1">{headline}</h1>
{subheadline && <p className="vslh-sub">{subheadline}</p>}
<div className="vslh-frame">
<div className="vslh-screen">
{soundBar && (
<p className="vslh-sound">
<span className="vslh-sound-icon" aria-hidden>
<Volume2 size={17} strokeWidth={2.5} />
</span>
{typeof soundBar === "string" ? (
<span className="vslh-sound-text">
<span className="vslh-sound-lead">{soundBar}</span>
</span>
) : (
<span className="vslh-sound-text">
<span className="vslh-sound-lead">{soundLead}</span>
<span className="vslh-sound-note">({soundNote})</span>
</span>
)}
</p>
)}
<div className="vslh-stage">
{playing ? (
children ?? (
<YouTubeVideo autoplay title={videoTitle} className="size-full" />
)
) : (
<button
type="button"
onClick={() => setPlaying(true)}
aria-label={playLabel.replaceAll("{title}", () => videoTitle)}
className="vslh-poster"
>
{sceneImage && <img src={sceneImage} alt="" />}
<span aria-hidden className="vslh-scrim" />
<span aria-hidden className="vslh-play">
<Play size={30} fill="currentColor" strokeWidth={0} style={{ marginLeft: 4 }} />
</span>
</button>
)}
</div>
</div>
</div>
<div className="vslh-cta">
{lockedNote && (
<p
aria-hidden={ctaVisible}
className="vslh-locked"
style={{ opacity: ctaVisible ? 0 : 1, visibility: ctaVisible ? "hidden" : "visible" }}
>
{lockedNote}
</p>
)}
<div
aria-hidden={!ctaVisible}
className="vslh-btn"
style={{ opacity: ctaVisible ? 1 : 0, visibility: ctaVisible ? "visible" : "hidden" }}
>
<BelcherButton
bare
label={ctaLabel}
sublabel={ctaSublabel}
href={href}
onAction={onAction}
variant={variant}
icon={null}
/>
{microcopy && <p className="vslh-fine">{microcopy}</p>}
</div>
</div>
</div>
</section>
)
}
export default VslHero
// The poster remains replaceable artwork; close shadows derive from the surface token.
const CSS = `
.cf-vsl-hero{background:var(--surface,#fff);color:var(--ink,#101828);font-family:var(--font-body);border-bottom:1px solid oklch(from var(--ink,#101828) l c h / 0.09)}
:where(.cf-vsl-hero) .vslh-inner{max-width:58rem;margin:0 auto;padding:clamp(3rem,6vw,5.5rem) 1rem clamp(3rem,6vw,5rem);text-align:center}
:where(.cf-vsl-hero) .vslh-h1{margin:0 auto;font-family:var(--font-display);font-weight:var(--display-weight,900);font-size:clamp(2.25rem,1.1rem + 4.4vw,4.25rem);line-height:1.03;letter-spacing:var(--display-tracking,-0.03em);color:var(--ink,#101828);text-wrap:balance;text-transform:var(--display-case,none)}
:where(.cf-vsl-hero) .vslh-sub{margin:clamp(1.125rem,1.7vw,1.375rem) auto 0;max-width:44ch;font-size:clamp(1.125rem,0.95rem + 0.6vw,1.3125rem);line-height:1.55;font-weight:500;color:var(--muted,#4a5565);text-wrap:pretty}
:where(.cf-vsl-hero) .vslh-sub strong{color:var(--ink,#101828);font-weight:700}
:where(.cf-vsl-hero) .vslh-frame{margin-top:clamp(2rem,4vw,2.75rem);padding:6px;border-radius:var(--card-radius,calc(var(--radius,12px) + 8px));background:var(--card);border:1px solid oklch(from var(--ink,#101828) l c h / 0.13);box-shadow:var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)));border-color:var(--card-border,oklch(from var(--ink) l c h / 0.12))}
:where(.cf-vsl-hero) .vslh-screen{overflow:hidden;border-radius:var(--card-radius,calc(var(--radius,12px) + 2px));background:var(--band,#0f2747)}
:where(.cf-vsl-hero) .vslh-sound{margin:0;display:flex;align-items:center;justify-content:center;gap:.75rem;padding:.75rem 1rem;background:var(--band);color:var(--band-ink);box-shadow:inset 0 1px 0 oklch(from var(--card) calc(l + 0.04) c h / .2), inset 0 -1px 0 oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.15)}
:where(.cf-vsl-hero) .vslh-sound-icon{position:relative;flex-shrink:0;display:inline-grid;place-items:center;width:30px;height:30px;border-radius:999px;background:oklch(from var(--cta-ink,#fff) l c h / 0.2)}
:where(.cf-vsl-hero) .vslh-sound-icon::after{content:"";position:absolute;inset:0;border-radius:inherit;border:2px solid var(--cta-ink,#fff);opacity:0;animation:vslh-ping 2.2s ease-out infinite}
:where(.cf-vsl-hero) .vslh-sound-text{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;column-gap:.5rem;row-gap:.125rem;text-align:left}
:where(.cf-vsl-hero) .vslh-sound-lead{font-weight:800;font-size:.875rem;line-height:1.25;letter-spacing:.03em;text-transform:uppercase}
:where(.cf-vsl-hero) .vslh-sound-note{font-weight:500;font-size:.875rem;line-height:1.3}
@media (min-width:640px){:where(.cf-vsl-hero) .vslh-sound{padding:.8125rem 1.25rem;background:var(--band);color:var(--band-ink)}:where(.cf-vsl-hero) .vslh-sound-lead{font-size:.9375rem}:where(.cf-vsl-hero) .vslh-sound-text{text-align:center}}
:where(.cf-vsl-hero) .vslh-stage{position:relative;aspect-ratio:16/9;background:var(--band,#0f2747)}
:where(.cf-vsl-hero) .vslh-poster{position:absolute;inset:0;display:grid;place-items:center;width:100%;height:100%;padding:0;border:0;cursor:pointer;background:transparent;color:var(--button-ink,var(--cta-ink))}
:where(.cf-vsl-hero) .vslh-poster img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
:where(.cf-vsl-hero) .vslh-scrim{position:absolute;inset:0;background:oklch(from var(--band,#0f2747) l c h / 0.18);transition:background .25s ease}
:where(.cf-vsl-hero) .vslh-poster:hover .vslh-scrim{background:oklch(from var(--band,#0f2747) l c h / 0.32)}
:where(.cf-vsl-hero) .vslh-play{position:relative;display:grid;place-items:center;width:68px;height:68px;border-radius:var(--button-radius,var(--radius,999px));background:var(--button-bg,var(--cta));color:var(--button-ink,var(--cta-ink));box-shadow:var(--button-shadow, var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14)), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));transition:transform .2s ease,background .2s ease}
:where(.cf-vsl-hero) .vslh-play::before{content:"";position:absolute;inset:-7px;border-radius:inherit;border:2px solid var(--button-ink,var(--cta-ink));opacity:0;animation:vslh-ping 2.4s ease-out infinite}
:where(.cf-vsl-hero) .vslh-poster:hover .vslh-play{transform:scale(1.07);background:oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h)}
:where(.cf-vsl-hero) .vslh-poster:active .vslh-play{transform:scale(.96)}
:where(.cf-vsl-hero) .vslh-poster:focus-visible{outline:3px solid var(--accent);outline-offset:-6px}
@media (min-width:640px){:where(.cf-vsl-hero) .vslh-play{width:88px;height:88px}}
:where(.cf-vsl-hero) .vslh-cta{margin:clamp(1.75rem,3.5vw,2.25rem) auto 0;display:grid;align-items:center;width:100%;max-width:34rem}
:where(.cf-vsl-hero) .vslh-cta>*{grid-column:1;grid-row:1}
:where(.cf-vsl-hero) .vslh-locked{margin:0;font-size:1rem;font-weight:600;color:var(--muted,#4a5565);text-wrap:pretty;transition:opacity .3s ease}
:where(.cf-vsl-hero) .vslh-btn{transition:opacity .5s ease}
:where(.cf-vsl-hero) .vslh-fine{margin:.875rem 0 0;font-size:.875rem;font-weight:500;color:var(--muted,#4a5565);text-decoration:none;text-wrap:pretty}
@keyframes vslh-ping{0%{transform:scale(1);opacity:.7}100%{transform:scale(1.55);opacity:0}}
@media (prefers-reduced-motion:reduce){.cf-vsl-hero *,.cf-vsl-hero *::before,.cf-vsl-hero *::after{animation:none!important;transition:none!important}}
`
pieces/hero/vsl-hero/specimen.tsx 62 lines
import __studioImagefb59a38c from "../assets/7a32623aa1c6db92.webp";
import * as React from "react"
import { VslHero } from "../vsl-hero"
import { slot } from "../../slots"
import defaults from "../../studio-defaults.json"
export const states = ["default"]
const sample = defaults.sample
const KEY_PHRASE = "a clear plan"
const markStyle: React.CSSProperties = {
backgroundImage:
"linear-gradient(177deg, transparent 46%, var(--marker, #fae37c) 47%, var(--marker, #fae37c) 93%, transparent 94%)",
padding: "0 0.16em",
margin: "0 -0.05em",
borderRadius: "0.2em 0.6em 0.32em 0.65em",
boxDecorationBreak: "clone",
WebkitBoxDecorationBreak: "clone",
}
function titleCase(text: string) {
return text.replace(/\b([a-z])/g, (m) => m.toUpperCase())
}
function Headline({ text }: { text: string }) {
const title = titleCase(text)
const at = text.toLowerCase().lastIndexOf(KEY_PHRASE)
if (at < 0) return <>{title}</>
return (
<>
{title.slice(0, at)}
<span style={markStyle}>{title.slice(at, at + KEY_PHRASE.length)}</span>
{title.slice(at + KEY_PHRASE.length)}
</>
)
}
export default function VslHeroSpecimen({ state = "default" }: { state?: string }) {
return (
<div data-state={state}>
<VslHero
headline={<Headline text={sample.headline} />}
subheadline={
<>
Watch the video to see how you’ll{" "}
<strong>plan your funnel, write your page copy, and check every step</strong>{" "}
before you launch.
</>
}
sceneImage={slot("scene", __studioImagefb59a38c)}
videoTitle={`${sample.name} sales video`}
soundBar
ctaLabel={sample.label}
ctaSublabel={sample.sublabel}
onAction={() => {}}
revealCtaAfterMs={0}
/>
</div>
)
}
| Name | Type | Details |
|---|---|---|
eyebrow OptionalVslHero |
string |
|
headline RequiredVslHero |
React.ReactNode |
|
subheadline OptionalVslHero |
React.ReactNode |
|
sceneImage OptionalVslHero |
string |
Default poster
|
poster OptionalVslHero |
string |
|
videoTitle OptionalVslHero |
string |
Default "Sales video"
|
children OptionalVslHero |
React.ReactNode |
|
ctaLabel RequiredVslHero |
string |
|
ctaSublabel OptionalVslHero |
string |
|
href OptionalVslHero |
string |
Default ctaHref
|
ctaHref OptionalVslHero |
string |
|
onAction OptionalVslHero |
() => void |
Default onCtaClick
|
onCtaClick OptionalVslHero |
() => void |
|
variant OptionalVslHero |
BelcherVariant |
Default "mono"
|
microcopy OptionalVslHero |
string |
|
revealCtaAfterMs OptionalVslHero |
number |
Default 0
|
lockedNote OptionalVslHero |
React.ReactNode |
Default "Watch the video. The offer opens at the end."
|
soundBar OptionalVslHero |
boolean | string |
Default false
|
soundLead OptionalVslHero |
string |
Default "Make sure your sound is turned ON!"
|
soundNote OptionalVslHero |
string |
Default "Please wait for the video to fully load"
|
playLabel OptionalVslHero |
string |
Default "Play: {title}"
|
className OptionalVslHero |
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-ink--button-radius--button-shadow- 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.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
scene- A wide atmosphere photo behind or beside the copy.
-
7a32623aa1c6db92.webp
image/webp · 88.5 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB