Launch Video Series 3
Launch video series as an editorial episode guide: the current episode on a large poster frame with a play action, beside a TV-guide list whose open-loop loglines and watched meter pull the viewer on to the next video.
Use it in a prompt
Use content/launch-video-series-3 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-3.tsx. - Import it and pass your copy and images (Props tab):
import { LaunchVideoSeries3 } from "@/components/funneldna/content/launch-video-series-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/launch-video-series-3/component.tsx 469 lines
// layout: magazine-spread
// Launch video series as an editorial episode guide: the current episode on a large poster frame with a play action, beside a TV-guide list whose open-loop loglines and watched meter pull the viewer on to the next video.
'use client'
import * as React from 'react'
import { Check, Clock, Lock, Play } from 'lucide-react'
import { FX_HOST, Texture } from '../fx/fx'
import halftone from '../fx/textures/halftone'
export type GuideEpisode = {
title: string
/** Runtime exactly as it should read, e.g. 12 min. Omit to hide it. */
runtime?: string
/** One-line logline. End it on what the next episode reveals (the open loop). */
logline?: string
/** Poster for this episode; falls back to posterImage. */
image?: string
imageAlt?: string
/** Page for this episode. When set, the play action renders as a link. */
href?: string
}
export type GuideLine = {
lead?: React.ReactNode
/** The emphasised phrase: a marker stroke in the headline, the accent colour in the pull line. */
mark?: React.ReactNode
after?: React.ReactNode
}
export type LaunchVideoSeries3State = 'default' | 'hover' | 'active'
export type LaunchVideoSeries3Copy = typeof DEFAULT_COPY
export type LaunchVideoSeries3Props = {
/** Episodes in watch order. An empty list falls back to the default series. */
episodes?: GuideEpisode[]
/** How many episodes are out now (from the first). The rest show as locked. */
released?: number
/** Zero-based index of the episode in the player. Defaults to the latest released one. */
current?: number
headline?: GuideLine
lead?: React.ReactNode
/** Large editorial pull line under the player. Pass null to hide it. */
pull?: GuideLine | null
/** Series poster (scene slot). Episodes without their own image use it. */
posterImage?: string
posterAlt?: string
/** Controlled list of watched episode indexes. */
watched?: number[]
/** Episodes already ticked on first render (uncontrolled). */
defaultWatched?: number[]
/** Runs with the sorted watched indexes whenever a checkbox changes. */
onWatchedChange?: (watched: number[]) => void
/** Runs when the viewer presses play on the poster. */
onAction?: (index: number) => void
/** Runs when the viewer picks a released episode in the guide. */
onSelect?: (index: number) => void
/** Templates use {number}, {title}, {prev}, {watched} and {total}. */
copy?: Partial<LaunchVideoSeries3Copy>
/** Preview state for the play button (hover also previews a guide row hover). */
state?: LaunchVideoSeries3State
className?: string
}
export function LaunchVideoSeries3({
episodes = DEFAULT_EPISODES,
released = 2,
current,
headline = DEFAULT_HEADLINE,
lead = DEFAULT_LEAD,
pull = DEFAULT_PULL,
posterImage,
posterAlt = '',
watched,
defaultWatched = [],
onWatchedChange,
onAction,
onSelect,
copy,
state = 'default',
className,
}: LaunchVideoSeries3Props) {
const t = { ...DEFAULT_COPY, ...copy }
const headingId = React.useId()
const list = episodes.length ? episodes : DEFAULT_EPISODES
const total = list.length
const open = clamp(Number.isFinite(released) ? Math.round(released) : 1, 1, total)
const startView = clamp(
current !== undefined && Number.isFinite(current) ? Math.round(current) : open - 1,
0,
open - 1,
)
const [view, setView] = React.useState(startView)
React.useEffect(() => {
setView(startView)
}, [startView])
const [own, setOwn] = React.useState<number[]>(() => defaultWatched)
const ticked = new Set((watched ?? own).filter((i) => i >= 0 && i < open))
const count = ticked.size
const pct = (count / total) * 100
const toggle = (i: number, on: boolean) => {
const next = new Set(ticked)
if (on) next.add(i)
else next.delete(i)
const sorted = Array.from(next).sort((a, b) => a - b)
if (watched === undefined) setOwn(sorted)
onWatchedChange?.(sorted)
}
const ep = list[view] ?? list[0]
const epVars = { number: view + 1, title: ep.title }
const image = ep.image ?? posterImage
const imageAlt = ep.image ? ep.imageAlt ?? '' : posterAlt
const hoverRow = state === 'hover' ? list.findIndex((_, i) => i < open && i !== view) : -1
const posterClass =
'lv3-poster' + (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '')
const playAria = fill(t.playAria, epVars)
const meterText = fill(t.meter, { watched: count, total })
const posterInner = (
<>
{image ? <img className='lv3-img' src={image} alt={imageAlt} /> : null}
<span className='lv3-scrim' aria-hidden='true' />
<span className='lv3-play'>
<span className='lv3-disc' aria-hidden='true'>
<Play size={24} strokeWidth={2.5} fill='currentColor' />
</span>
<span className='lv3-play-label'>{fill(t.playLabel, epVars)}</span>
{ep.runtime ? <span className='lv3-play-sub'>{ep.runtime}</span> : null}
</span>
</>
)
const poster = ep.href ? (
<a className={posterClass} href={ep.href} aria-label={playAria} onClick={() => onAction?.(view)}>
{posterInner}
</a>
) : (
<button type='button' className={posterClass} aria-label={playAria} onClick={() => onAction?.(view)}>
{posterInner}
</button>
)
return (
<section
className={'cf-launch-video-series-3' + (className ? ' ' + className : '')}
style={FX_HOST}
aria-labelledby={headingId}
data-state={state}
>
<style>{CSS}</style>
<div className='lv3-fx' aria-hidden='true'>
<Texture src={halftone} tone='ink' />
</div>
<div className='lv3-wrap'>
<header className='lv3-head'>
<h2 id={headingId} className='lv3-h'>
{headline.lead}
{headline.mark ? <span className='lv3-mark'>{headline.mark}</span> : null}
{headline.after}
</h2>
{lead ? <p className='lv3-lead'>{lead}</p> : null}
</header>
<div className='lv3-spread'>
<div className='lv3-feature'>
{poster}
<div className='lv3-now' aria-live='polite'>
<p className='lv3-now-meta'>
<span className='lv3-now-ep'>{fill(t.episodeLabel, epVars)}</span>
{ep.runtime ? (
<span className='lv3-runtime'>
<Clock size={16} strokeWidth={2.5} aria-hidden='true' />
{ep.runtime}
</span>
) : null}
</p>
<h3 className='lv3-now-title'>{keepHyphens(ep.title)}</h3>
{ep.logline ? <p className='lv3-now-log'>{ep.logline}</p> : null}
</div>
</div>
<div className='lv3-side'>
<div className='lv3-meter'>
<div className='lv3-meter-top'>
<p className='lv3-count' aria-live='polite'>{meterText}</p>
<p className='lv3-meter-note'>{count >= open ? t.meterCaughtUp : t.meterNote}</p>
</div>
<div
className='lv3-track'
role='progressbar'
aria-label={t.meterLabel}
aria-valuemin={0}
aria-valuemax={total}
aria-valuenow={count}
aria-valuetext={meterText}
>
<span className='lv3-fill' style={{ width: pct + '%' }} />
</div>
</div>
<ol className='lv3-list' aria-label={t.listLabel}>
{list.map((e, i) => {
const num = i + 1
const locked = i >= open
const isView = i === view
const isTicked = ticked.has(i)
const vars = { number: num, title: e.title, prev: i }
const status = locked ? (i === open ? t.unlocksNext : fill(t.unlocksLater, vars)) : ''
const rowClass =
'lv3-row' +
(locked ? ' is-locked' : '') +
(isView ? ' is-view' : '') +
(isTicked ? ' is-ticked' : '') +
(i === hoverRow ? ' is-hover' : '')
return (
<li
key={`${i}-${e.title}`}
className={rowClass}
style={{ '--i': Math.min(i, 4) } as React.CSSProperties}
>
<button
type='button'
className='lv3-pick'
disabled={locked}
aria-current={isView ? 'true' : undefined}
onClick={() => {
if (locked) return
setView(i)
onSelect?.(i)
}}
>
<span className='lv3-num' aria-hidden='true'>{String(num).padStart(2, '0')}</span>
<span className='lv3-text'>
<span className='lv3-sr'>{fill(t.episodeLabel, vars)}: </span>
<span className='lv3-title'>{keepHyphens(e.title)}</span>
<span className='lv3-meta'>
{isView ? (
<span className='lv3-chip'>
<Play size={16} strokeWidth={2.5} fill='currentColor' aria-hidden='true' />
{t.watchingNow}
</span>
) : null}
{e.runtime ? (
<span className='lv3-runtime'>
<Clock size={16} strokeWidth={2.5} aria-hidden='true' />
{e.runtime}
</span>
) : null}
{locked ? (
<span className='lv3-status'>
<Lock size={16} strokeWidth={2.5} aria-hidden='true' />
{status}
</span>
) : null}
</span>
{e.logline ? <span className='lv3-log'>{e.logline}</span> : null}
</span>
</button>
{locked ? (
<span className='lv3-empty' aria-hidden='true' />
) : (
<label className='lv3-check'>
<input
type='checkbox'
checked={isTicked}
onChange={(ev) => toggle(i, ev.target.checked)}
aria-label={fill(t.watchedAria, vars)}
/>
<span className='lv3-box' aria-hidden='true'>
<Check size={18} strokeWidth={3} />
</span>
</label>
)}
</li>
)
})}
</ol>
</div>
{pull ? (
<p className='lv3-pull'>
{pull.lead}
{pull.mark ? <span className='lv3-pull-mark'>{pull.mark}</span> : null}
{pull.after}
</p>
) : null}
</div>
</div>
</section>
)
}
const DEFAULT_COPY = {
episodeLabel: 'Episode {number}',
playLabel: 'Watch episode {number}',
playAria: 'Play episode {number}: {title}',
watchingNow: 'Watching now',
unlocksNext: 'Unlocks next',
unlocksLater: 'Unlocks after episode {prev}',
watchedAria: 'Mark episode {number}, {title}, as watched',
meter: '{watched} of {total} watched',
meterLabel: 'Series progress',
meterNote: 'Tick each episode as you finish it.',
meterCaughtUp: 'You’re caught up on every released episode.',
listLabel: 'Episode guide',
}
const DEFAULT_HEADLINE: GuideLine = {
lead: 'Watch the series in order. ',
mark: 'Each episode sets up the next',
after: '.',
}
const DEFAULT_LEAD = 'Start with the episode in the player. Tick each one off as you finish it, and keep your place in the series.'
const DEFAULT_PULL: GuideLine = {
lead: 'Every episode ends ',
mark: 'on the move the next one shows you',
after: '.',
}
const DEFAULT_EPISODES: GuideEpisode[] = [
{ title: 'Plan your funnel', logline: 'Map your offer and the pages it needs. Episode 2 turns that map into words.' },
{ title: 'Write your page copy', logline: 'Draft your headline, offer and call to action. Episode 3 checks it all before launch.' },
{ title: 'Check every step', logline: 'Review the links, forms and next steps. Episode 4 puts it live.' },
{ title: 'Get ready to launch', logline: 'Bring the plan, the copy and the checks together for launch day.' },
]
const CSS = `
.cf-launch-video-series-3{position:relative;isolation:isolate;overflow:clip;width:100%;box-sizing:border-box;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);background:var(--surface,#ffffff);color:var(--ink,#101828);font-family:var(--font-body,system-ui,sans-serif);line-height:1.5}
.cf-launch-video-series-3 *,.cf-launch-video-series-3 *::before,.cf-launch-video-series-3 *::after{box-sizing:border-box}
.cf-launch-video-series-3 :where(h2,h3,p,ol){margin:0}
.lv3-fx{position:absolute;inset:0;z-index:0;pointer-events:none;-webkit-mask-image:radial-gradient(120% 80% at 100% 0%,oklch(from var(--ink,#101828) l c h / 1) 0%,oklch(from var(--ink,#101828) l c h / 0) 62%);mask-image:radial-gradient(120% 80% at 100% 0%,oklch(from var(--ink,#101828) l c h / 1) 0%,oklch(from var(--ink,#101828) l c h / 0) 62%)}
.lv3-nobr{white-space:nowrap}
.lv3-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.lv3-head{max-width:52rem;margin-bottom:clamp(32px,4vw,48px)}
.lv3-h{font-family:var(--font-display,inherit);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}
.lv3-mark{background-image:linear-gradient(oklch(from var(--marker,#fae37c) l c h / 0.62),oklch(from var(--marker,#fae37c) l c h / 0.62));background-repeat:no-repeat;background-size:100% 62%;background-position:0 88%;padding:0 0.12em;margin:0 -0.04em;border-radius:0.2em 0.35em 0.25em 0.3em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.lv3-lead{margin-top:16px;max-width:62ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted,#4a5565);text-wrap:pretty}
.lv3-spread{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);grid-template-areas:"feature side" "pull side";grid-template-rows:auto 1fr;gap:0 clamp(32px,5vw,72px);align-items:start}
.lv3-feature{grid-area:feature;min-width:0}
.lv3-side{grid-area:side;display:flex;flex-direction:column;min-width:0}
.lv3-poster{--lv3-b:var(--button-bg,var(--cta,#d92d20));--lv3-b2:var(--button-bg-2,var(--cta-2,#b42318));--lv3-sh:var(--shadow,oklch(0.22 0.03 260));position:relative;display:grid;place-items:center;width:100%;margin:0;padding:0;border:0;border-radius:12px;overflow:hidden;background:var(--band,#1b2a4a);color:inherit;font:inherit;text-decoration:none;cursor:pointer;-webkit-tap-highlight-color:transparent;box-shadow:0 2px 3px oklch(from var(--lv3-sh) l c h / 0.28),0 14px 20px -8px oklch(from var(--lv3-sh) l c h / 0.34)}
.lv3-poster::before{content:'';grid-area:1/1;display:block;width:100%;padding-top:56.25%}
.lv3-poster:focus-visible{outline:3px solid var(--field-focus,var(--accent,#0f5fc2));outline-offset:4px}
.lv3-img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center}
.lv3-scrim{position:absolute;inset:0;background:oklch(from var(--band,oklch(0.27 0.07 256)) l c h / 0.16)}
.lv3-poster:hover .lv3-scrim,.lv3-poster.is-hover .lv3-scrim{background:oklch(from var(--band,oklch(0.27 0.07 256)) l c h / 0.28)}
.lv3-play{grid-area:1/1;position:relative;z-index:1;display:inline-flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;min-height:72px;max-width:calc(100% - 96px);padding:10px 28px;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--lv3-b) calc(l + 0.04) c h),oklch(from var(--lv3-b2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink,#ffffff));font-family:var(--button-font,var(--font-display,inherit));font-weight:var(--button-weight,800);text-transform:var(--button-case,none);text-align:center;text-shadow:var(--button-text-shadow,none);box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--lv3-b) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--lv3-b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--lv3-sh) l c h / 0.3),0 8px 16px -6px oklch(from var(--lv3-sh) l c h / 0.45))}
.lv3-poster:hover .lv3-play,.lv3-poster.is-hover .lv3-play{background:linear-gradient(oklch(from var(--lv3-b) calc(l - 0.01) c h),oklch(from var(--lv3-b2) calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from var(--lv3-b) calc(l + 0.1) c h / 0.6),inset 0 -3px 0 oklch(from var(--lv3-b) calc(l - 0.2) c h),0 1px 2px oklch(from var(--lv3-sh) l c h / 0.34),0 10px 20px -6px oklch(from var(--lv3-sh) l c h / 0.52)}
.lv3-poster:active .lv3-play,.lv3-poster.is-active .lv3-play{transform:translateY(1px);background:linear-gradient(oklch(from var(--lv3-b) calc(l - 0.05) c h),oklch(from var(--lv3-b2) calc(l - 0.08) c h));box-shadow:inset 0 2px 3px oklch(from var(--lv3-b) calc(l - 0.22) c h / 0.6),inset 0 -2px 0 oklch(from var(--lv3-b) calc(l - 0.16) c h),0 1px 2px oklch(from var(--lv3-sh) l c h / 0.3)}
.lv3-disc{position:absolute;left:0;top:50%;transform:translate(-62%,-50%);display:grid;place-items:center;width:56px;height:56px;border-radius:999px;border:3px solid oklch(from var(--lv3-b) calc(l - 0.04) c h);background:var(--button-ink,var(--cta-ink,#ffffff));color:var(--lv3-b);text-shadow:none;box-shadow:0 1px 2px oklch(from var(--lv3-sh) l c h / 0.3),0 6px 12px -4px oklch(from var(--lv3-sh) l c h / 0.4)}
.lv3-disc svg{margin-left:3px}
.lv3-play-label{font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;white-space:nowrap}
.lv3-play-sub{font-family:var(--font-body,inherit);font-size:0.9375rem;font-weight:600;line-height:1.2;font-variant-numeric:tabular-nums}
.lv3-now{margin-top:24px}
.lv3-now-meta{display:flex;flex-wrap:wrap;align-items:center;gap:4px 16px;font-size:0.9375rem;font-weight:700;line-height:1.4;color:var(--muted,#4a5565)}
.lv3-now-ep{color:var(--accent,#0f5fc2);font-weight:800}
.lv3-now-title{margin-top:12px;font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:800;letter-spacing:-0.01em;text-wrap:balance}
.lv3-now-log{margin-top:8px;max-width:64ch;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.lv3-pull{grid-area:pull;margin-top:clamp(32px,4vw,48px);font-family:var(--font-display,inherit);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}
.lv3-pull-mark{color:var(--accent,#0f5fc2)}
.lv3-meter{padding:0 16px 16px}
.lv3-meter-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 16px;margin-bottom:12px}
.lv3-count{font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:800;letter-spacing:-0.01em;font-variant-numeric:tabular-nums}
.lv3-meter-note{font-size:0.9375rem;font-weight:600;line-height:1.4;color:var(--muted,#4a5565);text-wrap:pretty}
.lv3-track{position:relative;height:8px;border-radius:999px;overflow:hidden;background:color-mix(in oklch,var(--ink,#101828) 10%,var(--surface,#ffffff))}
.lv3-fill{display:block;height:100%;border-radius:inherit;background:var(--success,#1f7a3a)}
.lv3-list{list-style:none;padding:0;display:grid;gap:4px}
.lv3-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:start;border-radius:12px}
.lv3-row:has(.lv3-pick:hover:not(:disabled)),.lv3-row:has(.lv3-check:hover),.lv3-row.is-hover{background:color-mix(in oklch,var(--ink,#101828) 4%,var(--surface,#ffffff))}
.lv3-row.is-view,.lv3-row.is-view:has(.lv3-pick:hover:not(:disabled)),.lv3-row.is-view:has(.lv3-check:hover){background:color-mix(in oklch,var(--accent,#0f5fc2) 9%,var(--surface,#ffffff));box-shadow:inset 0 0 0 1px oklch(from var(--accent,#0f5fc2) l c h / 0.2)}
.lv3-pick{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start;width:100%;min-width:0;margin:0;padding:16px 8px 16px 16px;border:0;border-radius:12px;background:none;color:inherit;font:inherit;text-align:start;cursor:pointer;-webkit-tap-highlight-color:transparent}
.lv3-pick:focus-visible{outline:3px solid var(--field-focus,var(--accent,#0f5fc2));outline-offset:-3px}
.lv3-pick:disabled{cursor:default}
.lv3-num{display:block;min-width:1.25em;font-family:var(--font-display,inherit);font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:800;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--accent,#0f5fc2)}
.lv3-text{display:block;min-width:0;padding-top:4px}
.lv3-title{display:block;font-family:var(--font-display,inherit);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:800;letter-spacing:-0.01em;text-wrap:balance}
.lv3-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-top:8px}
.lv3-meta:empty{display:none}
.lv3-chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 12px;border-radius:999px;background:var(--accent-fill,var(--accent,#0f5fc2));color:var(--accent-fill-ink,var(--card,#ffffff));font-size:0.875rem;font-weight:800;line-height:1.2;white-space:nowrap}
.lv3-runtime{display:inline-flex;align-items:center;gap:6px;font-size:0.9375rem;font-weight:600;line-height:1.4;color:var(--muted,#4a5565);font-variant-numeric:tabular-nums}
.lv3-status{font-size:0.9375rem;font-weight:700;line-height:1.4;color:var(--muted,#4a5565);text-wrap:pretty}
.lv3-status svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:0.4em}
.lv3-log{display:block;margin-top:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty}
.lv3-row.is-locked .lv3-num,.lv3-row.is-locked .lv3-title,.lv3-row.is-locked .lv3-log{color:var(--muted,#4a5565)}
.lv3-check{position:relative;display:flex;justify-content:center;min-width:56px;padding:20px 12px 16px;border-radius:12px;cursor:pointer}
.lv3-check input{position:absolute;top:20px;left:50%;width:28px;height:28px;margin:0 0 0 -14px;opacity:0;cursor:pointer}
.lv3-box{display:grid;place-items:center;width:28px;height:28px;border-radius:8px;background:var(--field,#ffffff);border:2px solid var(--field-border,color-mix(in oklch,var(--field-ink,#101828) 42%,var(--field,#ffffff)));color:var(--success-ink,#ffffff)}
.lv3-box svg{opacity:0;transform:scale(0.6)}
.lv3-check:hover .lv3-box{border-color:var(--field-focus,var(--accent,#0f5fc2))}
.lv3-check input:checked + .lv3-box{background:var(--success,#1f7a3a);border-color:var(--success,#1f7a3a)}
.lv3-check input:checked + .lv3-box svg{opacity:1;transform:none}
.lv3-check input:focus-visible + .lv3-box{outline:3px solid oklch(from var(--field-focus,var(--accent,#0f5fc2)) l c h / 0.55);outline-offset:2px}
.lv3-empty{display:block;min-width:56px}
.lv3-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
@keyframes lv3-in{from{opacity:0.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion:no-preference){
.lv3-feature{animation:lv3-in 0.45s cubic-bezier(0.2,0.7,0.2,1) both}
.lv3-row{animation:lv3-in 0.45s cubic-bezier(0.2,0.7,0.2,1) both;animation-delay:calc(var(--i,0) * 0.07s);transition:background 0.16s ease}
.lv3-fill{transition:width 0.45s cubic-bezier(0.2,0.7,0.2,1)}
.lv3-img{transition:transform 0.45s cubic-bezier(0.2,0.7,0.2,1)}
.lv3-poster:hover .lv3-img,.lv3-poster.is-hover .lv3-img{transform:scale(1.03)}
.lv3-scrim{transition:background 0.16s ease}
.lv3-play{transition:background 0.16s ease,box-shadow 0.16s ease,transform 0.16s ease}
.lv3-disc{transition:transform 0.16s ease}
.lv3-poster:hover .lv3-disc,.lv3-poster.is-hover .lv3-disc{transform:translate(-62%,-50%) scale(1.05)}
.lv3-box{transition:background 0.16s ease,border-color 0.16s ease}
.lv3-box svg{transition:opacity 0.16s ease,transform 0.16s ease}
}
@media (max-width:900px){
.lv3-spread{grid-template-columns:minmax(0,1fr);grid-template-areas:"feature" "side" "pull";grid-template-rows:auto}
.lv3-now{display:none}
.lv3-side{margin-top:16px}
.lv3-meter{position:sticky;top:0;z-index:2;margin-bottom:8px;padding:12px 16px;background:var(--surface,#ffffff);border-bottom:1px solid oklch(from var(--ink,#101828) l c h / 0.14)}
.lv3-pull{margin-top:40px}
}
@media (max-width:560px){
.lv3-pick{gap:12px;padding:16px 4px 16px 12px}
.lv3-check{min-width:48px;padding:18px 8px 14px}
.lv3-check input{top:18px}
.lv3-empty{min-width:48px}
.lv3-meter{padding:12px}
.lv3-play{min-height:60px;max-width:calc(100% - 80px);padding:8px 22px}
.lv3-disc{width:48px;height:48px}
.lv3-meter-top{margin-bottom:8px}
}
`
function clamp(n: number, lo: number, hi: number) {
return Math.min(Math.max(n, lo), hi)
}
/** Keeps hyphenated words whole so a title never breaks as "The 40- / email". */
function keepHyphens(text: string): React.ReactNode {
if (!text.includes('-')) return text
return text.split(/(\s+)/).map((part, i) =>
part.includes('-') ? (
<span key={i} className='lv3-nobr'>
{part}
</span>
) : (
part
),
)
}
function fill(template: string, vars: Record<string, string | number>) {
let out = template
for (const key of Object.keys(vars)) out = out.split('{' + key + '}').join(String(vars[key]))
return out
}
export default LaunchVideoSeries3
pieces/content/launch-video-series-3/specimen.tsx 49 lines
import __studioImagea96ec577 from "../assets/ff9775310ebb3bad.webp";
import { LaunchVideoSeries3, type LaunchVideoSeries3State } from '../launch-video-series-3'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active']
const EPISODES = [
{
title: 'The 40-email morning',
runtime: '11 min',
logline: 'Why client email piles up overnight. Episode 2 shows the three rules that stop it.',
},
{
title: 'Three rules that triage for you',
runtime: '14 min',
logline: 'Sort every client thread before you open it. Episode 3 answers what is left.',
},
{
title: 'The reply template vault',
runtime: '9 min',
logline: 'Five replies that handle most client email. Episode 4 makes the habit stick.',
},
{
title: 'Your 15-minute close-out',
runtime: '12 min',
logline: 'The end-of-day routine that keeps your inbox at zero, every single day.',
},
]
export default function LaunchVideoSeries3Specimen({ state = 'default' }: { state?: string }) {
const current = (states.includes(state) ? state : 'default') as LaunchVideoSeries3State
return (
<LaunchVideoSeries3
state={current}
episodes={EPISODES}
released={2}
current={1}
defaultWatched={[0]}
headline={{ lead: 'Four short episodes to an ', mark: 'agency inbox you clear by lunch', after: '.' }}
lead='Inbox Zero for Agencies is a free four-part launch series. Watch in order: every episode ends on the exact move the next one shows you.'
pull={{ lead: 'By episode 4, ', mark: 'client email stops running your day', after: '.' }}
posterImage={slot(
'scene',
__studioImagea96ec577,
)}
posterAlt='The series host at a bright agency desk, ready to start the episode'
/>
)
}
| Name | Type | Details |
|---|---|---|
episodes OptionalLaunchVideoSeries3 |
GuideEpisode[] |
Default DEFAULT_EPISODES
|
released OptionalLaunchVideoSeries3 |
number |
Default 2
|
current OptionalLaunchVideoSeries3 |
number |
|
headline OptionalLaunchVideoSeries3 |
GuideLine |
Default DEFAULT_HEADLINE
|
lead OptionalLaunchVideoSeries3 |
React.ReactNode |
Default DEFAULT_LEAD
|
pull OptionalLaunchVideoSeries3 |
GuideLine | null |
Default DEFAULT_PULL
|
posterImage OptionalLaunchVideoSeries3 |
string |
|
posterAlt OptionalLaunchVideoSeries3 |
string |
Default ''
|
watched OptionalLaunchVideoSeries3 |
number[] |
|
defaultWatched OptionalLaunchVideoSeries3 |
number[] |
Default []
|
onWatchedChange OptionalLaunchVideoSeries3 |
(watched: number[]) => void |
|
onAction OptionalLaunchVideoSeries3 |
(index: number) => void |
|
onSelect OptionalLaunchVideoSeries3 |
(index: number) => void |
|
copy OptionalLaunchVideoSeries3 |
Partial<LaunchVideoSeries3Copy> |
|
state OptionalLaunchVideoSeries3 |
LaunchVideoSeries3State |
Default 'default'
|
className OptionalLaunchVideoSeries3 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink- 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.
-
a9be0c2aa69b7f17.webp
image/webp · 47.4 KB
-
ff9775310ebb3bad.webp
image/webp · 49.1 KB