Next Step Invite 1
Thank-you page next step: confirms the opt-in, then spotlights one next step (offer, call or live event) with a value reveal, its parts in a row beneath and one outcome action.
Use it in a prompt
Use content/next-step-invite 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/next-step-invite.tsx. - Import it and pass your copy and images (Props tab):
import { NextStepInvite } from "@/components/funneldna/content/next-step-invite"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/next-step-invite/component.tsx 654 lines
// layout: spotlight-row
// Thank-you page next step: confirms the opt-in, then spotlights one next step (offer, call or live event) with a value reveal, its parts in a row beneath and one outcome action.
import React from 'react';
import { Calendar, Check, Clock, Lock } from 'lucide-react';
import { motion, useReducedMotion } from 'motion/react';
export type NextStepInviteItem = {
name: string;
detail?: string;
value?: string; // shown through copy.itemValue, e.g. "$49 value"
image?: string; // slot item-n
imageAlt?: string; // defaults to the item name
};
export type NextStepInviteCopy = {
valueLabel: string; // label beside the struck total value
turn: string; // the value-reveal turn line between total value and today's price
priceLabel: string; // label beside today's price
itemValue: string; // template: {value} is replaced with the item value
psLabel: string; // tag in front of the P.S. line
};
export type NextStepInviteProps = {
statusLabel?: string; // confirmation line above the headline; empty hides it
headline?: React.ReactNode;
highlight?: string; // phrase inside a string headline that gets the marker stroke
headingLevel?: 'h1' | 'h2';
lead?: React.ReactNode;
name?: string; // the offer, call or event being invited to
description?: React.ReactNode;
productImage?: string; // slot product (transparent cut-out)
productImageAlt?: string;
when?: string; // live event date and time chip
duration?: string; // length chip, e.g. "45 minutes"
tags?: string[]; // extra plain chips after when/duration
totalValue?: string; // struck total value in the reveal
price?: string; // today's price in the reveal
priceNote?: string; // small line under the price label
label?: string; // primary action text
reassurance?: string; // line under the action, with a lock icon
ps?: React.ReactNode;
itemsHeading?: string; // heading above the parts row
items?: NextStepInviteItem[];
declineLabel?: string; // quiet decline link; empty hides it
declineHref?: string; // decline destination; without it the decline is a button
onDecline?: () => void;
href?: string; // primary action destination
onAction?: () => void; // primary action click
disabled?: boolean;
state?: 'default' | 'hover' | 'active' | 'disabled'; // forces a button state for previews
copy?: Partial<NextStepInviteCopy>;
className?: string;
};
const DEFAULT_COPY: NextStepInviteCopy = {
valueLabel: 'Total value of everything inside',
turn: 'But you won’t pay that.',
priceLabel: 'Your price today',
itemValue: '{value} value',
psLabel: 'P.S.',
};
const DEFAULT_ITEMS: NextStepInviteItem[] = [
{ name: 'Funnel Planning Guide', detail: 'Map your offer and the pages your funnel needs.', value: '$49' },
{ name: 'Page Copy Workbook', detail: 'Draft your headline, offer, and call to action.', value: '$29' },
{ name: 'Launch Checklist', detail: 'Review the links, forms, and next steps before launch.', value: '$19' },
];
const EASE: [number, number, number, number] = [0.2, 0.7, 0.2, 1];
const MAX_RISE_DELAY = 0.28;
export function NextStepInvite(props: NextStepInviteProps) {
const {
statusLabel = 'Your workshop seat is saved',
headline = 'Your next step: walk into the workshop with your funnel planned',
highlight = 'your funnel planned',
headingLevel = 'h2',
lead = 'Grab the kit before it starts. You’ll map your offer and draft your pages while you watch, so you leave with a funnel, not a page of notes.',
name = 'The Funnel Starter Kit',
description = 'Get the guide, workbook, and checklist in one download. One payment. Yours to keep.',
productImage,
productImageAlt = '',
when,
duration,
tags,
totalValue = '$97',
price = '$47',
priceNote = 'One payment · Lifetime access',
label = 'Start planning my funnel',
reassurance = 'Secure checkout · Instant download',
ps = (
<>
Try the whole kit for 30 days. If it doesn’t help you plan your funnel, <strong>you get every cent back.</strong>
</>
),
itemsHeading = 'Use all three while you watch the workshop',
items = DEFAULT_ITEMS,
declineLabel = 'No thanks, I’ll watch the workshop without the kit',
declineHref,
onDecline,
href,
onAction,
disabled = false,
state = 'default',
copy,
className,
} = props;
const c = { ...DEFAULT_COPY, ...copy };
const headingId = React.useId();
const reduce = useReducedMotion();
const Heading = headingLevel;
const isDisabled = disabled || state === 'disabled';
const btnClass = ['nsi-btn', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-active' : '']
.filter(Boolean)
.join(' ');
const meta: { key: string; icon: React.ReactNode; text: string }[] = [];
if (when) meta.push({ key: 'when', icon: <Calendar size={16} strokeWidth={2.5} aria-hidden />, text: when });
if (duration) meta.push({ key: 'duration', icon: <Clock size={16} strokeWidth={2.5} aria-hidden />, text: duration });
(tags ?? []).forEach((tag, i) => meta.push({ key: `tag-${i}`, icon: null, text: tag }));
const rise = (delay: number) =>
reduce
? {}
: {
initial: { opacity: 0.82, y: 8 },
whileInView: { opacity: 1, y: 0 },
viewport: { once: true, amount: 0.2 },
transition: { duration: 0.45, ease: EASE, delay: Math.min(delay, MAX_RISE_DELAY) },
};
const action =
href && !isDisabled ? (
<a className={btnClass} href={href} onClick={onAction ? () => onAction() : undefined}>
{label}
</a>
) : (
<button
type='button'
className={btnClass}
disabled={isDisabled}
onClick={isDisabled ? undefined : () => onAction?.()}
>
{label}
</button>
);
const decline = declineLabel ? (
declineHref ? (
<a className='nsi-decline-link' href={declineHref} onClick={onDecline ? () => onDecline() : undefined}>
{declineLabel}
</a>
) : (
<button type='button' className='nsi-decline-link' onClick={() => onDecline?.()}>
{declineLabel}
</button>
)
) : null;
return (
<section className={['cf-next-step-invite', className].filter(Boolean).join(' ')} aria-labelledby={headingId}>
<style>{CSS}</style>
<div className='nsi-wrap'>
<header className='nsi-head'>
{statusLabel ? (
<p className='nsi-status'>
<span className='nsi-badge' aria-hidden>
<Check size={16} strokeWidth={3} />
</span>
{statusLabel}
</p>
) : null}
<Heading id={headingId} className='nsi-title'>
{withMarker(headline, highlight)}
</Heading>
{lead ? <p className='nsi-lead'>{lead}</p> : null}
</header>
<motion.div className={productImage ? 'nsi-feature has-media' : 'nsi-feature'} {...rise(0)}>
{productImage ? (
<div className='nsi-media'>
<img src={productImage} alt={productImageAlt} width={440} height={440} decoding='async' />
</div>
) : null}
<div className='nsi-body'>
{meta.length ? (
<ul className='nsi-meta'>
{meta.map((m) => (
<li key={m.key} className='nsi-chip'>
{m.icon}
<span>{m.text}</span>
</li>
))}
</ul>
) : null}
{name ? <h3 className='nsi-name'>{name}</h3> : null}
{description ? <p className='nsi-desc'>{description}</p> : null}
{totalValue || price ? (
<div className='nsi-reveal'>
{totalValue ? (
<div className='nsi-row'>
<div className='nsi-row-text'>
<p className='nsi-row-label'>{c.valueLabel}</p>
</div>
<span className='nsi-fig is-value'>{totalValue}</span>
</div>
) : null}
{totalValue && price ? (
<motion.p className='nsi-turn' {...rise(0.14)}>
{c.turn}
</motion.p>
) : null}
{price ? (
<motion.div className='nsi-row is-today' {...rise(0.28)}>
<div className='nsi-row-text'>
<p className='nsi-row-label'>{c.priceLabel}</p>
{priceNote ? <p className='nsi-row-note'>{priceNote}</p> : null}
</div>
<span className='nsi-fig is-price'>{price}</span>
</motion.div>
) : null}
</div>
) : null}
<div className='nsi-action'>
{action}
{reassurance ? (
<p className='nsi-assure'>
<Lock size={16} strokeWidth={2.5} aria-hidden />
{reassurance}
</p>
) : null}
</div>
{ps ? (
<p className='nsi-ps'>
<strong className='nsi-ps-tag'>{c.psLabel}</strong>
{ps}
</p>
) : null}
</div>
</motion.div>
{items.length ? (
<div className='nsi-parts'>
{itemsHeading ? <h3 className='nsi-parts-title'>{itemsHeading}</h3> : null}
<ul className='nsi-grid'>
{items.map((item, i) => (
<motion.li key={`${item.name}-${i}`} className='nsi-part' {...rise(i * 0.07)}>
{item.image ? (
<img
className='nsi-thumb'
src={item.image}
alt={item.imageAlt ?? item.name}
width={72}
height={72}
loading='lazy'
decoding='async'
/>
) : null}
<div className='nsi-part-text'>
<p className='nsi-part-name'>{item.name}</p>
{item.detail ? <p className='nsi-part-detail'>{item.detail}</p> : null}
{item.value ? (
<span className='nsi-part-value'>{c.itemValue.replace('{value}', item.value)}</span>
) : null}
</div>
</motion.li>
))}
</ul>
</div>
) : null}
{decline ? <p className='nsi-decline'>{decline}</p> : null}
</div>
</section>
);
}
export default NextStepInvite;
// Wraps the first occurrence of `phrase` in a string headline with the marker stroke.
function withMarker(text: React.ReactNode, phrase?: string) {
if (typeof text !== 'string' || !phrase) return text;
const at = text.indexOf(phrase);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className={phrase.length <= 22 ? 'nsi-mark is-short' : 'nsi-mark'}>{phrase}</span>
{text.slice(at + phrase.length)}
</>
);
}
// Theme notes: every colour is a token or an OKLCH recipe on a token. The status badge glyph is white by
// contract (solid status badges), read through the component-scoped --nsi-badge-glyph with a white last fallback.
// The quiet decline link stays muted (DR decline exception) and takes its corner shape from the button role.
const CSS = `
.cf-next-step-invite {
--nsi-ink: var(--ink, #1b2334);
--nsi-muted: var(--muted, #4f5b6b);
--nsi-card: var(--card, #ffffff);
--nsi-surface: var(--surface, #ffffff);
--nsi-accent: var(--accent, #2f63c8);
--nsi-shadow: var(--shadow, #1c2333);
--nsi-well: color-mix(in oklch, var(--nsi-ink) 4%, var(--nsi-card));
--nsi-chip: color-mix(in oklch, var(--nsi-ink) 6%, var(--nsi-card));
--nsi-line: oklch(from var(--nsi-ink) l c h / 0.12);
position: relative;
background: var(--nsi-surface);
color: var(--nsi-ink);
font-family: var(--font-body, system-ui, sans-serif);
padding: clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);
overflow-x: clip;
}
.cf-next-step-invite *, .cf-next-step-invite *::before, .cf-next-step-invite *::after { box-sizing: border-box; }
.cf-next-step-invite .nsi-wrap { max-width: 1120px; margin: 0 auto; }
.cf-next-step-invite .nsi-head { max-width: 46rem; margin: 0 auto; text-align: center; }
.cf-next-step-invite .nsi-status {
display: inline-block;
margin: 0 0 16px;
padding: 4px 14px 4px 4px;
border-radius: 999px;
background: color-mix(in oklch, var(--nsi-ink) 6%, var(--nsi-surface));
color: var(--nsi-ink);
font-size: 0.875rem;
font-weight: 800;
line-height: 24px;
text-wrap: balance;
}
.cf-next-step-invite .nsi-badge {
display: inline-grid;
place-items: center;
width: 24px;
height: 24px;
margin-inline-end: 8px;
border-radius: 999px;
background: var(--success, #1f7a43);
color: var(--nsi-badge-glyph, #fff); /* contract: solid status badge, white glyph */
vertical-align: top;
}
.cf-next-step-invite .nsi-title {
margin: 0;
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);
color: var(--nsi-ink);
text-wrap: balance;
}
.cf-next-step-invite .nsi-mark {
padding: 0 0.1em;
margin: 0 -0.04em;
border-radius: 0.18em 0.4em 0.3em 0.22em;
background: linear-gradient(to bottom, transparent 46%, color-mix(in oklch, var(--marker, #fae37c) 88%, transparent) 46% 94%, transparent 94%);
-webkit-box-decoration-break: clone;
box-decoration-break: clone;
}
.cf-next-step-invite .nsi-mark.is-short { white-space: nowrap; }
.cf-next-step-invite .nsi-lead {
max-width: 60ch;
margin: 16px auto 0;
font-size: clamp(1.125rem, 1.5vw, 1.375rem);
line-height: 1.4;
font-weight: 500;
color: var(--nsi-muted);
text-wrap: pretty;
}
.cf-next-step-invite .nsi-feature {
display: grid;
grid-template-columns: minmax(0, 1fr);
margin-top: clamp(32px, 4vw, 48px);
background: var(--nsi-card);
color: var(--nsi-ink);
border: 1px solid color-mix(in oklch, var(--accent-fill, var(--nsi-accent)) 30%, var(--nsi-card));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(from var(--nsi-shadow) l c h / 0.22), 0 12px 24px -8px oklch(from var(--nsi-shadow) l c h / 0.32)));
overflow: hidden;
}
@media (min-width: 861px) {
.cf-next-step-invite .nsi-feature.has-media { grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr); }
}
.cf-next-step-invite .nsi-media {
display: grid;
place-items: center;
padding: clamp(24px, 4vw, 48px);
background: var(--nsi-well);
}
.cf-next-step-invite .nsi-media img {
display: block;
width: min(100%, 420px);
height: auto;
aspect-ratio: 1 / 1;
object-fit: contain;
filter: drop-shadow(0 2px 3px oklch(from var(--nsi-shadow) l c h / 0.28)) drop-shadow(0 14px 16px oklch(from var(--nsi-shadow) l c h / 0.2));
}
.cf-next-step-invite .nsi-body { display: flex; flex-direction: column; min-width: 0; padding: clamp(20px, 3vw, 32px); }
.cf-next-step-invite .nsi-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; padding: 0; list-style: none; }
.cf-next-step-invite .nsi-chip {
display: inline-flex;
align-items: center;
gap: 6px;
min-height: 30px;
padding: 4px 12px;
border-radius: 999px;
background: var(--nsi-chip);
color: var(--nsi-ink);
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
}
.cf-next-step-invite .nsi-chip svg { flex: none; color: var(--nsi-accent); }
.cf-next-step-invite .nsi-name {
margin: 0;
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: -0.01em;
text-transform: var(--display-case, none);
color: var(--nsi-ink);
text-wrap: balance;
}
.cf-next-step-invite .nsi-desc {
margin: 12px 0 0;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
color: var(--nsi-muted);
text-wrap: pretty;
}
.cf-next-step-invite .nsi-reveal { margin-top: 24px; padding: 20px clamp(16px, 2.4vw, 24px); border-radius: 10px; background: var(--nsi-well); }
.cf-next-step-invite .nsi-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.cf-next-step-invite .nsi-row-text { flex: 1 1 auto; min-width: 0; }
.cf-next-step-invite .nsi-row-label {
margin: 0;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
color: var(--nsi-muted);
text-wrap: pretty;
}
.cf-next-step-invite .nsi-row.is-today .nsi-row-label {
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: 800;
color: var(--nsi-ink);
}
.cf-next-step-invite .nsi-row-note { margin: 4px 0 0; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; color: var(--nsi-muted); text-wrap: pretty; }
.cf-next-step-invite .nsi-fig {
flex: none;
font-family: var(--font-display, inherit);
font-weight: var(--display-weight, 800);
line-height: 1;
letter-spacing: -0.03em;
font-variant-numeric: tabular-nums;
}
.cf-next-step-invite .nsi-fig.is-value {
font-size: clamp(1.75rem, 2.6vw, 2.25rem);
color: var(--nsi-muted);
text-decoration: line-through;
text-decoration-color: var(--danger, #c0392b);
text-decoration-thickness: 3px;
}
.cf-next-step-invite .nsi-fig.is-price { font-size: clamp(2.5rem, 4.2vw, 3.75rem); color: var(--nsi-ink); }
.cf-next-step-invite .nsi-turn {
margin: 16px 0 12px;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: 800;
line-height: 1.4;
color: var(--nsi-ink);
}
.cf-next-step-invite .nsi-action { margin-top: 24px; }
.cf-next-step-invite .nsi-btn {
--nsi-b: var(--button-bg, var(--cta, #d6372b));
--nsi-b2: var(--button-bg-2, var(--cta-2, #b92b21));
display: inline-flex;
align-items: center;
justify-content: center;
width: 100%;
min-height: 72px;
margin: 0;
padding: 14px 28px;
border: 0;
border-radius: var(--button-radius, var(--radius, 12px));
background: linear-gradient(oklch(from var(--nsi-b) calc(l + 0.04) c h), oklch(from var(--nsi-b2) calc(l - 0.02) c h));
color: var(--button-ink, var(--cta-ink, #ffffff));
font-family: var(--button-font, var(--font-display, inherit));
font-size: clamp(1.125rem, 1.55vw, 1.375rem);
font-weight: var(--button-weight, 800);
line-height: 1.15;
text-transform: var(--button-case, none);
text-align: center;
text-decoration: none;
text-wrap: balance;
text-shadow: var(--button-text-shadow, none);
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--nsi-b) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--nsi-b) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--nsi-shadow) l c h / 0.3), 0 8px 16px -6px oklch(from var(--nsi-shadow) l c h / 0.45));
cursor: pointer;
-webkit-tap-highlight-color: transparent;
transition: transform 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}
.cf-next-step-invite .nsi-btn:hover:not(:disabled), .cf-next-step-invite .nsi-btn.is-hover:not(:disabled) {
background: linear-gradient(oklch(from var(--nsi-b) calc(l - 0.01) c h), oklch(from var(--nsi-b2) calc(l - 0.07) c h));
transform: translateY(-1px);
box-shadow: var(--button-shadow, inset 0 1px 0 oklch(from var(--nsi-b) calc(l + 0.12) c h / 0.7), inset 0 -3px 0 oklch(from var(--nsi-b) calc(l - 0.18) c h), 0 1px 2px oklch(from var(--nsi-shadow) l c h / 0.32), 0 12px 20px -8px oklch(from var(--nsi-shadow) l c h / 0.5));
}
.cf-next-step-invite .nsi-btn:active:not(:disabled), .cf-next-step-invite .nsi-btn.is-active:not(:disabled) {
background: linear-gradient(oklch(from var(--nsi-b) calc(l - 0.04) c h), oklch(from var(--nsi-b2) calc(l - 0.09) c h));
transform: translateY(1px);
box-shadow: inset 0 2px 4px oklch(from var(--nsi-b) calc(l - 0.22) c h / 0.45), inset 0 -2px 0 oklch(from var(--nsi-b) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--nsi-shadow) l c h / 0.3);
}
.cf-next-step-invite .nsi-btn:focus-visible {
outline: 3px solid oklch(from var(--field-focus, var(--nsi-accent)) l c h / 0.55);
outline-offset: 3px;
}
.cf-next-step-invite .nsi-btn:disabled {
cursor: not-allowed;
transform: none;
background: var(--button-2-bg, var(--secondary, #e6e9ef));
color: var(--button-2-ink, var(--secondary-ink, #1b2334));
text-shadow: none;
box-shadow: var(--button-2-shadow, var(--shadow-sm));
}
.cf-next-step-invite .nsi-assure {
margin: 12px 0 0;
text-align: center;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
color: var(--nsi-muted);
text-wrap: pretty;
}
.cf-next-step-invite .nsi-assure svg { display: inline-block; vertical-align: -0.15em; margin-inline-end: 0.4em; }
.cf-next-step-invite .nsi-ps {
margin: 24px 0 0;
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
line-height: 1.5;
color: var(--nsi-ink);
text-wrap: pretty;
}
.cf-next-step-invite .nsi-ps-tag { margin-inline-end: 0.35em; font-weight: 800; }
.cf-next-step-invite .nsi-ps strong { font-weight: 800; }
.cf-next-step-invite .nsi-parts { margin-top: clamp(48px, 6vw, 64px); }
.cf-next-step-invite .nsi-parts-title {
margin: 0 0 24px;
text-align: center;
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: -0.01em;
text-transform: var(--display-case, none);
color: var(--nsi-ink);
text-wrap: balance;
}
.cf-next-step-invite .nsi-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin: 0; padding: 0; list-style: none; }
.cf-next-step-invite .nsi-part {
display: flex;
align-items: flex-start;
gap: 16px;
min-width: 0;
padding: clamp(16px, 2vw, 20px);
background: var(--nsi-card);
color: var(--nsi-ink);
border: 1px solid var(--card-border, var(--nsi-line));
border-radius: var(--card-radius, var(--radius, 14px));
box-shadow: var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(from var(--nsi-shadow) l c h / 0.22), 0 4px 10px -2px oklch(from var(--nsi-shadow) l c h / 0.2)));
}
.cf-next-step-invite .nsi-thumb {
flex: none;
display: block;
width: 72px;
height: 72px;
border-radius: 8px;
object-fit: cover;
object-position: center;
background: var(--nsi-well);
}
.cf-next-step-invite .nsi-part-text { flex: 1 1 auto; min-width: 0; }
.cf-next-step-invite .nsi-part-name {
margin: 0;
font-family: var(--font-display, inherit);
font-size: clamp(1.0625rem, 1.25vw, 1.125rem);
font-weight: var(--display-weight, 800);
line-height: 1.25;
color: var(--nsi-ink);
text-wrap: balance;
}
.cf-next-step-invite .nsi-part-detail { margin: 4px 0 0; font-size: 0.9375rem; line-height: 1.4; color: var(--nsi-muted); text-wrap: pretty; }
.cf-next-step-invite .nsi-part-value {
display: inline-flex;
align-items: center;
min-height: 28px;
margin-top: 8px;
padding: 4px 12px;
border-radius: 999px;
background: var(--nsi-chip);
color: var(--nsi-ink);
font-size: 0.875rem;
font-weight: 800;
line-height: 1.2;
font-variant-numeric: tabular-nums;
}
.cf-next-step-invite .nsi-decline { margin: 32px 0 0; text-align: center; }
.cf-next-step-invite .nsi-decline-link {
appearance: none;
display: inline-block;
min-height: 44px;
margin: 0;
padding: 10px 4px;
border: 0;
border-radius: var(--button-radius, var(--radius, 6px));
background: none;
font: inherit;
font-size: 0.9375rem;
font-weight: 600;
line-height: 1.4;
color: var(--nsi-muted);
text-decoration: underline;
text-decoration-color: oklch(from var(--nsi-muted) l c h / 0.5);
text-underline-offset: 0.18em;
text-wrap: balance;
cursor: pointer;
}
.cf-next-step-invite .nsi-decline-link:hover { color: var(--nsi-ink); text-decoration-color: currentColor; }
.cf-next-step-invite .nsi-decline-link:focus-visible { outline: 3px solid oklch(from var(--field-focus, var(--nsi-accent)) l c h / 0.45); outline-offset: 2px; }
@media (max-width: 860px) {
.cf-next-step-invite .nsi-media img { width: min(100%, 240px); }
.cf-next-step-invite .nsi-grid { grid-template-columns: minmax(0, 1fr); max-width: 40rem; margin-inline: auto; }
}
@media (max-width: 480px) {
.cf-next-step-invite .nsi-media { padding: 24px; }
.cf-next-step-invite .nsi-media img { width: min(100%, 220px); }
.cf-next-step-invite .nsi-btn { min-height: 64px; padding: 12px 16px; letter-spacing: -0.005em; }
.cf-next-step-invite .nsi-reveal { padding: 16px; }
.cf-next-step-invite .nsi-decline-link { max-width: 20rem; }
.cf-next-step-invite .nsi-thumb { width: 64px; height: 64px; }
}
@media (prefers-reduced-motion: reduce) {
.cf-next-step-invite .nsi-btn { transition: none; }
.cf-next-step-invite .nsi-btn:hover, .cf-next-step-invite .nsi-btn.is-hover, .cf-next-step-invite .nsi-btn:active, .cf-next-step-invite .nsi-btn.is-active { transform: none; }
}
`;
pieces/content/next-step-invite/specimen.tsx 50 lines
// Specimen: the thank-you page after the workshop opt-in, inviting the visitor to the Funnel Starter Kit as their next step.
import __studioImage2ef6bcd1 from "../assets/33a107e0292ab60a.webp";
import React from 'react';
import { NextStepInvite } from '../next-step-invite';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled';
export default function NextStepInviteSpecimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample;
const items = sample.items.map((item, i) => ({
name: item.name,
detail: item.detail,
value: item.value,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}));
return (
<NextStepInvite
state={state}
statusLabel='Your workshop seat is saved'
headline='Your next step: walk into the workshop with your funnel planned'
highlight='your funnel planned'
lead='Grab the kit before it starts. You’ll map your offer and draft your pages while you watch, so you leave with a funnel, not a page of notes.'
name={sample.name}
description={sample.reason}
productImage={slot('product', __studioImage2ef6bcd1)}
productImageAlt='The Funnel Starter Kit: planning guide, copy workbook and launch checklist'
totalValue={sample.regularPrice}
price={sample.price}
priceNote={sample.note}
label='Start planning my funnel'
reassurance={sample.sublabel}
ps={
<>
Try the whole kit for 30 days. If it doesn’t help you plan your funnel, <strong>you get every cent back.</strong>
</>
}
itemsHeading='Use all three while you watch the workshop'
items={items}
declineLabel='No thanks, I’ll watch the workshop without the kit'
onAction={() => {}}
onDecline={() => {}}
/>
);
}
| Name | Type | Details |
|---|---|---|
statusLabel OptionalNextStepInvite |
string |
|
headline OptionalNextStepInvite |
React.ReactNode |
|
highlight OptionalNextStepInvite |
string |
|
headingLevel OptionalNextStepInvite |
'h1' | 'h2' |
|
lead OptionalNextStepInvite |
React.ReactNode |
|
name OptionalNextStepInvite |
string |
|
description OptionalNextStepInvite |
React.ReactNode |
|
productImage OptionalNextStepInvite |
string |
|
productImageAlt OptionalNextStepInvite |
string |
|
when OptionalNextStepInvite |
string |
|
duration OptionalNextStepInvite |
string |
|
tags OptionalNextStepInvite |
string[] |
|
totalValue OptionalNextStepInvite |
string |
|
price OptionalNextStepInvite |
string |
|
priceNote OptionalNextStepInvite |
string |
|
label OptionalNextStepInvite |
string |
|
reassurance OptionalNextStepInvite |
string |
|
ps OptionalNextStepInvite |
React.ReactNode |
|
itemsHeading OptionalNextStepInvite |
string |
|
items OptionalNextStepInvite |
NextStepInviteItem[] |
|
declineLabel OptionalNextStepInvite |
string |
|
declineHref OptionalNextStepInvite |
string |
|
onDecline OptionalNextStepInvite |
() => void |
|
href OptionalNextStepInvite |
string |
|
onAction OptionalNextStepInvite |
() => void |
|
disabled OptionalNextStepInvite |
boolean |
|
state OptionalNextStepInvite |
'default' | 'hover' | 'active' | 'disabled' |
|
copy OptionalNextStepInvite |
Partial<NextStepInviteCopy> |
|
className OptionalNextStepInvite |
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-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
product- The main product shot or cover (ebook, kit, bottle).
-
33a107e0292ab60a.webp
image/webp · 114 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB