OTO Wait Banner 1
Stops the buyer on the one-time-offer page and tells them honestly why this page is worth a look.
Use it in a prompt
Use offer/oto-wait-banner 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/oto-wait-banner.tsx. - Import it and pass your copy and images (Props tab):
import { OtoWaitBanner } from "@/components/funneldna/offer/oto-wait-banner"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/oto-wait-banner/component.tsx 337 lines
// Stops the buyer on the one-time-offer page and tells them honestly why this page is worth a look.
// layout: number-rail
// OTO wait banner: stops the buyer on the one-time-offer page with a loud red "WAIT!" alert and one honest line on why this page matters.
// An oversized-numeral progress rail shows the order is placed and this optional step comes before the order details.
import React from "react";
import { TriangleAlert } from "lucide-react";
export type OtoWaitBannerProps = {
/** The shouted opener, set in the same heavy line as the headline. */
shout?: string;
headline?: React.ReactNode;
/** One line on why this page matters (truthful: the order is placed and this offer is optional). */
reason?: React.ReactNode;
/** Funnel steps in order. Each step gets an oversized numeral on the rail. */
steps?: { label: string }[];
/** 1-based index of the step this page represents. */
current?: number;
/** Short note under the current step label. */
currentNote?: string;
/** Screen-reader status word for steps already done. */
completedLabel?: string;
/** Screen-reader status word for this page's step. */
currentLabel?: string;
/** Screen-reader status word for steps still to come. */
upcomingLabel?: string;
/** Accessible name of the step list. {current} and {total} are replaced with numbers. */
progressLabel?: string;
/** Heading level for the headline (1 when this tops the OTO page). */
headingLevel?: 1 | 2;
className?: string;
};
const DEFAULT_STEPS = [{ label: "Order placed" }, { label: "Optional offer" }, { label: "Order details" }];
export function OtoWaitBanner(props: OtoWaitBannerProps) {
const {
shout = "WAIT!",
headline = "Your order is not complete…",
reason = "Review this optional offer before continuing to your order details.",
steps = DEFAULT_STEPS,
current = 2,
currentNote = "You’re here",
completedLabel = "Completed",
currentLabel = "Current step",
upcomingLabel = "Up next",
progressLabel = "Order progress: step {current} of {total}",
headingLevel = 1,
className,
} = props;
const id = React.useId();
const total = Math.max(steps.length, 1);
const active = Math.min(Math.max(Math.round(current), 1), total);
const pct = ((active - 0.5) / total) * 100;
const from = Math.max(((active - 1.5) / total) * 100, 0);
const Heading = headingLevel === 2 ? "h2" : "h1";
const listLabel = progressLabel.replace("{current}", String(active)).replace("{total}", String(total));
const railStyle = { "--oto-count": total, "--oto-pct": pct, "--oto-from": from } as React.CSSProperties;
return (
<header className={["cf-oto-wait-banner", className].filter(Boolean).join(" ")} aria-labelledby={id + "-title"}>
<style>{CSS}</style>
<div className="oto-alert">
<div className="oto-alert__inner">
<TriangleAlert className="oto-alert__icon" aria-hidden="true" strokeWidth={2.4} />
<Heading id={id + "-title"} className="oto-alert__title">
<span className="oto-alert__shout">{shout}</span> {headline}
</Heading>
{reason ? <p className="oto-alert__reason">{reason}</p> : null}
</div>
</div>
<div className="oto-rail" style={railStyle}>
<ol className="oto-rail__steps" aria-label={listLabel}>
{steps.map((step, i) => {
const n = i + 1;
const status = n < active ? "done" : n === active ? "current" : "next";
const statusText = status === "done" ? completedLabel : status === "current" ? currentLabel : upcomingLabel;
return (
<li key={step.label + n} className={"oto-step is-" + status} aria-current={status === "current" ? "step" : undefined}>
<span className="oto-step__num" aria-hidden="true">
{n}
</span>
<span className="oto-step__text">
<span className="oto-sr">{statusText}: </span>
<span className="oto-step__label">{step.label}</span>
{status === "current" && currentNote ? <span className="oto-step__note">{currentNote}</span> : null}
</span>
</li>
);
})}
</ol>
<div className="oto-rail__track" aria-hidden="true">
<span className="oto-rail__fill">
<span className="oto-rail__knob" />
</span>
</div>
</div>
</header>
);
}
export default OtoWaitBanner;
const CSS = `
.cf-oto-wait-banner{
--oto-alert: var(--danger, #c0261c);
--oto-alert-bg: oklch(from var(--oto-alert) 0.49 c h);
--oto-alert-stripe: oklch(from var(--oto-alert) 0.455 c h);
--oto-alert-edge: oklch(from var(--oto-alert) 0.6 c h / 0.7);
--oto-alert-low: oklch(from var(--oto-alert) 0.4 c h);
--oto-alert-ink: oklch(from var(--oto-alert) 0.99 0.008 h);
--oto-alert-sub: oklch(from var(--oto-alert) 0.95 0.025 h);
--oto-rail: var(--band, #1b2b45);
--oto-rail-ink: var(--band-ink, #ffffff);
--oto-fill: color-mix(in oklch, var(--accent, #2563eb) 48%, var(--oto-rail-ink));
--oto-bar: color-mix(in oklch, var(--accent-fill, var(--accent, #2563eb)) 48%, var(--oto-rail-ink));
--oto-done: color-mix(in oklch, var(--success, #1f8a4c) 46%, var(--oto-rail-ink));
--oto-quiet: color-mix(in oklch, var(--oto-rail-ink) 72%, var(--oto-rail));
--oto-track: oklch(from var(--oto-rail-ink) l c h / 0.18);
position: relative;
display: block;
width: 100%;
box-sizing: border-box;
overflow: hidden;
isolation: isolate;
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)));
font-family: var(--font-body);
}
.cf-oto-wait-banner *{ box-sizing: border-box; }
.cf-oto-wait-banner .oto-sr{
position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
/* Red alert */
.cf-oto-wait-banner .oto-alert{
position: relative;
background: var(--oto-alert-bg);
color: var(--oto-alert-ink);
padding: clamp(1.5rem, 3.2vw, 2.5rem) clamp(1.25rem, 4vw, 3rem);
box-shadow: inset 0 1px 0 var(--oto-alert-edge), inset 0 -1px 0 var(--oto-alert-low);
}
.cf-oto-wait-banner .oto-alert::before{
content: "";
position: absolute;
inset: 0;
z-index: 0;
pointer-events: none;
background: repeating-linear-gradient(-45deg, transparent 0 22px, var(--oto-alert-stripe) 22px 44px);
-webkit-mask-image: linear-gradient(90deg, transparent 38%, black 100%);
mask-image: linear-gradient(90deg, transparent 38%, black 100%);
}
.cf-oto-wait-banner .oto-alert__inner{
position: relative;
z-index: 1;
display: grid;
grid-template-columns: auto minmax(0, 52rem);
grid-template-areas: "icon title" ". reason";
justify-content: center;
align-items: center;
column-gap: clamp(1rem, 2.6vw, 2rem);
max-width: 66rem;
margin-inline: auto;
}
.cf-oto-wait-banner .oto-alert__icon{
grid-area: icon;
width: clamp(3.5rem, 6vw, 5.25rem);
height: clamp(3.5rem, 6vw, 5.25rem);
color: var(--oto-alert-ink);
transform-origin: 50% 85%;
filter: drop-shadow(0 2px 2px oklch(from var(--oto-alert) 0.28 c h / 0.45));
animation: oto-nudge 0.7s cubic-bezier(0.36, 0.07, 0.19, 0.97) 0.25s 1 both;
}
.cf-oto-wait-banner .oto-alert__title{
grid-area: title;
margin: 0;
color: var(--oto-alert-ink);
font-family: var(--font-display);
font-weight: var(--display-weight, 900);
font-size: clamp(2rem, 4.4vw, 3.6rem);
line-height: 1.02;
letter-spacing: var(--display-tracking, -0.025em);
text-transform: var(--display-case, none);
text-wrap: balance;
}
.cf-oto-wait-banner .oto-alert__shout{
text-transform: uppercase;
letter-spacing: 0.01em;
}
.cf-oto-wait-banner .oto-alert__reason{
grid-area: reason;
margin: 0.95rem 0 0;
max-width: 62ch;
color: var(--oto-alert-sub);
font-size: clamp(1.0625rem, 1.5vw, 1.3125rem);
font-weight: 600;
line-height: 1.4;
text-wrap: pretty;
}
.cf-oto-wait-banner .oto-alert__reason strong{
color: var(--oto-alert-ink);
font-weight: 800;
}
/* Number rail */
.cf-oto-wait-banner .oto-rail{
background: var(--oto-rail);
color: var(--oto-rail-ink);
padding: 1.15rem clamp(1rem, 4vw, 3rem) 1.4rem;
}
.cf-oto-wait-banner .oto-rail__steps{
list-style: none;
margin: 0 auto;
padding: 0;
max-width: 66rem;
display: grid;
grid-template-columns: repeat(var(--oto-count), minmax(0, 1fr));
gap: 0.5rem;
}
.cf-oto-wait-banner .oto-step{
display: flex;
align-items: center;
justify-content: center;
gap: 0.75rem;
min-width: 0;
}
.cf-oto-wait-banner .oto-step__num{
position: relative;
flex: none;
font-family: var(--font-display);
font-weight: var(--display-weight, 900);
font-size: clamp(2.1rem, 3.4vw, 2.9rem);
line-height: 1;
font-variant-numeric: tabular-nums;
color: var(--oto-quiet);
}
.cf-oto-wait-banner .is-done .oto-step__num{ color: var(--oto-done); }
.cf-oto-wait-banner .is-current .oto-step__num{ color: var(--oto-fill); }
.cf-oto-wait-banner .oto-step__text{
display: flex;
flex-direction: column;
min-width: 0;
}
.cf-oto-wait-banner .oto-step__label{
color: var(--oto-quiet);
font-size: clamp(0.9375rem, 1.4vw, 1.125rem);
font-weight: 700;
line-height: 1.2;
text-wrap: balance;
}
.cf-oto-wait-banner .is-done .oto-step__label{ color: var(--oto-rail-ink); }
.cf-oto-wait-banner .is-current .oto-step__label{ color: var(--oto-rail-ink); font-weight: 800; }
.cf-oto-wait-banner .oto-step__note{
margin-top: 0.2rem;
color: var(--oto-fill);
font-size: 0.875rem;
font-weight: 600;
line-height: 1.2;
}
.cf-oto-wait-banner .oto-rail__track{
position: relative;
max-width: 66rem;
height: 0.4rem;
margin: 1rem auto 0;
border-radius: 999px;
background: var(--oto-track);
}
.cf-oto-wait-banner .oto-rail__fill{
position: absolute;
top: 0;
bottom: 0;
left: 0;
width: calc(var(--oto-pct) * 1%);
border-radius: inherit;
background: linear-gradient(90deg, oklch(from var(--oto-bar) calc(l - 0.06) c h), var(--oto-bar));
animation: oto-grow 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.15s both;
}
.cf-oto-wait-banner .oto-rail__knob{
position: absolute;
top: 50%;
right: 0;
width: 1.1rem;
height: 1.1rem;
transform: translate(50%, -50%);
border-radius: 50%;
background: var(--oto-bar);
border: 3px solid var(--oto-rail);
box-shadow: 0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.35);
}
@keyframes oto-grow{ from{ width: calc(var(--oto-from) * 1%); } }
@keyframes oto-nudge{
0%, 100%{ transform: rotate(0deg); }
20%{ transform: rotate(-9deg); }
40%{ transform: rotate(8deg); }
60%{ transform: rotate(-5deg); }
80%{ transform: rotate(3deg); }
}
@media (max-width: 40rem){
.cf-oto-wait-banner .oto-alert{ padding: 1.5rem 1.25rem 1.6rem; }
.cf-oto-wait-banner .oto-alert::before{
-webkit-mask-image: linear-gradient(180deg, black 0%, transparent 55%);
mask-image: linear-gradient(180deg, black 0%, transparent 55%);
}
.cf-oto-wait-banner .oto-alert__inner{
grid-template-columns: minmax(0, 1fr);
grid-template-areas: "icon" "title" "reason";
justify-items: center;
text-align: center;
row-gap: 0.75rem;
}
.cf-oto-wait-banner .oto-alert__icon{ width: 3rem; height: 3rem; }
.cf-oto-wait-banner .oto-alert__title{ font-size: clamp(1.875rem, 8.6vw, 2.25rem); }
.cf-oto-wait-banner .oto-alert__reason{ margin-top: 0; font-size: 1.0625rem; }
.cf-oto-wait-banner .oto-rail{ padding: 0.95rem 0.75rem 1.15rem; }
.cf-oto-wait-banner .oto-rail__steps{ gap: 0.25rem; }
.cf-oto-wait-banner .oto-step{ flex-direction: column; align-items: center; gap: 0.3rem; text-align: center; }
.cf-oto-wait-banner .oto-step__num{ font-size: 2rem; }
.cf-oto-wait-banner .oto-step__text{ align-items: center; }
.cf-oto-wait-banner .oto-step__label{ font-size: 0.9375rem; }
.cf-oto-wait-banner .oto-rail__track{ margin-top: 0.85rem; }
}
@media (prefers-reduced-motion: reduce){
.cf-oto-wait-banner .oto-alert__icon,
.cf-oto-wait-banner .oto-rail__fill{ animation: none; }
}
@media (forced-colors: active){
.cf-oto-wait-banner{ border: 2px solid CanvasText; }
.cf-oto-wait-banner .oto-rail{ border-top: 2px solid CanvasText; }
.cf-oto-wait-banner .oto-rail__track{ border: 1px solid CanvasText; }
.cf-oto-wait-banner .oto-rail__fill, .cf-oto-wait-banner .oto-rail__knob{ background: Highlight; }
}
`;
pieces/offer/oto-wait-banner/specimen.tsx 23 lines
import React from "react";
import { OtoWaitBanner } from "../oto-wait-banner";
import defaults from "../../studio-defaults.json";
export const states = ["default"];
export default function OtoWaitBannerSpecimen({ state }: { state?: string }) {
void state;
const sample = defaults.sample;
return (
<OtoWaitBanner
shout="WAIT!"
headline="Your order is not complete…"
reason={
<>
You’ve ordered <strong>{sample.name}</strong>. Review one optional offer below, then continue to your download.
</>
}
steps={[{ label: "Order placed" }, { label: "Optional offer" }, { label: "Your download" }]}
current={2}
/>
);
}
| Name | Type | Details |
|---|---|---|
shout OptionalOtoWaitBanner |
string |
|
headline OptionalOtoWaitBanner |
React.ReactNode |
|
reason OptionalOtoWaitBanner |
React.ReactNode |
|
steps OptionalOtoWaitBanner |
{ label: string }[] |
|
current OptionalOtoWaitBanner |
number |
|
currentNote OptionalOtoWaitBanner |
string |
|
completedLabel OptionalOtoWaitBanner |
string |
|
currentLabel OptionalOtoWaitBanner |
string |
|
upcomingLabel OptionalOtoWaitBanner |
string |
|
progressLabel OptionalOtoWaitBanner |
string |
|
headingLevel OptionalOtoWaitBanner |
1 | 2 |
|
className OptionalOtoWaitBanner |
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.
--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB