Launch Video Series 5
Launch video series as a fanned hand of photo cards on a tabletop. The open video sits on top, ready to play. Watched videos tuck to the left. Locked videos fan to the right with a one-line teaser that brings the viewer back. Swipe, drag or arrow through the fan, and the button below names the card on top.
Use it in a prompt
Use content/launch-video-series-5 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-5.tsx. - Import it and pass your copy and images (Props tab):
import { LaunchVideoSeries5 } from "@/components/funneldna/content/launch-video-series-5"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/launch-video-series-5/component.tsx 567 lines
// layout: diagonal-split
// Launch video series as a fanned hand of photo cards on a tabletop. The open video sits on top, ready to play. Watched videos tuck to the left. Locked videos fan to the right with a one-line teaser that brings the viewer back. Swipe, drag or arrow through the fan, and the button below names the card on top.
'use client'
import * as React from 'react'
import { Check, ChevronLeft, ChevronRight, Lock, Play } from 'lucide-react'
import { Backdrop, FX_HOST, Spot } from '../fx/fx'
import tabletop from '../fx/backdrops/tabletop'
import lockSpot from '../fx/spots/lock'
import playSpot from '../fx/spots/play'
export type FanVideo = {
title: string
/** What an open or watched video covers, in one line. */
detail?: string
/** One line on what a locked video reveals. This is the curiosity hook. */
teaser?: string
/** Line on a locked card about when it opens. Defaults to copy.unlockNote. */
unlockNote?: string
/** Running time label, such as 14 min. Shown only when supplied. */
length?: string
/** Thumbnail src. Slot it in the page, for example item-1. */
image?: string
imageAlt?: string
/** Page for this video. The button links here when the video is playable. */
href?: string
}
export type FanHeadline = {
lead?: React.ReactNode
/** Phrase that gets the marker stroke. */
mark?: React.ReactNode
after?: React.ReactNode
}
export type LaunchVideoSeries5State = 'default' | 'hover' | 'active' | 'disabled'
export type LaunchVideoSeries5Copy = typeof DEFAULT_COPY
export type LaunchVideoSeries5Props = {
/** Videos in watch order. An empty list falls back to the default series. */
videos?: FanVideo[]
/** Zero-based index of the video that is open to watch now. Earlier videos show as watched and later ones as locked. */
current?: number
headline?: FanHeadline
lead?: React.ReactNode
/** Line under the button. Defaults to copy.note. */
note?: React.ReactNode
/** Runs when the viewer plays the top card or presses the button on an open or watched video. */
onAction?: (index: number, video: FanVideo) => void
/** Runs when the viewer moves a different card to the top of the fan. */
onBrowse?: (index: number) => void
/** Templates use {number}, {prev}, {current}, {total}, {title}, {status} and {line}. */
copy?: Partial<LaunchVideoSeries5Copy>
/** Preview state for the button. */
state?: LaunchVideoSeries5State
className?: string
}
type Status = 'watched' | 'current' | 'locked'
type DragState = { id: number; x: number; dx: number; moved: boolean }
export function LaunchVideoSeries5({
videos = DEFAULT_VIDEOS,
current = 1,
headline = DEFAULT_HEADLINE,
lead = DEFAULT_LEAD,
note,
onAction,
onBrowse,
copy,
state = 'default',
className,
}: LaunchVideoSeries5Props) {
const t = { ...DEFAULT_COPY, ...copy }
const uid = React.useId()
const headingId = uid + '-title'
const hintId = uid + '-hint'
const list = videos.length ? videos : DEFAULT_VIDEOS
const n = list.length
const cur = clamp(Math.round(current) || 0, 0, n - 1)
const [active, setActive] = React.useState(cur)
const [dragX, setDragX] = React.useState(0)
const [dragging, setDragging] = React.useState(false)
const cardRefs = React.useRef<Array<HTMLButtonElement | null>>([])
const drag = React.useRef<DragState | null>(null)
const swallowClick = React.useRef(false)
const focusAfter = React.useRef(false)
const shown = clamp(active, 0, n - 1)
React.useEffect(() => {
setActive(cur)
}, [cur])
React.useEffect(() => {
if (!focusAfter.current) return
focusAfter.current = false
cardRefs.current[shown]?.focus({ preventScroll: true })
}, [shown])
const statusOf = (i: number): Status => (i < cur ? 'watched' : i === cur ? 'current' : 'locked')
const statusWord = (s: Status) => (s === 'watched' ? t.watched : s === 'current' ? t.ready : t.locked)
const lineOf = (v: FanVideo, s: Status) => (s === 'locked' ? v.teaser ?? v.detail : v.detail ?? v.teaser) ?? ''
const varsOf = (i: number) => ({ number: i + 1, prev: i, current: cur + 1, total: n, title: list[i].title })
const go = (to: number, focus = false) => {
const next = clamp(to, 0, n - 1)
if (next === shown) return
focusAfter.current = focus
setActive(next)
onBrowse?.(next)
}
const onCard = (i: number) => {
if (i !== shown) {
go(i, true)
return
}
if (statusOf(i) === 'locked') return
onAction?.(i, list[i])
}
const onCardKey = (event: React.KeyboardEvent<HTMLButtonElement>) => {
const keys: Record<string, number> = { ArrowRight: shown + 1, ArrowLeft: shown - 1, Home: 0, End: n - 1 }
if (!(event.key in keys)) return
event.preventDefault()
go(keys[event.key], true)
}
const onPointerDown = (event: React.PointerEvent<HTMLDivElement>) => {
if (event.pointerType === 'mouse' && event.button !== 0) return
swallowClick.current = false
drag.current = { id: event.pointerId, x: event.clientX, dx: 0, moved: false }
}
const onPointerMove = (event: React.PointerEvent<HTMLDivElement>) => {
const s = drag.current
if (!s || s.id !== event.pointerId) return
const dx = event.clientX - s.x
if (!s.moved) {
if (Math.abs(dx) < 8) return
s.moved = true
setDragging(true)
try {
event.currentTarget.setPointerCapture(event.pointerId)
} catch {
// Capture is optional. The drag still works without it.
}
}
s.dx = dx
const atEnd = (dx > 0 && shown === 0) || (dx < 0 && shown === n - 1)
setDragX(clamp(dx * (atEnd ? 0.3 : 0.6), -140, 140))
}
const endDrag = (event: React.PointerEvent<HTMLDivElement>, cancelled: boolean) => {
const s = drag.current
if (!s || s.id !== event.pointerId) return
drag.current = null
if (!s.moved) return
swallowClick.current = true
setDragging(false)
setDragX(0)
if (cancelled) return
if (s.dx <= -48) go(shown + 1)
else if (s.dx >= 48) go(shown - 1)
}
const onClickCapture = (event: React.MouseEvent<HTMLDivElement>) => {
if (!swallowClick.current) return
swallowClick.current = false
event.preventDefault()
event.stopPropagation()
}
const top = list[shown]
const topStatus = statusOf(shown)
const topVars = varsOf(shown)
const playable = topStatus !== 'locked'
const ctaDisabled = !playable || state === 'disabled'
const ctaLabel = fill(topStatus === 'locked' ? t.lockedLabel : topStatus === 'watched' ? t.rewatchLabel : t.watchLabel, topVars)
const chip = [fill(t.videoLabel, topVars), statusWord(topStatus), top.length].filter(Boolean).join(' · ')
const topLine = lineOf(top, topStatus)
const noteText =
state === 'disabled' && playable
? fill(t.disabledNote, topVars)
: topStatus === 'locked'
? fill(t.lockedNote, topVars)
: note ?? fill(t.note, topVars)
const live = fill(t.cardLabel, { ...topVars, status: statusWord(topStatus), line: topLine })
const ctaClass = 'lvs5-btn' + (state === 'hover' ? ' is-hover' : '') + (state === 'active' ? ' is-active' : '')
const handleCta = () => {
if (!ctaDisabled) onAction?.(shown, top)
}
const cta =
!ctaDisabled && top.href ? (
<a className={ctaClass} href={top.href} onClick={handleCta}>
{ctaLabel}
</a>
) : (
<button type='button' className={ctaClass} disabled={ctaDisabled} onClick={handleCta}>
{ctaLabel}
</button>
)
return (
<section className={'cf-launch-video-series-5 lvs5' + (className ? ' ' + className : '')} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className='lvs5-copy lvs5-rise' style={{ '--i': 0 } as React.CSSProperties}>
<h2 id={headingId} className='lvs5-h'>
{headline.lead}
{headline.mark ? <span className='lvs5-mark'>{headline.mark}</span> : null}
{headline.after}
</h2>
{lead ? <p className='lvs5-lead'>{lead}</p> : null}
</div>
<div className='lvs5-stage'>
<span className='lvs5-edge' aria-hidden='true' />
<div className='lvs5-cut' aria-hidden='true' style={{ ...FX_HOST, position: 'absolute' }}>
<Backdrop src={tabletop} />
</div>
<div
className={'lvs5-fan' + (dragging ? ' is-dragging' : '')}
role='group'
aria-roledescription={t.carouselRole}
aria-label={t.seriesLabel}
style={{ '--lvs5-drag': dragX + 'px' } as React.CSSProperties}
onPointerDown={onPointerDown}
onPointerMove={onPointerMove}
onPointerUp={(event) => endDrag(event, false)}
onPointerCancel={(event) => endDrag(event, true)}
onClickCapture={onClickCapture}
>
{list.map((v, i) => {
const s = statusOf(i)
const d = i - shown
const ad = Math.abs(d)
const sign = Math.sign(d)
const isTop = d === 0
const cardVars = { ...varsOf(i), status: statusWord(s), line: lineOf(v, s) }
const style = {
'--sx': ad === 0 ? 0 : sign * (ad === 1 ? 1 : 1.22),
'--sd': ad === 0 ? 0 : sign * (ad === 1 ? 1 : 1.5),
'--ad': Math.min(ad, 2),
'--z': 30 - Math.min(ad, 3) * 10,
} as React.CSSProperties
const cls =
'lvs5-card s-' + s + (isTop ? ' is-top' : '') + (ad > 2 ? ' is-far' : '') + (isTop && s !== 'locked' ? ' is-playable' : '')
const meta = [fill(t.videoLabel, cardVars), v.length].filter(Boolean).join(' · ')
return (
<button
key={i + '-' + v.title}
ref={(el) => {
cardRefs.current[i] = el
}}
type='button'
className={cls}
style={style}
tabIndex={isTop ? 0 : -1}
aria-label={fill(isTop && s !== 'locked' ? t.playCardLabel : t.cardLabel, cardVars)}
aria-current={isTop ? 'true' : undefined}
aria-disabled={isTop && s === 'locked' ? true : undefined}
aria-describedby={hintId}
onClick={() => onCard(i)}
onKeyDown={onCardKey}
>
<span className='lvs5-media'>
{v.image ? (
<img src={v.image} alt={v.imageAlt ?? ''} draggable={false} loading={ad > 1 ? 'lazy' : undefined} decoding='async' />
) : s !== 'locked' ? (
<span className='lvs5-fallback'>
<Spot src={playSpot} size={72} />
</span>
) : null}
{s === 'locked' ? (
<span className='lvs5-veil'>
<Spot src={lockSpot} size={56} />
<span className='lvs5-unlock'>
<Lock aria-hidden='true' strokeWidth={2.5} />
{fill(v.unlockNote ?? t.unlockNote, cardVars)}
</span>
</span>
) : null}
{s === 'current' ? (
<span className='lvs5-play'>
<Play aria-hidden='true' fill='currentColor' strokeWidth={2.5} />
</span>
) : null}
{s === 'watched' ? (
<span className='lvs5-done'>
<Check aria-hidden='true' strokeWidth={3} />
</span>
) : null}
</span>
<span className='lvs5-body'>
<span className='lvs5-meta'>
<span className='lvs5-num'>{meta}</span>
<span className='lvs5-pill'>
{s === 'watched' ? <Check aria-hidden='true' strokeWidth={2.5} /> : null}
{statusWord(s)}
</span>
</span>
<span className='lvs5-ctitle'>{v.title}</span>
{cardVars.line ? <span className='lvs5-cline'>{cardVars.line}</span> : null}
</span>
</button>
)
})}
</div>
<div className='lvs5-nav'>
<button type='button' className='lvs5-navbtn' aria-label={t.prevLabel} disabled={shown === 0} onClick={() => go(shown - 1)}>
<ChevronLeft aria-hidden='true' strokeWidth={2.5} />
</button>
<span className='lvs5-count' aria-hidden='true'>
{fill(t.counter, topVars)}
</span>
<button type='button' className='lvs5-navbtn' aria-label={t.nextLabel} disabled={shown === n - 1} onClick={() => go(shown + 1)}>
<ChevronRight aria-hidden='true' strokeWidth={2.5} />
</button>
</div>
<p id={hintId} className='lvs5-sr'>
{t.hint}
</p>
<p className='lvs5-sr' aria-live='polite'>
{live}
</p>
</div>
<div className='lvs5-action lvs5-rise' style={{ '--i': 1 } as React.CSSProperties}>
<p className='lvs5-chip'>
{topStatus === 'locked' ? (
<Lock className='lvs5-ico' aria-hidden='true' strokeWidth={2.5} />
) : topStatus === 'watched' ? (
<Check className='lvs5-ico' aria-hidden='true' strokeWidth={2.5} />
) : (
<Play className='lvs5-ico' aria-hidden='true' fill='currentColor' strokeWidth={2.5} />
)}
{chip}
</p>
<h3 className='lvs5-title'>{top.title}</h3>
{topLine ? <p className='lvs5-line'>{topLine}</p> : null}
<div className='lvs5-cta'>{cta}</div>
<p className='lvs5-note'>
{topStatus === 'locked' ? <Lock className='lvs5-ico' aria-hidden='true' strokeWidth={2.5} /> : null}
{noteText}
</p>
{shown !== cur ? (
<button type='button' className='lvs5-back' onClick={() => go(cur, true)}>
{fill(t.backLabel, topVars)}
</button>
) : null}
</div>
</section>
)
}
export default LaunchVideoSeries5
const DEFAULT_COPY = {
videoLabel: 'Video {number}',
watched: 'Watched',
ready: 'Ready now',
locked: 'Locked',
watchLabel: 'Watch Video {number} now',
rewatchLabel: 'Rewatch Video {number}',
lockedLabel: 'Video {number} opens after Video {prev}',
unlockNote: 'Opens after Video {prev}',
note: 'Each video opens the next one when you finish it.',
lockedNote: 'Videos open one at a time, in order. Start with Video {current}.',
disabledNote: 'Video {number} opens here as soon as it is ready.',
backLabel: 'Back to Video {current}',
counter: 'Video {number} of {total}',
prevLabel: 'Show previous video',
nextLabel: 'Show next video',
seriesLabel: 'Videos in this series',
carouselRole: 'card fan',
hint: 'Swipe, drag or use the left and right arrow keys to move through the videos.',
cardLabel: '{title}, Video {number} of {total}. {status}. {line}',
playCardLabel: 'Play {title}, Video {number} of {total}. {line}',
}
const DEFAULT_HEADLINE: FanHeadline = { lead: 'Short videos, watched in order. ', mark: 'Each one opens the next.' }
const DEFAULT_LEAD = 'Swipe through the series. The card on top is ready to watch now.'
const DEFAULT_VIDEOS: FanVideo[] = [
{ 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', teaser: 'The pre-launch check that catches broken links and forms.' },
{ title: 'Get ready to launch', teaser: 'What to set up the night before your funnel goes live.' },
]
function clamp(value: number, lo: number, hi: number) {
return Math.min(Math.max(value, lo), hi)
}
function fill(template: string, vars: Record<string, string | number>) {
return Object.keys(vars).reduce((out, key) => out.split('{' + key + '}').join(String(vars[key])), template)
}
const CSS = `
.lvs5{
--lvs5-gutter:clamp(16px,5vw,48px);
--lvs5-card-w:272px;
--lvs5-spread:clamp(56px,8vw,120px);
--lvs5-tilt:6deg;
--lvs5-drop:10px;
--lvs5-ink:var(--ink,oklch(0.21 0.034 263));
--lvs5-muted:var(--muted,oklch(0.45 0.03 258));
--lvs5-card:var(--card,oklch(1 0 0));
--lvs5-accent:var(--accent,oklch(0.5 0.17 257));
--lvs5-band:var(--band,oklch(0.27 0.067 256));
--lvs5-band-ink:var(--band-ink,oklch(1 0 0));
--lvs5-shadow:var(--shadow,oklch(0.22 0.03 256));
--lvs5-marker:oklch(from var(--marker,#fae37c) max(l,0.86) min(c,0.16) h / 1);
--lvs5-marker-ink:oklch(from var(--lvs5-band) 0.2 min(c,0.06) h);
position:relative;isolation:isolate;overflow:clip;width:100%;box-sizing:border-box;
display:grid;grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);grid-template-rows:auto 1fr;
grid-template-areas:'copy stage' 'action stage';
padding-inline-start:max(var(--lvs5-gutter),calc((100% - 1120px) / 2));
background:var(--lvs5-band);color:var(--lvs5-band-ink);
font-family:var(--font-body,system-ui,sans-serif);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;
}
.lvs5 *,.lvs5 *::before,.lvs5 *::after{box-sizing:border-box}
.lvs5 :where(h2,h3,p){margin:0}
.lvs5-copy{grid-area:copy;max-width:40rem;padding:clamp(56px,8vw,112px) clamp(32px,4vw,64px) 0 0}
.lvs5-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;color:var(--lvs5-band-ink)}
.lvs5-mark{color:var(--lvs5-marker-ink);background-image:linear-gradient(var(--lvs5-marker),var(--lvs5-marker));background-repeat:no-repeat;background-size:100% 92%;background-position:0 62%;padding:0 .1em;margin:0 -.04em;border-radius:.16em .34em .22em .38em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
.lvs5-lead{margin-top:16px;max-width:36rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty}
.lvs5-action{grid-area:action;align-self:start;max-width:40rem;padding:clamp(32px,3.5vw,48px) clamp(32px,4vw,64px) clamp(64px,8.5vw,120px) 0}
.lvs5-chip{display:inline-block;min-height:32px;padding:5px 14px;border-radius:999px;background:oklch(from var(--lvs5-band-ink) l c h / .12);color:var(--lvs5-band-ink);font-size:.875rem;font-weight:800;line-height:1.6;white-space:nowrap}
.lvs5-ico{display:inline-block;width:16px;height:16px;vertical-align:-.15em;margin-inline-end:.4em}
.lvs5-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:var(--display-weight,800);letter-spacing:-.01em;text-transform:var(--display-case,none);text-wrap:balance}
.lvs5-line{margin-top:8px;max-width:34rem;text-wrap:pretty}
.lvs5-cta{margin-top:28px;width:100%;max-width:26rem}
.lvs5-note{margin-top:12px;max-width:34rem;font-size:.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty}
.lvs5-back{display:inline-flex;align-items:center;min-height:44px;margin-top:4px;padding:0;border:0;background:none;color:var(--lvs5-band-ink);font:inherit;font-size:.9375rem;font-weight:700;text-decoration:underline;text-decoration-color:oklch(from var(--lvs5-band-ink) l c h / .5);text-underline-offset:.18em;cursor:pointer}
.lvs5-back:hover{text-decoration-color:currentColor}
.lvs5-back:focus-visible{outline:3px solid var(--lvs5-band-ink);outline-offset:2px;border-radius:4px}
.lvs5-btn{
--b:var(--button-bg,var(--cta,oklch(0.58 0.21 29)));
--b2:var(--button-bg-2,var(--cta-2,oklch(0.51 0.21 29)));
display:inline-flex;align-items:center;justify-content:center;gap:10px;
width:100%;min-height:72px;padding:12px 28px;border:0;
border-radius:var(--button-radius,var(--radius,12px));
background:linear-gradient(oklch(from var(--b) calc(l + .04) c h),oklch(from var(--b2) calc(l - .02) c h));
color:var(--button-ink,var(--cta-ink,oklch(1 0 0)));
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;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(--b) calc(l + .14) c h / .7),inset 0 -3px 0 oklch(from var(--b) calc(l - .16) c h),0 1px 2px oklch(from var(--lvs5-shadow) l c h / .45),0 8px 16px -6px oklch(from var(--lvs5-shadow) l c h / .6));
transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.lvs5-btn:not(:disabled):hover,.lvs5-btn.is-hover:not(:disabled){
background:linear-gradient(oklch(from var(--b) calc(l - .01) c h),oklch(from var(--b2) calc(l - .07) c h));
transform:translateY(-1px);
box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--b) calc(l + .12) c h / .7),inset 0 -3px 0 oklch(from var(--b) calc(l - .2) c h),0 1px 2px oklch(from var(--lvs5-shadow) l c h / .5),0 12px 20px -6px oklch(from var(--lvs5-shadow) l c h / .66));
}
.lvs5-btn:not(:disabled):active,.lvs5-btn.is-active:not(:disabled){
background:linear-gradient(oklch(from var(--b) calc(l - .04) c h),oklch(from var(--b2) calc(l - .08) c h));
transform:translateY(1px);
box-shadow:inset 0 2px 4px oklch(from var(--b) calc(l - .22) c h / .55),inset 0 -2px 0 oklch(from var(--b) calc(l - .16) c h),0 1px 1px oklch(from var(--lvs5-shadow) l c h / .4);
}
.lvs5-btn:disabled{background:var(--button-2-bg,var(--secondary,oklch(0.93 0.015 263)));color:var(--button-2-ink,var(--secondary-ink,oklch(0.21 0.034 263)));box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--lvs5-shadow) l c h / .25)));text-shadow:none;cursor:not-allowed;transform:none}
.lvs5-btn:focus-visible{outline:3px solid var(--lvs5-band-ink);outline-offset:3px}
.lvs5-stage{grid-area:stage;position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:28px;min-height:600px;padding:clamp(48px,6vw,88px) 0 clamp(40px,5vw,72px) clamp(40px,6vw,96px)}
.lvs5-edge,.lvs5-cut{position:absolute;inset:0;pointer-events:none;z-index:0}
.lvs5-edge{background:var(--accent-fill,var(--lvs5-accent));clip-path:polygon(calc(18% - 10px) 0,100% 0,100% 100%,0 100%)}
.lvs5-cut{overflow:hidden;background:var(--surface,oklch(1 0 0));clip-path:polygon(18% 0,100% 0,100% 100%,10px 100%)}
.lvs5-fan{position:relative;z-index:1;display:grid;justify-items:center;align-items:stretch;width:100%;padding-block:24px 16px;touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}
.lvs5-fan.is-dragging{cursor:grabbing}
.lvs5-card{
grid-area:1 / 1;position:relative;display:flex;flex-direction:column;width:var(--lvs5-card-w);margin:0;padding:10px;
border:1px solid var(--card-border,oklch(from var(--lvs5-ink) l c h / .12));
border-radius:var(--card-radius,var(--radius,14px));
background:var(--lvs5-card);color:var(--lvs5-ink);font:inherit;text-align:left;cursor:pointer;
box-shadow:var(--card-shadow,var(--shadow-md,0 1px 2px oklch(from var(--lvs5-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--lvs5-shadow) l c h / .2)));
z-index:var(--z,1);
transform-origin:50% 60%;
transform:translateX(calc(var(--sx,0) * var(--lvs5-spread) + var(--lvs5-drag,0px))) translateY(calc(var(--ad,0) * var(--lvs5-drop) + var(--lift,0px))) rotate(calc(var(--sd,0) * var(--lvs5-tilt))) scale(calc(1 - var(--ad,0) * .05));
transition:transform .45s cubic-bezier(.2,.7,.2,1),box-shadow .2s ease,opacity .3s ease,visibility .3s,border-color .2s ease;
animation:lvs5-deal .45s cubic-bezier(.2,.7,.2,1) backwards;
animation-delay:calc(var(--ad,0) * .07s);
}
.lvs5-card.is-top{--lift:-12px;border-color:oklch(from var(--lvs5-accent) l c h / .5);box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--lvs5-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--lvs5-shadow) l c h / .32))}
.lvs5-card.is-far{opacity:0;visibility:hidden;pointer-events:none}
.lvs5-card.is-top[aria-disabled=true]{cursor:not-allowed}
.lvs5-card:focus-visible{outline:3px solid var(--field-focus,var(--lvs5-accent));outline-offset:4px}
.lvs5-fan.is-dragging .lvs5-card{transition:none;cursor:grabbing}
@media (hover:hover){
.lvs5-card:not(.is-top):hover{--lift:-8px;box-shadow:var(--shadow-lg,0 2px 4px oklch(from var(--lvs5-shadow) l c h / .22),0 12px 24px -8px oklch(from var(--lvs5-shadow) l c h / .32))}
.lvs5-card.is-playable:hover .lvs5-play{transform:translate(-50%,-50%) scale(1.06)}
}
.lvs5-media{position:relative;display:block;aspect-ratio:4 / 3;overflow:hidden;border-radius:10px;background:color-mix(in oklch,var(--lvs5-ink) 6%,var(--lvs5-card))}
.lvs5-media img{display:block;width:100%;height:100%;object-fit:cover;object-position:center;-webkit-user-drag:none}
.lvs5-card.s-watched .lvs5-media img{filter:saturate(.7)}
.lvs5-card.s-locked .lvs5-media img{filter:blur(10px) saturate(.45);transform:scale(1.18)}
.lvs5-fallback,.lvs5-veil{position:absolute;inset:0;display:grid;place-items:center}
.lvs5-veil{align-content:center;gap:10px;padding:12px;background:oklch(from var(--lvs5-band) l c h / .58)}
.lvs5-unlock{display:inline-flex;align-items:center;gap:6px;min-height:30px;padding:4px 12px;border-radius:999px;background:var(--lvs5-card);color:var(--lvs5-ink);font-size:.875rem;font-weight:800;line-height:1.2;white-space:nowrap;box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--lvs5-shadow) l c h / .3))}
.lvs5-unlock svg{width:16px;height:16px;flex:0 0 auto}
.lvs5-play{
--b:var(--button-bg,var(--cta,oklch(0.58 0.21 29)));
position:absolute;left:50%;top:50%;transform:translate(-50%,-50%);display:grid;place-items:center;width:64px;height:64px;border-radius:999px;
background:linear-gradient(oklch(from var(--b) calc(l + .04) c h),oklch(from var(--b) calc(l - .06) c h));
color:var(--button-ink,var(--cta-ink,oklch(1 0 0)));
box-shadow:inset 0 1px 0 oklch(from var(--b) calc(l + .14) c h / .7),0 2px 3px oklch(from var(--lvs5-shadow) l c h / .4),0 10px 18px -6px oklch(from var(--lvs5-shadow) l c h / .55);
transition:transform .16s ease;
}
.lvs5-play svg{width:26px;height:26px;margin-left:3px}
.lvs5-done{position:absolute;top:10px;right:10px;display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:var(--success,oklch(0.5 0.138 150));color:var(--status-glyph,#fff);box-shadow:0 1px 2px oklch(from var(--lvs5-shadow) l c h / .4)}
.lvs5-done svg{width:18px;height:18px}
.lvs5-body{display:block;flex:1 0 auto;padding:14px 6px 8px}
.lvs5-meta{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:8px}
.lvs5-num{font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;color:var(--lvs5-muted)}
.lvs5-pill{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 12px;border-radius:999px;background:color-mix(in oklch,var(--lvs5-ink) 6%,var(--lvs5-card));color:var(--lvs5-ink);font-size:.875rem;font-weight:800;line-height:1.2;white-space:nowrap}
.lvs5-pill svg{width:16px;height:16px;color:var(--success,oklch(0.5 0.138 150))}
.lvs5-card.s-current .lvs5-pill{background:var(--accent-fill,var(--lvs5-accent));color:var(--accent-fill-ink,var(--lvs5-card))}
.lvs5-ctitle{display:block;margin-top:12px;font-family:var(--font-display,inherit);font-size:1.3125rem;line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-.01em;text-transform:var(--display-case,none);text-wrap:balance}
.lvs5-cline{display:block;margin-top:8px;font-size:.9375rem;line-height:1.4;color:var(--lvs5-muted);text-wrap:pretty}
.lvs5-nav{position:relative;z-index:2;display:inline-flex;align-items:center;gap:4px;padding:6px;border-radius:999px;background:var(--lvs5-card);color:var(--lvs5-ink);border:1px solid var(--card-border,oklch(from var(--lvs5-ink) l c h / .12));box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--lvs5-shadow) l c h / .22),0 4px 10px -2px oklch(from var(--lvs5-shadow) l c h / .2))}
.lvs5-navbtn{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:999px;background:color-mix(in oklch,var(--lvs5-ink) 6%,var(--lvs5-card));color:var(--lvs5-ink);cursor:pointer;transition:background .16s ease,transform .16s ease}
.lvs5-navbtn svg{width:20px;height:20px}
.lvs5-navbtn:hover:not(:disabled){background:color-mix(in oklch,var(--lvs5-ink) 12%,var(--lvs5-card))}
.lvs5-navbtn:active:not(:disabled){transform:scale(.94)}
.lvs5-navbtn:disabled{cursor:not-allowed;color:color-mix(in oklch,var(--lvs5-ink) 40%,var(--lvs5-card))}
.lvs5-navbtn:focus-visible{outline:3px solid var(--field-focus,var(--lvs5-accent));outline-offset:2px}
.lvs5-count{padding:0 12px;font-size:.9375rem;font-weight:800;line-height:1.2;font-variant-numeric:tabular-nums;white-space:nowrap}
.lvs5-sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.lvs5-rise{animation:lvs5-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i,0) * .07s)}
@keyframes lvs5-rise{from{opacity:.82;transform:translateY(8px)}}
@keyframes lvs5-deal{from{opacity:.82;transform:translateY(24px) scale(.94)}}
@media (max-width:1179px){
.lvs5{grid-template-columns:minmax(0,1fr);grid-template-rows:auto auto auto;grid-template-areas:'copy' 'stage' 'action';padding-inline:var(--lvs5-gutter);--lvs5-spread:clamp(56px,10vw,110px)}
.lvs5-copy{padding:clamp(56px,8vw,96px) 0 0}
.lvs5-stage{min-height:0;margin-top:clamp(32px,5vw,48px);margin-inline:calc(var(--lvs5-gutter) * -1);padding:72px 0 64px}
.lvs5-cut{clip-path:polygon(0 40px,100% 0,100% calc(100% - 40px),0 100%)}
.lvs5-edge{clip-path:polygon(0 32px,100% -8px,100% calc(100% - 32px),0 calc(100% + 8px))}
.lvs5-action{padding:clamp(28px,5vw,40px) 0 clamp(64px,8.5vw,96px)}
}
@media (max-width:600px){
.lvs5{--lvs5-spread:22px;--lvs5-tilt:2.5deg;--lvs5-drop:6px}
.lvs5-card{width:min(310px,calc(100% - 56px))}
.lvs5-stage{gap:24px;padding:64px 0 56px}
.lvs5-btn{width:100%;padding-inline:20px}
}
@media (prefers-reduced-motion:reduce){
.lvs5-rise,.lvs5-card{animation:none}
.lvs5-card,.lvs5-btn,.lvs5-play,.lvs5-navbtn{transition:none}
.lvs5-btn:not(:disabled):hover,.lvs5-btn.is-hover:not(:disabled),.lvs5-btn:not(:disabled):active,.lvs5-btn.is-active:not(:disabled){transform:none}
}
`
pieces/content/launch-video-series-5/specimen.tsx 62 lines
import __studioImage9bc1c9dc from "../assets/9349546c80026f21.webp";
import __studioImage9e8c71f6 from "../assets/987986a3d0253e88.webp";
import __studioImage03edc591 from "../assets/f1c29e0ae6b6cd4f.webp";
import { LaunchVideoSeries5, type LaunchVideoSeries5State } from '../launch-video-series-5'
import { slot } from '../../slots'
export const states = ['default', 'hover', 'active', 'disabled']
export default function LaunchVideoSeries5Specimen({ state = 'default' }: { state?: LaunchVideoSeries5State }) {
const bareIron = slot(
'item-1',
__studioImage9bc1c9dc,
)
const seasoned = slot(
'item-2',
__studioImage9e8c71f6,
)
const sear = slot(
'item-3',
__studioImage03edc591,
)
return (
<LaunchVideoSeries5
state={state}
current={1}
headline={{ lead: 'Four short videos that turn one skillet into ', mark: 'the pan you reach for every night', after: '.' }}
lead='Video 2 is ready now. Swipe the fan to see what the next two videos reveal.'
note='Free to watch. Each video opens the next one when you finish it.'
videos={[
{
title: 'Strip it back to bare iron',
detail: 'Clear old gunk and rust so your pan starts clean.',
length: '11 min',
image: bareIron,
imageAlt: 'A bare, freshly stripped cast-iron skillet on a butcher-block counter',
},
{
title: 'Season it once, cook on it for life',
detail: 'The thin-coat oven method that bakes on a slick, hard finish.',
length: '14 min',
image: seasoned,
imageAlt: 'A glossy, freshly seasoned cast-iron skillet on a walnut table',
},
{
title: 'Sear like a steakhouse',
teaser: 'The preheat most cooks skip, and the crust it gives you.',
length: '9 min',
image: sear,
imageAlt: 'A ribeye steak searing in a cast-iron skillet',
},
{
title: 'Bake in it, from cornbread to cobbler',
teaser: 'Why a hot skillet bakes a crisper crust than a sheet pan.',
length: '16 min',
image: bareIron,
imageAlt: 'A cast-iron skillet on a wooden counter',
},
]}
/>
)
}
| Name | Type | Details |
|---|---|---|
videos OptionalLaunchVideoSeries5 |
FanVideo[] |
Default DEFAULT_VIDEOS
|
current OptionalLaunchVideoSeries5 |
number |
Default 1
|
headline OptionalLaunchVideoSeries5 |
FanHeadline |
Default DEFAULT_HEADLINE
|
lead OptionalLaunchVideoSeries5 |
React.ReactNode |
Default DEFAULT_LEAD
|
note OptionalLaunchVideoSeries5 |
React.ReactNode |
|
onAction OptionalLaunchVideoSeries5 |
(index: number, video: FanVideo) => void |
|
onBrowse OptionalLaunchVideoSeries5 |
(index: number) => void |
|
copy OptionalLaunchVideoSeries5 |
Partial<LaunchVideoSeries5Copy> |
|
state OptionalLaunchVideoSeries5 |
LaunchVideoSeries5State |
Default 'default'
|
className OptionalLaunchVideoSeries5 |
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-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.
-
4788bc008c79471c.webp
image/webp · 13.9 KB
-
839cc020060f63a3.webp
image/webp · 9.49 KB
-
9349546c80026f21.webp
image/webp · 356 KB
-
987986a3d0253e88.webp
image/webp · 177 KB
-
e0015f5afe2d03e2.webp
image/webp · 29.5 KB
-
f1c29e0ae6b6cd4f.webp
image/webp · 229 KB