Webinar Replay 1
Webinar replay hero: a short, honest Q&A that serves the replay, the moments worth skipping to, the real take-down date and the offer with one Add To Cart action.
Use it in a prompt
Use hero/webinar-replay 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/hero/webinar-replay.tsx. - Import it and pass your copy and images (Props tab):
import { WebinarReplay } from "@/components/funneldna/hero/webinar-replay"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/hero/webinar-replay/component.tsx 415 lines
// layout: interview-qa
// Webinar replay hero: a short, honest Q&A that serves the replay, the moments worth skipping to, the real take-down date and the offer with one Add To Cart action.
import * as React from "react";
import { CalendarClock, Clock, Lock, Play, ShieldCheck, ShoppingCart } from "lucide-react";
export type ReplayMoment = {
time: string; // shown as written, e.g. "12:15" or "1:02:40"
label: string;
seconds?: number; // overrides the seconds parsed from time
};
export type ReplayItem = { name: string; detail?: string; image?: string; imageAlt?: string };
export type ReplayCopy = {
headlineNoExpiry: string; // replaces the headline when no expiry is supplied, so nothing implies a deadline
watchQ: string;
watchA: string;
momentsQ: string;
momentsA: string;
expiryQ: string;
expiryNotice: string; // "{expiry}" is replaced by the expiry text
expiryA: string;
offerQ: string;
offerA: string;
actionAria: string; // "{label}" and "{price}" are replaced
};
export type WebinarReplayProps = {
headline?: string; // used only when an expiry is supplied
emphasis?: string; // phrase inside the headline set in the theme's text-safe accent
lead?: React.ReactNode;
headingAs?: "h1" | "h2"; // h1 when this is the page's first screen
expiry?: string; // when the replay really comes down, as display text; omit and no deadline is shown
video?: React.ReactNode; // the page's real replay embed
videoPoster?: string; // slot "scene": a still that stands where the embed goes until the page supplies one
videoPosterAlt?: string;
videoCaption?: string;
moments?: ReplayMoment[];
onSeek?: (seconds: number, moment: ReplayMoment, index: number) => void; // wire to the page's player
productName?: string;
productImage?: string; // slot "product", transparent background
productImageAlt?: string;
items?: ReplayItem[]; // slots "item-1" … "item-n"
price?: string;
priceSuffix?: string;
priceNote?: string; // only when true for the offer
actionLabel?: string;
reassurance?: string;
guarantee?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
copy?: Partial<ReplayCopy>;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
export function WebinarReplay(props: WebinarReplayProps) {
const {
headline = "The replay is up for a limited time",
emphasis = "for a limited time",
lead = "You missed it live. Watch the full workshop here, jump to the parts you need, then grab the kit it's built on.",
headingAs = "h1",
expiry,
video,
videoPoster,
videoPosterAlt = "A still from the workshop replay",
videoCaption,
moments = [],
onSeek,
productName = "The Funnel Starter Kit",
productImage,
productImageAlt = "",
items = [],
price = "$47",
priceSuffix = "today. That's it.",
priceNote = "No subscription, no upsell to unlock it.",
actionLabel = "Add To Cart",
reassurance = "Secure checkout · Instant download",
guarantee = "30-day money-back guarantee",
href,
onAction,
copy,
state = "default",
className,
} = props;
const c: ReplayCopy = { ...DEFAULT_COPY, ...copy };
const [active, setActive] = React.useState<number | null>(null);
const uid = React.useId();
const H = headingAs;
const Q = headingAs === "h1" ? "h2" : "h3";
const N = headingAs === "h1" ? "h3" : "h4";
const title = expiry ? headline : c.headlineNoExpiry;
const [noticeBefore, noticeAfter = ""] = c.expiryNotice.split("{expiry}");
const disabled = state === "disabled";
const btnClass = `rp-btn${state === "hover" ? " is-hover" : ""}${state === "active" ? " is-active" : ""}`;
const btnAria = fill(c.actionAria, { label: actionLabel, price });
const btnInner = (
<>
<ShoppingCart size={20} strokeWidth={2.5} aria-hidden="true" />
<span>{actionLabel}</span>
<span className="rp-btn-sep" aria-hidden="true" />
<span className="rp-btn-price">{price}</span>
</>
);
const button =
href && !disabled ? (
<a className={btnClass} href={href} onClick={onAction} aria-label={btnAria}>
{btnInner}
</a>
) : (
<button type="button" className={btnClass} onClick={onAction} disabled={disabled} aria-label={btnAria}>
{btnInner}
</button>
);
const rows: { key: string; q: string; body: React.ReactNode }[] = [];
if (video || videoPoster) {
rows.push({
key: "watch",
q: c.watchQ,
body: (
<>
<p className="rp-a-lead">{c.watchA}</p>
<div className="rp-video">
{video ? (
<div className="rp-video-embed">{video}</div>
) : (
<img src={videoPoster} alt={videoPosterAlt} width={1280} height={720} decoding="async" />
)}
</div>
{videoCaption ? <p className="rp-cap">{videoCaption}</p> : null}
</>
),
});
}
if (moments.length) {
rows.push({
key: "moments",
q: c.momentsQ,
body: (
<>
<p className="rp-a-lead">{c.momentsA}</p>
<ul className="rp-moments">
{moments.map((m, i) => (
<li key={`${m.time}-${i}`}>
<button
type="button"
className="rp-moment"
aria-pressed={active === i}
onClick={() => {
setActive(i);
onSeek?.(m.seconds ?? toSeconds(m.time), m, i);
}}
>
<span className="rp-time">
<Play size={16} strokeWidth={2.5} aria-hidden="true" />
{m.time}
</span>
<span className="rp-mlabel">{m.label}</span>
</button>
</li>
))}
</ul>
</>
),
});
}
if (expiry) {
rows.push({
key: "expiry",
q: c.expiryQ,
body: (
<>
<p className="rp-date">
{keepTogether(expiry, <CalendarClock size={20} strokeWidth={2.5} aria-hidden="true" />)}
</p>
<p className="rp-body">{c.expiryA}</p>
</>
),
});
}
rows.push({
key: "offer",
q: c.offerQ,
body: (
<>
<p className="rp-a-lead">{c.offerA}</p>
<div className={`rp-card${productImage ? "" : " no-shot"}`}>
{productImage ? (
<img className="rp-shot" src={productImage} alt={productImageAlt} width={480} height={480} loading="lazy" decoding="async" />
) : null}
<div className="rp-offer">
<N className="rp-name">{productName}</N>
{items.length ? (
<ul className="rp-items">
{items.map((it, i) => (
<li key={`${it.name}-${i}`} className={`rp-item${it.image ? "" : " no-img"}`}>
{it.image ? <img src={it.image} alt={it.imageAlt ?? ""} width={48} height={48} loading="lazy" decoding="async" /> : null}
<span>
<span className="rp-item-name">{it.name}</span>
{it.detail ? <span className="rp-item-detail">{it.detail}</span> : null}
</span>
</li>
))}
</ul>
) : null}
</div>
<div className="rp-close">
<div className="rp-pricing">
<p className="rp-price">
<span className="rp-amt">{price}</span>
<span className="rp-suffix">{priceSuffix}</span>
</p>
{priceNote ? <p className="rp-note">{priceNote}</p> : null}
</div>
<div className="rp-action">
{button}
{reassurance || guarantee ? (
<p className="rp-trust">
{reassurance ? (
<span>
<Lock size={16} strokeWidth={2.5} aria-hidden="true" />
{reassurance}
</span>
) : null}
{guarantee ? (
<span className="rp-guar">
<ShieldCheck size={16} strokeWidth={2.5} aria-hidden="true" />
{guarantee}
</span>
) : null}
</p>
) : null}
</div>
</div>
</div>
</>
),
});
return (
<div className={["cf-webinar-replay", className].filter(Boolean).join(" ")}>
<style>{CSS}</style>
<header className="rp-head">
<H className="rp-title">{withEmphasis(title, emphasis)}</H>
{lead ? <p className="rp-lead">{lead}</p> : null}
{expiry ? (
<p className="rp-notice">
<Clock size={16} strokeWidth={2.5} aria-hidden="true" />
{noticeBefore}
<strong>{keepTogether(expiry)}</strong>
{noticeAfter}
</p>
) : null}
</header>
<div className="rp-qa">
{rows.map((row, i) => (
<section
key={row.key}
className="rp-row"
aria-labelledby={`${uid}-${row.key}`}
style={{ "--rp-delay": `${Math.min((i + 1) * 0.07, 0.28)}s` } as React.CSSProperties}
>
<Q className="rp-q" id={`${uid}-${row.key}`}>
{row.q}
</Q>
<div className="rp-a">{row.body}</div>
</section>
))}
</div>
</div>
);
}
export default WebinarReplay;
const DEFAULT_COPY: ReplayCopy = {
headlineNoExpiry: "The full replay is up",
watchQ: "Can I still watch it?",
watchA: "Yes. Here's the full replay, start to finish.",
momentsQ: "Short on time? Skip to these.",
momentsA: "Tap a moment to jump straight to it.",
expiryQ: "When does the replay come down?",
expiryNotice: "Replay comes down {expiry}",
expiryA: "After that, the replay is gone and this page comes down with it. Watch it while it's up.",
offerQ: "I watched it. What's next?",
offerA: "Grab the kit the workshop walks through and build your funnel with it.",
actionAria: "{label}, {price}",
};
function fill(template: string, vars: Record<string, string>) {
return template.replace(/\{(\w+)\}/g, (match, key: string) => (key in vars ? vars[key] : match));
}
// Keeps "date" and "time" halves of an expiry ("Sunday, December 6 at 11:59 pm ET") on their own lines when it wraps,
// with an optional leading icon held to the first word.
function keepTogether(text: string, lead?: React.ReactNode): React.ReactNode {
const match = /^(.+?)(\s+at\s+)(.+)$/.exec(text);
if (!match) {
return (
<>
{lead}
{text}
</>
);
}
return (
<>
<span className="rp-nb">
{lead}
{match[1]}
</span>
{match[2]}
<span className="rp-nb">{match[3]}</span>
</>
);
}
function toSeconds(time: string) {
return time
.split(":")
.map((part) => Number(part))
.reduce((total, n) => total * 60 + (Number.isFinite(n) ? n : 0), 0);
}
function withEmphasis(text: string, phrase?: string): React.ReactNode {
if (!phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className="rp-em">{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
const CSS = `
.cf-webinar-replay{--rp-hi:var(--accent);--rp-line:oklch(from var(--ink) l c h / 0.14);--rp-shadow:var(--shadow, oklch(0.22 0.03 260));width:100%;max-width:1120px;margin-inline:auto;color:var(--ink);font-family:var(--font-body);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5}
.cf-webinar-replay .rp-nb{white-space:nowrap}
.cf-webinar-replay *,.cf-webinar-replay *::before,.cf-webinar-replay *::after{box-sizing:border-box}
.cf-webinar-replay .rp-head{animation:rp-rise .45s cubic-bezier(.2,.7,.2,1) both}
.cf-webinar-replay .rp-title{margin:0 0 clamp(14px,2vw,22px);font-family:var(--font-display);font-size:clamp(2.5rem,5.4vw,4.875rem);line-height:1.04;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-0.025em);text-transform:var(--display-case,none);color:var(--ink);text-wrap:balance}
.cf-webinar-replay .rp-em{color:var(--rp-hi)}
.cf-webinar-replay .rp-lead{margin:0;max-width:62ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-webinar-replay .rp-notice{width:fit-content;max-width:100%;margin:24px 0 0;padding:10px 16px;border-radius:10px;background:var(--warning-soft, color-mix(in oklch,var(--warning) 14%,var(--card)));color:var(--warning);font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-webinar-replay .rp-notice strong{font-weight:800}
.cf-webinar-replay .rp-notice svg,.cf-webinar-replay .rp-date svg,.cf-webinar-replay .rp-trust svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-webinar-replay .rp-qa{margin-top:clamp(32px,4vw,48px)}
.cf-webinar-replay .rp-row{display:grid;grid-template-columns:minmax(0,17rem) minmax(0,1fr);gap:clamp(24px,4vw,56px);padding-block:clamp(24px,3vw,36px);border-top:1px solid var(--rp-line);animation:rp-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:var(--rp-delay,0s)}
.cf-webinar-replay .rp-q{position:sticky;top:24px;align-self:start;margin:0;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);color:var(--rp-hi);text-wrap:balance}
.cf-webinar-replay .rp-a{min-width:0;container-type:inline-size}
.cf-webinar-replay .rp-a-lead{margin:0 0 16px;font-weight:700;color:var(--ink);text-wrap:pretty}
.cf-webinar-replay .rp-video{position:relative;width:100%;aspect-ratio:16/9;overflow:hidden;border-radius:12px;background:color-mix(in oklch,var(--ink) 8%,var(--surface))}
.cf-webinar-replay .rp-video > img,.cf-webinar-replay .rp-video-embed{position:absolute;inset:0;width:100%;height:100%;display:block}
.cf-webinar-replay .rp-video > img{object-fit:cover;object-position:50% 35%}
.cf-webinar-replay .rp-video-embed > *{display:block;width:100%;height:100%;border:0}
.cf-webinar-replay .rp-cap{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cf-webinar-replay .rp-moments{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.cf-webinar-replay .rp-moment{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:baseline;gap:4px 16px;width:100%;height:100%;min-height:64px;padding:14px 18px;border:1px solid oklch(from var(--ink) l c h / 0.08);border-radius:var(--radius,12px);background:color-mix(in oklch,var(--ink) 4%,var(--surface));color:var(--ink);font:inherit;text-align:left;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.cf-webinar-replay .rp-moment:hover{background:color-mix(in oklch,var(--ink) 7%,var(--surface));border-color:oklch(from var(--ink) l c h / 0.18);transform:translateY(-1px)}
.cf-webinar-replay .rp-moment:active{transform:translateY(0);background:color-mix(in oklch,var(--ink) 10%,var(--surface))}
.cf-webinar-replay .rp-moment:focus-visible{outline:3px solid oklch(from var(--accent) l c h / 0.45);outline-offset:2px}
.cf-webinar-replay .rp-moment[aria-pressed="true"]{background:color-mix(in oklch,var(--accent) 10%,var(--card));border-color:oklch(from var(--accent) l c h / 0.5)}
.cf-webinar-replay .rp-time{white-space:nowrap;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;font-variant-numeric:lining-nums tabular-nums;color:var(--accent)}
.cf-webinar-replay .rp-time svg{display:inline-block;vertical-align:0.02em;margin-inline-end:6px;fill:currentColor;transition:transform .16s ease}
.cf-webinar-replay .rp-moment:hover .rp-time svg,.cf-webinar-replay .rp-moment[aria-pressed="true"] .rp-time svg{transform:scale(1.12)}
.cf-webinar-replay .rp-mlabel{font-weight:600;line-height:1.4;text-wrap:pretty}
.cf-webinar-replay .rp-date{margin:0 0 12px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;color:var(--ink);text-wrap:balance}
.cf-webinar-replay .rp-date svg{color:var(--accent)}
.cf-webinar-replay .rp-body{margin:0;max-width:62ch;text-wrap:pretty}
.cf-webinar-replay .rp-card{display:grid;grid-template-columns:minmax(0,15rem) minmax(0,1fr);grid-template-areas:"shot offer" "close close";gap:clamp(24px,3vw,32px) clamp(20px,3vw,32px);align-items:start;padding:clamp(20px,3vw,32px);background:var(--card);color:var(--ink);border:1px solid var(--card-border, oklch(from var(--accent) l c h / 0.35));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)))}
.cf-webinar-replay .rp-card.no-shot{grid-template-columns:minmax(0,1fr);grid-template-areas:"offer" "close"}
.cf-webinar-replay .rp-shot{grid-area:shot;display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;filter:drop-shadow(0 2px 3px oklch(from var(--rp-shadow) l c h / 0.3)) drop-shadow(0 14px 16px oklch(from var(--rp-shadow) l c h / 0.22))}
.cf-webinar-replay .rp-offer{grid-area:offer;min-width:0}
.cf-webinar-replay .rp-offer > :last-child{margin-bottom:0}
.cf-webinar-replay .rp-close{grid-area:close;min-width:0;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.15fr);gap:20px clamp(24px,3vw,40px);align-items:center}
.cf-webinar-replay .rp-pricing,.cf-webinar-replay .rp-action{min-width:0}
.cf-webinar-replay .rp-name{margin:0 0 16px;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em;color:var(--ink);text-wrap:balance}
.cf-webinar-replay .rp-items{list-style:none;margin:0;padding:0;display:grid;gap:12px}
.cf-webinar-replay .rp-item{display:grid;grid-template-columns:48px minmax(0,1fr);gap:12px;align-items:start}
.cf-webinar-replay .rp-item.no-img{grid-template-columns:minmax(0,1fr)}
.cf-webinar-replay .rp-item img{display:block;width:48px;height:48px;border-radius:8px;object-fit:cover}
.cf-webinar-replay .rp-item-name{display:block;font-weight:700;line-height:1.3}
.cf-webinar-replay .rp-item-detail{display:block;margin-top:2px;font-size:.9375rem;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-webinar-replay .rp-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 12px;margin:0;font-family:var(--font-display);color:var(--ink)}
.cf-webinar-replay .rp-amt{font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;font-weight:var(--display-weight,800);letter-spacing:-0.03em;font-variant-numeric:lining-nums tabular-nums}
.cf-webinar-replay .rp-suffix{font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;font-weight:var(--display-weight,800);letter-spacing:-0.01em}
.cf-webinar-replay .rp-note{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--muted);text-wrap:pretty}
.cf-webinar-replay .rp-btn{--rp-b:var(--button-bg,var(--cta));--rp-b2:var(--button-bg-2,var(--cta-2));display:inline-flex;align-items:center;justify-content:center;gap:12px;width:100%;min-height:64px;padding:0 28px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--rp-b) calc(l + 0.04) c h),oklch(from var(--rp-b2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));font-size:clamp(1.125rem,1.55vw,1.375rem);line-height:1.15;font-weight:var(--button-weight,800);text-transform:var(--button-case,none);white-space:nowrap;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--rp-b) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--rp-b) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--rp-shadow) l c h / 0.3), 0 8px 16px -6px oklch(from var(--rp-shadow) l c h / 0.45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-webinar-replay .rp-btn:hover,.cf-webinar-replay .rp-btn.is-hover{background:linear-gradient(oklch(from var(--rp-b) calc(l - 0.01) c h),oklch(from var(--rp-b2) calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from var(--rp-b) calc(l + 0.12) c h / 0.7), inset 0 -3px 0 oklch(from var(--rp-b) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--rp-shadow) l c h / 0.32), 0 10px 18px -6px oklch(from var(--rp-shadow) l c h / 0.52)}
.cf-webinar-replay .rp-btn:active,.cf-webinar-replay .rp-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--rp-b) calc(l - 0.05) c h),oklch(from var(--rp-b2) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--rp-b) calc(l - 0.22) c h / 0.55), inset 0 -2px 0 oklch(from var(--rp-b) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--rp-shadow) l c h / 0.3)}
.cf-webinar-replay .rp-btn:focus-visible{outline:3px solid oklch(from var(--field-focus,var(--accent)) l c h / 0.5);outline-offset:3px}
.cf-webinar-replay .rp-btn:disabled{background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed;transform:none}
.cf-webinar-replay .rp-btn-sep{align-self:stretch;width:1px;margin-block:18px;background:oklch(from var(--button-ink,var(--cta-ink)) l c h / 0.45)}
.cf-webinar-replay .rp-btn:disabled .rp-btn-sep{background:oklch(from var(--secondary-ink) l c h / 0.35)}
.cf-webinar-replay .rp-btn-price{font-variant-numeric:lining-nums tabular-nums}
.cf-webinar-replay .rp-trust{display:flex;flex-wrap:wrap;gap:6px 20px;margin:14px 0 0;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted)}
.cf-webinar-replay .rp-trust > span{display:inline-block}
.cf-webinar-replay .rp-guar svg{color:var(--success)}
@container (max-width: 700px){.cf-webinar-replay .rp-close{grid-template-columns:minmax(0,1fr)}}
@container (max-width: 560px){.cf-webinar-replay .rp-card{grid-template-columns:minmax(0,1fr);grid-template-areas:"shot" "offer" "close"}.cf-webinar-replay .rp-card.no-shot{grid-template-areas:"offer" "close"}.cf-webinar-replay .rp-shot{max-width:220px;margin-inline:auto}}
@container (max-width: 520px){.cf-webinar-replay .rp-moments{grid-template-columns:minmax(0,1fr)}}
@media (max-width: 860px){.cf-webinar-replay .rp-row{grid-template-columns:minmax(0,1fr);gap:12px}.cf-webinar-replay .rp-q{position:static}}
@keyframes rp-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@media (prefers-reduced-motion: reduce){.cf-webinar-replay .rp-head,.cf-webinar-replay .rp-row{animation:none}.cf-webinar-replay .rp-moment,.cf-webinar-replay .rp-btn,.cf-webinar-replay .rp-time svg{transition:none}.cf-webinar-replay .rp-moment:hover,.cf-webinar-replay .rp-btn:active,.cf-webinar-replay .rp-btn.is-active,.cf-webinar-replay .rp-moment:hover .rp-time svg,.cf-webinar-replay .rp-moment[aria-pressed="true"] .rp-time svg{transform:none}}
`;
pieces/hero/webinar-replay/specimen.tsx 49 lines
import __studioImage57dd7c9d from "../assets/4b0ab74c60389c0a.webp";
import __studioImage545609c6 from "../assets/c087fd4da6dfb131.webp";
import { WebinarReplay } from "../webinar-replay";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
const sample = defaults.sample;
export const states = ["default", "hover", "active", "disabled"];
type SpecimenState = "default" | "hover" | "active" | "disabled";
export default function WebinarReplaySpecimen({ state = "default" }: { state?: SpecimenState }) {
const workshop = sample.registration.name;
return (
<WebinarReplay
state={state}
lead={`You missed the ${workshop} live. Watch the full replay here, jump to the parts you need, then grab the kit it's built on.`}
expiry="Sunday, December 6 at 11:59 pm ET"
videoPoster={slot(
"scene",
__studioImage57dd7c9d
)}
videoPosterAlt={`Presenter mapping a funnel on a whiteboard during the ${workshop}`}
videoCaption={`${workshop} · Full replay · 58 min`}
moments={[
{ time: "03:40", label: "Why most first funnels stall before page two" },
{ time: "12:15", label: "Mapping your offer to the pages it needs" },
{ time: "24:50", label: "Writing a headline and call to action that fit" },
{ time: "38:05", label: "Walking the launch checklist, line by line" },
]}
productName={sample.name}
productImage={slot(
"product",
__studioImage545609c6
)}
productImageAlt={`${sample.name}: planning guide, workbook and launch checklist`}
items={sample.items.map((item, i) => ({
name: item.name,
detail: item.detail,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
price={sample.price}
reassurance={sample.sublabel}
guarantee={sample.guarantee}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalWebinarReplay |
string |
|
emphasis OptionalWebinarReplay |
string |
|
lead OptionalWebinarReplay |
React.ReactNode |
|
headingAs OptionalWebinarReplay |
"h1" | "h2" |
|
expiry OptionalWebinarReplay |
string |
|
video OptionalWebinarReplay |
React.ReactNode |
|
videoPoster OptionalWebinarReplay |
string |
|
videoPosterAlt OptionalWebinarReplay |
string |
|
videoCaption OptionalWebinarReplay |
string |
|
moments OptionalWebinarReplay |
ReplayMoment[] |
|
onSeek OptionalWebinarReplay |
(seconds: number, moment: ReplayMoment, index: number) => void |
|
productName OptionalWebinarReplay |
string |
|
productImage OptionalWebinarReplay |
string |
|
productImageAlt OptionalWebinarReplay |
string |
|
items OptionalWebinarReplay |
ReplayItem[] |
|
price OptionalWebinarReplay |
string |
|
priceSuffix OptionalWebinarReplay |
string |
|
priceNote OptionalWebinarReplay |
string |
|
actionLabel OptionalWebinarReplay |
string |
|
reassurance OptionalWebinarReplay |
string |
|
guarantee OptionalWebinarReplay |
string |
|
href OptionalWebinarReplay |
string |
|
onAction OptionalWebinarReplay |
(event: React.MouseEvent<HTMLElement>) => void |
|
copy OptionalWebinarReplay |
Partial<ReplayCopy> |
|
state OptionalWebinarReplay |
"default" | "hover" | "active" | "disabled" |
|
className OptionalWebinarReplay |
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-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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
product- The main product shot or cover (ebook, kit, bottle).
scene- A wide atmosphere photo behind or beside the copy.
-
4b0ab74c60389c0a.webp
image/webp · 55.3 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c087fd4da6dfb131.webp
image/webp · 134 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB