Launch Video Series 4
Launch video takeaway wall: the viewer writes one line about the video they just watched, so they own the idea before the next one. A sticky series rail beside it shows watched, watching now and locked videos and holds the button to the next video.
Use it in a prompt
Use content/launch-video-series-4 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-4.tsx. - Import it and pass your copy and images (Props tab):
import { LaunchVideoSeries4 } from "@/components/funneldna/content/launch-video-series-4"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/launch-video-series-4/component.tsx 723 lines
// layout: sticky-offer-side
// Launch video takeaway wall: the viewer writes one line about the video they just watched, so they own the idea before the next one. A sticky series rail beside it shows watched, watching now and locked videos and holds the button to the next video.
'use client'
import * as React from 'react'
import { AlertCircle, Check, Loader2, Lock, LockOpen, MonitorPlay, Users } from 'lucide-react'
import { Backdrop, FX_HOST } from '../fx/fx'
import stage from '../fx/backdrops/stage'
export type TakeawayVideo = {
title: string
/** Running time exactly as it should read, e.g. 14 min. Hidden when omitted. */
length?: string
/** Page for this video. Watched and released videos link here; the next video is the button destination. */
href?: string
/** Line on a locked video about when it opens. Defaults to copy.lockedNote. */
lockedNote?: string
}
export type TakeawayComment = {
name: string
text: string
/** Short line after the name, such as a city. */
meta?: string
/** Avatar src. Initials show when omitted. */
image?: string
imageAlt?: string
}
export type TakeawayHeadline = {
lead?: React.ReactNode
/** Phrase that gets the marker stroke. */
mark?: React.ReactNode
after?: React.ReactNode
}
export type LaunchVideoSeries4State = 'default' | 'hover' | 'active' | 'disabled' | 'error'
export type LaunchVideoSeries4Copy = typeof DEFAULT_COPY
export type LaunchVideoSeries4Props = {
/** Videos in watch order. An empty list falls back to the default series. */
videos?: TakeawayVideo[]
/** Zero-based index of the video on this page. Earlier videos show as watched. */
current?: number
/** How many videos are out (from the first). Later ones show as locked. Defaults to one past the current video. */
released?: number
/** Series name at the top of the rail. Defaults to copy.railTitle. */
seriesName?: string
headline?: TakeawayHeadline
lead?: React.ReactNode
/** The page's real video embed. When omitted the poster still shows in its place. */
media?: React.ReactNode
/** Poster still for the current video (presenter or scene slot). */
posterImage?: string
posterAlt?: string
/** Takeaways to show under the prompt. Empty shows the prompt alone. */
comments?: TakeawayComment[]
/** Character limit for the takeaway field. */
maxLength?: number
/** Closes the prompt: the field and the post button are disabled. */
disabled?: boolean
/** Receives the trimmed takeaway. A promise shows the loading label; false or a rejection shows the error note. */
onSubmit?: (value: string) => void | boolean | Promise<void | boolean>
/** Where the next-video button goes when the next video has no href. */
href?: string
/** Runs when the viewer presses the next-video button. */
onAction?: (nextIndex: number) => void
/** Runs when the viewer picks a watched or released video in the rail. */
onSelect?: (index: number) => void
/** Templates use {number}, {prev}, {title}, {status}, {total}, {watched}, {count}, {max} and {left}. */
copy?: Partial<LaunchVideoSeries4Copy>
/** Preview state for the post button (hover also previews a rail row). */
state?: LaunchVideoSeries4State
className?: string
}
type Status = 'watched' | 'current' | 'open' | 'locked'
type ErrorKind = null | 'empty' | 'fail'
export function LaunchVideoSeries4({
videos = DEFAULT_VIDEOS,
current = 1,
released,
seriesName,
headline = DEFAULT_HEADLINE,
lead = DEFAULT_LEAD,
media,
posterImage,
posterAlt = '',
comments = [],
maxLength = 280,
disabled = false,
onSubmit,
href,
onAction,
onSelect,
copy,
state = 'default',
className,
}: LaunchVideoSeries4Props) {
const t = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const titleId = uid + '-title'
const fieldId = uid + '-field'
const hintId = uid + '-hint'
const errId = uid + '-err'
const countId = uid + '-count'
const list = videos.length ? videos : DEFAULT_VIDEOS
const n = list.length
const cur = clamp(Math.round(current) || 0, 0, n - 1)
const rel = clamp(released === undefined ? cur + 2 : Math.round(released) || 0, cur + 1, n)
const nextIndex = cur + 1 < n ? cur + 1 : -1
const nextOpen = nextIndex >= 0 && nextIndex < rel
const max = Math.max(1, Math.round(maxLength) || 280)
const isDisabled = disabled || state === 'disabled'
const [text, setText] = React.useState('')
const [error, setError] = React.useState<ErrorKind>(state === 'error' ? 'empty' : null)
const [loading, setLoading] = React.useState(false)
const fieldRef = React.useRef<HTMLTextAreaElement>(null)
const mounted = React.useRef(true)
React.useEffect(() => {
mounted.current = true
return () => {
mounted.current = false
}
}, [])
React.useEffect(() => {
setError(state === 'error' ? 'empty' : null)
setLoading(false)
if (state === 'error') setText('')
}, [state])
const statusOf = (i: number): Status =>
i < cur ? 'watched' : i === cur ? 'current' : i < rel ? 'open' : 'locked'
const words: Record<Status, string> = { watched: t.watched, current: t.current, open: t.open, locked: t.locked }
const curVideo = list[cur]
const submit = (event: React.FormEvent<HTMLFormElement>) => {
event.preventDefault()
if (isDisabled || loading) return
const value = text.trim()
if (!value) {
setError('empty')
fieldRef.current?.focus()
return
}
setError(null)
if (!onSubmit) return
let result: void | boolean | Promise<void | boolean>
try {
result = onSubmit(value)
} catch {
setError('fail')
return
}
if (result === false) {
setError('fail')
return
}
if (result instanceof Promise) {
setLoading(true)
result.then(
(ok) => {
if (!mounted.current) return
setLoading(false)
if (ok === false) setError('fail')
},
() => {
if (!mounted.current) return
setLoading(false)
setError('fail')
},
)
}
}
const onFieldKey = (event: React.KeyboardEvent<HTMLTextAreaElement>) => {
if (event.key === 'Enter' && (event.metaKey || event.ctrlKey)) {
event.preventDefault()
event.currentTarget.form?.requestSubmit()
}
}
const len = text.length
const left = Math.max(0, max - len)
const tone = left <= 0 ? ' is-max' : left <= Math.max(10, Math.round(max * 0.1)) ? ' is-near' : ''
const offset = RING * (1 - Math.min(1, len / max))
const describedBy = [hintId, error ? errId : '', countId].filter(Boolean).join(' ')
const hoverRow =
state === 'hover'
? list.findIndex((v, i) => {
const s = statusOf(i)
return (s === 'watched' || s === 'open') && Boolean(v.href || onSelect)
})
: -1
const submitClass =
'lvs4-btn lvs4-btn-post' + (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '')
const pct = Math.min(100, ((cur + 0.5) / n) * 100)
const nextV = nextIndex >= 0 ? list[nextIndex] : null
const nextHref = nextV ? nextV.href ?? href : undefined
const nextVars = { number: nextIndex + 1, prev: nextIndex, title: nextV ? nextV.title : '' }
return (
<section
className={'cf-launch-video-series-4 lvs4' + (className ? ' ' + className : '')}
style={FX_HOST}
aria-labelledby={titleId}
data-state={state}
>
<Backdrop src={stage} treatment='scrim-dark' />
<style>{CSS}</style>
<div className='lvs4-wrap'>
<header className='lvs4-head'>
<h2 id={titleId} className='lvs4-h'>
{headline.lead}
{headline.mark ? <span className='lvs4-mark'>{headline.mark}</span> : null}
{headline.after}
</h2>
{lead ? <p className='lvs4-lead'>{lead}</p> : null}
</header>
<figure className='lvs4-media'>
{media ? (
<div className='lvs4-frame'>{media}</div>
) : posterImage ? (
<div className='lvs4-frame'>
<img src={posterImage} alt={posterAlt} width={1600} height={900} />
</div>
) : null}
<figcaption className='lvs4-cap'>
<span className='lvs4-now'>
{fill(t.nowWatching, { number: cur + 1 })}
{curVideo.length ? ' · ' + curVideo.length : ''}
</span>
<span className='lvs4-ctitle'>{curVideo.title}</span>
</figcaption>
</figure>
<aside className='lvs4-rail' aria-label={t.seriesAria}>
<div className='lvs4-rhead'>
<h3 className='lvs4-rtitle'>{seriesName ?? fill(t.railTitle, { total: n })}</h3>
<p className='lvs4-prog'>{fill(t.progress, { watched: cur, total: n })}</p>
<span className='lvs4-track' aria-hidden='true'>
<i style={{ width: pct + '%' }} />
</span>
</div>
<ol className='lvs4-list'>
{list.map((v, i) => {
const s = statusOf(i)
const vars = { number: i + 1, prev: i, title: v.title }
const note = s === 'locked' ? v.lockedNote ?? fill(t.lockedNote, vars) : ''
const statusLine = note ? words[s] + ' · ' + note : words[s]
const label = fill(t.itemAria, { ...vars, status: statusLine })
const cls = 'lvs4-item s-' + s + (i === hoverRow ? ' is-hover' : '')
const inner = (
<>
<span className={'lvs4-disc d-' + s} aria-hidden='true'>
<StatusIcon status={s} />
</span>
<span className='lvs4-text'>
<span className='lvs4-meta'>
<span className='lvs4-vn'>{fill(t.videoLabel, vars)}</span>
{v.length ? <span className='lvs4-len'>{' · ' + v.length}</span> : null}
</span>
<span className='lvs4-ititle'>{v.title}</span>
<span className='lvs4-status'>{statusLine}</span>
</span>
</>
)
let el: React.ReactNode
if (s === 'current') {
el = (
<div className={cls} aria-current='step'>
{inner}
</div>
)
} else if (s === 'locked') {
el = (
<div className={cls} aria-disabled='true'>
{inner}
</div>
)
} else if (v.href) {
el = (
<a className={cls + ' is-link'} href={v.href} aria-label={label} onClick={() => onSelect?.(i)}>
{inner}
</a>
)
} else if (onSelect) {
el = (
<button type='button' className={cls + ' is-link'} aria-label={label} onClick={() => onSelect(i)}>
{inner}
</button>
)
} else {
el = <div className={cls}>{inner}</div>
}
return <li key={i}>{el}</li>
})}
</ol>
{nextV ? (
<div className='lvs4-next'>
{nextOpen ? (
nextHref ? (
<a className='lvs4-btn lvs4-btn-next' href={nextHref} onClick={() => onAction?.(nextIndex)}>
{fill(t.next, nextVars)}
</a>
) : (
<button type='button' className='lvs4-btn lvs4-btn-next' onClick={() => onAction?.(nextIndex)}>
{fill(t.next, nextVars)}
</button>
)
) : (
<button type='button' className='lvs4-btn lvs4-btn-next' disabled>
{fill(t.nextLocked, nextVars)}
</button>
)}
<p className='lvs4-note'>
{nextOpen ? fill(t.nextNote, nextVars) : nextV.lockedNote ?? fill(t.lockedNote, nextVars)}
</p>
</div>
) : (
<p className='lvs4-note lvs4-final'>{t.finalNote}</p>
)}
</aside>
<div className='lvs4-prompt lvs4-card'>
<form className='lvs4-form' noValidate onSubmit={submit}>
<h3 className='lvs4-ph'>
<label htmlFor={fieldId}>{t.promptTitle}</label>
</h3>
<p id={hintId} className='lvs4-hint'>
{fill(t.promptHint, { number: cur + 1 })}
</p>
<textarea
ref={fieldRef}
id={fieldId}
className='lvs4-field'
name='takeaway'
rows={3}
maxLength={max}
value={text}
placeholder={t.placeholder}
disabled={isDisabled}
aria-required='true'
aria-invalid={error ? true : undefined}
aria-describedby={describedBy}
onChange={(event) => {
setText(event.target.value)
if (error === 'empty' && event.target.value.trim()) setError(null)
}}
onKeyDown={onFieldKey}
/>
{error ? (
<p id={errId} className='lvs4-err' role='alert'>
<AlertCircle aria-hidden='true' strokeWidth={2.5} />
{error === 'empty' ? t.emptyError : t.failError}
</p>
) : null}
<div className='lvs4-foot'>
<span className={'lvs4-count' + tone} aria-hidden='true'>
<svg className={'lvs4-ring' + (len ? '' : ' is-empty')} width='20' height='20' viewBox='0 0 20 20'>
<circle className='lvs4-ring-track' cx='10' cy='10' r='8' />
<circle className='lvs4-ring-fill' cx='10' cy='10' r='8' strokeDasharray={RING} strokeDashoffset={offset} />
</svg>
{fill(t.count, { count: len, max })}
</span>
<span id={countId} className='lvs4-sr'>
{fill(t.countLabel, { left, max })}
</span>
<button type='submit' className={submitClass} disabled={isDisabled} aria-busy={loading || undefined}>
{loading ? <Loader2 className='lvs4-spin' aria-hidden='true' size={20} strokeWidth={2.5} /> : null}
{loading ? t.submitting : t.submit}
</button>
</div>
<p className='lvs4-small'>
<Users aria-hidden='true' strokeWidth={2.5} />
{t.privacy}
</p>
</form>
{comments.length ? (
<div className='lvs4-wall'>
<h3 className='lvs4-wtitle'>{t.commentsTitle}</h3>
<ul className='lvs4-wlist'>
{comments.map((c, i) => (
<li key={i} className='lvs4-comment'>
<span className='lvs4-avatar' aria-hidden={c.image ? undefined : 'true'}>
{c.image ? <img src={c.image} alt={c.imageAlt ?? ''} width={80} height={80} /> : initials(c.name)}
</span>
<div>
<p className='lvs4-cname'>
<b>{c.name}</b>
{c.meta ? ' · ' + c.meta : ''}
</p>
<p className='lvs4-ctext'>{c.text}</p>
</div>
</li>
))}
</ul>
</div>
) : null}
</div>
</div>
</section>
)
}
export default LaunchVideoSeries4
function StatusIcon({ status }: { status: Status }) {
if (status === 'watched') return <Check size={20} strokeWidth={3} />
if (status === 'current') return <MonitorPlay size={20} strokeWidth={2.5} />
if (status === 'open') return <LockOpen size={20} strokeWidth={2.5} />
return <Lock size={20} strokeWidth={2.5} />
}
function clamp(value: number, min: number, max: number) {
return Math.min(Math.max(value, min), max)
}
function fill(template: string, vars: Record<string, string | number>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => (key in vars ? String(vars[key]) : match))
}
function initials(name: string) {
const parts = name.replace(/[^\p{L}\s]/gu, ' ').trim().split(/\s+/).filter(Boolean)
return ((parts[0]?.[0] ?? '') + (parts.length > 1 ? parts[parts.length - 1][0] : '')).toUpperCase()
}
const RING = 2 * Math.PI * 8
const DEFAULT_VIDEOS: TakeawayVideo[] = [
{ title: 'Find the problem behind the problem' },
{ title: 'Make your offer in one sentence' },
{ title: 'Answer the objection before it lands' },
{ title: 'Ask for the decision' },
]
const DEFAULT_HEADLINE: TakeawayHeadline = {
lead: 'Before the next video, ',
mark: 'write down the one idea',
after: ' you’ll use first.',
}
const DEFAULT_LEAD = 'One line is enough. Writing it makes the idea yours, and the next video builds on it.'
const DEFAULT_COPY = {
nowWatching: 'Now watching · Video {number}',
promptTitle: 'What was your biggest takeaway?',
promptHint: 'Name the one move from Video {number} you’ll try first.',
placeholder: 'e.g. Ask the second question before I mention price.',
count: '{count} / {max}',
countLabel: '{max} characters max, {left} left.',
submit: 'Post My Takeaway',
submitting: 'Posting…',
privacy: 'Takes 30 seconds. Your first name shows with your takeaway.',
emptyError: 'Write one line first. Your takeaway is what makes the next video stick.',
failError: 'We couldn’t post your takeaway. Please try again.',
commentsTitle: 'Takeaways from other viewers',
railTitle: 'Your {total}-video series',
progress: '{watched} of {total} watched',
videoLabel: 'Video {number}',
watched: 'Watched',
current: 'Watching now',
open: 'Ready to watch',
locked: 'Locked',
lockedNote: 'Opens after Video {prev}',
next: 'Watch Video {number} Now',
nextLocked: 'Video {number} Is Locked',
nextNote: 'Post your takeaway first. Video {number} builds on it.',
finalNote: 'This is the last video in the series.',
itemAria: 'Video {number}: {title}. {status}',
seriesAria: 'Videos in this series',
}
const CSS = `
.lvs4{
--lvs4-gutter:clamp(16px,5vw,48px);
--lvs4-band-soft:color-mix(in oklch,var(--band-ink,oklch(1 0 0)) 82%,var(--band,oklch(.27 .067 256)));
--lvs4-sh:var(--shadow,oklch(.22 .03 256));
position:relative;isolation:isolate;overflow:clip;width:100%;
padding:clamp(56px,8vw,112px) var(--lvs4-gutter) clamp(64px,8.5vw,120px);
background:var(--band,oklch(.27 .067 256));color:var(--band-ink,oklch(1 0 0));
font-family:var(--font-body,system-ui,sans-serif);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;
}
.lvs4 *,.lvs4 *::before,.lvs4 *::after{box-sizing:border-box}
.lvs4 :where(h2,h3,p,ul,ol,figure){margin:0}
.lvs4 :where(ul,ol){list-style:none;padding:0}
.lvs4 img{display:block;max-width:100%}
.lvs4 svg{flex:none}
.lvs4-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.lvs4-wrap{
position:relative;z-index:1;max-width:1120px;margin:0 auto;
display:grid;grid-template-columns:minmax(0,1fr) minmax(320px,380px);
grid-template-areas:'head rail' 'media rail' 'prompt rail';grid-template-rows:auto auto 1fr;
column-gap:clamp(32px,5vw,72px);row-gap:32px;align-items:start;
}
.lvs4-head{grid-area:head}
.lvs4-h{
font-family:var(--font-display,inherit);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.12;
font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.025em);text-transform:var(--display-case,none);
color:var(--band-ink,oklch(1 0 0));text-wrap:balance;
}
.lvs4-mark{
/* One solid marker stroke; the text on it flips dark or light from the marker's own lightness, so it reads on any theme. */
--lvs4-marker:oklch(from var(--marker,#fae37c) l c h / 1);
color:var(--lvs4-marker-ink,oklch(from var(--marker,#fae37c) clamp(.18,(.64 - l) * 1000,.98) 0.02 260 / 1));
background-color:var(--lvs4-marker);
padding:0 .12em;margin:0 -.03em;border-radius:.14em .3em .2em .34em / .3em .2em .34em .24em;
-webkit-box-decoration-break:clone;box-decoration-break:clone;text-shadow:none;
}
.lvs4-lead{
margin-top:16px;max-width:60ch;color:var(--lvs4-band-soft);
font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:500;line-height:1.4;text-wrap:pretty;
}
.lvs4-media{grid-area:media}
.lvs4-frame{
position:relative;overflow:hidden;aspect-ratio:16/9;border-radius:12px;
background:oklch(from var(--band,oklch(.27 .067 256)) calc(l - .08) c h);
}
.lvs4-frame img{width:100%;height:100%;object-fit:cover;object-position:center 30%}
.lvs4-frame > :is(iframe,video){display:block;width:100%;height:100%;border:0}
.lvs4-cap{display:block;margin-top:16px}
.lvs4-now{
display:block;color:var(--lvs4-band-soft);font-size:.875rem;font-weight:800;line-height:1.2;
letter-spacing:.08em;text-transform:uppercase;
}
.lvs4-ctitle{
display:block;margin-top:8px;color:var(--band-ink,oklch(1 0 0));
font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);
line-height:1.15;letter-spacing:-.01em;text-wrap:balance;
}
.lvs4-card{
background:var(--card,oklch(1 0 0));color:var(--ink,oklch(.21 .034 263));
border:1px solid var(--card-border,oklch(from var(--ink,oklch(.21 .034 263)) l c h / .12));
border-radius:var(--card-radius,var(--radius,14px));
box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--lvs4-sh) l c h / .22),0 4px 10px -2px oklch(from var(--lvs4-sh) l c h / .2)));
padding:clamp(20px,3vw,32px);
}
.lvs4-rail{
grid-area:rail;position:sticky;top:var(--lvs4-sticky-top,24px);align-self:start;
max-height:calc(100vh - 48px);overflow-y:auto;
background:var(--card,oklch(1 0 0));color:var(--ink,oklch(.21 .034 263));
border:1px solid var(--card-border,oklch(from var(--ink,oklch(.21 .034 263)) l c h / .12));
border-radius:var(--card-radius,var(--radius,14px));
box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--lvs4-sh) l c h / .22),0 12px 24px -8px oklch(from var(--lvs4-sh) l c h / .32));
padding:clamp(20px,3vw,28px);
}
.lvs4-rtitle{
font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);
line-height:1.15;letter-spacing:-.01em;text-wrap:balance;
}
.lvs4-prog{margin-top:12px;color:var(--muted);font-size:.9375rem;font-weight:700;line-height:1.4;font-variant-numeric:tabular-nums}
.lvs4-track{
display:block;height:8px;margin-top:8px;border-radius:999px;overflow:hidden;
background:color-mix(in oklch,var(--ink) 10%,var(--card));
}
.lvs4-track i{display:block;height:100%;border-radius:inherit;background:var(--accent-fill,var(--accent))}
.lvs4-list{display:grid;gap:4px;margin-top:20px}
.lvs4-item{
position:relative;display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start;
--lvs4-row-hover:color-mix(in oklch,var(--button-2-bg,var(--secondary,oklch(.93 .015 263))) 55%,var(--card,oklch(1 0 0)));
--lvs4-row-press:color-mix(in oklch,var(--button-2-bg,var(--secondary,oklch(.93 .015 263))) 85%,var(--card,oklch(1 0 0)));
width:100%;padding:12px;border:0;border-radius:10px;background:transparent;color:inherit;
font:inherit;text-align:left;text-decoration:none;
transition:background .16s ease,transform .16s ease;
}
.lvs4-item.is-link{cursor:pointer}
.lvs4-item.is-link:hover,.lvs4-item.is-hover{background:var(--lvs4-row-hover)}
.lvs4-item.is-link:active{background:var(--lvs4-row-press);transform:translateY(1px)}
.lvs4-item.s-locked{cursor:default}
.lvs4-item.s-current{
background:color-mix(in oklch,var(--accent) 10%,var(--card));
box-shadow:inset 0 0 0 1px oklch(from var(--accent) l c h / .28);
}
.lvs4-item:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
.lvs4-disc{display:grid;place-items:center;width:40px;height:40px;border-radius:999px}
.lvs4-disc svg{width:20px;height:20px}
.lvs4-disc.d-watched{background:var(--success);color:var(--lvs4-badge-glyph,#fff)}
.lvs4-disc.d-current{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.lvs4-disc.d-open{background:var(--secondary);color:var(--accent)}
.lvs4-disc.d-locked{background:color-mix(in oklch,var(--ink) 7%,var(--card));color:var(--muted)}
.lvs4-text{display:grid;gap:2px;min-width:0;padding-top:1px}
.lvs4-meta{color:var(--muted);font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.04em;text-transform:uppercase;font-variant-numeric:tabular-nums}
.lvs4-ititle{color:var(--ink);font-weight:700;line-height:1.3;text-wrap:pretty}
.lvs4-status{font-size:.9375rem;font-weight:700;line-height:1.4}
.lvs4-item.s-watched .lvs4-status{color:var(--success)}
.lvs4-item.s-current .lvs4-status{color:var(--ink)}
.lvs4-item.s-open .lvs4-status{color:var(--accent)}
.lvs4-item.s-locked .lvs4-status,.lvs4-item.s-locked .lvs4-ititle{color:var(--muted)}
.lvs4-next{margin-top:20px;padding-top:20px;border-top:1px solid oklch(from var(--ink) l c h / .12)}
.lvs4-note{margin-top:12px;color:var(--muted);font-size:.9375rem;font-weight:600;line-height:1.4;text-align:center;text-wrap:pretty}
.lvs4-final{margin-top:20px}
.lvs4-btn{
--b1:var(--button-bg,var(--cta,oklch(.576 .209 29.5)));
--b2:var(--button-bg-2,var(--cta-2,oklch(.506 .206 29.5)));
display:inline-flex;align-items:center;justify-content:center;gap:8px;
min-height:56px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));
font-family:var(--button-font,var(--font-display,inherit));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;
color:var(--button-ink,var(--cta-ink,oklch(1 0 0)));text-shadow:var(--button-text-shadow,none);
text-decoration:none;white-space:nowrap;cursor:pointer;
background:linear-gradient(oklch(from var(--b1) calc(l + .04) c h),oklch(from var(--b2) calc(l - .02) c h));
box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b1) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--b1) calc(l - .16) c h),0 1px 2px oklch(from var(--lvs4-sh) l c h / .3),0 8px 16px -6px oklch(from var(--lvs4-sh) l c h / .45));
transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.lvs4-btn:hover:not(:disabled),.lvs4-btn.is-hover:not(:disabled){
background:linear-gradient(oklch(from var(--b1) calc(l - .01) c h),oklch(from var(--b2) calc(l - .07) c h));
box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b1) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--b1) calc(l - .18) c h),0 1px 2px oklch(from var(--lvs4-sh) l c h / .32),0 10px 20px -6px oklch(from var(--lvs4-sh) l c h / .55));
}
.lvs4-btn:active:not(:disabled),.lvs4-btn.is-active:not(:disabled){
transform:translateY(1px);
background:linear-gradient(oklch(from var(--b1) calc(l - .04) c h),oklch(from var(--b2) calc(l - .08) c h));
box-shadow:inset 0 2px 4px oklch(from var(--b1) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--b1) calc(l - .16) c h),0 1px 1px oklch(from var(--lvs4-sh) l c h / .3);
}
.lvs4-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.lvs4-btn:disabled{
background:var(--button-2-bg,var(--secondary));color:var(--button-2-ink,var(--secondary-ink));
text-shadow:none;box-shadow:none;cursor:not-allowed;transform:none;
}
.lvs4-btn[aria-busy='true']{cursor:progress}
.lvs4-btn-next{display:flex;width:100%;min-height:64px}
.lvs4-prompt{grid-area:prompt}
.lvs4-ph{
font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:var(--display-weight,800);
line-height:1.15;letter-spacing:-.01em;text-wrap:balance;
}
.lvs4-ph label{cursor:pointer}
.lvs4-hint{margin-top:8px;color:var(--muted);text-wrap:pretty}
.lvs4-field{
display:block;width:100%;min-height:128px;margin-top:16px;padding:14px 16px;
border:1px solid var(--field-border,color-mix(in oklch,var(--ink) 22%,transparent));
border-radius:var(--field-radius,var(--radius,12px));
background:var(--field,oklch(1 0 0));color:var(--field-ink,var(--ink));
font:inherit;font-size:17px;line-height:1.5;resize:vertical;
transition:border-color .16s ease,box-shadow .16s ease;
}
.lvs4-field::placeholder{color:color-mix(in oklch,var(--field-ink,var(--ink)) 65%,var(--field,oklch(1 0 0)));opacity:1}
.lvs4-field:focus{outline:none;border-color:var(--field-focus,var(--accent));box-shadow:0 0 0 3px oklch(from var(--field-focus,var(--accent)) l c h / .35)}
.lvs4-field[aria-invalid='true']{border-color:var(--danger)}
.lvs4-field[aria-invalid='true']:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
.lvs4-field:disabled{background:color-mix(in oklch,var(--field-ink,var(--ink)) 5%,var(--field,oklch(1 0 0)));cursor:not-allowed}
.lvs4-err{margin-top:8px;color:var(--danger);font-size:.9375rem;font-weight:700;line-height:1.4;text-wrap:pretty}
.lvs4-err svg,.lvs4-small svg{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em}
.lvs4-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:12px 16px;margin-top:16px}
.lvs4-count{
display:inline-flex;align-items:center;gap:8px;color:var(--muted);
font-size:.9375rem;font-weight:700;line-height:1.2;font-variant-numeric:tabular-nums;transition:color .16s ease;
}
.lvs4-count.is-near{color:var(--warning)}
.lvs4-count.is-max{color:var(--danger)}
.lvs4-ring circle{fill:none;stroke-width:2.5}
.lvs4-ring-track{stroke:color-mix(in oklch,var(--ink) 12%,var(--card))}
.lvs4-ring-fill{
stroke:var(--accent-fill,var(--accent));stroke-linecap:round;
transform:rotate(-90deg);transform-origin:50% 50%;transition:stroke-dashoffset .16s ease,stroke .16s ease;
}
.lvs4-ring.is-empty .lvs4-ring-fill{opacity:0}
.lvs4-count.is-near .lvs4-ring-fill{stroke:var(--warning)}
.lvs4-count.is-max .lvs4-ring-fill{stroke:var(--danger)}
.lvs4-small{margin-top:12px;color:var(--muted);font-size:.9375rem;font-weight:500;line-height:1.4;text-wrap:pretty}
.lvs4-wall{margin-top:28px;padding-top:24px;border-top:1px solid oklch(from var(--ink) l c h / .12)}
.lvs4-wtitle{
font-family:var(--font-display,inherit);font-size:clamp(1.125rem,1.5vw,1.375rem);font-weight:var(--display-weight,800);
line-height:1.2;letter-spacing:-.01em;text-wrap:balance;
}
.lvs4-wlist{display:grid;gap:12px;margin-top:16px}
.lvs4-comment{
display:grid;grid-template-columns:40px minmax(0,1fr);gap:12px;align-items:start;
padding:16px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card));
}
.lvs4-avatar{
display:grid;place-items:center;width:40px;height:40px;overflow:hidden;border-radius:999px;
background:var(--secondary);color:var(--secondary-ink);font-size:.875rem;font-weight:800;line-height:1;
}
.lvs4-avatar img{width:100%;height:100%;object-fit:cover}
.lvs4-cname{color:var(--muted);font-size:.9375rem;line-height:1.4}
.lvs4-cname b{color:var(--ink);font-weight:800}
.lvs4-ctext{margin-top:4px;color:var(--ink);line-height:1.5;text-wrap:pretty}
.lvs4-spin{animation:lvs4-spin .8s linear infinite}
@keyframes lvs4-spin{to{transform:rotate(360deg)}}
@keyframes lvs4-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
.lvs4-head,.lvs4-media,.lvs4-rail,.lvs4-prompt{animation:lvs4-rise .45s cubic-bezier(.2,.7,.2,1) both}
.lvs4-media{animation-delay:.07s}
.lvs4-rail{animation-delay:.14s}
.lvs4-prompt{animation-delay:.21s}
}
@media (max-width:899px){
.lvs4-wrap{grid-template-columns:minmax(0,1fr);grid-template-areas:'head' 'media' 'rail' 'prompt';grid-template-rows:auto;row-gap:24px}
.lvs4-rail{position:static;max-height:none;overflow:visible}
.lvs4-list{gap:2px;margin-top:16px}
.lvs4-item{padding:10px}
.lvs4-next{margin-top:16px;padding-top:16px}
}
@media (max-width:520px){
.lvs4-foot .lvs4-btn{width:100%}
}
@media (prefers-reduced-motion:reduce){
.lvs4 *,.lvs4 *::before,.lvs4 *::after{animation:none !important;transition:none !important}
}
`
pieces/content/launch-video-series-4/specimen.tsx 53 lines
import __studioImage35007e1a from "../assets/c5392d7ea5524e57.webp";
import { LaunchVideoSeries4, type LaunchVideoSeries4State } from '../launch-video-series-4'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled', 'error']
export default function LaunchVideoSeries4Specimen({ state = 'default' }: { state?: LaunchVideoSeries4State }) {
return (
<LaunchVideoSeries4
state={state}
seriesName='Confident Closer'
current={1}
released={3}
videos={[
{ title: 'The 10-second opener that lowers their guard', length: '11 min', href: '#video-1' },
{ title: 'The two-question close', length: '14 min' },
{ title: 'Turn “I need to think about it” into a yes', length: '16 min', href: '#video-3' },
{ title: 'Your first week of confident calls', length: '12 min' },
]}
headline={{
lead: 'Before Video 3, ',
mark: 'write down the line',
after: ' you’ll say on your next sales call.',
}}
lead='Writing it once makes the two-question close yours. Video 3 builds on whatever you write here.'
posterImage={slot(
'presenter',
__studioImage35007e1a,
)}
posterAlt='Sales coach explaining the two-question close in a studio'
comments={[
{
name: 'Dana R.',
meta: 'Austin',
text: 'Stop pitching after the second question. Let them say the price out loud first.',
},
{
name: 'Marcus T.',
meta: 'Leeds',
text: 'I was closing too early. Question two is where the real objection finally shows up.',
},
{
name: 'Priya S.',
meta: 'Toronto',
text: 'Both questions are on a sticky note by my phone now. First call tomorrow at 9.',
},
]}
onSubmit={() => {}}
onAction={() => {}}
onSelect={() => {}}
/>
)
}
| Name | Type | Details |
|---|---|---|
videos OptionalLaunchVideoSeries4 |
TakeawayVideo[] |
Default DEFAULT_VIDEOS
|
current OptionalLaunchVideoSeries4 |
number |
Default 1
|
released OptionalLaunchVideoSeries4 |
number |
|
seriesName OptionalLaunchVideoSeries4 |
string |
|
headline OptionalLaunchVideoSeries4 |
TakeawayHeadline |
Default DEFAULT_HEADLINE
|
lead OptionalLaunchVideoSeries4 |
React.ReactNode |
Default DEFAULT_LEAD
|
media OptionalLaunchVideoSeries4 |
React.ReactNode |
|
posterImage OptionalLaunchVideoSeries4 |
string |
|
posterAlt OptionalLaunchVideoSeries4 |
string |
Default ''
|
comments OptionalLaunchVideoSeries4 |
TakeawayComment[] |
Default []
|
maxLength OptionalLaunchVideoSeries4 |
number |
Default 280
|
disabled OptionalLaunchVideoSeries4 |
boolean |
Default false
|
onSubmit OptionalLaunchVideoSeries4 |
(value: string) => void | boolean | Promise<void | boolean> |
|
href OptionalLaunchVideoSeries4 |
string |
|
onAction OptionalLaunchVideoSeries4 |
(nextIndex: number) => void |
|
onSelect OptionalLaunchVideoSeries4 |
(index: number) => void |
|
copy OptionalLaunchVideoSeries4 |
Partial<LaunchVideoSeries4Copy> |
|
state OptionalLaunchVideoSeries4 |
LaunchVideoSeries4State |
Default 'default'
|
className OptionalLaunchVideoSeries4 |
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- 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--field-ink--field-radius- 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.
presenter- A photo of the host, coach or founder.
-
44c4a68a8f1604d6.webp
image/webp · 18.4 KB
-
c5392d7ea5524e57.webp
image/webp · 28.3 KB