Next Step Invite 2
Thank-you page ascension path: shows the step the visitor just finished, spotlights the one next offer on a raised card and asks for a single action.
Use it in a prompt
Use content/next-step-invite-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/next-step-invite-2.tsx. - Import it and pass your copy and images (Props tab):
import { NextStepInvite2 } from "@/components/funneldna/content/next-step-invite-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/next-step-invite-2/component.tsx 421 lines
// layout: route-map
// Thank-you page ascension path: shows the step the visitor just finished, spotlights the one next offer on a raised card and asks for a single action.
import React from 'react';
import { Check, Lock } from 'lucide-react';
import { motion, useMotionValueEvent, useReducedMotion, useScroll, useSpring } from 'motion/react';
export type NextStepInvite2Milestone = {
name: string;
shortName?: string; // shorter name for the phone step strip
detail?: string;
label?: string; // overrides the status label (Done / Your next step / Then)
};
export type NextStepInvite2Copy = {
doneLabel: string; // status over completed milestones
currentLabel: string; // status over the next milestone
laterLabel: string; // status over later milestones
pathLabel: string; // accessible name of the path list
investmentLabel: string; // small-caps label in front of the price
anchorLabel: string; // screen-reader text before the struck anchor price
priceLabel: string; // screen-reader text before today's price
};
export type NextStepInvite2Props = {
headline?: React.ReactNode;
emphasis?: string; // phrase inside a string headline set in the accent colour
headingLevel?: 'h1' | 'h2';
lead?: React.ReactNode;
milestones?: NextStepInvite2Milestone[]; // 2 to 4 steps on the path
current?: number; // index of the next step; earlier steps show as done
offerName?: string;
offerLead?: React.ReactNode;
productImage?: string; // slot product (transparent cut-out); empty hides it
productImageAlt?: string;
reasonsHeading?: string; // heading above the numbered reasons
reasons?: React.ReactNode[]; // numbered fascination bullets
investmentIntro?: React.ReactNode; // running copy before the investment line
price?: string; // today's price; empty hides the investment line
anchorPrice?: string; // struck anchor, only shown when supplied with a price
question?: string; // the question the button answers
label?: string; // primary action text
sublabel?: string; // reassurance line under the button
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<NextStepInvite2Copy>;
className?: string;
};
const DEFAULT_COPY: NextStepInvite2Copy = {
doneLabel: 'Done',
currentLabel: 'Your next step',
laterLabel: 'Then',
pathLabel: 'Your path from here',
investmentLabel: 'Your investment:',
anchorLabel: 'Regular value',
priceLabel: 'Today',
};
const DEFAULT_MILESTONES: NextStepInvite2Milestone[] = [
{ name: 'Funnel Starter Workshop', shortName: 'Workshop', detail: 'Your seat is saved. Watch online.' },
{ name: 'The Funnel Starter Kit', shortName: 'Starter Kit', detail: 'Plan your funnel and draft every page.' },
{ name: 'Launch your first funnel', shortName: 'Launch', detail: 'Go live with every link and form checked.' },
];
const DEFAULT_REASONS: React.ReactNode[] = [
'How to map every page your funnel needs before you build a single one',
'The fill-in workbook pages that turn a blank screen into your headline, offer and call to action',
'Why a launch checklist catches the broken link or form you’d miss on your own',
];
const EASE: [number, number, number, number] = [0.2, 0.7, 0.2, 1];
export function NextStepInvite2(props: NextStepInvite2Props) {
const {
headline = 'You’re in. Now let’s get your funnel built.',
emphasis = 'get your funnel built',
headingLevel = 'h2',
lead = 'Your workshop seat is saved. Here’s your path from here, and the one step that turns what you learn into a funnel you can launch.',
milestones = DEFAULT_MILESTONES,
current = 1,
offerName = 'The Funnel Starter Kit',
offerLead = 'The guide, workbook and checklist in one download, made to use while you watch.',
productImage,
productImageAlt = '',
reasonsHeading = 'Three reasons this is your next step',
reasons = DEFAULT_REASONS,
investmentIntro = 'One download, one payment, lifetime access and a 30-day money-back guarantee.',
price,
anchorPrice,
question = 'Ready to map your first funnel?',
label = 'I’m ready, show me how',
sublabel = 'Secure checkout · Instant download',
declineLabel = 'No thanks, I’ll start 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 rootRef = React.useRef<HTMLElement>(null);
const pathRef = React.useRef<HTMLOListElement>(null);
// Signature interaction: the rail draws in as the path scrolls into view.
const { scrollYProgress } = useScroll({ target: pathRef, offset: ['start 0.95', 'end 0.6'] });
const draw = useSpring(scrollYProgress, { stiffness: 70, damping: 20, restDelta: 0.001 });
const setDraw = React.useCallback((v: number) => {
rootRef.current?.style.setProperty('--nsi2-draw', String(Math.round(v * 1000) / 1000));
}, []);
useMotionValueEvent(draw, 'change', (v) => {
if (!reduce) setDraw(v);
});
React.useEffect(() => {
setDraw(reduce ? 1 : draw.get());
}, [reduce, draw, setDraw]);
const Heading = headingLevel;
const SubHeading = headingLevel === 'h1' ? 'h2' : 'h3';
const MinorHeading = headingLevel === 'h1' ? 'h3' : 'h4';
const cur = Math.max(0, Math.min(current, milestones.length - 1));
const isDisabled = disabled || state === 'disabled';
const btnClass = ['nsi2-btn', state === 'hover' ? 'is-hover' : '', state === 'active' ? 'is-active' : '']
.filter(Boolean)
.join(' ');
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 },
};
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='nsi2-decline-link' href={declineHref} onClick={onDecline ? () => onDecline() : undefined}>
{declineLabel}
</a>
) : (
<button type='button' className='nsi2-decline-link' onClick={() => onDecline?.()}>
{declineLabel}
</button>
)
) : null;
return (
<section
ref={rootRef}
className={['cf-next-step-invite-2', className].filter(Boolean).join(' ')}
aria-labelledby={headingId}
>
<style>{CSS}</style>
<div className='nsi2-inner'>
<div className='nsi2-side'>
<motion.div className='nsi2-head' {...rise(0)}>
<Heading id={headingId} className='nsi2-h'>
{renderHeadline(headline, emphasis)}
</Heading>
{lead ? <p className='nsi2-lead'>{lead}</p> : null}
</motion.div>
<ol ref={pathRef} className='nsi2-path' aria-label={c.pathLabel}>
{milestones.map((m, i) => {
const status = i < cur ? 'done' : i === cur ? 'current' : 'later';
const statusText =
m.label ?? (status === 'done' ? c.doneLabel : status === 'current' ? c.currentLabel : c.laterLabel);
return (
<li
key={`${m.name}-${i}`}
className={`nsi2-step is-${status}`}
aria-current={status === 'current' ? 'step' : undefined}
>
{i < milestones.length - 1 ? (
<span className='nsi2-seg' aria-hidden='true'>
{i < cur ? (
<span
className='nsi2-fill'
style={{ ['--i' as string]: i, ['--n' as string]: cur } as React.CSSProperties}
/>
) : null}
</span>
) : null}
<span className='nsi2-nodecol' aria-hidden='true'>
<span className={`nsi2-node is-${status}`}>
{status === 'done' ? <Check size={20} strokeWidth={3} /> : <span>{i + 1}</span>}
</span>
</span>
<span className='nsi2-body'>
{statusText ? <span className='nsi2-status'>{statusText}</span> : null}
<span className='nsi2-name'>
<span className={m.shortName ? 'nsi2-name-full' : undefined}>{m.name}</span>
{m.shortName ? <span className='nsi2-name-short'>{m.shortName}</span> : null}
</span>
{m.detail ? <span className='nsi2-detail'>{m.detail}</span> : null}
</span>
</li>
);
})}
</ol>
</div>
<motion.div className={`nsi2-card${productImage ? ' has-image' : ''}`} {...rise(0.07)}>
<div className='nsi2-card-head'>
{productImage ? (
<img
className='nsi2-product'
src={productImage}
alt={productImageAlt}
width={400}
height={400}
loading='lazy'
decoding='async'
/>
) : null}
<div className='nsi2-card-title'>
<SubHeading className='nsi2-offer'>{offerName}</SubHeading>
{offerLead ? <p className='nsi2-offer-lead'>{offerLead}</p> : null}
</div>
</div>
{reasons.length ? (
<div className='nsi2-reasons'>
{reasonsHeading ? <MinorHeading className='nsi2-reasons-h'>{reasonsHeading}</MinorHeading> : null}
<ol className='nsi2-reasons-list'>
{reasons.map((r, i) => (
<li key={i}>
<span className='nsi2-reason-num' aria-hidden='true'>
{i + 1}
</span>
<span>{r}</span>
</li>
))}
</ol>
</div>
) : null}
<div className='nsi2-foot'>
{price ? (
<p className='nsi2-price-row'>
<span className='nsi2-sc'>{c.investmentLabel}</span>
<span className='nsi2-price-fig'>
{anchorPrice ? (
<s className='nsi2-anchor'>
<span className='nsi2-sr'>{c.anchorLabel} </span>
{anchorPrice}
</s>
) : null}
<span className='nsi2-price'>
<span className='nsi2-sr'>{c.priceLabel} </span>
{price}
</span>
</span>
</p>
) : null}
{investmentIntro ? <p className='nsi2-invest'>{investmentIntro}</p> : null}
{question ? <p className='nsi2-question'>{question}</p> : null}
{action}
{sublabel ? (
<p className='nsi2-sub'>
<Lock className='nsi2-sub-icon' size={16} strokeWidth={2.5} aria-hidden='true' />
{sublabel}
</p>
) : null}
{decline ? <p className='nsi2-decline'>{decline}</p> : null}
</div>
</motion.div>
</div>
</section>
);
}
export default NextStepInvite2;
function renderHeadline(headline: React.ReactNode, emphasis?: string) {
if (typeof headline !== 'string' || !emphasis) return headline;
const at = headline.indexOf(emphasis);
if (at < 0) return headline;
return (
<>
{headline.slice(0, at)}
<span className='nsi2-emph'>{emphasis}</span>
{headline.slice(at + emphasis.length)}
</>
);
}
// Shadows are dark recipes on --shadow (fallback written inline so every colour reads a token).
// The decline link stays a quiet muted text link (DR decline exception); its focus-ring radius reads
// --button-radius, capped at 4px so it never turns into a button shape.
const CSS = `
.cf-next-step-invite-2{--nsi2-draw:1;position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);overflow-x:clip}
.cf-next-step-invite-2 *,.cf-next-step-invite-2 *::before,.cf-next-step-invite-2 *::after{box-sizing:border-box}
.cf-next-step-invite-2 .nsi2-inner{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);grid-template-areas:'side card';column-gap:clamp(32px,5vw,72px);row-gap:40px;align-items:start}
.cf-next-step-invite-2 .nsi2-side{grid-area:side;min-width:0;display:flex;flex-direction:column;gap:40px;position:sticky;top:24px;align-self:start}
.cf-next-step-invite-2 .nsi2-head{grid-area:head;min-width:0}
.cf-next-step-invite-2 .nsi2-h{margin:0 0 16px;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;color:var(--ink);text-wrap:balance}
.cf-next-step-invite-2 .nsi2-emph{color:var(--accent)}
.cf-next-step-invite-2 .nsi2-lead{margin:0;max-width:46ch;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-next-step-invite-2 .nsi2-path{grid-area:path;list-style:none;margin:0;padding:0;min-width:0}
.cf-next-step-invite-2 .nsi2-step{position:relative;display:grid;grid-template-columns:56px minmax(0,1fr);column-gap:16px;padding-bottom:28px}
.cf-next-step-invite-2 .nsi2-step:last-child{padding-bottom:0}
.cf-next-step-invite-2 .nsi2-seg{position:absolute;left:26px;top:28px;width:4px;height:100%;border-radius:4px;background:oklch(from var(--ink) l c h / 0.12);overflow:hidden}
.cf-next-step-invite-2 .nsi2-fill{position:absolute;inset:0;border-radius:inherit;background:var(--accent-fill,var(--accent));transform-origin:50% 0;transform:scaleY(clamp(0,calc(var(--nsi2-draw,1) * var(--n,1) - var(--i,0)),1))}
.cf-next-step-invite-2 .nsi2-nodecol{position:relative;z-index:1;display:flex;align-items:center;justify-content:center;height:56px}
.cf-next-step-invite-2 .nsi2-node{position:relative;display:flex;align-items:center;justify-content:center;width:40px;height:40px;border-radius:50%;font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:1rem;line-height:1;font-variant-numeric:tabular-nums}
.cf-next-step-invite-2 .nsi2-node svg{width:20px;height:20px}
.cf-next-step-invite-2 .nsi2-node.is-done{background:var(--success);color:var(--on-success,#fff);box-shadow:var(--shadow-sm,0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.25))}
.cf-next-step-invite-2 .nsi2-node.is-current{width:56px;height:56px;font-size:clamp(1.3125rem,1.8vw,1.625rem);background:linear-gradient(oklch(from var(--accent-fill,var(--accent)) calc(l + 0.04) c h),oklch(from var(--accent-fill,var(--accent)) calc(l - 0.04) c h));color:var(--accent-fill-ink,var(--card));outline:6px solid color-mix(in oklch,var(--accent-fill,var(--accent)) 18%,var(--surface));box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.22),0 4px 10px -2px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.2))}
.cf-next-step-invite-2 .nsi2-node.is-later{background:var(--secondary);color:var(--secondary-ink)}
.cf-next-step-invite-2 .nsi2-body{display:flex;flex-direction:column;min-width:0;padding-top:8px}
.cf-next-step-invite-2 .nsi2-step.is-current .nsi2-body{padding:16px 20px 18px;border-radius:var(--card-radius,var(--radius,14px));background:color-mix(in oklch,var(--accent) 9%,var(--surface))}
.cf-next-step-invite-2 .nsi2-status{display:block;margin:0 0 6px;font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.cf-next-step-invite-2 .nsi2-step.is-done .nsi2-status{color:var(--success)}
.cf-next-step-invite-2 .nsi2-step.is-current .nsi2-status{color:var(--ink);margin-bottom:10px}
.cf-next-step-invite-2 .nsi2-name{display:block;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;font-weight:700;color:var(--ink);text-wrap:balance}
.cf-next-step-invite-2 .nsi2-step.is-later .nsi2-name{color:var(--muted)}
.cf-next-step-invite-2 .nsi2-step.is-current .nsi2-name{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}
.cf-next-step-invite-2 .nsi2-name-short{display:none}
.cf-next-step-invite-2 .nsi2-detail{display:block;margin-top:4px;font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-next-step-invite-2 .nsi2-step.is-current .nsi2-detail{margin-top:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;font-weight:400;color:var(--ink)}
.cf-next-step-invite-2 .nsi2-card{--nsi2-pad:clamp(20px,3vw,32px);grid-area:card;position:relative;min-width:0;background:var(--card);color:var(--ink);border:1px solid var(--card-border,color-mix(in oklch,var(--accent) 30%,var(--card)));border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--card-shadow,var(--shadow-lg,0 2px 4px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.22),0 12px 24px -8px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.32)));padding:var(--nsi2-pad)}
.cf-next-step-invite-2 .nsi2-card.has-image{margin-top:88px}
.cf-next-step-invite-2 .nsi2-card-head{display:grid;grid-template-columns:minmax(0,1fr);gap:16px}
.cf-next-step-invite-2 .nsi2-card.has-image .nsi2-card-head{grid-template-columns:200px minmax(0,1fr);column-gap:24px;align-items:start}
.cf-next-step-invite-2 .nsi2-product{display:block;width:100%;max-width:200px;height:auto;aspect-ratio:1;object-fit:contain;object-position:center bottom;margin-top:-96px;border-radius:0;filter:drop-shadow(0 2px 3px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.3)) drop-shadow(0 14px 16px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.24))}
.cf-next-step-invite-2 .nsi2-card-title{min-width:0;padding-top:4px}
.cf-next-step-invite-2 .nsi2-offer{margin:0 0 12px;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;color:var(--ink);text-wrap:balance}
.cf-next-step-invite-2 .nsi2-offer-lead{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-next-step-invite-2 .nsi2-reasons{margin-top:28px}
.cf-next-step-invite-2 .nsi2-reasons-h{margin:0 0 16px;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.3;color:var(--ink);text-wrap:balance}
.cf-next-step-invite-2 .nsi2-reasons-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.cf-next-step-invite-2 .nsi2-reasons-list li{display:grid;grid-template-columns:32px minmax(0,1fr);column-gap:12px;align-items:start;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--ink);text-wrap:pretty}
.cf-next-step-invite-2 .nsi2-reason-num{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.05;color:var(--accent);font-variant-numeric:tabular-nums}
.cf-next-step-invite-2 .nsi2-foot{margin:32px calc(var(--nsi2-pad) * -1) calc(var(--nsi2-pad) * -1);padding:clamp(24px,3vw,32px) var(--nsi2-pad) var(--nsi2-pad);border-radius:0 0 calc(var(--card-radius,var(--radius,14px)) - 1px) calc(var(--card-radius,var(--radius,14px)) - 1px);background:color-mix(in oklch,var(--ink) 4%,var(--card));text-align:center}
.cf-next-step-invite-2 .nsi2-price-row{margin:0 0 12px;display:flex;flex-wrap:wrap;align-items:baseline;justify-content:center;column-gap:14px;row-gap:6px}
.cf-next-step-invite-2 .nsi2-price-fig{display:inline-flex;align-items:baseline;gap:12px;white-space:nowrap}
.cf-next-step-invite-2 .nsi2-sc{font-size:.875rem;line-height:1.2;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.cf-next-step-invite-2 .nsi2-anchor{font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1;color:var(--muted);font-weight:600;font-variant-numeric:tabular-nums;text-decoration-line:line-through;text-decoration-color:var(--danger);text-decoration-thickness:2px}
.cf-next-step-invite-2 .nsi2-price{font-family:var(--font-display);font-weight:var(--display-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(--ink)}
.cf-next-step-invite-2 .nsi2-invest{margin:0 auto 24px;max-width:40ch;font-size:.9375rem;line-height:1.45;font-weight:500;color:var(--muted);text-wrap:pretty}
.cf-next-step-invite-2 .nsi2-question{margin:0 0 16px;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;color:var(--ink);text-wrap:balance}
.cf-next-step-invite-2 .nsi2-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-next-step-invite-2 .nsi2-btn{display:flex;width:100%;min-height:64px;padding:0 28px;align-items:center;justify-content:center;text-align:center;border:0;border-radius:var(--button-radius,var(--radius,12px));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;color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);text-decoration:none;text-wrap:balance;cursor:pointer;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));box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.3),0 8px 16px -6px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.4));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-next-step-invite-2 .nsi2-btn:hover:not(:disabled),.cf-next-step-invite-2 .nsi2-btn.is-hover{transform:translateY(-1px);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:inset 0 1px 0 oklch(from var(--button-bg,var(--cta)) calc(l + 0.1) c h / 0.6),inset 0 -3px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.2) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.32),0 12px 20px -6px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.45)}
.cf-next-step-invite-2 .nsi2-btn:active:not(:disabled),.cf-next-step-invite-2 .nsi2-btn.is-active{transform:translateY(1px);background:linear-gradient(oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h),oklch(from var(--button-bg-2,var(--cta-2)) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--button-bg,var(--cta)) calc(l - 0.22) c h / 0.55),inset 0 -2px 0 oklch(from var(--button-bg,var(--cta)) calc(l - 0.16) c h),0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.3)}
.cf-next-step-invite-2 .nsi2-btn:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-next-step-invite-2 .nsi2-btn:disabled{cursor:not-allowed;transform:none;background:var(--secondary);color:var(--secondary-ink);text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm,0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 256)) l c h / 0.2)))}
.cf-next-step-invite-2 .nsi2-sub{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:var(--ink);text-wrap:pretty}
.cf-next-step-invite-2 .nsi2-sub-icon{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-next-step-invite-2 .nsi2-decline{margin:20px 0 0;text-align:center}
.cf-next-step-invite-2 .nsi2-decline-link{appearance:none;background:none;border:0;padding:4px 2px;margin:0;font:inherit;font-family:var(--font-body);font-size:.9375rem;line-height:1.4;font-weight:500;color:var(--muted);text-decoration:underline;text-decoration-color:oklch(from var(--muted) l c h / 0.5);text-underline-offset:.18em;cursor:pointer;border-radius:min(var(--button-radius,4px),4px);transition:color .16s ease}
.cf-next-step-invite-2 .nsi2-decline-link:hover{color:var(--ink);text-decoration-color:currentColor}
.cf-next-step-invite-2 .nsi2-decline-link:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
@media (max-width:860px){
.cf-next-step-invite-2 .nsi2-inner{grid-template-columns:minmax(0,1fr);grid-template-areas:'path' 'head' 'card';grid-template-rows:auto;row-gap:32px}
.cf-next-step-invite-2 .nsi2-side{display:contents}
.cf-next-step-invite-2 .nsi2-path{display:flex;align-items:flex-start}
.cf-next-step-invite-2 .nsi2-step,.cf-next-step-invite-2 .nsi2-step:last-child{flex:1 1 0;min-width:0;display:flex;flex-direction:column;align-items:center;text-align:center;padding:0 4px}
.cf-next-step-invite-2 .nsi2-seg{left:50%;top:22px;width:100%;height:4px}
.cf-next-step-invite-2 .nsi2-fill{transform-origin:0 50%;transform:scaleX(clamp(0,calc(var(--nsi2-draw,1) * var(--n,1) - var(--i,0)),1))}
.cf-next-step-invite-2 .nsi2-nodecol{width:100%;height:48px}
.cf-next-step-invite-2 .nsi2-node{width:36px;height:36px}
.cf-next-step-invite-2 .nsi2-node svg{width:18px;height:18px}
.cf-next-step-invite-2 .nsi2-node.is-current{width:48px;height:48px;font-size:1.3125rem;outline-width:5px}
.cf-next-step-invite-2 .nsi2-body,.cf-next-step-invite-2 .nsi2-step.is-current .nsi2-body{align-items:center;padding:10px 0 0;background:none;border-radius:0}
.cf-next-step-invite-2 .nsi2-name{font-size:.9375rem;line-height:1.25}
.cf-next-step-invite-2 .nsi2-step.is-current .nsi2-name{font-size:.9375rem;line-height:1.25;letter-spacing:0}
.cf-next-step-invite-2 .nsi2-name-full{display:none}
.cf-next-step-invite-2 .nsi2-name-short{display:inline}
.cf-next-step-invite-2 .nsi2-status,.cf-next-step-invite-2 .nsi2-detail,.cf-next-step-invite-2 .nsi2-step.is-current .nsi2-detail{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
.cf-next-step-invite-2 .nsi2-card.has-image{margin-top:64px}
.cf-next-step-invite-2 .nsi2-card.has-image .nsi2-card-head{grid-template-columns:minmax(0,1fr);row-gap:12px}
.cf-next-step-invite-2 .nsi2-product{max-width:168px;margin-top:-80px}
.cf-next-step-invite-2 .nsi2-btn{padding:0 20px}
}
@media (max-width:480px){
.cf-next-step-invite-2 .nsi2-sc{flex-basis:100%}
}
@media (prefers-reduced-motion:reduce){
.cf-next-step-invite-2 .nsi2-fill{transform:none}
.cf-next-step-invite-2 .nsi2-btn,.cf-next-step-invite-2 .nsi2-decline-link{transition:none}
.cf-next-step-invite-2 .nsi2-btn:hover:not(:disabled),.cf-next-step-invite-2 .nsi2-btn.is-hover,.cf-next-step-invite-2 .nsi2-btn:active:not(:disabled),.cf-next-step-invite-2 .nsi2-btn.is-active{transform:none}
}
`;
pieces/content/next-step-invite-2/specimen.tsx 32 lines
import __studioImageaae61fed from "../assets/942e3fa32e5e46c9.webp";
import NextStepInvite2 from '../next-step-invite-2';
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 NextStepInvite2Specimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample;
return (
<NextStepInvite2
state={state}
milestones={[
{ name: sample.registration.name, shortName: 'Workshop', detail: 'Your seat is saved. Watch online.' },
{ name: sample.name, shortName: 'Starter Kit', detail: 'Plan your funnel and draft every page.' },
{ name: 'Launch your first funnel', shortName: 'Launch', detail: 'Go live with every link and form checked.' },
]}
current={1}
offerName={sample.name}
price={sample.price}
anchorPrice={sample.regularPrice}
sublabel={sample.sublabel}
productImage={slot(
'product',
__studioImageaae61fed
)}
productImageAlt='The Funnel Starter Kit: planning guide, copy workbook and launch checklist'
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalNextStepInvite2 |
React.ReactNode |
|
emphasis OptionalNextStepInvite2 |
string |
|
headingLevel OptionalNextStepInvite2 |
'h1' | 'h2' |
|
lead OptionalNextStepInvite2 |
React.ReactNode |
|
milestones OptionalNextStepInvite2 |
NextStepInvite2Milestone[] |
|
current OptionalNextStepInvite2 |
number |
|
offerName OptionalNextStepInvite2 |
string |
|
offerLead OptionalNextStepInvite2 |
React.ReactNode |
|
productImage OptionalNextStepInvite2 |
string |
|
productImageAlt OptionalNextStepInvite2 |
string |
|
reasonsHeading OptionalNextStepInvite2 |
string |
|
reasons OptionalNextStepInvite2 |
React.ReactNode[] |
|
investmentIntro OptionalNextStepInvite2 |
React.ReactNode |
|
price OptionalNextStepInvite2 |
string |
|
anchorPrice OptionalNextStepInvite2 |
string |
|
question OptionalNextStepInvite2 |
string |
|
label OptionalNextStepInvite2 |
string |
|
sublabel OptionalNextStepInvite2 |
string |
|
declineLabel OptionalNextStepInvite2 |
string |
|
declineHref OptionalNextStepInvite2 |
string |
|
onDecline OptionalNextStepInvite2 |
() => void |
|
href OptionalNextStepInvite2 |
string |
|
onAction OptionalNextStepInvite2 |
() => void |
|
disabled OptionalNextStepInvite2 |
boolean |
|
state OptionalNextStepInvite2 |
'default' | 'hover' | 'active' | 'disabled' |
|
copy OptionalNextStepInvite2 |
Partial<NextStepInvite2Copy> |
|
className OptionalNextStepInvite2 |
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.
product- The main product shot or cover (ebook, kit, bottle).
-
942e3fa32e5e46c9.webp
image/webp · 126 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB