Order Bump 3
Book-funnel order bump block: the audiobook on a phone beside a classic yellow bump box, with a live order total and Add To Cart, so one tick lifts the order value.
Use it in a prompt
Use offer/order-bump-3 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/order-bump-3.tsx. - Import it and pass your copy and images (Props tab):
import { OrderBump3 } from "@/components/funneldna/offer/order-bump-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/order-bump-3/component.tsx 546 lines
// layout: bento-grid
// Book-funnel order bump block: the audiobook on a phone beside a classic yellow bump box, with a live order total and Add To Cart, so one tick lifts the order value.
"use client"
import * as React from "react"
import { Check, ShoppingCart } from "lucide-react"
import { Texture, FX_HOST } from "../fx/fx"
import linen from "../fx/textures/linen"
export type OrderBump3Item = {
name: string
/** Pre-formatted, e.g. "$14". */
price: string
/** Transparent product cut-out (slot "product"). */
image?: string
imageAlt?: string
}
export type OrderBump3Fact = {
/** Short figure set in big type, e.g. "42". */
value: string
label: string
}
export type OrderBump3Props = {
state?: "default" | "hover" | "active" | "disabled"
headline?: string
lead?: string
/** Name of the add-on as it appears in the order rows. */
bumpName?: string
/** Pre-formatted add-on price, e.g. "$9". */
bumpPrice?: string
/** Transparent cut-out of the add-on (slot "item-1"), e.g. a phone playing the audiobook. */
bumpImage?: string
bumpImageAlt?: string
/** Strip line before ticking. {price} is replaced with bumpPrice. */
addLine?: string
/** Strip line once ticked. {price} is replaced with bumpPrice. */
addedLine?: string
/** Red-caps lead-in for the body sentence, e.g. "ONE-CLICK ADD-ON:". Only pass it when it is true. */
offerTag?: string
/** One sentence on what the add-on gives them. */
description?: React.ReactNode
/** Optional figures about the add-on; the tile hides when empty. */
facts?: OrderBump3Fact[]
orderHeadline?: string
/** What is already in the order. */
items?: OrderBump3Item[]
/** {total} is replaced with the live total. */
onceLine?: string
/** Line under the total; only pass it when it is true. */
onceNote?: string
/** {total} is replaced with the live total. */
actionLabel?: string
/** Closing P.S. under the action. */
ps?: React.ReactNode
href?: string
onAction?: (detail: { bump: boolean; total: string }) => void
checked?: boolean
defaultChecked?: boolean
onChange?: (checked: boolean) => void
disabled?: boolean
id?: string
className?: string
}
export function OrderBump3({
state = "default",
headline = "Hear it while your hands are busy",
lead = "Tick the box and the audiobook joins your order, so you can listen on the drive, the walk or the dishes.",
bumpName = "The audiobook",
bumpPrice = "$9",
bumpImage,
bumpImageAlt = "The audiobook playing on a phone",
addLine = "Yes! Add the audiobook for just {price}",
addedLine = "Added! The audiobook is in your order ({price})",
offerTag,
description = "Hear every chapter read aloud, so the book keeps working for you when you can't sit down to read.",
facts = [],
orderHeadline = "Everything you need to start tonight",
items = [{ name: "The book, paperback", price: "$14" }],
onceLine = "{total} today. That's it.",
onceNote,
actionLabel = "Add To Cart \u00b7 {total}",
ps,
href,
onAction,
checked,
defaultChecked,
onChange,
disabled = false,
id,
className,
}: OrderBump3Props) {
const autoId = React.useId().replace(/:/g, "")
const inputId = id ?? `ob3-${autoId}`
const [inner, setInner] = React.useState<boolean>(defaultChecked ?? state === "active")
const isChecked = checked ?? inner
const isDisabled = disabled || state === "disabled"
const baseCents = items.reduce((sum, item) => sum + toCents(item.price), 0)
const totalCents = baseCents + (isChecked ? toCents(bumpPrice) : 0)
const total = money(totalCents, items[0]?.price ?? bumpPrice)
const [before, after, hasTotal] = splitOn(onceLine, "{total}")
const stripText = fill(isChecked ? addedLine : addLine, { price: bumpPrice })
const ctaText = fill(actionLabel, { total })
const handleAction = () => onAction?.({ bump: isChecked, total })
const ctaInner = (
<>
<ShoppingCart strokeWidth={2.5} aria-hidden />
<span>{ctaText}</span>
</>
)
return (
<section
className={["cf-order-bump-3", className].filter(Boolean).join(" ")}
style={FX_HOST}
aria-labelledby={`${inputId}-h`}
>
<style>{CSS}</style>
<Texture src={linen} tone="band-ink" />
<div className="ob3-wrap">
<div className="ob3-grid">
<header className="ob3-promise ob3-in" style={{ "--i": 0 } as React.CSSProperties}>
<h2 id={`${inputId}-h`}>{headline}</h2>
{lead && <p className="ob3-lead">{lead}</p>}
</header>
<div
className="ob3-zone ob3-in"
data-has-image={bumpImage ? "" : undefined}
style={{ "--i": 1 } as React.CSSProperties}
>
{bumpImage && (
<figure className="ob3-phone">
<img src={bumpImage} alt={bumpImageAlt} width={440} height={440} loading="lazy" />
</figure>
)}
<div
className="ob3-bump"
data-checked={isChecked ? "" : undefined}
data-disabled={isDisabled ? "" : undefined}
data-hover={state === "hover" ? "" : undefined}
>
<label htmlFor={inputId} className="ob3-strip">
<span className="ob3-box">
<input
id={inputId}
type="checkbox"
checked={isChecked}
disabled={isDisabled}
aria-describedby={`${inputId}-desc`}
onChange={(e) => {
const next = e.target.checked
setInner(next)
onChange?.(next)
}}
/>
<Check className="ob3-tick" strokeWidth={3} aria-hidden />
</span>
{bumpImage && <img className="ob3-thumb" src={bumpImage} alt="" aria-hidden width={64} height={64} />}
<span className="ob3-add">
<span key={isChecked ? "on" : "off"} className="ob3-addtext">
{stripText}
</span>
</span>
</label>
<p id={`${inputId}-desc`} className="ob3-desc">
{offerTag && <strong className="ob3-tag">{offerTag}</strong>}
{description}
</p>
</div>
</div>
{facts.length > 0 && (
<ul className="ob3-facts ob3-in" style={{ "--i": 2 } as React.CSSProperties}>
{facts.map((fact, i) => (
<li key={i}>
<span className="ob3-fv">{fact.value}</span>
<span className="ob3-fl">{fact.label}</span>
</li>
))}
</ul>
)}
<aside
className="ob3-order ob3-in"
aria-labelledby={orderHeadline ? `${inputId}-oh` : undefined}
style={{ "--i": 3 } as React.CSSProperties}
>
{orderHeadline && <h3 id={`${inputId}-oh`}>{orderHeadline}</h3>}
<ul className="ob3-rows">
{items.map((item, i) => (
<li key={i} className="ob3-row" data-img={item.image ? "" : undefined}>
{item.image && <img className="ob3-rowimg" src={item.image} alt={item.imageAlt ?? ""} width={48} height={48} />}
<span className="ob3-rowname">{item.name}</span>
<span className="ob3-rowprice">{item.price}</span>
</li>
))}
<li className="ob3-rowwrap" data-on={isChecked ? "" : undefined} aria-hidden={!isChecked}>
<div className="ob3-rowclip">
<div className="ob3-row" data-img={bumpImage ? "" : undefined}>
{bumpImage && <img className="ob3-rowimg" src={bumpImage} alt="" width={48} height={48} />}
<span className="ob3-rowname">{bumpName}</span>
<span className="ob3-rowprice">{bumpPrice}</span>
</div>
</div>
</li>
</ul>
<p className="ob3-once" aria-live="polite">
{hasTotal ? (
<>
{before}
<span className="ob3-total">{total}</span>
{after}
</>
) : (
<>
<span className="ob3-total">{total}</span>
{onceLine}
</>
)}
</p>
{onceNote && <p className="ob3-note">{onceNote}</p>}
{href ? (
<a className="ob3-cta" href={href} onClick={handleAction}>
{ctaInner}
</a>
) : (
<button type="button" className="ob3-cta" onClick={handleAction}>
{ctaInner}
</button>
)}
{ps && <p className="ob3-ps">{ps}</p>}
</aside>
</div>
</div>
</section>
)
}
export default OrderBump3
function toCents(value: string) {
let whole = ""
let frac = ""
let seenDot = false
for (const ch of value) {
if (ch >= "0" && ch <= "9") {
if (seenDot) {
if (frac.length < 2) frac += ch
} else whole += ch
} else if (ch === "." && whole) seenDot = true
else if (whole && ch !== ",") break
}
return Number(whole || "0") * 100 + Number((frac + "00").slice(0, 2))
}
function currencyOf(value: string) {
let sym = ""
for (const ch of value) {
if (ch >= "0" && ch <= "9") break
if (ch !== "+" && ch !== " " && ch !== "-") sym += ch
}
return sym || "$"
}
function money(cents: number, sample: string) {
const whole = cents % 100 === 0
return (
currencyOf(sample) +
(cents / 100).toLocaleString("en-US", { minimumFractionDigits: whole ? 0 : 2, maximumFractionDigits: 2 })
)
}
function fill(template: string, vars: Record<string, string>) {
return Object.keys(vars).reduce((text, key) => text.split("{" + key + "}").join(vars[key]), template)
}
function splitOn(template: string, key: string): [string, string, boolean] {
const at = template.indexOf(key)
if (at < 0) return [template, "", false]
return [template.slice(0, at), template.slice(at + key.length), true]
}
const CSS = `
.cf-order-bump-3{
--_bump:var(--bump, oklch(0.975 0.04 95));
--_strip:var(--bump-strip, oklch(0.93 0.11 95));
--_bink:var(--bump-ink, var(--ink, oklch(0.21 0.034 263)));
--_bg:var(--button-bg, var(--cta, oklch(0.576 0.209 29.5)));
--_bg2:var(--button-bg-2, var(--cta-2, oklch(0.506 0.206 29.5)));
--_shadow:var(--shadow, oklch(0.22 0.03 256));
background:var(--band, oklch(0.27 0.067 256));
color:var(--band-ink, oklch(1 0 0));
font-family:var(--font-body, Arial, sans-serif);
padding:clamp(56px,8vw,112px) clamp(16px,5vw,48px) clamp(64px,8.5vw,120px);
overflow:hidden;
}
.cf-order-bump-3 *,.cf-order-bump-3 *::before,.cf-order-bump-3 *::after{box-sizing:border-box}
.cf-order-bump-3 .ob3-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-order-bump-3 .ob3-grid{
display:grid;gap:clamp(24px,3vw,32px);align-items:start;
grid-template-columns:minmax(0,1fr) minmax(300px,368px);
grid-template-areas:"promise order" "zone order" "facts order";
}
.cf-order-bump-3 .ob3-promise{grid-area:promise}
.cf-order-bump-3 .ob3-promise h2{
margin:0 0 16px;color:var(--band-ink, oklch(1 0 0));
font-family:var(--font-display, Arial, sans-serif);
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);text-wrap:balance;
}
.cf-order-bump-3 .ob3-lead{
margin:0;max-width:60ch;color:var(--band-ink, oklch(1 0 0));
font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty;
}
.cf-order-bump-3 .ob3-zone{
grid-area:zone;display:grid;align-items:start;
grid-template-columns:minmax(150px,220px) minmax(0,1fr);gap:clamp(16px,2.5vw,28px);
}
.cf-order-bump-3 .ob3-zone:not([data-has-image]){grid-template-columns:minmax(0,1fr)}
.cf-order-bump-3 .ob3-phone{margin:0}
.cf-order-bump-3 .ob3-phone img{
display:block;width:100%;height:auto;aspect-ratio:1;object-fit:contain;border-radius:0;
filter:drop-shadow(0 2px 3px oklch(from var(--_shadow) calc(l - 0.08) c h / 0.5)) drop-shadow(0 14px 16px oklch(from var(--_shadow) calc(l - 0.1) c h / 0.45));
}
.cf-order-bump-3 .ob3-bump{
position:relative;overflow:hidden;
background:var(--_bump);color:var(--_bink);
border:2px dashed oklch(from var(--_bink) l c h / 0.5);
border-radius:var(--card-radius, var(--radius, 14px));
box-shadow:var(--shadow-md, 0 1px 2px oklch(0.22 0.03 256 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 256 / 0.2));
transition:border-color .16s ease, box-shadow .16s ease, transform .16s ease;
}
.cf-order-bump-3 .ob3-bump::after{
content:"";position:absolute;inset:0;border-radius:inherit;pointer-events:none;z-index:2;
box-shadow:inset 0 0 0 0 transparent;transition:box-shadow .16s ease;
}
.cf-order-bump-3 .ob3-bump:not([data-disabled]):hover,
.cf-order-bump-3 .ob3-bump[data-hover]:not([data-disabled]){
border-color:oklch(from var(--_bink) l c h / 0.9);transform:translateY(-1px);
}
.cf-order-bump-3 .ob3-bump[data-checked]{
border-style:solid;border-color:var(--_bink);
box-shadow:var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 256 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 256 / 0.32));
}
.cf-order-bump-3 .ob3-bump[data-checked]::after{box-shadow:inset 0 0 0 1px var(--_bink)}
.cf-order-bump-3 .ob3-bump[data-disabled]{opacity:.6}
.cf-order-bump-3 .ob3-strip{
display:flex;align-items:center;gap:14px;min-height:68px;
padding:14px clamp(16px,2.5vw,24px);
background:var(--_strip);color:var(--_bink);
border-bottom:1px solid oklch(from var(--_bink) l c h / 0.16);
box-shadow:inset 0 1px 0 oklch(from var(--_strip) calc(l + 0.04) c h / 0.6);
cursor:pointer;user-select:none;-webkit-tap-highlight-color:transparent;
transition:background .16s ease;
}
.cf-order-bump-3 .ob3-bump[data-checked] .ob3-strip{background:oklch(from var(--_strip) calc(l - 0.03) c h)}
.cf-order-bump-3 .ob3-bump[data-disabled] .ob3-strip{cursor:not-allowed}
.cf-order-bump-3 .ob3-box{
position:relative;flex:none;width:30px;height:30px;display:grid;place-items:center;
border-radius:min(8px, var(--field-radius, var(--radius, 12px)));
background:var(--field, var(--card, #fff));
border:2px solid var(--_bink);
box-shadow:inset 0 1px 2px oklch(from var(--_shadow) l c h / 0.25);
transition:background .16s ease, border-color .16s ease, transform .16s ease;
}
.cf-order-bump-3 .ob3-box input{
position:absolute;inset:-9px;margin:0;opacity:0;cursor:inherit;
}
.cf-order-bump-3 .ob3-bump:not([data-disabled]) .ob3-strip:hover .ob3-box,
.cf-order-bump-3 .ob3-bump[data-hover]:not([data-disabled]) .ob3-box{transform:scale(1.06)}
.cf-order-bump-3 .ob3-bump:not([data-disabled]) .ob3-strip:active .ob3-box{transform:scale(.94)}
.cf-order-bump-3 .ob3-box:has(input:focus-visible){
outline:3px solid var(--field-focus, var(--accent, oklch(0.5 0.17 257)));outline-offset:3px;
}
.cf-order-bump-3 .ob3-tick{
width:20px;height:20px;color:var(--_bump);opacity:0;transform:scale(.6);
transition:opacity .16s ease, transform .2s cubic-bezier(.2,.7,.2,1);pointer-events:none;
}
.cf-order-bump-3 .ob3-bump[data-checked] .ob3-box{background:var(--_bink);border-color:var(--_bink)}
.cf-order-bump-3 .ob3-bump[data-checked] .ob3-tick{opacity:1;transform:none}
.cf-order-bump-3 .ob3-thumb{
display:none;flex:none;width:64px;height:64px;object-fit:contain;border-radius:0;
filter:drop-shadow(0 2px 3px oklch(from var(--_shadow) l c h / 0.35));
}
.cf-order-bump-3 .ob3-add{
flex:1;min-width:0;
font-family:var(--font-display, Arial, sans-serif);font-weight:var(--display-weight, 800);
font-size:clamp(1.125rem,1.5vw,1.375rem);line-height:1.2;letter-spacing:-0.01em;
}
.cf-order-bump-3 .ob3-addtext{display:block;text-wrap:pretty}
.cf-order-bump-3 .ob3-desc{
margin:0;padding:clamp(16px,2.5vw,24px);color:var(--_bink);
font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.5;text-wrap:pretty;
}
.cf-order-bump-3 .ob3-tag{
color:var(--danger, oklch(0.5 0.17 27));font-weight:800;text-transform:uppercase;
letter-spacing:.02em;margin-inline-end:.35em;
}
.cf-order-bump-3 .ob3-facts{
grid-area:facts;list-style:none;margin:0;
padding:clamp(20px,3vw,28px);
display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:24px;
background:oklch(from var(--band-ink, oklch(1 0 0)) l c h / 0.08);
border:1px solid oklch(from var(--band-ink, oklch(1 0 0)) l c h / 0.14);
border-radius:var(--card-radius, var(--radius, 14px));
}
.cf-order-bump-3 .ob3-facts li{display:block;min-width:0}
.cf-order-bump-3 .ob3-fv{
display:block;color:var(--band-ink, oklch(1 0 0));
font-family:var(--font-display, Arial, sans-serif);font-weight:var(--display-weight, 800);
font-size:clamp(2rem,3.6vw,3.25rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums;
white-space:nowrap;
}
.cf-order-bump-3 .ob3-fl{
display:block;margin-top:12px;color:var(--band-ink, oklch(1 0 0));
font-size:.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty;
}
.cf-order-bump-3 .ob3-order{
grid-area:order;position:sticky;top:24px;
background:var(--card, #fff);color:var(--ink, oklch(0.21 0.034 263));
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(0.22 0.03 256 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 256 / 0.32)));
padding:clamp(20px,3vw,32px);
}
.cf-order-bump-3 .ob3-order h3{
margin:0 0 16px;color:var(--ink, oklch(0.21 0.034 263));
font-family:var(--font-display, Arial, sans-serif);font-weight:var(--display-weight, 800);
font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;
text-transform:var(--display-case, none);text-wrap:balance;
}
.cf-order-bump-3 .ob3-rows{
list-style:none;margin:0;padding:8px 16px;display:grid;
background:color-mix(in oklch, var(--ink) 4%, var(--card));border-radius:10px;
}
.cf-order-bump-3 .ob3-row{
display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px;align-items:start;
padding:8px 0;font-size:clamp(1.0625rem,1.25vw,1.125rem);line-height:1.35;
}
.cf-order-bump-3 .ob3-row[data-img]{grid-template-columns:48px minmax(0,1fr) auto}
.cf-order-bump-3 .ob3-row[data-img] .ob3-rowname,.cf-order-bump-3 .ob3-row[data-img] .ob3-rowprice{padding-top:12px}
.cf-order-bump-3 .ob3-rowimg{
display:block;width:48px;height:48px;object-fit:contain;border-radius:0;
filter:drop-shadow(0 2px 3px oklch(from var(--_shadow) l c h / 0.3));
}
.cf-order-bump-3 .ob3-rowname{font-weight:700;min-width:0;text-wrap:pretty}
.cf-order-bump-3 .ob3-rowprice{font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.cf-order-bump-3 .ob3-rowwrap{
display:grid;grid-template-rows:0fr;opacity:0;
transition:grid-template-rows .3s cubic-bezier(.2,.7,.2,1), opacity .2s ease;
}
.cf-order-bump-3 .ob3-rowwrap[data-on]{grid-template-rows:1fr;opacity:1}
.cf-order-bump-3 .ob3-rowclip{overflow:hidden;min-height:0}
.cf-order-bump-3 .ob3-once{
margin:24px 0 0;color:var(--ink, oklch(0.21 0.034 263));
font-family:var(--font-display, Arial, sans-serif);font-weight:var(--display-weight, 800);
font-size:clamp(1.3125rem,1.8vw,1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance;
}
.cf-order-bump-3 .ob3-total{
font-size:clamp(2.5rem,4.2vw,3.75rem);line-height:1;letter-spacing:-0.03em;
font-variant-numeric:tabular-nums;margin-inline-end:.1em;
}
.cf-order-bump-3 .ob3-note{
margin:12px 0 0;color:var(--muted, oklch(0.45 0.03 258));
font-size:.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty;
}
.cf-order-bump-3 .ob3-cta{
display:flex;align-items:center;justify-content:center;gap:10px;
width:100%;min-height:64px;margin-top:24px;padding:10px clamp(16px,2vw,24px);
border:0;border-radius:var(--button-radius, var(--radius, 12px));
font-family:var(--button-font, var(--font-display, Arial, sans-serif));
font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);
font-size:clamp(1.125rem,1.4vw,1.25rem);line-height:1.15;
text-align:center;text-wrap:balance;text-decoration:none;cursor:pointer;
color:var(--button-ink, var(--cta-ink, #fff));
text-shadow:var(--button-text-shadow, none);
background:linear-gradient(oklch(from var(--_bg) calc(l + 0.04) c h), oklch(from var(--_bg2) calc(l - 0.02) c h));
box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--_bg) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--_bg) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--_shadow) l c h / 0.35), 0 8px 16px -6px oklch(from var(--_shadow) l c h / 0.45));
transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.cf-order-bump-3 .ob3-cta svg{width:20px;height:20px;flex:none}
.cf-order-bump-3 .ob3-cta span{min-width:0}
.cf-order-bump-3 .ob3-cta:hover{
background:linear-gradient(oklch(from var(--_bg) calc(l - 0.01) c h), oklch(from var(--_bg2) calc(l - 0.07) c h));
box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--_bg) calc(l + 0.1) c h / 0.6), inset 0 -3px 0 oklch(from var(--_bg) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--_shadow) l c h / 0.4), 0 10px 18px -6px oklch(from var(--_shadow) l c h / 0.55));
}
.cf-order-bump-3 .ob3-cta:active{
transform:translateY(1px);
box-shadow:inset 0 2px 3px oklch(from var(--_bg) calc(l - 0.22) c h / 0.5), inset 0 -2px 0 oklch(from var(--_bg) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--_shadow) l c h / 0.3);
}
.cf-order-bump-3 .ob3-cta:focus-visible{
outline:3px solid oklch(from var(--_bg) l c h / 0.55);outline-offset:3px;
}
.cf-order-bump-3 .ob3-ps{
margin:16px 0 0;color:var(--muted, oklch(0.45 0.03 258));
font-size:.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty;
}
.cf-order-bump-3 .ob3-ps strong{color:var(--ink, oklch(0.21 0.034 263));font-weight:800}
@media (max-width:960px){
.cf-order-bump-3 .ob3-grid{grid-template-columns:minmax(0,1fr);grid-template-areas:"promise" "zone" "facts" "order"}
.cf-order-bump-3 .ob3-order{position:static}
}
@media (max-width:640px){
.cf-order-bump-3 .ob3-zone{grid-template-columns:minmax(0,1fr)}
.cf-order-bump-3 .ob3-phone{display:none}
.cf-order-bump-3 .ob3-thumb{display:block}
.cf-order-bump-3 .ob3-strip{gap:12px;padding:12px 14px}
.cf-order-bump-3 .ob3-facts{grid-auto-flow:row;grid-template-columns:max-content minmax(0,1fr);column-gap:16px;row-gap:16px}
.cf-order-bump-3 .ob3-facts li{display:grid;grid-column:1 / -1;grid-template-columns:subgrid;align-items:baseline}
.cf-order-bump-3 .ob3-fv{font-size:2rem}
.cf-order-bump-3 .ob3-fl{margin-top:0}
}
@media (prefers-reduced-motion:no-preference){
.cf-order-bump-3 .ob3-in{animation:ob3-rise .45s cubic-bezier(.2,.7,.2,1) both;animation-delay:calc(var(--i, 0) * .07s)}
.cf-order-bump-3 .ob3-addtext{animation:ob3-swap .3s cubic-bezier(.2,.7,.2,1) both}
}
@media (prefers-reduced-motion:reduce){
.cf-order-bump-3 .ob3-bump,.cf-order-bump-3 .ob3-bump::after,.cf-order-bump-3 .ob3-strip,.cf-order-bump-3 .ob3-box,
.cf-order-bump-3 .ob3-tick,.cf-order-bump-3 .ob3-rowwrap,.cf-order-bump-3 .ob3-cta{transition:none}
.cf-order-bump-3 .ob3-bump:not([data-disabled]):hover,.cf-order-bump-3 .ob3-bump[data-hover]{transform:none}
.cf-order-bump-3 .ob3-strip:hover .ob3-box,.cf-order-bump-3 .ob3-strip:active .ob3-box,.cf-order-bump-3 .ob3-bump[data-hover] .ob3-box{transform:none}
.cf-order-bump-3 .ob3-cta:active{transform:none}
}
@keyframes ob3-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
@keyframes ob3-swap{from{opacity:.4;transform:translateY(6px)}to{opacity:1;transform:none}}
`
pieces/offer/order-bump-3/specimen.tsx 58 lines
import __studioImage5f7b8c53 from "../assets/80df5c2a0d1d9c70.webp";
import __studioImage134a3980 from "../assets/61b1eb1c56c297d3.webp";
// Specimen: The Quiet Kitchen paperback order with its audiobook bump beside the box.
import * as React from "react"
import { OrderBump3 } from "../order-bump-3"
import { slot } from "../../slots"
import defaults from "../../studio-defaults.json"
export const states = ["default", "hover", "active", "disabled"] as const
type SpecimenState = (typeof states)[number]
export default function OrderBump3Specimen({ state = "default" }: { state?: SpecimenState }) {
return (
<OrderBump3
key={state}
state={state}
headline="Hear every recipe while your hands are busy"
lead="Tick the box and the audiobook joins your order, so the author talks you through each dish while you cook."
items={[
{
name: "The Quiet Kitchen, paperback",
price: "$14",
image: slot(
"product",
__studioImage134a3980
),
imageAlt: "The Quiet Kitchen paperback cookbook",
},
]}
bumpName="The Quiet Kitchen audiobook"
bumpPrice="$9"
bumpImage={slot(
"item-1",
__studioImage5f7b8c53
)}
bumpImageAlt="The Quiet Kitchen audiobook playing on a phone"
addLine="Yes! Add the audiobook for just {price}"
addedLine="Added! The audiobook is in your order ({price})"
offerTag="ONE-CLICK ADD-ON:"
description="Hear the author read all 42 recipes step by step, so your eyes stay on the pan and your phone stays in your pocket."
facts={[
{ value: "6h 40m", label: "of listening, read by the author" },
{ value: "42", label: "recipes talked through step by step" },
{ value: "1", label: "download that plays in any audiobook app" },
]}
orderHeadline="Get cooking tonight"
onceLine="{total} today. That's it."
onceNote="One payment. No subscription to keep listening."
actionLabel="Add To Cart · {total}"
ps={
<>
<strong>P.S.</strong> Your whole order is covered by our {defaults.sample.guarantee}, so try the book and the audiobook risk free.
</>
}
/>
)
}
| Name | Type | Details |
|---|---|---|
state OptionalOrderBump3 |
"default" | "hover" | "active" | "disabled" |
Default "default"
|
headline OptionalOrderBump3 |
string |
Default "Hear it while your hands are busy"
|
lead OptionalOrderBump3 |
string |
Default "Tick the box and the audiobook joins your order, so you can listen on the drive, the walk or the dishes."
|
bumpName OptionalOrderBump3 |
string |
Default "The audiobook"
|
bumpPrice OptionalOrderBump3 |
string |
Default "$9"
|
bumpImage OptionalOrderBump3 |
string |
|
bumpImageAlt OptionalOrderBump3 |
string |
Default "The audiobook playing on a phone"
|
addLine OptionalOrderBump3 |
string |
Default "Yes! Add the audiobook for just {price}"
|
addedLine OptionalOrderBump3 |
string |
Default "Added! The audiobook is in your order ({price})"
|
offerTag OptionalOrderBump3 |
string |
|
description OptionalOrderBump3 |
React.ReactNode |
Default "Hear every chapter read aloud, so the book keeps working for you when you can't sit down to read."
|
facts OptionalOrderBump3 |
OrderBump3Fact[] |
Default []
|
orderHeadline OptionalOrderBump3 |
string |
Default "Everything you need to start tonight"
|
items OptionalOrderBump3 |
OrderBump3Item[] |
Default [{ name: "The book, paperback", price: "$14" }]
|
onceLine OptionalOrderBump3 |
string |
Default "{total} today. That's it."
|
onceNote OptionalOrderBump3 |
string |
|
actionLabel OptionalOrderBump3 |
string |
Default "Add To Cart \u00b7 {total}"
|
ps OptionalOrderBump3 |
React.ReactNode |
|
href OptionalOrderBump3 |
string |
|
onAction OptionalOrderBump3 |
(detail: { bump: boolean; total: string }) => void |
|
checked OptionalOrderBump3 |
boolean |
|
defaultChecked OptionalOrderBump3 |
boolean |
|
onChange OptionalOrderBump3 |
(checked: boolean) => void |
|
disabled OptionalOrderBump3 |
boolean |
Default false
|
id OptionalOrderBump3 |
string |
|
className OptionalOrderBump3 |
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.
--card-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field--field-focus--field-radius- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-1- One image per offer item (item-1, item-2…), shown in stacks and lists.
product- The main product shot or cover (ebook, kit, bottle).
-
2c539f422023a290.webp
image/webp · 115 KB
-
61b1eb1c56c297d3.webp
image/webp · 55.3 KB
-
80df5c2a0d1d9c70.webp
image/webp · 42.6 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB