Hook Headline Video 1
VSL top for ClickFunnels sales pages: a one-line hook, a huge headline, a muted autoplay video with a working
Use it in a prompt
Use hero/hook-headline-video 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/hook-headline-video.tsx. - Import it and pass your copy and images (Props tab):
import { HookHeadlineVideo } from "@/components/funneldna/hero/hook-headline-video"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/hook-headline-video/component.tsx 648 lines
// layout: number-rail
// VSL top for ClickFunnels sales pages: a one-line hook, a huge headline, a muted autoplay video with a working
// "Click to unmute" sticker, then the price and the button. A 01-02-03 numeral rail walks the eye from read to watch to buy.
import * as React from "react"
import { Pause, Play, Volume2, VolumeX } from "lucide-react"
export type HookHeadlineVideoProps = {
/** One-line hook above the headline. */
preHead?: string
/** Main headline (h1). */
headline?: string
/** Phrase inside the headline that gets the marker stroke. */
highlight?: string
/** Short one-sentence lines under the headline. */
punchLines?: string[]
/** The single-word line that lands the punch lines. */
punchWord?: string
/** Numerals on the rail beside each step. */
railNumerals?: [string, string, string]
/** Small labels under the 01 / 02 / 03 numerals (shown on wider screens). */
railLabels?: [string, string, string]
/** The page's video file. It plays muted and looped until the visitor unmutes it. */
videoSrc?: string
/** Poster frame shown before the video loads (slot: scene). */
posterImage?: string
/** The page's own embedded player. It replaces the built-in video, sticker and controls. */
embed?: React.ReactNode
/** Accessible name of the built-in video. */
videoTitle?: string
/** Text on the sticker over the muted video. */
unmuteLabel?: string
/** Accessible label of the mute control while sound is on. */
muteAriaLabel?: string
/** Accessible label of the mute control while muted. */
unmuteAriaLabel?: string
/** Accessible label of the play control while playing. */
pauseAriaLabel?: string
/** Accessible label of the play control while paused. */
playAriaLabel?: string
/** Line above today's price. */
priceLabel?: string
/** Today's price; the price block is hidden when empty. */
price?: string
/** Word in the circle between today's price and the alternative. */
vsLabel?: string
/** What the supplied alternative costs. Shown beside today's price, never struck. */
alternativePrice?: string
/** Short note under the alternative price. */
alternativeLabel?: string
/** Primary button text. */
label?: string
/** Small line inside the button under its label. */
sublabel?: string
/** Navigation destination of the primary button. */
href?: string
/** Handles a click on the primary button. */
onAction?: (event: React.MouseEvent<HTMLElement>) => void
/** Plain lead-in word before the secondary link. */
secondaryLead?: string
/** Quiet text link under the button. */
secondaryLabel?: string
secondaryHref?: string
/** Called when the visitor turns the sound on. */
onUnmute?: () => void
disabled?: boolean
state?: "default" | "hover" | "active" | "disabled"
className?: string
}
export function HookHeadlineVideo(props: HookHeadlineVideoProps) {
const {
preHead = "Your funnel starts here",
headline = "Build your first funnel with a clear plan",
highlight = "a clear plan",
punchLines = ["Plan your funnel.", "Write your page copy.", "Check every step."],
punchWord = "Launch.",
railNumerals = ["01", "02", "03"],
railLabels = ["Read", "Watch", "Start"],
videoSrc,
posterImage,
embed,
videoTitle = "Walkthrough video",
unmuteLabel = "Click to unmute",
muteAriaLabel = "Mute video",
unmuteAriaLabel = "Unmute video",
pauseAriaLabel = "Pause video",
playAriaLabel = "Play video",
priceLabel = "Get the complete kit for",
price,
vsLabel = "vs.",
alternativePrice,
alternativeLabel = "",
label = "Send Me The Starter Kit",
sublabel = "Secure checkout · Instant download",
href,
onAction,
secondaryLead = "or",
secondaryLabel = "keep reading to see what's inside",
secondaryHref = "#inside",
onUnmute,
disabled = false,
state = "default",
className = "",
} = props
const isDisabled = disabled || state === "disabled"
const videoRef = React.useRef<HTMLVideoElement>(null)
const muteRef = React.useRef<HTMLButtonElement>(null)
const [muted, setMuted] = React.useState(true)
const [stickerOn, setStickerOn] = React.useState(true)
const [playing, setPlaying] = React.useState(prefersMotion)
React.useEffect(() => {
const video = videoRef.current
if (video) video.muted = muted
}, [muted])
React.useEffect(() => {
const video = videoRef.current
if (!video || !videoSrc) return
if (playing) {
const attempt = video.play()
if (attempt && typeof attempt.catch === "function") attempt.catch(() => setPlaying(false))
} else {
video.pause()
}
}, [playing, videoSrc])
const unmuteFromSticker = () => {
setMuted(false)
setPlaying(true)
setStickerOn(false)
onUnmute?.()
requestAnimationFrame(() => muteRef.current?.focus())
}
const toggleMute = () => {
const next = !muted
setMuted(next)
setStickerOn(false)
if (!next) {
setPlaying(true)
onUnmute?.()
}
}
const btnClass = [
"cf-hhv__btn",
state === "hover" ? "is-hover" : "",
state === "active" ? "is-active" : "",
]
.filter(Boolean)
.join(" ")
const btnInner = (
<>
<span className="cf-hhv__btn-label">{label}</span>
{sublabel ? <span className="cf-hhv__btn-sub">{sublabel}</span> : null}
</>
)
const button =
href && !isDisabled ? (
<a className={btnClass} href={href} onClick={onAction}>
{btnInner}
</a>
) : (
<button
type="button"
className={btnClass}
disabled={isDisabled}
onClick={isDisabled ? undefined : onAction}
>
{btnInner}
</button>
)
return (
<div className={`cf-hook-headline-video ${className}`.trim()}>
<style>{CSS}</style>
<div className="cf-hhv__row">
<Rail numeral={railNumerals[0]} label={railLabels[0]} line />
<div className="cf-hhv__body">
{preHead ? <p className="cf-hhv__pre">{preHead}</p> : null}
<h1 className="cf-hhv__h1">{withMarker(headline, highlight)}</h1>
{punchLines.length || punchWord ? (
<div className="cf-hhv__punch">
{punchLines.map((line, i) => (
<p key={i}>{line}</p>
))}
{punchWord ? <p className="cf-hhv__punch-word">{punchWord}</p> : null}
</div>
) : null}
</div>
</div>
<div className="cf-hhv__row">
<Rail numeral={railNumerals[1]} label={railLabels[1]} line />
<div className="cf-hhv__body">
<div className="cf-hhv__frame">
{embed ? (
embed
) : (
<>
<video
ref={videoRef}
className="cf-hhv__video"
src={videoSrc}
poster={posterImage}
muted
loop
playsInline
preload="metadata"
aria-label={videoTitle}
/>
{stickerOn ? (
<button type="button" className="cf-hhv__sticker" onClick={unmuteFromSticker}>
<span className="cf-hhv__sticker-icon" aria-hidden="true">
<Volume2 size={18} strokeWidth={2.5} />
</span>
{unmuteLabel}
</button>
) : null}
<div className="cf-hhv__ctrls">
<button
type="button"
className="cf-hhv__ctrl"
aria-label={playing ? pauseAriaLabel : playAriaLabel}
onClick={() => setPlaying((p) => !p)}
>
{playing ? (
<Pause size={18} strokeWidth={2.5} aria-hidden="true" />
) : (
<Play size={18} strokeWidth={2.5} aria-hidden="true" />
)}
</button>
<button
ref={muteRef}
type="button"
className="cf-hhv__ctrl"
aria-label={muted ? unmuteAriaLabel : muteAriaLabel}
onClick={toggleMute}
>
{muted ? (
<VolumeX size={18} strokeWidth={2.5} aria-hidden="true" />
) : (
<Volume2 size={18} strokeWidth={2.5} aria-hidden="true" />
)}
</button>
</div>
</>
)}
</div>
</div>
</div>
<div className="cf-hhv__row">
<Rail numeral={railNumerals[2]} label={railLabels[2]} />
<div className="cf-hhv__body">
{price ? (
<div className={`cf-hhv__price${alternativePrice ? "" : " is-solo"}`}>
<div className="cf-hhv__today">
<span className="cf-hhv__today-label">{priceLabel}</span>
<strong className="cf-hhv__today-price">{price}</strong>
</div>
{alternativePrice ? (
<>
<span className="cf-hhv__vs">{vsLabel}</span>
<div className="cf-hhv__alt">
<strong className="cf-hhv__alt-price">{alternativePrice}</strong>
{alternativeLabel ? (
<span className="cf-hhv__alt-label">{alternativeLabel}</span>
) : null}
</div>
</>
) : null}
</div>
) : null}
{button}
{secondaryLabel ? (
<p className="cf-hhv__quiet">
{secondaryLead ? <span>{secondaryLead} </span> : null}
<a href={secondaryHref}>{secondaryLabel}</a>
</p>
) : null}
</div>
</div>
</div>
)
}
export default HookHeadlineVideo
/** Autoplay only when the visitor has not asked for reduced motion. */
function prefersMotion(): boolean {
if (typeof window === "undefined" || typeof window.matchMedia !== "function") return true
return !window.matchMedia("(prefers-reduced-motion: reduce)").matches
}
function Rail({ numeral, label, line = false }: { numeral: string; label?: string; line?: boolean }) {
return (
<div className="cf-hhv__rail" aria-hidden="true">
<span className="cf-hhv__num">{numeral}</span>
{label ? <span className="cf-hhv__step">{label}</span> : null}
{line ? (
<span className="cf-hhv__line">
<span className="cf-hhv__fill" />
</span>
) : null}
</div>
)
}
function withMarker(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text
const i = text.toLowerCase().indexOf(phrase.toLowerCase())
if (i < 0) return text
return (
<>
{text.slice(0, i)}
<span className="cf-hhv__mark">{text.slice(i, i + phrase.length)}</span>
{text.slice(i + phrase.length)}
</>
)
}
const CSS = `
.cf-hook-headline-video {
--hhv-rail: 6rem;
--hhv-gap: clamp(1rem, 3vw, 2.25rem);
--hhv-ink: var(--ink, oklch(0.21 0.034 263));
--hhv-muted: var(--muted, oklch(0.446 0.03 258));
--hhv-accent: var(--accent, oklch(0.5 0.17 257));
--hhv-band: var(--band, oklch(0.27 0.067 256));
--hhv-band-ink: var(--band-ink, oklch(1 0 0));
--hhv-shadow: var(--shadow, oklch(0.22 0.03 256));
--hhv-focus: var(--field-focus, var(--accent, oklch(0.5 0.17 257)));
--hhv-marker: var(--marker, #fae37c);
--hhv-hair: oklch(from var(--ink, oklch(0.21 0.034 263)) l c h / 0.12);
--hhv-btn: var(--button-bg, var(--cta, oklch(0.58 0.21 29)));
--hhv-btn-2: var(--button-bg-2, var(--cta-2, oklch(0.51 0.206 29)));
display: block;
width: 100%;
max-width: 64rem;
margin-inline: auto;
color: var(--hhv-ink);
font-family: var(--font-body, system-ui, sans-serif);
}
.cf-hook-headline-video *, .cf-hook-headline-video *::before, .cf-hook-headline-video *::after { box-sizing: border-box; }
.cf-hook-headline-video .cf-hhv__row {
display: grid;
grid-template-columns: var(--hhv-rail) minmax(0, 1fr);
column-gap: var(--hhv-gap);
align-items: stretch;
}
.cf-hook-headline-video .cf-hhv__body { min-width: 0; padding-top: 0.25rem; padding-bottom: clamp(1.75rem, 3.6vw, 2.75rem); }
.cf-hook-headline-video .cf-hhv__row:last-child .cf-hhv__body { padding-bottom: 0; }
.cf-hook-headline-video .cf-hhv__rail { display: flex; flex-direction: column; align-items: center; }
.cf-hook-headline-video .cf-hhv__num {
font-family: var(--font-display, system-ui, sans-serif);
font-weight: var(--display-weight, 900);
font-size: clamp(2.75rem, 1.6rem + 3vw, 4.25rem);
line-height: 0.82;
letter-spacing: -0.04em;
font-variant-numeric: lining-nums tabular-nums;
color: var(--hhv-accent);
}
.cf-hook-headline-video .cf-hhv__step { margin-top: 0.625rem; font-size: 0.875rem; font-weight: 700; line-height: 1.2; color: var(--hhv-muted); }
.cf-hook-headline-video .cf-hhv__line {
position: relative;
flex: 1 1 auto;
width: 3px;
min-height: 2rem;
margin: 0.875rem 0 0.75rem;
border-radius: 3px;
overflow: hidden;
background: var(--hhv-hair);
}
.cf-hook-headline-video .cf-hhv__fill { position: absolute; inset: 0; border-radius: inherit; background: var(--accent-fill, var(--hhv-accent)); transform-origin: top; }
.cf-hook-headline-video .cf-hhv__pre {
margin: 0 0 0.875rem;
font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.3125rem);
font-weight: 600;
line-height: 1.35;
color: var(--hhv-ink);
text-wrap: pretty;
}
.cf-hook-headline-video .cf-hhv__h1 {
margin: 0;
font-family: var(--font-display, system-ui, sans-serif);
font-weight: var(--display-weight, 900);
text-transform: var(--display-case, none);
letter-spacing: var(--display-tracking, -0.03em);
font-size: clamp(2.25rem, 1.2rem + 4.2vw, 4.5rem);
line-height: 1.02;
color: var(--hhv-ink);
text-wrap: balance;
}
.cf-hook-headline-video .cf-hhv__mark {
background-image: linear-gradient(transparent 36%, var(--hhv-marker) 36%, var(--hhv-marker) 93%, transparent 93%);
border-radius: 0.2em 0.5em 0.3em 0.45em;
padding: 0 0.1em;
margin: 0 -0.04em;
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cf-hook-headline-video .cf-hhv__punch { display: grid; gap: 0.25rem; margin-top: clamp(1.125rem, 2vw, 1.5rem); }
.cf-hook-headline-video .cf-hhv__punch p {
margin: 0;
font-size: clamp(1.0625rem, 1rem + 0.35vw, 1.25rem);
font-weight: 500;
line-height: 1.4;
color: var(--hhv-muted);
text-wrap: pretty;
}
.cf-hook-headline-video .cf-hhv__punch .cf-hhv__punch-word {
margin-top: 0.25rem;
font-family: var(--font-display, system-ui, sans-serif);
font-weight: var(--display-weight, 900);
font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2rem);
line-height: 1.1;
color: var(--hhv-ink);
}
.cf-hook-headline-video .cf-hhv__frame {
position: relative;
aspect-ratio: 16 / 9;
border-radius: calc(var(--radius, 12px) + 4px);
overflow: hidden;
background: var(--hhv-band);
border: 1px solid var(--hhv-hair);
box-shadow: var(--shadow-lg, 0 2px 4px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.22), 0 12px 24px -8px oklch(from var(--shadow, oklch(0.22 0.03 256)) l c h / 0.32));
}
.cf-hook-headline-video .cf-hhv__frame > iframe, .cf-hook-headline-video .cf-hhv__video { display: block; width: 100%; height: 100%; border: 0; object-fit: cover; object-position: center 30%; }
.cf-hook-headline-video .cf-hhv__sticker {
position: absolute;
top: clamp(0.625rem, 2vw, 1.125rem);
left: 50%;
transform: translateX(-50%) rotate(-2deg);
display: inline-flex;
align-items: center;
gap: 0.625rem;
min-height: 2.75rem;
padding: 0.4375rem 1.125rem 0.4375rem 0.4375rem;
border: 0;
border-radius: 999px;
background: var(--hhv-band);
color: var(--hhv-band-ink);
font-family: var(--button-font, var(--font-display, system-ui, sans-serif));
font-weight: var(--button-weight, 800);
font-size: clamp(0.9375rem, 0.9rem + 0.3vw, 1.125rem);
line-height: 1;
white-space: nowrap;
cursor: pointer;
box-shadow: inset 0 1px 0 oklch(from var(--hhv-band) calc(l + 0.12) c h / 0.8), 0 1px 2px oklch(from var(--hhv-shadow) l c h / 0.35), 0 6px 14px -4px oklch(from var(--hhv-shadow) l c h / 0.45);
transition: transform 0.18s ease, background-color 0.18s ease;
}
.cf-hook-headline-video .cf-hhv__sticker::after {
content: "";
position: absolute;
inset: -5px;
border-radius: inherit;
border: 2px solid oklch(from var(--hhv-band) l c h / 0.55);
opacity: 0;
pointer-events: none;
}
.cf-hook-headline-video .cf-hhv__sticker-icon {
display: grid;
place-items: center;
width: 1.875rem;
height: 1.875rem;
border-radius: 50%;
background: var(--hhv-band-ink);
color: var(--hhv-band);
flex: 0 0 auto;
}
.cf-hook-headline-video .cf-hhv__sticker:hover { background: oklch(from var(--hhv-band) calc(l + 0.06) c h); transform: translateX(-50%) rotate(-2deg) scale(1.04); }
.cf-hook-headline-video .cf-hhv__sticker:active { transform: translateX(-50%) rotate(-2deg) scale(0.97); }
.cf-hook-headline-video .cf-hhv__sticker:focus-visible { outline: 3px solid var(--hhv-focus); outline-offset: 3px; }
.cf-hook-headline-video .cf-hhv__ctrls { position: absolute; left: 0.75rem; bottom: 0.75rem; display: flex; gap: 0.5rem; }
.cf-hook-headline-video .cf-hhv__ctrl {
display: grid;
place-items: center;
width: 2.75rem;
height: 2.75rem;
border: 1px solid var(--button-2-border, transparent);
border-radius: 50%;
background: oklch(from var(--hhv-band) l c h / 0.88);
color: var(--hhv-band-ink);
cursor: pointer;
-webkit-backdrop-filter: blur(6px);
backdrop-filter: blur(6px);
box-shadow: 0 1px 2px oklch(from var(--hhv-shadow) l c h / 0.3);
transition: background-color 0.16s ease;
}
.cf-hook-headline-video .cf-hhv__ctrl:hover { background: var(--hhv-band); }
.cf-hook-headline-video .cf-hhv__ctrl:focus-visible { outline: 3px solid var(--hhv-focus); outline-offset: 2px; }
.cf-hook-headline-video .cf-hhv__price {
display: grid;
grid-template-columns: auto auto minmax(0, 1fr);
grid-template-areas: "today vs alt";
align-items: center;
column-gap: 1.125rem;
width: fit-content;
max-width: 100%;
margin-bottom: 1.25rem;
padding: 1rem 1.375rem;
border-radius: var(--card-radius, var(--radius, 12px));
background: color-mix(in oklch, var(--ink, oklch(0.21 0.034 263)) 4%, var(--surface, oklch(1 0 0)));
border: 1px solid var(--hhv-hair);
}
.cf-hook-headline-video .cf-hhv__price.is-solo { grid-template-columns: auto; grid-template-areas: "today"; }
.cf-hook-headline-video .cf-hhv__today { grid-area: today; display: flex; flex-direction: column; }
.cf-hook-headline-video .cf-hhv__today-label { margin-bottom: 0.5rem; font-size: 0.9375rem; font-weight: 600; line-height: 1.3; color: var(--hhv-ink); }
.cf-hook-headline-video .cf-hhv__today-price {
font-family: var(--font-display, system-ui, sans-serif);
font-weight: var(--display-weight, 900);
font-size: clamp(2.5rem, 1.9rem + 2vw, 3.25rem);
line-height: 1;
letter-spacing: -0.02em;
font-variant-numeric: lining-nums tabular-nums;
color: var(--hhv-ink);
}
.cf-hook-headline-video .cf-hhv__vs {
grid-area: vs;
display: grid;
place-items: center;
width: 2.5rem;
height: 2.5rem;
border-radius: 50%;
background: var(--card, oklch(1 0 0));
border: 1px solid var(--hhv-hair);
font-size: 0.9375rem;
font-weight: 800;
color: var(--hhv-ink);
}
.cf-hook-headline-video .cf-hhv__alt { grid-area: alt; display: flex; flex-direction: column; min-width: 0; }
.cf-hook-headline-video .cf-hhv__alt-price {
font-family: var(--font-display, system-ui, sans-serif);
font-weight: 800;
font-size: 1.5rem;
line-height: 1.05;
font-variant-numeric: lining-nums tabular-nums;
color: var(--hhv-ink);
}
.cf-hook-headline-video .cf-hhv__alt-label { margin-top: 0.25rem; max-width: 17rem; font-size: 0.9375rem; line-height: 1.35; color: var(--hhv-muted); text-wrap: pretty; }
.cf-hook-headline-video .cf-hhv__btn {
--hhv-dl: 0;
display: inline-flex;
flex-direction: column;
align-items: center;
justify-content: center;
gap: 0.3rem;
width: min(100%, 34rem);
min-height: 4.5rem;
padding: 0.95rem 1.5rem 1.05rem;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--hhv-btn) calc(l + 0.04 + var(--hhv-dl)) c h), oklch(from var(--hhv-btn-2) calc(l + var(--hhv-dl)) c h));
color: var(--button-ink, var(--cta-ink, oklch(1 0 0)));
text-shadow: var(--button-text-shadow, none);
font-family: var(--button-font, var(--font-display, system-ui, sans-serif));
font-weight: var(--button-weight, 800);
text-transform: var(--button-case, none);
text-align: center;
text-decoration: none;
cursor: pointer;
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--hhv-btn) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--hhv-btn) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--hhv-shadow) l c h / 0.3), 0 6px 14px -4px oklch(from var(--hhv-shadow) l c h / 0.38));
transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.cf-hook-headline-video .cf-hhv__btn-label { font-size: clamp(1.125rem, 1rem + 0.55vw, 1.4rem); line-height: 1.15; text-wrap: balance; }
.cf-hook-headline-video .cf-hhv__btn-sub { font-family: var(--font-body, system-ui, sans-serif); font-size: 0.875rem; font-weight: 500; line-height: 1.3; text-wrap: pretty; }
.cf-hook-headline-video .cf-hhv__btn:hover, .cf-hook-headline-video .cf-hhv__btn.is-hover { --hhv-dl: -0.05; transform: translateY(-2px); }
.cf-hook-headline-video .cf-hhv__btn:active, .cf-hook-headline-video .cf-hhv__btn.is-active {
--hhv-dl: -0.09;
transform: translateY(1px);
box-shadow: inset 0 1px 0 oklch(from var(--hhv-btn) calc(l + 0.08) c h / 0.5), inset 0 -1px 0 oklch(from var(--hhv-btn) calc(l - 0.18) c h), 0 1px 2px oklch(from var(--hhv-shadow) l c h / 0.32);
}
.cf-hook-headline-video .cf-hhv__btn:focus-visible { outline: 3px solid var(--hhv-focus); outline-offset: 3px; }
.cf-hook-headline-video .cf-hhv__btn:disabled {
background: var(--button-2-bg, var(--secondary, oklch(0.93 0.015 263)));
color: var(--button-2-ink, var(--secondary-ink, oklch(0.21 0.034 263)));
text-shadow: none;
box-shadow: none;
transform: none;
cursor: not-allowed;
}
.cf-hook-headline-video .cf-hhv__quiet { margin: 0.875rem 0 0; font-size: 1rem; line-height: 1.45; color: var(--hhv-muted); text-wrap: pretty; }
.cf-hook-headline-video .cf-hhv__quiet a {
color: var(--link, var(--accent, oklch(0.5 0.17 257)));
text-decoration: underline;
text-decoration-color: oklch(from var(--link, var(--accent, oklch(0.5 0.17 257))) l c h / 0.45);
text-underline-offset: 0.18em;
font-weight: 600;
}
.cf-hook-headline-video .cf-hhv__quiet a:hover { color: oklch(from var(--link, var(--accent, oklch(0.5 0.17 257))) calc(l - 0.08) c h); text-decoration-color: currentColor; }
.cf-hook-headline-video .cf-hhv__quiet a:focus-visible { outline: 3px solid var(--hhv-focus); outline-offset: 2px; border-radius: 2px; }
@keyframes hhv-in { from { opacity: 0.82; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes hhv-ring { 0% { opacity: 0.8; transform: scale(1); } 100% { opacity: 0; transform: scale(1.12, 1.4); } }
@keyframes hhv-fill { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@media (prefers-reduced-motion: no-preference) {
.cf-hook-headline-video .cf-hhv__body > * { animation: hhv-in 0.45s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.cf-hook-headline-video .cf-hhv__row:nth-child(3) .cf-hhv__body > * { animation-delay: 0.07s; }
.cf-hook-headline-video .cf-hhv__row:nth-child(4) .cf-hhv__body > * { animation-delay: 0.14s; }
.cf-hook-headline-video .cf-hhv__sticker::after { animation: hhv-ring 1.8s ease-out 0.6s 3; }
}
@supports (animation-timeline: view()) {
@media (prefers-reduced-motion: no-preference) {
.cf-hook-headline-video .cf-hhv__fill { animation: hhv-fill linear both; animation-timeline: view(); animation-range: entry 20% cover 55%; }
}
}
@media (prefers-reduced-motion: reduce) {
.cf-hook-headline-video .cf-hhv__btn, .cf-hook-headline-video .cf-hhv__sticker, .cf-hook-headline-video .cf-hhv__ctrl { transition: none; }
.cf-hook-headline-video .cf-hhv__btn:hover, .cf-hook-headline-video .cf-hhv__btn.is-hover, .cf-hook-headline-video .cf-hhv__btn:active, .cf-hook-headline-video .cf-hhv__btn.is-active { transform: none; }
.cf-hook-headline-video .cf-hhv__sticker:hover, .cf-hook-headline-video .cf-hhv__sticker:active { transform: translateX(-50%) rotate(-2deg); }
}
@media (max-width: 640px) {
.cf-hook-headline-video { --hhv-rail: 2.25rem; --hhv-gap: 0.875rem; }
.cf-hook-headline-video .cf-hhv__num { font-size: 1.75rem; }
.cf-hook-headline-video .cf-hhv__step { display: none; }
.cf-hook-headline-video .cf-hhv__line { margin: 0.625rem 0 0.5rem; }
.cf-hook-headline-video .cf-hhv__h1 { font-size: clamp(2rem, 8.4vw, 2.5rem); }
.cf-hook-headline-video .cf-hhv__btn { width: 100%; padding-inline: 1rem; }
.cf-hook-headline-video .cf-hhv__price {
width: 100%;
grid-template-columns: auto minmax(0, 1fr);
grid-template-areas: "today today" "vs alt";
row-gap: 0.875rem;
column-gap: 0.75rem;
padding: 1rem;
}
.cf-hook-headline-video .cf-hhv__price.is-solo { grid-template-columns: auto; grid-template-areas: "today"; }
.cf-hook-headline-video .cf-hhv__sticker { padding-right: 0.875rem; }
.cf-hook-headline-video .cf-hhv__ctrls { left: 0.5rem; bottom: 0.5rem; }
}
`
pieces/hero/hook-headline-video/specimen.tsx 32 lines
import __studioImageee082cfb from "../assets/ec56fe4efbf80374.webp"
import { HookHeadlineVideo, type HookHeadlineVideoProps } from "../hook-headline-video"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
const sample = defaults.sample
export const states = ["default", "hover", "active", "disabled"]
type SpecimenState = NonNullable<HookHeadlineVideoProps["state"]>
export default function HookHeadlineVideoSpecimen({ state = "default" }: { state?: SpecimenState }) {
return (
<HookHeadlineVideo
state={state}
preHead={sample.eyebrow}
headline={sample.headline}
highlight="a clear plan"
punchLines={["Plan your funnel.", "Write your page copy.", "Check every step."]}
punchWord="Launch."
posterImage={slot("scene", __studioImageee082cfb)}
videoTitle={`${sample.name} walkthrough video`}
priceLabel={sample.todayLabel}
price={sample.price}
alternativePrice={sample.regularPrice}
alternativeLabel="regular price for the guide, workbook and checklist"
label="Send Me The Starter Kit"
sublabel={sample.sublabel}
secondaryLabel="keep reading to see what's inside"
/>
)
}
| Name | Type | Details |
|---|---|---|
preHead OptionalHookHeadlineVideo |
string |
|
headline OptionalHookHeadlineVideo |
string |
|
highlight OptionalHookHeadlineVideo |
string |
|
punchLines OptionalHookHeadlineVideo |
string[] |
|
punchWord OptionalHookHeadlineVideo |
string |
|
railNumerals OptionalHookHeadlineVideo |
[string, string, string] |
|
railLabels OptionalHookHeadlineVideo |
[string, string, string] |
|
videoSrc OptionalHookHeadlineVideo |
string |
|
posterImage OptionalHookHeadlineVideo |
string |
|
embed OptionalHookHeadlineVideo |
React.ReactNode |
|
videoTitle OptionalHookHeadlineVideo |
string |
|
unmuteLabel OptionalHookHeadlineVideo |
string |
|
muteAriaLabel OptionalHookHeadlineVideo |
string |
|
unmuteAriaLabel OptionalHookHeadlineVideo |
string |
|
pauseAriaLabel OptionalHookHeadlineVideo |
string |
|
playAriaLabel OptionalHookHeadlineVideo |
string |
|
priceLabel OptionalHookHeadlineVideo |
string |
|
price OptionalHookHeadlineVideo |
string |
|
vsLabel OptionalHookHeadlineVideo |
string |
|
alternativePrice OptionalHookHeadlineVideo |
string |
|
alternativeLabel OptionalHookHeadlineVideo |
string |
|
label OptionalHookHeadlineVideo |
string |
|
sublabel OptionalHookHeadlineVideo |
string |
|
href OptionalHookHeadlineVideo |
string |
|
onAction OptionalHookHeadlineVideo |
(event: React.MouseEvent<HTMLElement>) => void |
|
secondaryLead OptionalHookHeadlineVideo |
string |
|
secondaryLabel OptionalHookHeadlineVideo |
string |
|
secondaryHref OptionalHookHeadlineVideo |
string |
|
onUnmute OptionalHookHeadlineVideo |
() => void |
|
disabled OptionalHookHeadlineVideo |
boolean |
|
state OptionalHookHeadlineVideo |
"default" | "hover" | "active" | "disabled" |
|
className OptionalHookHeadlineVideo |
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.
--button-2-bg--button-2-border--button-2-ink- Secondary button.
--card-radius- 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.
--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.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
ec56fe4efbf80374.webp
image/webp · 62.2 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB