Launch Video Series 2
Launch video series as a segmented stepper: each video is a tab (watched, watching now, unlocks next, locked). One preview panel sells the next video, and a commit-and-continue action moves the viewer on.
Use it in a prompt
Use content/launch-video-series-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/content/launch-video-series-2.tsx. - Import it and pass your copy and images (Props tab):
import { LaunchVideoSeries2 } from "@/components/funneldna/content/launch-video-series-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/launch-video-series-2/component.tsx 594 lines
// layout: segmented-stepper
// Launch video series as a segmented stepper: each video is a tab (watched, watching now, unlocks next, locked). One preview panel sells the next video, and a commit-and-continue action moves the viewer on.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Eye, Loader2, Lock, LockOpen, RotateCcw } from 'lucide-react'
import { FX_HOST, Pattern } from '../fx/fx'
export type SeriesVideo2 = {
title: string
/** One line on what the video covers. */
detail?: string
/** Short fascination bullets shown in the preview panel. */
points?: string[]
/** Thumbnail src (slot it in the page, e.g. item-1). */
image?: string
imageAlt?: string
/** Page for this video. Watched videos link to it for a rewatch, and the opened next video uses it as the button destination. */
href?: string
}
export type SeriesHeadline2 = {
lead?: React.ReactNode
/** Phrase that gets the marker stroke. */
mark?: React.ReactNode
after?: React.ReactNode
}
export type LaunchVideoSeries2State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type LaunchVideoSeries2Copy = typeof DEFAULT_COPY
export type LaunchVideoSeries2Props = {
/** Videos in watch order. An empty list falls back to the default series. */
videos?: SeriesVideo2[]
/** Zero-based index of the video playing on this page. */
current?: number
/** Which video the preview panel opens on. Defaults to the next video. */
initialView?: number
headline?: SeriesHeadline2
lead?: React.ReactNode
/** Set true when the page's video ends: the current video turns watched and the next one opens. */
unlocked?: boolean
/** Keep the button locked until unlocked is true. */
requireFinish?: boolean
/** Start with the commitment box ticked. */
committed?: boolean
/** P.S. line under the button. */
ps?: React.ReactNode
/** Where the button goes. It renders as a link when set. */
href?: string
/** Runs when the viewer presses the button. A promise shows the loading label; false or a rejection shows the error note. */
onAction?: (nextIndex: number) => void | boolean | Promise<void | boolean>
/** Runs when the viewer picks a watched video to rewatch, or opens the next video when no onAction is set. */
onSelect?: (index: number) => void
/** Templates use {number}, {current}, {next}, {prev}, {total}, {title} and {status}. */
copy?: Partial<LaunchVideoSeries2Copy>
state?: LaunchVideoSeries2State
className?: string
}
type Status = 'watched' | 'current' | 'next' | 'open' | 'locked'
type Phase = 'idle' | 'loading' | 'failed'
export function LaunchVideoSeries2({
videos = DEFAULT_VIDEOS,
current = 1,
initialView,
headline,
lead,
unlocked = false,
requireFinish = false,
committed: committedDefault = true,
ps,
href,
onAction,
onSelect,
copy,
state = 'default',
className,
}: LaunchVideoSeries2Props) {
const t = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const list = videos.length ? videos : DEFAULT_VIDEOS
const n = list.length
const cur = clamp(Math.round(current) || 0, 0, n - 1)
const nextIndex = cur + 1 < n ? cur + 1 : -1
const hasNext = nextIndex >= 0
const done = hasNext && unlocked
const startView = clamp(initialView ?? (hasNext ? nextIndex : cur), 0, n - 1)
const f = (s: string, extra: Record<string, string | number> = {}) =>
fill(s, { current: cur + 1, next: nextIndex + 1, total: n, ...extra })
const [view, setView] = React.useState(startView)
const [checked, setChecked] = React.useState(state === 'error' ? false : committedDefault)
const [commitError, setCommitError] = React.useState(state === 'error')
const [phase, setPhase] = React.useState<Phase>('idle')
const mounted = React.useRef(true)
const tabRefs = React.useRef<Array<HTMLButtonElement | null>>([])
const boxRef = React.useRef<HTMLInputElement>(null)
React.useEffect(() => {
setView(startView)
}, [startView])
React.useEffect(() => {
setChecked(state === 'error' ? false : committedDefault)
setCommitError(state === 'error')
setPhase('idle')
}, [state, committedDefault])
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
const statusOf = (i: number): Status => {
if (i < cur) return 'watched'
if (i === cur) return done ? 'watched' : 'current'
if (i === nextIndex) return done ? 'open' : 'next'
return 'locked'
}
const words: Record<Status, string> = { watched: t.watched, current: t.current, next: t.next, open: t.open, locked: t.locked }
const disabled = hasNext && !done && (state === 'disabled' || (requireFinish && !unlocked))
const loading = phase === 'loading'
const settle = (ok: boolean) => {
if (mounted.current) setPhase(ok ? 'idle' : 'failed')
}
const handleGo = (event: React.MouseEvent<HTMLElement>) => {
if (!hasNext || disabled || loading) {
event.preventDefault()
return
}
if (!checked) {
event.preventDefault()
setCommitError(true)
boxRef.current?.focus()
return
}
setPhase('idle')
if (!onAction) {
if (done) onSelect?.(nextIndex)
return
}
let result: void | boolean | Promise<void | boolean>
try {
result = onAction(nextIndex)
} catch {
event.preventDefault()
settle(false)
return
}
if (result === false) {
event.preventDefault()
settle(false)
return
}
if (result instanceof Promise) {
setPhase('loading')
result.then((value) => settle(value !== false), () => settle(false))
}
}
const onTabKey = (event: React.KeyboardEvent<HTMLButtonElement>, i: number) => {
const keys: Record<string, number> = { ArrowRight: i + 1, ArrowDown: i + 1, ArrowLeft: i - 1, ArrowUp: i - 1, Home: 0, End: n - 1 }
if (!(event.key in keys)) return
event.preventDefault()
const to = (keys[event.key] + n) % n
setView(to)
tabRefs.current[to]?.focus()
}
const h: SeriesHeadline2 =
headline ?? (hasNext ? { lead: f(t.headLead), mark: f(t.headMark) } : { lead: f(t.finalHeadLead), mark: f(t.finalHeadMark) })
const leadText = lead ?? f(hasNext ? t.lead : t.finalLead)
const psText = ps ?? (hasNext ? f(t.ps) : null)
const label = loading ? f(t.loadingLabel) : done ? f(t.openLabel) : disabled ? f(t.lockedLabel) : f(t.continueLabel)
const target = done ? list[nextIndex]?.href ?? href : href
const viewIdx = clamp(view, 0, n - 1)
const v = list[viewIdx]
const vs = statusOf(viewIdx)
const headingId = `${uid}-h`
const panelId = `${uid}-panel`
const tabId = (i: number) => `${uid}-tab-${i}`
const commitId = `${uid}-commit`
const errId = `${uid}-err`
const btnClass = 'lv2-btn' + (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '')
const btnInner = (
<>
{loading ? <Loader2 className='lv2-spin' aria-hidden='true' /> : null}
<span>{label}</span>
</>
)
let note: React.ReactNode
if (vs === 'watched') {
const text = f(t.noteWatched, { number: viewIdx + 1 })
note = v.href ? (
<a className='lv2-link' href={v.href} onClick={() => onSelect?.(viewIdx)}>
<RotateCcw className='lv2-inl' aria-hidden='true' strokeWidth={2.5} />
{text}
</a>
) : onSelect ? (
<button type='button' className='lv2-link' onClick={() => onSelect(viewIdx)}>
<RotateCcw className='lv2-inl' aria-hidden='true' strokeWidth={2.5} />
{text}
</button>
) : (
<span>
<Check className='lv2-inl' aria-hidden='true' strokeWidth={2.5} />
{t.noteDone}
</span>
)
} else if (vs === 'current') {
note = (
<span>
<Eye className='lv2-inl' aria-hidden='true' strokeWidth={2.5} />
{f(t.noteCurrent)}
</span>
)
} else if (vs === 'open') {
note = (
<span>
<LockOpen className='lv2-inl' aria-hidden='true' strokeWidth={2.5} />
{f(t.noteOpen)}
</span>
)
} else {
note = (
<span>
<Lock className='lv2-inl' aria-hidden='true' strokeWidth={2.5} />
{vs === 'next' ? f(t.noteNext) : f(t.noteLocked, { prev: viewIdx })}
</span>
)
}
return (
<section
className={`cf-launch-video-series-2 lv2${className ? ' ' + className : ''}`}
style={FX_HOST}
aria-labelledby={headingId}
data-state={state}
>
<style>{CSS}</style>
<Pattern name='grid' fade='top' />
<div className='lv2-wrap'>
<header className='lv2-head'>
<h2 id={headingId} className='lv2-h'>
{h.lead}
{h.mark ? <span className='lv2-mark'>{h.mark}</span> : null}
{h.after}
</h2>
{leadText ? <p className='lv2-lead'>{leadText}</p> : null}
</header>
<div className='lv2-console'>
<div className='lv2-tabs' role='tablist' aria-label={t.tabsLabel} style={{ '--lv2-n': n } as React.CSSProperties}>
{list.map((video, i) => {
const st = statusOf(i)
const sel = i === viewIdx
return (
<button
key={i}
ref={(el) => {
tabRefs.current[i] = el
}}
type='button'
role='tab'
id={tabId(i)}
aria-selected={sel}
aria-controls={panelId}
tabIndex={sel ? 0 : -1}
aria-label={f(t.tabLabel, { number: i + 1, title: video.title, status: words[st] })}
className={`lv2-tab s-${st}${sel ? ' is-sel' : ''}`}
onClick={() => setView(i)}
onKeyDown={(event) => onTabKey(event, i)}
>
<span className='lv2-tabtop'>
<StatusDisc status={st} />
<span className='lv2-tabnum'>{f(t.videoLabel, { number: i + 1 })}</span>
</span>
<span className='lv2-tabtitle'>{video.title}</span>
<span className='lv2-tabstatus'>{words[st]}</span>
<span className='lv2-bar' aria-hidden='true'>
<i />
</span>
</button>
)
})}
</div>
<div key={viewIdx} id={panelId} role='tabpanel' aria-labelledby={tabId(viewIdx)} className={`lv2-panel s-${vs}`}>
<figure className='lv2-shot'>
{v.image ? (
<img src={v.image} alt={v.imageAlt ?? v.title} width={1280} height={800} decoding='async' />
) : (
<span className='lv2-shotnum' aria-hidden='true'>
{viewIdx + 1}
</span>
)}
{vs === 'next' || vs === 'locked' ? (
<span className='lv2-veil' aria-hidden='true'>
<span className='lv2-lockdisc'>
<Lock strokeWidth={2.5} />
</span>
</span>
) : null}
</figure>
<div className='lv2-copy'>
<p className='lv2-chip'>
<StatusDisc status={vs} />
<span>{f(t.chip, { number: viewIdx + 1, status: words[vs] })}</span>
</p>
<h3 className='lv2-title'>{v.title}</h3>
{v.detail ? <p className='lv2-detail'>{v.detail}</p> : null}
{v.points && v.points.length ? (
<ul className='lv2-points'>
{v.points.map((point, k) => (
<li key={k}>
<Check aria-hidden='true' strokeWidth={2.5} />
<span>{point}</span>
</li>
))}
</ul>
) : null}
<p className='lv2-note'>{note}</p>
</div>
</div>
</div>
<div className='lv2-act'>
{hasNext ? (
<>
<label
className={`lv2-commit${commitError ? ' is-err' : ''}${disabled ? ' is-off' : ''}`}
htmlFor={commitId}
>
<input
ref={boxRef}
id={commitId}
type='checkbox'
checked={checked}
disabled={disabled || loading}
aria-invalid={commitError || undefined}
aria-describedby={commitError ? errId : undefined}
onChange={(event) => {
setChecked(event.target.checked)
if (event.target.checked) setCommitError(false)
}}
/>
<span className='lv2-box' aria-hidden='true'>
<Check strokeWidth={3} />
</span>
<span>{f(t.commitLabel)}</span>
</label>
{commitError ? (
<p id={errId} className='lv2-err' role='alert'>
<AlertCircle className='lv2-inl' aria-hidden='true' strokeWidth={2.5} />
{f(t.commitError)}
</p>
) : null}
{target && !disabled && !loading ? (
<a className={btnClass} href={target} onClick={handleGo}>
{btnInner}
</a>
) : (
<button type='button' className={btnClass} disabled={disabled} aria-busy={loading || undefined} onClick={handleGo}>
{btnInner}
</button>
)}
{phase === 'failed' ? (
<p className='lv2-err' role='alert'>
<AlertCircle className='lv2-inl' aria-hidden='true' strokeWidth={2.5} />
{f(t.errorNote)}
</p>
) : null}
</>
) : (
<p className='lv2-final'>{t.finalNote}</p>
)}
{psText ? (
<p className='lv2-ps'>
<strong>{t.psLead}</strong> {psText}
</p>
) : null}
</div>
</div>
</section>
)
}
export default LaunchVideoSeries2
function StatusDisc({ status }: { status: Status }) {
const Icon = status === 'watched' ? Check : status === 'current' ? Eye : status === 'open' ? LockOpen : Lock
return (
<span className={`lv2-disc d-${status}`} aria-hidden='true'>
<Icon strokeWidth={status === 'watched' ? 3 : 2.5} />
</span>
)
}
function clamp(value: number, min: number, max: number) {
return Math.min(Math.max(value, min), max)
}
function fill(s: string, values: Record<string, string | number>) {
return s.replace(/{([a-zA-Z]+)}/g, (match, key: string) => (key in values ? String(values[key]) : match))
}
const DEFAULT_VIDEOS: SeriesVideo2[] = [
{ title: 'Plan your funnel', detail: 'Map your offer and the pages your funnel needs.' },
{ title: 'Write your page copy', detail: 'Draft your headline, offer, and call to action.' },
{ title: 'Check every step', detail: 'Review the links, forms, and next steps before launch.' },
{ title: 'Get ready to launch', detail: 'Put the plan, the copy, and the checks together so your funnel is ready to go live.' },
]
const DEFAULT_COPY = {
headLead: 'Finish Video {current}, then ',
headMark: 'keep going to Video {next}',
finalHeadLead: 'You made it to ',
finalHeadMark: 'the final video',
lead: 'Each video builds on the one before. Watch them in order and your plan comes together step by step.',
finalLead: 'Watch this last video through to the end to put every step together.',
tabsLabel: 'Videos in this series',
tabLabel: 'Video {number}: {title}, {status}',
videoLabel: 'Video {number}',
chip: 'Video {number} · {status}',
watched: 'Watched',
current: 'Watching now',
next: 'Unlocks next',
open: 'Open now',
locked: 'Locked',
noteWatched: 'Rewatch Video {number}',
noteDone: 'You’ve watched this one.',
noteCurrent: 'You’re watching this one now. Finish it, then continue below.',
noteNext: 'Unlocks when you finish Video {current}.',
noteOpen: 'Open now. Use the button below to start it.',
noteLocked: 'Unlocks after Video {prev}.',
commitLabel: 'I’ve finished Video {current} and I’m ready for Video {next}.',
commitError: 'Tick the box once you’ve finished Video {current}.',
continueLabel: 'Continue to Video {next}',
openLabel: 'Watch Video {next} now',
lockedLabel: 'Video {next} opens after this one',
loadingLabel: 'Opening Video {next}…',
errorNote: 'We couldn’t open Video {next}. Please try again.',
finalNote: 'That’s the whole series. Thanks for watching every video.',
psLead: 'P.S.',
ps: 'Video {next} picks up right where this one ends, so keep your notes from Video {current} close.',
}
const CSS = `
.lv2{
--lv2-ink:var(--ink,#101828);
--lv2-muted:var(--muted,#4a5565);
--lv2-card:var(--card,#ffffff);
--lv2-accent:var(--accent,#2563eb);
--lv2-fill:var(--accent-fill,var(--accent,#2563eb));
--lv2-fill-ink:var(--accent-fill-ink,#ffffff);
--lv2-ok:var(--success,#16794a);
--lv2-accent-well:color-mix(in oklab,var(--lv2-accent) 68%,var(--lv2-ink));
--lv2-ok-well:color-mix(in oklab,var(--lv2-ok) 68%,var(--lv2-ink));
--lv2-shade:var(--shadow,oklch(0.22 0.03 260));
--lv2-well:color-mix(in oklch,var(--lv2-ink) 5%,var(--lv2-card));
--lv2-line:oklch(from var(--lv2-ink) l c h / 0.12);
--lv2-marker:oklch(from var(--marker,#fae37c) l c h / 1);
--lv2-marker-ink:oklch(from var(--lv2-marker) 0.2 calc(c * 0.3) h);
--lv2-focus:oklch(from var(--lv2-accent) l c h / 0.45);
--lv2-btn:var(--button-bg,var(--cta,#d92d20));
--lv2-btn-2:var(--button-bg-2,var(--cta-2,#b42318));
position:relative;isolation:isolate;overflow:clip;width:100%;
padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);
background:var(--surface,#ffffff);color:var(--lv2-ink);
font-family:var(--font-body,system-ui,sans-serif);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;
}
.lv2 *,.lv2 *::before,.lv2 *::after{box-sizing:border-box}
.lv2 :where(h2,h3,p,ul,figure){margin:0}
.lv2 :where(ul){padding:0;list-style:none}
.lv2 svg{flex:none}
.lv2-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.lv2-head{max-width:46rem;margin:0 auto;text-align:center}
.lv2-h{font-family:var(--font-display,system-ui,sans-serif);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}
.lv2-mark{color:var(--lv2-marker-ink);background-image:linear-gradient(var(--lv2-marker),var(--lv2-marker));background-repeat:no-repeat;background-size:100% 90%;background-position:0 58%;padding:0 0.14em;margin:0 -0.02em;border-radius:0.18em 0.42em 0.28em 0.36em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.lv2-lead{max-width:40rem;margin:16px auto 0;color:var(--lv2-muted);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty}
.lv2-console{margin-top:clamp(32px,4vw,48px);padding:clamp(8px,1.2vw,14px);background:var(--lv2-card);border:1px solid var(--card-border,var(--lv2-line));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / 0.22),0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)))}
.lv2-tabs{display:grid;grid-template-columns:repeat(var(--lv2-n,4),minmax(0,1fr));gap:6px;padding:6px;border-radius:max(0px,calc(var(--card-radius,var(--radius,14px)) - 4px));background:var(--lv2-well)}
.lv2-tab{position:relative;display:flex;flex-direction:column;align-items:stretch;gap:6px;min-width:0;min-height:64px;padding:14px 14px 12px;border:0;border-radius:10px;background:transparent;color:var(--lv2-ink);font:inherit;text-align:left;cursor:pointer;transition:background .16s ease,box-shadow .16s ease}
.lv2-tab:hover{background:color-mix(in oklch,var(--lv2-ink) 5%,var(--lv2-well))}
.lv2-tab.is-sel,.lv2-tab.is-sel:hover{background:var(--lv2-card);box-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 0 0 1px oklch(from var(--lv2-accent) l c h / 0.4)}
.lv2-tab:focus-visible{outline:3px solid var(--lv2-focus);outline-offset:2px}
.lv2-tabtop{display:flex;align-items:center;gap:8px;min-width:0}
.lv2-tabnum{font-size:0.875rem;font-weight:800;line-height:1.2;letter-spacing:0.06em;text-transform:uppercase;color:var(--lv2-muted);white-space:nowrap}
.lv2-tab.is-sel .lv2-tabnum{color:var(--lv2-ink)}
.lv2-tabtitle{font-family:var(--font-display,system-ui,sans-serif);font-size:1.0625rem;font-weight:800;line-height:1.25;text-wrap:balance}
.lv2-tabstatus{margin-bottom:6px;font-size:0.9375rem;font-weight:600;line-height:1.3}
.lv2-tab.s-watched .lv2-tabstatus{color:var(--lv2-ok-well)}
.lv2-tab.s-current .lv2-tabstatus,.lv2-tab.s-open .lv2-tabstatus{color:var(--lv2-accent-well)}
.lv2-tab.is-sel.s-watched .lv2-tabstatus{color:var(--lv2-ok)}
.lv2-tab.is-sel.s-current .lv2-tabstatus,.lv2-tab.is-sel.s-open .lv2-tabstatus{color:var(--lv2-accent)}
.lv2-tab.s-next .lv2-tabstatus{color:var(--lv2-ink)}
.lv2-tab.s-locked .lv2-tabstatus,.lv2-tab.s-locked .lv2-tabtitle{color:var(--lv2-muted)}
.lv2-bar{display:block;height:4px;margin-top:auto;border-radius:999px;background:oklch(from var(--lv2-ink) l c h / 0.1);overflow:hidden}
.lv2-bar i{display:block;width:0;height:100%;border-radius:inherit;background:var(--lv2-fill)}
.lv2-tab.s-watched .lv2-bar i{width:100%;background:var(--lv2-ok)}
.lv2-tab.s-current .lv2-bar i,.lv2-tab.s-open .lv2-bar i{width:100%}
.lv2-disc{display:inline-grid;place-items:center;width:24px;height:24px;border-radius:999px;flex:none}
.lv2-disc svg{width:16px;height:16px}
.lv2-disc.d-watched{background:var(--lv2-ok);color:var(--success-ink,#ffffff)}
.lv2-disc.d-current,.lv2-disc.d-open{background:var(--lv2-fill);color:var(--lv2-fill-ink)}
.lv2-disc.d-next,.lv2-disc.d-locked{background:var(--secondary,#e8ecf3);color:var(--secondary-ink,#101828)}
.lv2-panel{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:clamp(24px,4vw,48px);align-items:start;padding:clamp(20px,3vw,32px) clamp(8px,2vw,24px) clamp(8px,2vw,20px)}
.lv2-shot{position:relative;overflow:hidden;aspect-ratio:16/10;border-radius:12px;background:var(--lv2-well)}
.lv2-shot img{display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.lv2-shotnum{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(4rem,9vw,7rem);font-weight:800;line-height:1;color:var(--lv2-muted)}
.lv2-panel.s-next .lv2-shot img{filter:grayscale(0.4) saturate(0.75) blur(2px);transform:scale(1.04)}
.lv2-panel.s-locked .lv2-shot img{filter:grayscale(0.7) blur(4px);transform:scale(1.06)}
.lv2-veil{position:absolute;inset:0;display:grid;place-items:center;background:oklch(from var(--band,#1b2a4a) l c h / 0.32)}
.lv2-panel.s-locked .lv2-veil{background:oklch(from var(--band,#1b2a4a) l c h / 0.5)}
.lv2-lockdisc{display:grid;place-items:center;width:64px;height:64px;border-radius:999px;background:oklch(from var(--band,#1b2a4a) l c h / 0.92);color:var(--band-ink,#ffffff);box-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))}
.lv2-lockdisc svg{width:24px;height:24px}
.lv2-copy{display:flex;flex-direction:column;align-items:flex-start;min-width:0;padding-top:4px}
.lv2-chip{display:inline-flex;align-items:center;gap:8px;min-height:32px;padding:4px 12px 4px 4px;border-radius:999px;background:color-mix(in oklch,var(--lv2-ink) 6%,var(--lv2-card));color:var(--lv2-ink);font-size:0.875rem;font-weight:800;line-height:1.2;white-space:nowrap}
.lv2-panel.s-next .lv2-chip,.lv2-panel.s-open .lv2-chip{background:color-mix(in oklch,var(--lv2-accent) 12%,var(--lv2-card))}
.lv2-title{margin-top:16px;font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);letter-spacing:-0.01em;line-height:1.15;text-transform:var(--display-case,none);text-wrap:balance}
.lv2-detail{margin-top:8px;color:var(--lv2-muted);text-wrap:pretty}
.lv2-points{display:grid;gap:12px;margin-top:16px}
.lv2-points li{display:flex;align-items:flex-start;gap:10px;font-weight:600;line-height:1.4;text-wrap:pretty}
.lv2-points svg{width:18px;height:18px;margin-top:3px;color:var(--lv2-accent)}
.lv2-note{margin-top:20px;color:var(--lv2-ink);font-size:0.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
.lv2-panel.s-locked .lv2-note{color:var(--lv2-muted)}
.lv2-inl{display:inline-block;width:16px;height:16px;vertical-align:-0.15em;margin-inline-end:0.4em}
.lv2-link{display:inline;padding:0;border:0;background:none;font:inherit;font-weight:700;color:var(--link,var(--lv2-accent));text-decoration:underline;text-decoration-color:oklch(from var(--link,var(--lv2-accent)) l c h / 0.45);text-underline-offset:0.18em;cursor:pointer}
.lv2-link:hover{color:oklch(from var(--link,var(--lv2-accent)) calc(l - 0.08) c h);text-decoration-color:currentColor}
.lv2-link:focus-visible{outline:3px solid var(--lv2-focus);outline-offset:2px;border-radius:4px}
.lv2-act{display:flex;flex-direction:column;align-items:center;gap:16px;max-width:34rem;margin:clamp(32px,4vw,40px) auto 0;text-align:center}
.lv2-commit{position:relative;display:inline-flex;align-items:flex-start;gap:12px;text-align:left;font-weight:600;line-height:1.4;color:var(--lv2-ink);cursor:pointer;text-wrap:pretty}
.lv2-commit input{position:absolute;top:0;left:0;width:26px;height:26px;margin:0;opacity:0;cursor:pointer}
.lv2-box{display:grid;place-items:center;flex:none;width:26px;height:26px;margin-top:-1px;border:2px solid var(--field-border,oklch(from var(--lv2-ink) l c h / 0.35));border-radius:7px;background:var(--field,#ffffff);color:transparent;transition:background .16s ease,border-color .16s ease}
.lv2-box svg{width:16px;height:16px}
.lv2-commit:hover .lv2-box{border-color:var(--lv2-accent)}
.lv2-commit input:checked + .lv2-box{background:var(--lv2-fill);border-color:var(--lv2-fill);color:var(--lv2-fill-ink)}
.lv2-commit input:focus-visible + .lv2-box{outline:3px solid oklch(from var(--field-focus,var(--lv2-accent)) l c h / 0.45);outline-offset:2px}
.lv2-commit.is-err .lv2-box{border-color:var(--danger,#c0262d)}
.lv2-commit.is-off{cursor:not-allowed;color:var(--lv2-muted)}
.lv2-commit.is-off input{cursor:not-allowed}
.lv2-commit.is-off .lv2-box,.lv2-commit.is-off input:checked + .lv2-box{background:color-mix(in oklch,var(--ink,#101828) 10%,var(--card,#ffffff));border-color:transparent;color:var(--muted,#4a5565)}
.lv2-err{color:var(--danger,#c0262d);font-size:0.9375rem;font-weight:600;line-height:1.4;text-wrap:pretty}
.lv2-btn{display:inline-flex;align-items:center;justify-content:center;gap:10px;width:100%;max-width:30rem;min-height:72px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--lv2-btn) calc(l + 0.04) c h),oklch(from var(--lv2-btn-2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink,#ffffff));font-family:var(--button-font,var(--font-display,system-ui,sans-serif));font-size:clamp(1.125rem,1.55vw,1.375rem);font-weight:var(--button-weight,800);text-transform:var(--button-case,none);line-height:1.15;text-align:center;text-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--lv2-btn) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--lv2-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--lv2-shade) l c h / 0.3),0 8px 16px -6px oklch(from var(--lv2-shade) l c h / 0.45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.lv2-btn:hover:not(:disabled),.lv2-btn.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--lv2-btn) calc(l - 0.01) c h),oklch(from var(--lv2-btn-2) calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from var(--lv2-btn) calc(l + 0.1) c h / 0.7),inset 0 -3px 0 oklch(from var(--lv2-btn) calc(l - 0.2) c h),0 1px 2px oklch(from var(--lv2-shade) l c h / 0.32),0 10px 20px -6px oklch(from var(--lv2-shade) l c h / 0.55)}
.lv2-btn:active:not(:disabled),.lv2-btn.is-active:not(:disabled){transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--lv2-btn) calc(l - 0.22) c h / 0.55),inset 0 -2px 0 oklch(from var(--lv2-btn) calc(l - 0.16) c h),0 1px 2px oklch(from var(--lv2-shade) l c h / 0.3)}
.lv2-btn:focus-visible{outline:3px solid var(--lv2-focus);outline-offset:3px}
.lv2-btn:disabled{background:var(--button-2-bg,var(--secondary,#e8ecf3));color:var(--button-2-ink,var(--secondary-ink,#101828));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(0.22 0.03 260 / 0.2)));cursor:not-allowed}
.lv2-btn[aria-busy=true]{cursor:progress}
.lv2-spin{width:20px;height:20px}
.lv2-final{font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);line-height:1.15;text-wrap:balance}
.lv2-ps{color:var(--lv2-muted);line-height:1.5;text-wrap:pretty}
.lv2-ps strong{color:var(--lv2-ink);font-weight:800}
@media (prefers-reduced-motion:no-preference){
.lv2-head,.lv2-console,.lv2-act{animation:lv2-in .45s cubic-bezier(.2,.7,.2,1) both}
.lv2-console{animation-delay:.07s}
.lv2-act{animation-delay:.14s}
.lv2-panel{animation:lv2-in .45s cubic-bezier(.2,.7,.2,1) both}
.lv2-spin{animation:lv2-spin .8s linear infinite}
}
@media (prefers-reduced-motion:reduce){
.lv2-tab,.lv2-btn,.lv2-box{transition:none}
}
@keyframes lv2-in{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes lv2-spin{to{transform:rotate(360deg)}}
@media (max-width:860px){
.lv2-panel{grid-template-columns:minmax(0,1fr);gap:20px}
}
@media (max-width:640px){
.lv2-tabs{gap:4px;padding:4px}
.lv2-tab{align-items:center;gap:8px;min-height:72px;padding:12px 4px 10px;text-align:center}
.lv2-tabtop{flex-direction:column;gap:6px}
.lv2-tabnum{letter-spacing:0;text-transform:none}
.lv2-tabtitle,.lv2-tabstatus{display:none}
.lv2-bar{width:100%;margin-top:4px}
.lv2-panel{padding:20px 8px 8px}
.lv2-shot{aspect-ratio:16/9}
.lv2-btn{min-height:64px;padding:0 20px}
}
`
pieces/content/launch-video-series-2/specimen.tsx 53 lines
import __studioImage03d3ec6b from "../assets/53255767aa1df31a.webp";
import __studioImage0754919e from "../assets/3b3b574b760372ad.webp";
import __studioImage84a9f6bf from "../assets/3065c7d75321a524.webp";
import { LaunchVideoSeries2, type LaunchVideoSeries2State } from '../launch-video-series-2'
import defaults from '../../studio-defaults.json'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function LaunchVideoSeries2Specimen({ state = 'default' }: { state?: LaunchVideoSeries2State }) {
const { items, registration } = defaults.sample
const videos = [
{
title: 'Plan your funnel',
detail: items[0].detail,
points: ['The one sheet that maps every page your funnel needs', 'Why your offer comes before your first page'],
image: slot('item-1', __studioImage03d3ec6b),
imageAlt: 'Hands arranging paper cards into a simple funnel plan on a desk',
},
{
title: 'Write your page copy',
detail: items[1].detail,
points: ['How to write a headline that says what they get', 'Where your call to action goes, and why it repeats'],
image: slot('item-2', __studioImage0754919e),
imageAlt: 'A person drafting page copy in a notebook beside a laptop',
},
{
title: 'Check every step',
detail: items[2].detail,
points: ['The click-every-button pass that catches broken links', 'What to test on your phone before you share the link'],
image: slot('item-3', items[2].image),
imageAlt: items[2].imageAlt,
},
{
title: 'Get ready to launch',
detail: 'Put the plan, the copy, and the checks together so your funnel is ready to go live.',
points: ['The simple order to go live in', 'How to bring your plan, copy, and checks together'],
image: slot('item-4', __studioImage84a9f6bf),
imageAlt: 'A relaxed person at a desk, ready to launch',
},
]
return (
<LaunchVideoSeries2
videos={videos}
current={1}
state={state}
headline={{ lead: 'Your first funnel, built ', mark: 'one video at a time' }}
lead={`Each video in the ${registration.name} builds on the last. Finish Video 2, then keep going.`}
ps='In Video 3 you’ll test every link, form, and next step, so nothing breaks the day you go live.'
/>
)
}
| Name | Type | Details |
|---|---|---|
videos OptionalLaunchVideoSeries2 |
SeriesVideo2[] |
Default DEFAULT_VIDEOS
|
current OptionalLaunchVideoSeries2 |
number |
Default 1
|
initialView OptionalLaunchVideoSeries2 |
number |
|
headline OptionalLaunchVideoSeries2 |
SeriesHeadline2 |
|
lead OptionalLaunchVideoSeries2 |
React.ReactNode |
|
unlocked OptionalLaunchVideoSeries2 |
boolean |
Default false
|
requireFinish OptionalLaunchVideoSeries2 |
boolean |
Default false
|
committed OptionalLaunchVideoSeries2 |
boolean |
Default true
|
ps OptionalLaunchVideoSeries2 |
React.ReactNode |
|
href OptionalLaunchVideoSeries2 |
string |
|
onAction OptionalLaunchVideoSeries2 |
(nextIndex: number) => void | boolean | Promise<void | boolean> |
|
onSelect OptionalLaunchVideoSeries2 |
(index: number) => void |
|
copy OptionalLaunchVideoSeries2 |
Partial<LaunchVideoSeries2Copy> |
|
state OptionalLaunchVideoSeries2 |
LaunchVideoSeries2State |
Default 'default'
|
className OptionalLaunchVideoSeries2 |
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-ink--button-2-shadow- Secondary button.
--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--field-border--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.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-3- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-4- One image per offer item (item-1, item-2…), shown in stacks and lists.
-
3065c7d75321a524.webp
image/webp · 90.4 KB
-
3b3b574b760372ad.webp
image/webp · 71.1 KB
-
53255767aa1df31a.webp
image/webp · 79.1 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB