Value Video 2
Reverse-squeeze micro-series: three free, ungated videos prove the method, then one email field unlocks the finale.
Use it in a prompt
Use content/value-video-2 from the FunnelDNA library. Follow the skill and theme contract. Ask me for the copy, images, and brand details you need; do not invent proof.
Paste into Claude or ChatGPT with FunnelDNA connected (MCP setup), or alongside the skill.
Use it in code
- Save
component.tsx(Code tab) ascomponents/funneldna/content/value-video-2.tsx. - Import it and pass your copy and images (Props tab):
import { ValueVideo2 } from "@/components/funneldna/content/value-video-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/value-video-2/component.tsx 580 lines
// layout: spotlight-row
// Reverse-squeeze micro-series: three free, ungated videos prove the method, then one email field unlocks the finale.
import * as React from "react";
import { AlertCircle, Check, Clock, Loader2, Lock } from "lucide-react";
import { FX_HOST, Spot, Spotlight } from "../fx/fx";
import lockSpot from "../fx/spots/lock";
export type ValueVideoEpisode = {
title: string;
runtime: string; // shown as "{runtime} min", e.g. "4:12"
summary?: string; // one line under the title while it is in the spotlight
image?: string; // poster still (slot item-n)
imageAlt?: string;
embed?: React.ReactNode; // the page's real video embed; replaces the still in the spotlight
};
export type ValueVideoFinale = { title: string; runtime?: string };
// Templates use {n} (part number), {total}, {last} (last free part), {finale} and {runtime}.
export type ValueVideo2Copy = {
partLabel: string;
nowShowing: string;
watch: string;
rewatch: string;
watched: string;
minutes: string;
rowLabel: string;
spotlightLabel: string;
finaleNote: string;
askHeadline: string;
askLead: string;
emailLabel: string;
emailPlaceholder: string;
privacy: string;
submit: string;
submitting: string;
errorEmpty: string;
errorInvalid: string;
submitError: string;
keepWatching: string;
psLabel: string;
ps: string;
receiptLabel: string;
free: string;
finaleValue: string;
totalLabel: string;
totalValue: string;
sampleInvalidEmail: string; // pre-filled value for the "error" state preview
};
export type ValueVideo2Props = {
headline?: React.ReactNode;
lead?: string;
episodes?: ValueVideoEpisode[];
finale?: ValueVideoFinale;
initialActive?: number; // index of the episode that starts in the spotlight
initialWatched?: number[]; // indexes already marked watched (page memory only)
copy?: Partial<ValueVideo2Copy>;
onWatch?: (episode: ValueVideoEpisode, index: number) => void; // wire to the page's real player
onSubmit?: (values: { email: string }) => void | Promise<unknown>;
disabled?: boolean;
state?: "default" | "error" | "disabled";
className?: string;
};
const DEFAULT_COPY: ValueVideo2Copy = {
partLabel: "Part {n}",
nowShowing: "Now showing · Part {n} of {total}",
watch: "Watch part {n}",
rewatch: "Watch part {n} again",
watched: "Watched",
minutes: "{runtime} min",
rowLabel: "More free parts in this series",
spotlightLabel: "Video in the spotlight",
finaleNote: "Unlocks with your email",
askHeadline: "Get part {n}: {finale}",
askLead: "Parts 1 to {last} stay free. Part {n} joins them into one plan you can use this week.",
emailLabel: "Email address",
emailPlaceholder: "you@example.com",
privacy: "We respect your inbox. Unsubscribe anytime.",
submit: "Send Me Part {n}",
submitting: "Sending part {n}…",
errorEmpty: "Enter your email so we know where to send part {n}.",
errorInvalid: "That email looks incomplete. Check it and try again.",
submitError: "We couldn't send it just now. Please try again.",
keepWatching: "or watch part {n} first",
psLabel: "P.S.",
ps: "Parts 1 to {last} stay free whether you sign up or not.",
receiptLabel: "What the series costs you",
free: "Free",
finaleValue: "Your email",
totalLabel: "Total",
totalValue: "Free",
sampleInvalidEmail: "jordan@example",
};
const DEFAULT_EPISODES: ValueVideoEpisode[] = [
{ title: "Find the leak in your current process", runtime: "4:00" },
{ title: "Build the simple system that fixes it", runtime: "6:00" },
{ title: "Run it in ten minutes a week", runtime: "5:00" },
];
const DEFAULT_FINALE: ValueVideoFinale = { title: "The one that puts it together" };
const EMAIL_RE = /^[^\s@]+@[^\s@]+\.[^\s@]{2,}$/;
export function ValueVideo2({
headline = "Watch the free series. Then get the finale.",
lead = "Three short videos, free to watch right now. No email, no sign-up.",
episodes = DEFAULT_EPISODES,
finale = DEFAULT_FINALE,
initialActive = 0,
initialWatched = [],
copy: copyProp,
onWatch,
onSubmit,
disabled = false,
state = "default",
className,
}: ValueVideo2Props) {
const copy = { ...DEFAULT_COPY, ...copyProp };
const uid = React.useId().replace(/:/g, "");
const total = episodes.length;
const finaleN = total + 1;
const [active, setActive] = React.useState(() => Math.min(Math.max(initialActive, 0), Math.max(total - 1, 0)));
const [watched, setWatched] = React.useState<number[]>(initialWatched);
const [email, setEmail] = React.useState(state === "error" ? copy.sampleInvalidEmail : "");
const [touched, setTouched] = React.useState(state === "error");
const [loading, setLoading] = React.useState(false);
const [sendError, setSendError] = React.useState<string | null>(null);
const titleRef = React.useRef<HTMLHeadingElement>(null);
const inputRef = React.useRef<HTMLInputElement>(null);
const focusTitle = React.useRef(false);
const alive = React.useRef(true);
React.useEffect(() => {
alive.current = true;
return () => {
alive.current = false;
};
}, []);
React.useEffect(() => {
if (state === "error") {
setEmail(copy.sampleInvalidEmail);
setTouched(true);
} else {
setEmail("");
setTouched(false);
}
}, [state, copy.sampleInvalidEmail]);
React.useEffect(() => {
if (focusTitle.current) {
focusTitle.current = false;
titleRef.current?.focus();
}
}, [active]);
const isOff = disabled || state === "disabled";
const trimmed = email.trim();
const valid = EMAIL_RE.test(trimmed);
const fieldError = touched
? !trimmed
? fill(copy.errorEmpty, { n: finaleN })
: !valid
? copy.errorInvalid
: null
: null;
const blocked = isOff || loading || (trimmed !== "" && !valid);
const ep = episodes[active];
const isWatched = (i: number) => watched.includes(i);
const others = episodes.filter((_, i) => i !== active).length;
let nextIdx: number | null = null;
for (let step = 1; step < total; step++) {
const i = (active + step) % total;
if (!isWatched(i)) {
nextIdx = i;
break;
}
}
const errId = `${uid}-err`;
const hintId = `${uid}-hint`;
const inputId = `${uid}-email`;
const spotId = `${uid}-spot`;
function choose(i: number) {
focusTitle.current = true;
setActive(i);
}
function watch() {
setWatched((w) => (w.includes(active) ? w : [...w, active]));
if (ep) onWatch?.(ep, active);
}
async function handleSubmit(e: React.FormEvent<HTMLFormElement>) {
e.preventDefault();
if (isOff || loading) return;
setTouched(true);
if (!valid) {
inputRef.current?.focus();
return;
}
setSendError(null);
setLoading(true);
try {
await onSubmit?.({ email: trimmed });
} catch {
if (alive.current) setSendError(copy.submitError);
} finally {
if (alive.current) setLoading(false);
}
}
return (
<section
className={`cf-value-video-2${className ? ` ${className}` : ""}`}
style={FX_HOST}
aria-labelledby={`${uid}-h`}
>
<style>{CSS}</style>
<Spotlight />
<div className="vv-inner">
<header className="vv-head">
<h2 id={`${uid}-h`} className="vv-h2">{headline}</h2>
{lead ? <p className="vv-lead">{lead}</p> : null}
</header>
{ep ? (
<div className="vv-stage vv-swap" key={active} id={spotId} role="region" aria-label={copy.spotlightLabel}>
<div className="vv-frame">
{ep.embed ? (
<div className="vv-embed">{ep.embed}</div>
) : ep.image ? (
<img src={ep.image} alt={ep.imageAlt ?? ""} width={1600} height={900} />
) : (
<span className="vv-fallback" aria-hidden="true">{pad(active + 1)}</span>
)}
</div>
<div className="vv-info">
<div className="vv-info-text">
<p className="vv-now">
<span className="vv-pips" aria-hidden="true">
{episodes.map((_, i) => (
<span
key={i}
className={`vv-pip${i === active ? " is-active" : isWatched(i) ? " is-watched" : ""}`}
/>
))}
</span>
<span>{fill(copy.nowShowing, { n: active + 1, total })}</span>
</p>
<h3 className="vv-title" ref={titleRef} tabIndex={-1}>{ep.title}</h3>
{ep.summary ? <p className="vv-summary">{ep.summary}</p> : null}
<p className="vv-meta">
<span className="vv-run">
<Clock className="vv-ico" size={16} strokeWidth={2.5} aria-hidden="true" />
{fill(copy.minutes, { runtime: ep.runtime })}
</span>
{isWatched(active) ? <WatchedBadge label={copy.watched} /> : null}
</p>
</div>
<button type="button" className="vv-watch" onClick={watch}>
{fill(isWatched(active) ? copy.rewatch : copy.watch, { n: active + 1 })}
</button>
</div>
</div>
) : null}
<ul className="vv-row" aria-label={copy.rowLabel} style={{ "--vv-cols": others + 1 } as React.CSSProperties}>
{episodes.map((e, i) =>
i === active ? null : (
<li key={i}>
<button type="button" className="vv-tile" onClick={() => choose(i)} aria-controls={spotId}>
<span className="vv-thumb">
{e.image ? (
<img src={e.image} alt="" width={640} height={360} loading="lazy" />
) : (
<span className="vv-fallback" aria-hidden="true">{pad(i + 1)}</span>
)}
</span>
<span className="vv-tile-meta">
{fill(copy.partLabel, { n: i + 1 })} · {e.runtime}
</span>
<span className="vv-tile-title">{e.title}</span>
{isWatched(i) ? (
<span className="vv-tile-foot"><WatchedBadge label={copy.watched} /></span>
) : null}
</button>
</li>
),
)}
<li className="vv-finale-li">
<button
type="button"
className="vv-tile vv-tile-finale"
onClick={() => inputRef.current?.focus()}
aria-controls={inputId}
>
<span className="vv-thumb vv-locked">
<Spot src={lockSpot} size={72} />
</span>
<span className="vv-tile-meta">
{fill(copy.partLabel, { n: finaleN })}
{finale.runtime ? ` · ${finale.runtime}` : ""}
</span>
<span className="vv-tile-title">{finale.title}</span>
<span className="vv-tile-note">
<Lock className="vv-ico" size={16} strokeWidth={2.5} aria-hidden="true" />
{copy.finaleNote}
</span>
</button>
</li>
</ul>
<div className="vv-ask">
<div className="vv-ask-head">
<h3 className="vv-ask-h">{fill(copy.askHeadline, { n: finaleN, finale: finale.title })}</h3>
{copy.askLead ? (
<p className="vv-ask-lead">{fill(copy.askLead, { n: finaleN, last: total })}</p>
) : null}
</div>
<form className="vv-form" noValidate onSubmit={handleSubmit} aria-busy={loading}>
<label htmlFor={inputId} className="vv-label">{copy.emailLabel}</label>
<input
ref={inputRef}
id={inputId}
className={`vv-input${fieldError ? " is-invalid" : ""}`}
type="email"
name="email"
autoComplete="email"
inputMode="email"
placeholder={copy.emailPlaceholder}
required
value={email}
disabled={isOff}
readOnly={loading}
aria-invalid={fieldError ? true : undefined}
aria-describedby={[fieldError ? errId : null, copy.privacy ? hintId : null].filter(Boolean).join(" ") || undefined}
onChange={(e) => {
setEmail(e.target.value);
if (sendError) setSendError(null);
}}
onBlur={() => {
if (email.trim() !== "") setTouched(true);
}}
onKeyDown={(e) => {
if (e.key === "Enter" && !valid) setTouched(true);
}}
/>
{fieldError ? (
<p id={errId} className="vv-error" role="alert">
<AlertCircle className="vv-ico" size={16} strokeWidth={2.5} aria-hidden="true" />
{fieldError}
</p>
) : null}
{copy.privacy ? (
<p id={hintId} className="vv-hint">
<Lock className="vv-ico" size={16} strokeWidth={2.5} aria-hidden="true" />
{copy.privacy}
</p>
) : null}
<button type="submit" className={`vv-submit${loading ? " is-loading" : ""}`} disabled={blocked}>
{loading ? (
<>
<Loader2 className="vv-spin" size={20} strokeWidth={2.5} aria-hidden="true" />
<span>{fill(copy.submitting, { n: finaleN })}</span>
</>
) : (
<span>{fill(copy.submit, { n: finaleN })}</span>
)}
</button>
{sendError ? (
<p className="vv-error vv-send-error" role="alert">
<AlertCircle className="vv-ico" size={16} strokeWidth={2.5} aria-hidden="true" />
{sendError}
</p>
) : null}
{nextIdx !== null && copy.keepWatching ? (
<p className="vv-quiet">
<button type="button" onClick={() => nextIdx !== null && choose(nextIdx)}>
{fill(copy.keepWatching, { n: nextIdx + 1 })}
</button>
</p>
) : null}
{copy.ps ? (
<p className="vv-ps">
<strong>{copy.psLabel}</strong> {fill(copy.ps, { last: total, n: finaleN })}
</p>
) : null}
</form>
<div className="vv-receipt" role="group" aria-label={copy.receiptLabel}>
<ol>
{episodes.map((e, i) => (
<li key={i} className={`vv-r${i === active ? " is-active" : ""}`}>
<span className="vv-r-n">
{isWatched(i) ? (
<span className="vv-tick" role="img" aria-label={copy.watched}>
<Check size={12} strokeWidth={3} aria-hidden="true" />
</span>
) : (
pad(i + 1)
)}
</span>
<span className="vv-r-title">{e.title}</span>
<span className="vv-r-run">{fill(copy.minutes, { runtime: e.runtime })}</span>
<span className="vv-r-v">{copy.free}</span>
</li>
))}
<li className="vv-r vv-r-finale">
<span className="vv-r-n">{pad(finaleN)}</span>
<span className="vv-r-title">{finale.title}</span>
{finale.runtime ? (
<span className="vv-r-run">{fill(copy.minutes, { runtime: finale.runtime })}</span>
) : null}
<span className="vv-r-v">{copy.finaleValue}</span>
</li>
</ol>
<p className="vv-total">
<span className="vv-total-l">{copy.totalLabel}</span>
<span className="vv-total-v">{copy.totalValue}</span>
</p>
</div>
</div>
</div>
</section>
);
}
export default ValueVideo2;
function WatchedBadge({ label }: { label: string }) {
return (
<span className="vv-done">
<span className="vv-tick" aria-hidden="true">
<Check size={12} strokeWidth={3} />
</span>
{label}
</span>
);
}
function pad(n: number) {
return String(n).padStart(2, "0");
}
function fill(template: string, vars: Record<string, string | number>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => (key in vars ? String(vars[key]) : match));
}
const CSS = `
.cf-value-video-2{--vv-soft:color-mix(in oklch,var(--band-ink) 82%,var(--band));--vv-shadow:var(--shadow,oklch(0.22 0.03 260));--vv-glyph:var(--status-glyph,#fff);position:relative;isolation:isolate;overflow:hidden;background:var(--band);color:var(--band-ink);font-family:var(--font-body);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px)}
.cf-value-video-2 *,.cf-value-video-2 *::before,.cf-value-video-2 *::after{box-sizing:border-box}
.cf-value-video-2 :is(h2,h3,p,ul,ol){margin:0}
.cf-value-video-2 :is(ul,ol){padding:0;list-style:none}
.cf-value-video-2 img{display:block;max-width:100%}
.cf-value-video-2 .vv-ico{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em;flex:none}
.cf-value-video-2 .vv-inner{position:relative;z-index:1;max-width:960px;margin:0 auto}
.cf-value-video-2 .vv-head{text-align:center;max-width:46rem;margin:0 auto}
.cf-value-video-2 .vv-h2{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--band-ink)}
.cf-value-video-2 .vv-lead{margin:16px auto 0;max-width:40rem;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--vv-soft);text-wrap:pretty}
.cf-value-video-2 .vv-stage{margin-top:clamp(32px,4vw,48px)}
.cf-value-video-2 .vv-frame{position:relative;aspect-ratio:16/9;border-radius:12px;overflow:hidden;background:oklch(from var(--band) calc(l + 0.07) c h);filter:drop-shadow(0 2px 3px oklch(from var(--vv-shadow) l c h / .35)) drop-shadow(0 16px 20px oklch(from var(--vv-shadow) l c h / .3))}
.cf-value-video-2 .vv-frame img{width:100%;height:100%;object-fit:cover;object-position:center 40%}
.cf-value-video-2 .vv-embed{position:absolute;inset:0}
.cf-value-video-2 .vv-embed>*{display:block;width:100%;height:100%;border:0}
.cf-value-video-2 .vv-fallback{position:absolute;inset:0;display:grid;place-items:center;font-family:var(--font-display);font-weight:800;font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;color:var(--vv-soft)}
.cf-value-video-2 .vv-info{display:flex;align-items:center;justify-content:space-between;gap:24px;margin-top:24px}
.cf-value-video-2 .vv-info-text{flex:1;min-width:0}
.cf-value-video-2 .vv-now{display:flex;flex-wrap:wrap;align-items:center;gap:8px 12px;margin-bottom:12px;font-size:14px;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--vv-soft)}
.cf-value-video-2 .vv-pips{display:inline-flex;gap:4px}
.cf-value-video-2 .vv-pip{width:20px;height:4px;border-radius:999px;background:oklch(from var(--band-ink) l c h / .25);transition:background .16s ease}
.cf-value-video-2 .vv-pip.is-watched{background:var(--success)}
.cf-value-video-2 .vv-pip.is-active{background:var(--accent-fill,var(--accent))}
.cf-value-video-2 .vv-title{font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance;color:var(--band-ink);border-radius:6px}
.cf-value-video-2 .vv-title:focus{outline:none}
.cf-value-video-2 .vv-title:focus-visible{outline:3px solid var(--band-ink);outline-offset:4px}
.cf-value-video-2 .vv-summary{margin-top:8px;color:var(--vv-soft);text-wrap:pretty}
.cf-value-video-2 .vv-meta{display:flex;flex-wrap:wrap;align-items:center;gap:8px 16px;margin-top:8px;font-size:15px;line-height:1.4;font-weight:600;color:var(--vv-soft);font-variant-numeric:tabular-nums}
.cf-value-video-2 .vv-done{display:inline-flex;align-items:center;gap:8px;font-size:15px;line-height:1.4;font-weight:700;color:var(--band-ink)}
.cf-value-video-2 .vv-tick{display:inline-grid;place-items:center;flex:none;width:20px;height:20px;border-radius:999px;background:var(--success);color:var(--vv-glyph)}
.cf-value-video-2 .vv-watch{flex:none;display:inline-flex;align-items:center;justify-content:center;min-height:56px;padding:0 24px;border:1px solid var(--button-2-border,transparent);border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(var(--button-2-bg,var(--secondary)),var(--button-2-bg,var(--secondary))) var(--card);color:var(--button-2-ink,var(--secondary-ink));box-shadow:var(--button-2-shadow,var(--shadow-sm));font-family:var(--button-font,var(--font-display));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;white-space:nowrap;cursor:pointer;transition:transform .16s ease,background .16s ease,box-shadow .16s ease}
.cf-value-video-2 .vv-watch:hover{background-image:linear-gradient(oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.05) c h),oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.05) c h))}
.cf-value-video-2 .vv-watch:active{transform:translateY(1px);background-image:linear-gradient(oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.09) c h),oklch(from var(--button-2-bg,var(--secondary)) calc(l - 0.09) c h))}
.cf-value-video-2 .vv-watch:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-value-video-2 .vv-row{display:grid;grid-template-columns:repeat(var(--vv-cols,3),minmax(0,1fr));gap:clamp(12px,2vw,24px);margin-top:clamp(32px,4vw,48px)}
.cf-value-video-2 .vv-row>li{min-width:0}
.cf-value-video-2 .vv-tile{display:block;width:100%;padding:0;border:0;border-radius:12px;background:none;color:inherit;font:inherit;text-align:left;cursor:pointer;transition:transform .16s ease}
.cf-value-video-2 .vv-tile:hover{transform:translateY(-2px)}
.cf-value-video-2 .vv-tile:active{transform:translateY(0)}
.cf-value-video-2 .vv-tile:focus-visible{outline:3px solid var(--band-ink);outline-offset:6px}
.cf-value-video-2 .vv-thumb{position:relative;display:block;aspect-ratio:16/9;border-radius:8px;overflow:hidden;background:oklch(from var(--band) calc(l + 0.07) c h)}
.cf-value-video-2 .vv-thumb img{width:100%;height:100%;object-fit:cover;transition:transform .3s cubic-bezier(.2,.7,.2,1)}
.cf-value-video-2 .vv-tile:hover .vv-thumb img{transform:scale(1.04)}
.cf-value-video-2 .vv-locked{display:grid;place-items:center;box-shadow:inset 0 0 0 1px oklch(from var(--band-ink) l c h / .12)}
.cf-value-video-2 .vv-tile-meta{display:block;margin-top:12px;font-size:14px;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--vv-soft);font-variant-numeric:tabular-nums}
.cf-value-video-2 .vv-tile-title{display:block;margin-top:8px;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;color:var(--band-ink);text-wrap:pretty;text-decoration-color:oklch(from var(--band-ink) l c h / .5);text-underline-offset:.18em}
.cf-value-video-2 .vv-tile:hover .vv-tile-title{text-decoration-line:underline}
.cf-value-video-2 .vv-tile-foot{display:block;margin-top:8px}
.cf-value-video-2 .vv-tile-note{display:block;margin-top:8px;font-size:15px;line-height:1.4;font-weight:600;color:var(--vv-soft)}
.cf-value-video-2 .vv-ask{display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);grid-template-areas:"head head" "form receipt";gap:24px clamp(32px,5vw,56px);margin-top:clamp(48px,6vw,64px);padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / .12));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg))}
.cf-value-video-2 .vv-ask-head{grid-area:head}
.cf-value-video-2 .vv-ask-h{font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);font-size:clamp(2rem,3.6vw,3.25rem);line-height:1.06;text-wrap:balance;color:var(--ink)}
.cf-value-video-2 .vv-ask-lead{margin-top:16px;max-width:60ch;color:var(--muted);text-wrap:pretty}
.cf-value-video-2 .vv-form{grid-area:form;min-width:0}
.cf-value-video-2 .vv-label{display:block;margin-bottom:8px;font-size:17px;line-height:1.3;font-weight:700;color:var(--label-ink,var(--ink))}
.cf-value-video-2 .vv-input{display:block;width:100%;height:56px;padding:0 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);color:var(--field-ink);font-family:var(--font-body);font-size:17px;transition:border-color .16s ease,box-shadow .16s ease}
.cf-value-video-2 .vv-input::placeholder{color:color-mix(in oklch,var(--field-ink) 65%,var(--field));opacity:1}
.cf-value-video-2 .vv-input: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)}
.cf-value-video-2 .vv-input.is-invalid{border-color:var(--danger)}
.cf-value-video-2 .vv-input.is-invalid:focus{box-shadow:0 0 0 3px oklch(from var(--danger) l c h / .3)}
.cf-value-video-2 .vv-input:disabled{background:color-mix(in oklch,var(--ink) 5%,var(--field));cursor:not-allowed}
.cf-value-video-2 .vv-error{margin-top:8px;font-size:15px;line-height:1.4;font-weight:600;color:var(--danger);text-wrap:pretty}
.cf-value-video-2 .vv-send-error{text-align:center}
.cf-value-video-2 .vv-hint{margin-top:8px;font-size:15px;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-value-video-2 .vv-submit{display:inline-flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:56px;margin-top:16px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l + 0.04) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);font-family:var(--button-font,var(--font-display));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;white-space:nowrap;cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.14) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--vv-shadow) l c h / .3),0 8px 16px -6px oklch(from var(--vv-shadow) l c h / .45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-value-video-2 .vv-submit:not(:disabled):hover{background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - 0.01) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.07) c h));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.1) c h / .7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.2) c h),0 1px 2px oklch(from var(--vv-shadow) l c h / .32),0 10px 18px -6px oklch(from var(--vv-shadow) l c h / .52))}
.cf-value-video-2 .vv-submit:not(:disabled):active{transform:translateY(1px);box-shadow:inset 0 2px 4px oklch(from var(--vv-shadow) l c h / .35),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--vv-shadow) l c h / .25)}
.cf-value-video-2 .vv-submit:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .6);outline-offset:3px}
.cf-value-video-2 .vv-submit:disabled:not(.is-loading){background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed}
.cf-value-video-2 .vv-submit.is-loading{cursor:progress}
.cf-value-video-2 .vv-spin{flex:none;animation:vv-spin .8s linear infinite}
@keyframes vv-spin{to{transform:rotate(360deg)}}
.cf-value-video-2 .vv-quiet{margin-top:12px;text-align:center}
.cf-value-video-2 .vv-quiet button{padding:4px 2px;border:0;background:none;font-family:var(--font-body);font-size:15px;line-height:1.4;font-weight:600;color:var(--link,var(--accent));text-decoration:underline;text-decoration-color:oklch(from var(--link,var(--accent)) l c h / .45);text-underline-offset:.18em;cursor:pointer;border-radius:4px}
.cf-value-video-2 .vv-quiet button:hover{color:oklch(from var(--link,var(--accent)) calc(l - 0.08) c h);text-decoration-color:currentColor}
.cf-value-video-2 .vv-quiet button:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / .5);outline-offset:2px}
.cf-value-video-2 .vv-ps{margin-top:24px;color:var(--ink);text-wrap:pretty}
.cf-value-video-2 .vv-ps strong{font-weight:800}
.cf-value-video-2 .vv-receipt{grid-area:receipt;align-self:start;padding:8px 20px 20px;border-radius:10px;background:color-mix(in oklch,var(--ink) 4%,var(--card))}
.cf-value-video-2 .vv-r{display:grid;grid-template-columns:28px minmax(0,1fr) auto;grid-template-areas:"n title v" "n run .";column-gap:12px;row-gap:2px;align-items:start;padding:12px 0;border-top:1px solid oklch(from var(--ink) l c h / .1)}
.cf-value-video-2 .vv-r:first-child{border-top-color:transparent}
.cf-value-video-2 .vv-r.is-active{margin-inline:-10px;padding-inline:10px;border-radius:8px;border-top-color:transparent;background:color-mix(in oklch,var(--accent) 10%,var(--card))}
.cf-value-video-2 .vv-r.is-active + .vv-r{border-top-color:transparent}
.cf-value-video-2 .vv-r-n{grid-area:n;padding-top:1px;font-size:14px;line-height:1.4;font-weight:800;font-variant-numeric:tabular-nums;color:var(--muted)}
.cf-value-video-2 .vv-r-title{grid-area:title;min-width:0;font-size:15px;line-height:1.35;font-weight:700;color:var(--ink);text-wrap:pretty}
.cf-value-video-2 .vv-r-run{grid-area:run;font-size:15px;line-height:1.4;font-weight:500;color:var(--muted);font-variant-numeric:tabular-nums}
.cf-value-video-2 .vv-r.is-active :is(.vv-r-n,.vv-r-run){color:var(--ink)}
.cf-value-video-2 .vv-r-v{grid-area:v;font-size:15px;line-height:1.35;font-weight:800;color:var(--ink);white-space:nowrap}
.cf-value-video-2 .vv-total{display:flex;align-items:baseline;justify-content:space-between;gap:16px;margin-top:16px}
.cf-value-video-2 .vv-total-l{font-weight:800;color:var(--ink)}
.cf-value-video-2 .vv-total-v{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;color:var(--ink)}
@keyframes vv-in{from{opacity:.82;transform:translateY(8px)}}
@media (prefers-reduced-motion:no-preference){.cf-value-video-2 .vv-swap{animation:vv-in .45s cubic-bezier(.2,.7,.2,1) both}}
@media (max-width:640px){
.cf-value-video-2 .vv-info{flex-direction:column;align-items:stretch;gap:20px}
.cf-value-video-2 .vv-watch{width:100%}
.cf-value-video-2 .vv-row{grid-template-columns:repeat(2,minmax(0,1fr))}
.cf-value-video-2 .vv-finale-li{display:none}
.cf-value-video-2 .vv-ask{grid-template-columns:minmax(0,1fr);grid-template-areas:"head" "receipt" "form"}
.cf-value-video-2 .vv-receipt{padding-inline:14px}
.cf-value-video-2 .vv-r{grid-template-columns:24px minmax(0,1fr) auto;grid-template-areas:"n title title" "n run v";column-gap:10px}
.cf-value-video-2 .vv-r-v{line-height:1.4}
.cf-value-video-2 .vv-form{margin-top:8px}
.cf-value-video-2 .vv-submit{padding:0 20px;min-height:60px}
}
@media (prefers-reduced-motion:reduce){
.cf-value-video-2 *,.cf-value-video-2 *::before,.cf-value-video-2 *::after{transition:none!important}
.cf-value-video-2 .vv-tile:hover,.cf-value-video-2 .vv-tile:active,.cf-value-video-2 .vv-watch:active,.cf-value-video-2 .vv-submit:not(:disabled):active{transform:none}
.cf-value-video-2 .vv-tile:hover .vv-thumb img{transform:none}
.cf-value-video-2 .vv-spin{animation:none}
}
`;
pieces/content/value-video-2/specimen.tsx 49 lines
import __studioImageacc60e14 from "../assets/d7e13e6a8d6f3cf5.webp";
import __studioImage48880592 from "../assets/0b11395a19504e6e.webp";
import __studioImagebbf493d3 from "../assets/98654c42883adadb.webp";
import { ValueVideo2 } from "../value-video-2";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "error", "disabled"];
export default function ValueVideo2Specimen({ state = "default" }: { state?: string }) {
const piece = state === "error" || state === "disabled" ? state : "default";
return (
<ValueVideo2
state={piece}
headline="Go from spreadsheet to pipeline in 3 short videos"
lead="Three free videos from the Pipewell team. No email, no sign-up. Start with part 1 below."
episodes={[
{
title: "Why your spreadsheet keeps losing deals",
runtime: "4:12",
summary: "Find the three columns where stalled deals hide.",
image: slot("item-1", __studioImageacc60e14),
imageAlt: "A business owner looking at a crowded spreadsheet on a laptop",
},
{
title: "Turn every row into a pipeline stage",
runtime: "6:40",
summary: "Sort your deals into five clear stages in one sitting.",
image: slot("item-2", __studioImage48880592),
imageAlt: "Hands sorting cards into five columns on a desk",
},
{
title: "The 10-minute Monday pipeline review",
runtime: "5:05",
summary: "Know which deals to chase before your first coffee.",
image: slot("item-3", __studioImagebbf493d3),
imageAlt: "A relaxed professional reviewing a tidy pipeline board on a monitor",
},
]}
finale={{ title: "The one that puts it together", runtime: "11:30" }}
copy={{
askLead: "Part 4 joins all three into one weekly routine inside Pipewell. Tell us where to send it.",
privacy: defaults.sample.registration.privacy,
ps: "Parts 1 to {last} stay free whether you sign up or not. Part {n} is the 11 minutes that make them stick.",
sampleInvalidEmail: "jordan@pipewell",
}}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalValueVideo2 |
React.ReactNode |
Default "Watch the free series. Then get the finale."
|
lead OptionalValueVideo2 |
string |
Default "Three short videos, free to watch right now. No email, no sign-up."
|
episodes OptionalValueVideo2 |
ValueVideoEpisode[] |
Default DEFAULT_EPISODES
|
finale OptionalValueVideo2 |
ValueVideoFinale |
Default DEFAULT_FINALE
|
initialActive OptionalValueVideo2 |
number |
Default 0
|
initialWatched OptionalValueVideo2 |
number[] |
Default []
|
copy OptionalValueVideo2 |
Partial<ValueVideo2Copy> |
|
onWatch OptionalValueVideo2 |
(episode: ValueVideoEpisode, index: number) => void |
|
onSubmit OptionalValueVideo2 |
(values: { email: string }) => void | Promise<unknown> |
|
disabled OptionalValueVideo2 |
boolean |
Default false
|
state OptionalValueVideo2 |
"default" | "error" | "disabled" |
Default "default"
|
className OptionalValueVideo2 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-border--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-border--field-focus--field-ink--field-radius- Form inputs: background, ink, border, radius and focus colour.
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.
-
0b11395a19504e6e.webp
image/webp · 65.9 KB
-
4788bc008c79471c.webp
image/webp · 13.9 KB
-
98654c42883adadb.webp
image/webp · 91.7 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
d7e13e6a8d6f3cf5.webp
image/webp · 74.1 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB