Preorder 2
Honest pre-order route: prototype to tooling to production to shipping, the current stage lit with its render and a two-line update. Under the map, straight answers on charges, delays and refunds sit beside the early-price ledger and the reserve button. Transparency is the risk reversal.
Use it in a prompt
Use offer/preorder-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/offer/preorder-2.tsx. - Import it and pass your copy and images (Props tab):
import { Preorder2 } from "@/components/funneldna/offer/preorder-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/preorder-2/component.tsx 555 lines
// layout: route-map
// Honest pre-order route: prototype to tooling to production to shipping, the current stage lit with its render and a two-line update. Under the map, straight answers on charges, delays and refunds sit beside the early-price ledger and the reserve button. Transparency is the risk reversal.
import * as React from "react"
import { motion, useReducedMotion } from "motion/react"
import { CalendarClock, Check, ShieldCheck } from "lucide-react"
import { FX_HOST, Glow, Pattern } from "../fx/fx"
export type Preorder2Stage = {
/** Stage name on the route, e.g. "Tooling" */
name: string
/** Supplied date for this stage, e.g. "Feb 2027"; shown through the copy templates, never invented */
date?: string
/** First line of the update, set bold */
update?: string
/** Second line of the update */
note?: string
/** Render of the product at this stage; stages without one show the nearest earlier render */
image?: string
imageAlt?: string
/** Caption under the render, e.g. "Tooling render: first mould samples" */
caption?: string
}
export type Preorder2Line = { name: string; value: string }
export type Preorder2Copy = {
mapLabel: string
doneLabel: string
currentLabel: string
upcomingLabel: string
/** {date} is replaced by the stage date */
doneDate: string
/** {date} is replaced by the stage date */
currentDate: string
/** {date} is replaced by the stage date */
upcomingDate: string
/** Screen-reader note on the stage the project is at now */
currentNote: string
backToNow: string
/** Label over the next stage line in the update panel */
nextLabel: string
chargeTitle: string
slipTitle: string
refundTitle: string
totalLabel: string
priceLabel: string
closedNote: string
}
export type Preorder2Props = {
headline?: React.ReactNode
/** Phrase inside a string headline that gets the marker stroke */
highlight?: string
lead?: React.ReactNode
/** The route, in order */
stages?: Preorder2Stage[]
/** Index of the stage the project is at now (0-based) */
currentStage?: number
/** When the card is charged (supplied) */
charge?: string
/** What happens if a date slips (supplied) */
slip?: string
/** The refund policy (supplied) */
refund?: string
answersHeading?: string
/** Value lines that add up to the regular value */
ledger?: Preorder2Line[]
/** The supplied total / regular value, e.g. "$249" */
totalValue?: string
/** The supplied early price, e.g. "$169" */
price?: string
label?: string
/** Second line inside the button */
sublabel?: string
/** One reassurance line under the button */
reassurance?: string
href?: string
onAction?: () => void
/** Reservations closed: the button is disabled and the closed note shows */
closed?: boolean
state?: "default" | "hover" | "active" | "disabled"
copy?: Partial<Preorder2Copy>
className?: string
}
type Status = "done" | "current" | "upcoming"
const DEFAULT_STAGES: Preorder2Stage[] = [
{ name: "Prototype" },
{ name: "Tooling" },
{ name: "Production" },
{ name: "Shipping" },
]
const DEFAULT_COPY: Preorder2Copy = {
mapLabel: "Production route: choose a stage to see its update",
doneLabel: "Done",
currentLabel: "In progress now",
upcomingLabel: "Coming up",
doneDate: "Finished {date}",
currentDate: "In progress · target {date}",
upcomingDate: "Target {date}",
currentNote: "(where we are now)",
backToNow: "Back to where we are now",
nextLabel: "Up next",
chargeTitle: "When your card is charged",
slipTitle: "If a date slips",
refundTitle: "If you change your mind",
totalLabel: "Total value",
priceLabel: "Your early-backer price",
closedNote: "Reservations are closed right now.",
}
export function Preorder2(props: Preorder2Props) {
const {
headline = "Follow every step from prototype to your door",
highlight = "every step",
lead = "Tap any stage to see where things stand, what it looks like and what happens next.",
stages = DEFAULT_STAGES,
currentStage = 0,
charge = "",
slip = "",
refund = "",
answersHeading = "Straight answers before you reserve",
ledger = [],
totalValue = "",
price = "",
label = "Reserve mine",
sublabel = "",
reassurance = "",
href,
onAction,
closed = false,
state = "default",
copy: copyProp,
className,
} = props
const copy: Preorder2Copy = { ...DEFAULT_COPY, ...copyProp }
const reduce = useReducedMotion()
const uid = React.useId()
const headingId = `${uid}-h`
const viewerId = `${uid}-viewer`
const count = stages.length
const current = Math.min(Math.max(0, Math.round(currentStage)), Math.max(0, count - 1))
const [view, setView] = React.useState(current)
React.useEffect(() => {
setView(current)
}, [current])
const viewerRef = React.useRef<HTMLDivElement>(null)
const stopRefs = React.useRef<Array<HTMLButtonElement | null>>([])
const index = Math.min(view, Math.max(0, count - 1))
const stage = stages[index]
const render = pickRender(stages, index)
const status = (i: number): Status => (i < current ? "done" : i === current ? "current" : "upcoming")
const statusLabel = (i: number) => {
const s = status(i)
return s === "done" ? copy.doneLabel : s === "current" ? copy.currentLabel : copy.upcomingLabel
}
const dateLine = (i: number) => {
const d = stages[i]?.date
if (!d) return ""
const s = status(i)
const t = s === "done" ? copy.doneDate : s === "current" ? copy.currentDate : copy.upcomingDate
return fill(t, { date: d })
}
const select = (i: number, focus = false) => {
setView(i)
if (focus) {
stopRefs.current[i]?.focus()
return
}
const el = viewerRef.current
if (el && typeof window !== "undefined" && window.matchMedia("(max-width: 860px)").matches) {
if (el.getBoundingClientRect().top < 0) el.scrollIntoView({ behavior: reduce ? "auto" : "smooth", block: "start" })
}
}
const onKey = (e: React.KeyboardEvent<HTMLButtonElement>, i: number) => {
let next = -1
if (e.key === "ArrowRight" || e.key === "ArrowDown") next = (i + 1) % count
else if (e.key === "ArrowLeft" || e.key === "ArrowUp") next = (i - 1 + count) % count
else if (e.key === "Home") next = 0
else if (e.key === "End") next = count - 1
if (next < 0) return
e.preventDefault()
select(next, true)
}
const answers = [
{ title: copy.chargeTitle, body: charge },
{ title: copy.slipTitle, body: slip },
{ title: copy.refundTitle, body: refund },
].filter((a) => a.body)
const disabled = closed || state === "disabled"
const ctaClass = `po2-cta${state === "hover" ? " is-hover" : ""}${state === "active" ? " is-active" : ""}`
const ctaInner = (
<>
<span className="po2-cta__label">{label}</span>
{sublabel ? <span className="po2-cta__sub">{sublabel}</span> : null}
</>
)
const action =
href && !disabled ? (
<a className={ctaClass} href={href} onClick={() => onAction?.()}>
{ctaInner}
</a>
) : (
<button type="button" className={ctaClass} disabled={disabled} onClick={() => onAction?.()}>
{ctaInner}
</button>
)
const viewStatus = status(index)
const viewDate = dateLine(index)
const nextIndex = index + 1 < count ? index + 1 : -1
const nextStage = nextIndex >= 0 ? stages[nextIndex] : undefined
const nextDate = nextIndex >= 0 ? dateLine(nextIndex) : ""
return (
<section
className={["cf-preorder-2", className].filter(Boolean).join(" ")}
style={FX_HOST as React.CSSProperties}
aria-labelledby={headingId}
>
<Pattern name="grid" fade="edges" />
<style>{CSS}</style>
<div className="po2-wrap">
<header className="po2-head po2-reveal">
<h2 id={headingId} className="po2-h2">
{renderHeadline(headline, highlight)}
</h2>
{lead ? <p className="po2-lead">{lead}</p> : null}
</header>
{stage ? (
<div
ref={viewerRef}
id={viewerId}
className="po2-viewer po2-reveal"
style={{ ...(FX_HOST as React.CSSProperties), ["--d" as string]: 1 } as React.CSSProperties}
>
<Glow />
<div className={`po2-viewer__inner${render ? "" : " is-text-only"}`}>
{render ? (
<figure className="po2-render">
<div className="po2-render__frame">
<motion.img
key={`${index}-${render.src}`}
src={render.src}
alt={render.alt}
decoding="async"
initial={reduce ? false : { opacity: 0.55, scale: 1.015 }}
animate={{ opacity: 1, scale: 1 }}
transition={{ duration: 0.35, ease: [0.2, 0.7, 0.2, 1] }}
/>
</div>
{stage.caption ? <figcaption>{stage.caption}</figcaption> : null}
</figure>
) : null}
<div className="po2-update">
<motion.div
key={index}
aria-live="polite"
initial={reduce ? false : { opacity: 0.82, y: 8 }}
animate={{ opacity: 1, y: 0 }}
transition={{ duration: 0.35, ease: [0.2, 0.7, 0.2, 1] }}
>
<span className={`po2-chip is-${viewStatus}`}>
{viewStatus === "done" ? <Check size={16} strokeWidth={2.5} aria-hidden="true" /> : null}
{statusLabel(index)}
</span>
<h3 className="po2-stage-title">{stage.name}</h3>
{viewDate ? (
<p className="po2-date">
<CalendarClock className="po2-inline-icon" size={18} strokeWidth={2.5} aria-hidden="true" />
{viewDate}
</p>
) : null}
{stage.update ? <p className="po2-news">{stage.update}</p> : null}
{stage.note ? <p className="po2-note">{stage.note}</p> : null}
</motion.div>
{nextStage || index !== current ? (
<div className="po2-foot">
{nextStage ? (
<p className="po2-next">
<span className="po2-next__label">{copy.nextLabel}</span>
{nextStage.name}
{nextDate ? <span className="po2-next__date"> · {nextDate}</span> : null}
</p>
) : null}
{index !== current ? (
<button type="button" className="po2-back" onClick={() => select(current)}>
{copy.backToNow}
</button>
) : null}
</div>
) : null}
</div>
</div>
</div>
) : null}
{count > 0 ? (
<div
className="po2-route po2-reveal"
role="group"
aria-label={copy.mapLabel}
style={{ ["--n" as string]: count, ["--d" as string]: 2 } as React.CSSProperties}
>
<ol>
{stages.map((s, i) => {
const st = status(i)
return (
<li key={`${s.name}-${i}`} style={{ ["--i" as string]: i } as React.CSSProperties}>
<button
ref={(el) => {
stopRefs.current[i] = el
}}
type="button"
className={`po2-stop is-${st}`}
aria-pressed={i === index}
aria-current={i === current ? "step" : undefined}
aria-controls={viewerId}
onClick={() => select(i)}
onKeyDown={(e) => onKey(e, i)}
>
<span className={`po2-node is-${st}`} aria-hidden="true">
{st === "done" ? <Check size={20} strokeWidth={3} /> : null}
</span>
<span className="po2-stop__text">
<span className="po2-stop__name">{s.name}</span>
<span className="po2-stop__when">{dateLine(i) || statusLabel(i)}</span>
{i === current ? <span className="po2-sr">{copy.currentNote}</span> : null}
</span>
</button>
{i < count - 1 ? (
<span className={`po2-seg${i < current ? " is-done" : ""}`} aria-hidden="true">
{i < current ? <i /> : null}
</span>
) : null}
</li>
)
})}
</ol>
</div>
) : null}
<div
className={`po2-deal po2-reveal${answers.length ? "" : " is-single"}`}
style={{ ["--d" as string]: 3 } as React.CSSProperties}
>
{answers.length ? (
<div className="po2-answers">
<h3 className="po2-h3">{answersHeading}</h3>
<ol>
{answers.map((a, i) => (
<li key={a.title} className="po2-answer">
<span className="po2-num" aria-hidden="true">
{i + 1}
</span>
<div>
<h4>{a.title}</h4>
<p>{a.body}</p>
</div>
</li>
))}
</ol>
</div>
) : null}
<div className="po2-well">
{ledger.length || totalValue ? (
<ul className="po2-ledger">
{ledger.map((line, i) => (
<li key={`${line.name}-${i}`} className="po2-line">
<span className="po2-line__name">{line.name}</span>
<span className="po2-line__leader" aria-hidden="true" />
<span className="po2-line__value">{line.value}</span>
</li>
))}
{totalValue ? (
<li className="po2-line is-total">
<span className="po2-line__name">{copy.totalLabel}</span>
<span className="po2-line__leader" aria-hidden="true" />
<span className="po2-line__value">{totalValue}</span>
</li>
) : null}
</ul>
) : null}
{price ? (
<p className="po2-price">
<span className="po2-price__label">{copy.priceLabel}</span>
<span className="po2-price__num">{price}</span>
</p>
) : null}
{action}
{disabled ? (
<p className="po2-reassure">{copy.closedNote}</p>
) : reassurance ? (
<p className="po2-reassure">
<ShieldCheck className="po2-inline-icon po2-shield" size={18} strokeWidth={2.5} aria-hidden="true" />
{reassurance}
</p>
) : null}
</div>
</div>
</div>
</section>
)
}
export default Preorder2
function renderHeadline(headline: React.ReactNode, highlight?: string) {
if (typeof headline !== "string" || !highlight) return headline
const at = headline.indexOf(highlight)
if (at < 0) return headline
return (
<>
{headline.slice(0, at)}
<span className="po2-mark">{highlight}</span>
{headline.slice(at + highlight.length)}
</>
)
}
function pickRender(stages: Preorder2Stage[], index: number) {
for (let i = index; i >= 0; i--) {
const s = stages[i]
if (s?.image) return { src: s.image, alt: s.imageAlt ?? "" }
}
for (let i = index + 1; i < stages.length; i++) {
const s = stages[i]
if (s?.image) return { src: s.image, alt: s.imageAlt ?? "" }
}
return null
}
function fill(template: string, values: Record<string, string>) {
let out = template
for (const key of Object.keys(values)) out = out.split(`{${key}}`).join(values[key])
return out
}
const CSS = `
.cf-preorder-2{position:relative;overflow:hidden;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)}
.cf-preorder-2 *,.cf-preorder-2 *::before,.cf-preorder-2 *::after{box-sizing:border-box}
.cf-preorder-2 .po2-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-preorder-2 .po2-head{max-width:46rem;margin:0 auto 48px;text-align:center}
.cf-preorder-2 .po2-h2{margin:0;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-preorder-2 .po2-mark{padding:0 .08em;border-radius:.18em .32em .22em .3em;background:linear-gradient(transparent 50%,color-mix(in oklch,var(--marker,#fae37c) 70%,transparent) 50%,color-mix(in oklch,var(--marker,#fae37c) 70%,transparent) 94%,transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone}
.cf-preorder-2 .po2-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(--muted);text-wrap:pretty}
.cf-preorder-2 .po2-viewer{position:relative;overflow:hidden;isolation:isolate;background:var(--band);color:var(--band-ink);border-radius:var(--card-radius,var(--radius,14px));box-shadow:var(--shadow-md,0 1px 2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.22),0 4px 10px -2px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.2));padding:clamp(20px,3vw,32px)}
.cf-preorder-2 .po2-viewer__inner{position:relative;z-index:1;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,1fr);gap:clamp(24px,4vw,48px);align-items:start}
.cf-preorder-2 .po2-viewer__inner.is-text-only{grid-template-columns:minmax(0,1fr)}
.cf-preorder-2 .po2-render{margin:0}
.cf-preorder-2 .po2-render__frame{position:relative;aspect-ratio:4/3;border-radius:12px;overflow:hidden;background:color-mix(in oklch,var(--band-ink) 8%,var(--band))}
.cf-preorder-2 .po2-render__frame img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:center}
.cf-preorder-2 .po2-render figcaption{margin-top:12px;font-size:.9375rem;line-height:1.4;font-weight:500;color:color-mix(in oklch,var(--band-ink) 80%,var(--band));text-wrap:pretty}
.cf-preorder-2 .po2-update{display:flex;flex-direction:column;align-items:flex-start;align-self:stretch;padding-top:8px;min-width:0}
.cf-preorder-2 .po2-foot{display:flex;flex-direction:column;align-items:flex-start;gap:16px;width:100%;margin-top:auto;padding-top:32px}
.cf-preorder-2 .po2-next{margin:0;width:100%;padding:12px 16px;border-radius:10px;background:oklch(from var(--band-ink) l c h / 0.08);font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;font-weight:700;color:var(--band-ink);text-wrap:pretty}
.cf-preorder-2 .po2-next__label{display:block;margin-bottom:4px;font-size:.875rem;font-weight:800;line-height:1.2;letter-spacing:.06em;text-transform:uppercase;color:color-mix(in oklch,var(--band-ink) 80%,var(--band))}
.cf-preorder-2 .po2-next__date{font-weight:600;color:color-mix(in oklch,var(--band-ink) 85%,var(--band))}
.cf-preorder-2 .po2-chip{display:inline-flex;align-items:center;gap:6px;min-height:28px;padding:4px 12px;border-radius:999px;font-size:.875rem;font-weight:800;line-height:1.2;background:oklch(from var(--band-ink) l c h / 0.12);color:var(--band-ink)}
.cf-preorder-2 .po2-chip.is-current{background:var(--accent-fill,var(--accent));color:var(--accent-fill-ink,var(--card))}
.cf-preorder-2 .po2-stage-title{margin:16px 0 0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;color:var(--band-ink)}
.cf-preorder-2 .po2-date{margin:8px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;color:color-mix(in oklch,var(--band-ink) 80%,var(--band));text-wrap:pretty}
.cf-preorder-2 .po2-inline-icon{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
.cf-preorder-2 .po2-news{margin:24px 0 0;font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:700;color:var(--band-ink);text-wrap:pretty}
.cf-preorder-2 .po2-note{margin:8px 0 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:color-mix(in oklch,var(--band-ink) 80%,var(--band));text-wrap:pretty}
.cf-preorder-2 .po2-back{margin-top:0;min-height:44px;padding:0 16px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:oklch(from var(--band-ink) l c h / 0.12);color:var(--band-ink);font-family:var(--font-body);font-size:.9375rem;font-weight:700;cursor:pointer;transition:background .16s ease,transform .16s ease}
.cf-preorder-2 .po2-back:hover{background:oklch(from var(--band-ink) l c h / 0.2)}
.cf-preorder-2 .po2-back:active{transform:translateY(1px)}
.cf-preorder-2 .po2-back:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-preorder-2 .po2-route{margin-top:24px}
.cf-preorder-2 .po2-route ol{list-style:none;margin:0;padding:0;display:grid;grid-template-columns:repeat(var(--n,4),minmax(0,1fr))}
.cf-preorder-2 .po2-route li{position:relative;min-width:0}
.cf-preorder-2 .po2-stop{position:relative;z-index:0;display:flex;flex-direction:column;align-items:center;gap:12px;width:calc(100% - 8px);margin:0 4px;padding:12px 12px 16px;border:1px solid transparent;border-radius:var(--radius,12px);background:transparent;color:var(--ink);font-family:var(--font-body);text-align:center;cursor:pointer;transition:background .16s ease,border-color .16s ease,transform .16s ease}
.cf-preorder-2 .po2-stop:hover{background:color-mix(in oklch,var(--ink) 4%,var(--surface))}
.cf-preorder-2 .po2-stop:active{transform:scale(.98)}
.cf-preorder-2 .po2-stop:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:2px}
.cf-preorder-2 .po2-stop[aria-pressed="true"]{background:color-mix(in oklch,var(--accent) 10%,var(--surface));border-color:oklch(from var(--accent) l c h / 0.35)}
.cf-preorder-2 .po2-node{display:grid;place-items:center;flex:none;width:40px;height:40px;border-radius:999px;transition:transform .16s ease}
.cf-preorder-2 .po2-stop:hover .po2-node{transform:scale(1.06)}
.cf-preorder-2 .po2-node.is-done{background:oklch(from var(--success) min(l, 0.55) c h);color:var(--po2-badge-ink,#fff)}
.cf-preorder-2 .po2-node.is-current{background:var(--accent-fill,var(--accent));box-shadow:0 0 0 5px oklch(from var(--accent-fill,var(--accent)) l c h / 0.22)}
.cf-preorder-2 .po2-node.is-current::after{content:"";width:12px;height:12px;border-radius:999px;background:var(--accent-fill-ink,var(--card))}
.cf-preorder-2 .po2-node.is-upcoming{background:var(--card);border:2px solid oklch(from var(--ink) l c h / 0.3)}
.cf-preorder-2 .po2-stop__text{display:flex;flex-direction:column;gap:4px;min-width:0}
.cf-preorder-2 .po2-stop__name{font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800;line-height:1.2;text-wrap:balance}
.cf-preorder-2 .po2-stop__when{font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:balance}
.cf-preorder-2 .po2-stop[aria-pressed="true"] .po2-stop__when{color:var(--ink)}
.cf-preorder-2 .po2-seg{position:absolute;z-index:1;pointer-events:none;top:31px;left:calc(50% + 28px);right:calc(-50% + 28px);height:4px;border-radius:999px;overflow:hidden;background:oklch(from var(--ink) l c h / 0.14)}
.cf-preorder-2 .po2-seg i{display:block;width:100%;height:100%;background:var(--accent-fill,var(--accent));transform-origin:left center}
.cf-preorder-2 .po2-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-preorder-2 .po2-deal{margin-top:48px;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(24px,4vw,48px);align-items:start;background:var(--card);color:var(--ink);border:1px solid var(--card-border,oklch(from var(--ink) l c h / 0.12));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 260)) l c h / 0.22),0 12px 24px -8px oklch(from var(--shadow,oklch(0.22 0.03 260)) l c h / 0.32)));padding:clamp(20px,3vw,32px)}
.cf-preorder-2 .po2-deal.is-single{grid-template-columns:minmax(0,34rem);justify-content:center}
.cf-preorder-2 .po2-answers{padding-top:8px;min-width:0}
.cf-preorder-2 .po2-h3{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);letter-spacing:-0.01em;text-transform:var(--display-case,none);font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;text-wrap:balance;color:var(--ink)}
.cf-preorder-2 .po2-answers ol{list-style:none;margin:24px 0 0;padding:0;display:grid;gap:24px}
.cf-preorder-2 .po2-answer{display:grid;grid-template-columns:auto minmax(0,1fr);gap:16px;align-items:start}
.cf-preorder-2 .po2-num{min-width:1.1em;font-family:var(--font-display);font-size:clamp(1.3125rem,1.8vw,1.625rem);font-weight:800;line-height:1.15;color:var(--accent);font-variant-numeric:tabular-nums}
.cf-preorder-2 .po2-answer h4{margin:2px 0 4px;font-size:clamp(1.0625rem,1.25vw,1.125rem);font-weight:800;line-height:1.3;color:var(--ink)}
.cf-preorder-2 .po2-answer p{margin:0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;color:var(--muted);text-wrap:pretty}
.cf-preorder-2 .po2-well{min-width:0;background:color-mix(in oklch,var(--ink) 4%,var(--card));border-radius:10px;padding:clamp(16px,2.4vw,28px)}
.cf-preorder-2 .po2-well > :first-child{margin-top:0}
.cf-preorder-2 .po2-ledger{list-style:none;margin:0;padding:0;display:grid;gap:8px}
.cf-preorder-2 .po2-line{display:flex;align-items:flex-end;gap:8px;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.4;color:var(--ink)}
.cf-preorder-2 .po2-line__name{min-width:0;text-wrap:pretty}
.cf-preorder-2 .po2-line__leader{flex:1 1 16px;min-width:16px;margin-bottom:.4em;border-bottom:1px solid oklch(from var(--ink) l c h / 0.22)}
.cf-preorder-2 .po2-line__value{font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-preorder-2 .po2-line.is-total{margin-top:8px;font-weight:800}
.cf-preorder-2 .po2-line.is-total .po2-line__value{font-weight:800}
.cf-preorder-2 .po2-price{margin:24px 0 0}
.cf-preorder-2 .po2-price__label{display:block;margin-bottom:8px;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted)}
.cf-preorder-2 .po2-price__num{display:block;font-family:var(--font-display);font-size:clamp(2.5rem,4.2vw,3.75rem);font-weight:800;letter-spacing:-0.03em;line-height:1;color:var(--ink);font-variant-numeric:tabular-nums}
.cf-preorder-2 .po2-cta{--po2-bg:var(--button-bg,var(--cta));--po2-bg2:var(--button-bg-2,var(--cta-2));--po2-sh:var(--shadow,oklch(0.22 0.03 260));position:relative;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;width:100%;min-height:72px;margin-top:20px;padding:12px 24px;border:0;border-radius:var(--button-radius,var(--radius,12px));background:linear-gradient(oklch(from var(--po2-bg) calc(l + 0.04) c h),oklch(from var(--po2-bg2) calc(l - 0.02) c h));color:var(--button-ink,var(--cta-ink));font-family:var(--button-font,var(--font-display));text-transform:var(--button-case,none);text-align:center;text-decoration:none;text-shadow:var(--button-text-shadow,none);cursor:pointer;box-shadow:var(--button-shadow,inset 0 1px 0 oklch(from var(--po2-bg) calc(l + 0.14) c h / 0.7),inset 0 -3px 0 oklch(from var(--po2-bg) calc(l - 0.16) c h),0 1px 2px oklch(from var(--po2-sh) l c h / 0.3),0 8px 16px -6px oklch(from var(--po2-sh) l c h / 0.45));transition:transform .16s ease,box-shadow .16s ease,background .16s ease}
.cf-preorder-2 .po2-cta:hover:not(:disabled),.cf-preorder-2 .po2-cta.is-hover:not(:disabled){background:linear-gradient(oklch(from var(--po2-bg) calc(l - 0.01) c h),oklch(from var(--po2-bg2) calc(l - 0.07) c h));transform:translateY(-1px);box-shadow:inset 0 1px 0 oklch(from var(--po2-bg) calc(l + 0.12) c h / 0.7),inset 0 -3px 0 oklch(from var(--po2-bg) calc(l - 0.2) c h),0 1px 2px oklch(from var(--po2-sh) l c h / 0.32),0 10px 20px -6px oklch(from var(--po2-sh) l c h / 0.52)}
.cf-preorder-2 .po2-cta:active:not(:disabled),.cf-preorder-2 .po2-cta.is-active:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from var(--po2-bg) calc(l - 0.04) c h),oklch(from var(--po2-bg2) calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from var(--po2-bg) calc(l - 0.22) c h / 0.45),inset 0 -2px 0 oklch(from var(--po2-bg) calc(l - 0.16) c h),0 1px 2px oklch(from var(--po2-sh) l c h / 0.3)}
.cf-preorder-2 .po2-cta:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-preorder-2 .po2-cta:disabled{background:var(--button-2-bg,var(--secondary,color-mix(in oklch,var(--ink) 10%,var(--card))));color:var(--button-2-ink,var(--secondary-ink,var(--ink)));text-shadow:none;box-shadow:var(--button-2-shadow,var(--shadow-sm));cursor:not-allowed}
.cf-preorder-2 .po2-cta__label{font-size:clamp(1.125rem,1.55vw,1.375rem);font-weight:var(--button-weight,800);line-height:1.15;text-wrap:balance}
.cf-preorder-2 .po2-cta__sub{font-family:var(--font-body);font-size:.9375rem;font-weight:600;line-height:1.3;text-transform:none;letter-spacing:0;text-wrap:pretty}
.cf-preorder-2 .po2-reassure{margin:12px 0 0;text-align:center;font-size:.9375rem;font-weight:600;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-preorder-2 .po2-shield{color:var(--success)}
@media (max-width:900px){.cf-preorder-2 .po2-deal{grid-template-columns:minmax(0,1fr)}.cf-preorder-2 .po2-answers{padding-top:0}}
@media (max-width:860px){.cf-preorder-2 .po2-viewer__inner{grid-template-columns:minmax(0,1fr)}.cf-preorder-2 .po2-update{padding-top:0}}
@media (max-width:720px){
.cf-preorder-2 .po2-head{margin-bottom:32px}
.cf-preorder-2 .po2-route ol{grid-template-columns:minmax(0,1fr)}
.cf-preorder-2 .po2-stop{flex-direction:row;align-items:flex-start;gap:16px;width:100%;margin:0;padding:12px;text-align:left}
.cf-preorder-2 .po2-stop__text{padding-top:2px}
.cf-preorder-2 .po2-stop__name,.cf-preorder-2 .po2-stop__when{text-wrap:pretty}
.cf-preorder-2 .po2-seg{top:59px;bottom:-5px;left:31px;right:auto;width:4px;height:auto}
.cf-preorder-2 .po2-seg i{transform-origin:center top}
.cf-preorder-2 .po2-deal{margin-top:32px;padding:20px 16px}
.cf-preorder-2 .po2-well{padding:20px 16px}
.cf-preorder-2 .po2-line{font-size:1rem}
.cf-preorder-2 .po2-line__leader{flex-basis:12px;min-width:12px}
.cf-preorder-2 .po2-foot{padding-top:24px}
.cf-preorder-2 .po2-cta{padding:12px 20px}
}
@keyframes cf-po2-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes cf-po2-draw{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes cf-po2-drawy{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@media (prefers-reduced-motion:no-preference){
.cf-preorder-2 .po2-reveal{animation:cf-po2-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--d,0) * .07s)}
.cf-preorder-2 .po2-seg i{animation:cf-po2-draw .6s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(.2s + var(--i,0) * .12s)}
}
@media (prefers-reduced-motion:no-preference) and (max-width:720px){.cf-preorder-2 .po2-seg i{animation-name:cf-po2-drawy}}
@media (prefers-reduced-motion:reduce){.cf-preorder-2 .po2-stop,.cf-preorder-2 .po2-node,.cf-preorder-2 .po2-cta,.cf-preorder-2 .po2-back{transition:none}.cf-preorder-2 .po2-stop:hover .po2-node{transform:none}}
`
pieces/offer/preorder-2/specimen.tsx 88 lines
import __studioImagea13004e8 from "../assets/0ffd34e4f7f84243.webp";
import __studioImage463db8dd from "../assets/a6c7c574cb4425f6.webp";
import __studioImage0b4c2fb3 from "../assets/4141d409bc3fd434.webp";
import * as React from "react"
import { Preorder2 } from "../preorder-2"
import defaults from "../../studio-defaults.json"
import { slot } from "../../slots"
type State = "default" | "hover" | "active" | "disabled"
export const states = ["default", "hover", "active", "disabled"]
export default function Preorder2Specimen({ state = "default" }: { state?: State }) {
const prototype = slot(
"item-1",
__studioImagea13004e8
)
const tooling = slot(
"item-2",
__studioImage463db8dd
)
const finished = slot(
"product",
__studioImage0b4c2fb3
)
return (
<Preorder2
state={state}
headline="Know exactly where your Orbit Lamp is before you reserve it"
highlight="exactly where"
lead="Tap any stage to see the real progress, the target date and what happens next. No guessing about charges, delays or refunds."
currentStage={1}
stages={[
{
name: "Prototype",
date: "Mar 2026",
update: "Working prototypes are finished.",
note: "Twelve hand-built lamps were tested for heat, brightness and arm balance.",
image: prototype,
imageAlt: "Grey 3D-printed prototype of the Orbit Lamp on a workbench",
caption: "Prototype render: a hand-built unit from the first test batch",
},
{
name: "Tooling",
date: "Dec 2026",
update: "The production moulds are being cut now.",
note: "First aluminium samples get fit-checked before we sign off the tooling.",
image: tooling,
imageAlt: "Raw aluminium Orbit Lamp sample beside a steel mould block",
caption: "Tooling render: raw aluminium head and arm from the first mould samples",
},
{
name: "Production",
date: "Feb 2027",
update: "The first production run starts.",
note: "Every lamp is assembled, lit and checked by hand before it is boxed.",
image: finished,
imageAlt: "Finished Orbit Lamp with a glowing ring head and black arm",
caption: "Production render: the finished Orbit Lamp",
},
{
name: "Shipping",
date: "Apr 2027",
update: "Your lamp ships to your door.",
note: "You get a tracking link by email the day your lamp leaves the warehouse.",
image: finished,
imageAlt: "Finished Orbit Lamp with a glowing ring head and black arm",
caption: "Production render: the lamp that ships to you",
},
]}
answersHeading="Three straight answers before you reserve"
charge="Your card is charged when your lamp ships, not today. Reserving holds your early-backer price."
slip="If a date moves, we email you the new date and the reason, and update this map the same day."
refund={`Cancel any time before it ships for a full refund. Once it arrives, you have a ${defaults.sample.guarantee}.`}
ledger={[
{ name: "Orbit Lamp", value: "$189" },
{ name: "Wireless charging base", value: "$39" },
{ name: "Spare linen diffuser", value: "$21" },
]}
totalValue="$249"
price="$169"
label="Reserve mine"
sublabel="Charged only when it ships"
reassurance="Cancel before it ships for a full refund"
/>
)
}
| Name | Type | Details |
|---|---|---|
headline OptionalPreorder2 |
React.ReactNode |
|
highlight OptionalPreorder2 |
string |
|
lead OptionalPreorder2 |
React.ReactNode |
|
stages OptionalPreorder2 |
Preorder2Stage[] |
|
currentStage OptionalPreorder2 |
number |
|
charge OptionalPreorder2 |
string |
|
slip OptionalPreorder2 |
string |
|
refund OptionalPreorder2 |
string |
|
answersHeading OptionalPreorder2 |
string |
|
ledger OptionalPreorder2 |
Preorder2Line[] |
|
totalValue OptionalPreorder2 |
string |
|
price OptionalPreorder2 |
string |
|
label OptionalPreorder2 |
string |
|
sublabel OptionalPreorder2 |
string |
|
reassurance OptionalPreorder2 |
string |
|
href OptionalPreorder2 |
string |
|
onAction OptionalPreorder2 |
() => void |
|
closed OptionalPreorder2 |
boolean |
|
state OptionalPreorder2 |
"default" | "hover" | "active" | "disabled" |
|
copy OptionalPreorder2 |
Partial<Preorder2Copy> |
|
className OptionalPreorder2 |
string |
Theme roles it reads
Set by the theme bar, a preset or your brand. Colours come from the base tokens (--surface, --ink, --cta…) every piece uses.
--button-bg--button-bg-2--button-case--button-font--button-ink--button-radius--button-shadow--button-text-shadow--button-weight- Main CTA button: background, ink, font, weight, case, radius and shadow.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
item-2- One image per offer item (item-1, item-2…), shown in stacks and lists.
product- The main product shot or cover (ebook, kit, bottle).
-
0ffd34e4f7f84243.webp
image/webp · 30.4 KB
-
4141d409bc3fd434.webp
image/webp · 17 KB
-
a6c7c574cb4425f6.webp
image/webp · 36.9 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB