Order Interrupt 1
The OTO opener: a red or yellow WAIT band in caps with a do-not-close line, and the order-progress meter ("Step 2 of 3 · 66% complete") over a segmented hazard-striped bar with the step names.
Use it in a prompt
Use checkout/order-interrupt 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/checkout/order-interrupt.tsx. - Import it and pass your copy and images (Props tab):
import { OrderInterrupt } from "@/components/funneldna/checkout/order-interrupt"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/checkout/order-interrupt/component.tsx 139 lines
// Keeps the buyer on the order path: a loud WAIT band, a stop sign and one marker-struck promise that the order is not done.
import * as React from "react"
import { AlertTriangle } from "lucide-react"
export type OrderInterruptProps = {
/** Accessible name for the band. */
statusLabel?: string
/** Text on the fallback sign; image alternatives use stampImageAlt. */
stampLabel?: string
/** The big interrupt word above the headline. */
alert?: React.ReactNode
headline?: React.ReactNode
/** Phrase inside a string headline that gets the marker stroke. */
highlight?: string
/** Keep the headline on one line, scaled to fit its column. Defaults to on for short string headlines. */
singleLine?: boolean
/** The do-not-close line in the warning note. */
note?: React.ReactNode
tone?: "red" | "yellow"
/** stamp slot: transparent stop-sign art; falls back to the built-in sign. */
stampImage?: string
stampImageAlt?: string
className?: string
}
export function OrderInterrupt({
statusLabel = "Order status",
stampLabel = "STOP",
alert = "Wait!",
headline = "Your Order Is Not Complete…",
highlight = "Not Complete",
singleLine,
note = "Do not close this page or press the back button.",
tone = "red",
stampImage,
stampImageAlt = "Stop",
className,
}: OrderInterruptProps) {
const oneLine = singleLine ?? (typeof headline === "string" && headline.length <= 34)
return (
<section aria-label={statusLabel} data-tone={tone} className={["cf-order-interrupt w-full", className].filter(Boolean).join(" ")}>
<style>{CSS}</style>
<div className="oi-band relative z-10 overflow-hidden">
<div className="relative mx-auto flex max-w-5xl flex-col items-center gap-6 px-5 pb-14 pt-10 text-center sm:flex-row sm:justify-center sm:gap-10 sm:text-left md:pb-16 md:pt-12">
<div className="oi-sign w-[100px] shrink-0 sm:w-[136px] md:w-[164px]">
<StopSign src={stampImage} alt={stampImageAlt} label={stampLabel} />
</div>
<div className="oi-copy flex w-full min-w-0 flex-col items-center sm:w-auto sm:flex-1 sm:max-w-[48rem] sm:items-start">
<h2 className="oi-head">
<span className="oi-wait">{alert}</span>
<span className={oneLine ? "oi-line oi-one" : "oi-line"}>{markPhrase(headline, highlight)}</span>
</h2>
{note && (
<p className="oi-note">
<AlertTriangle className="oi-note-icon" strokeWidth={2.5} aria-hidden="true" />
<span>{note}</span>
</p>
)}
</div>
</div>
<div aria-hidden="true" className="oi-tape" />
</div>
</section>
)
}
function markPhrase(node: React.ReactNode, phrase?: string): React.ReactNode {
if (typeof node !== "string" || !phrase) return node
const i = node.indexOf(phrase)
if (i < 0) return node
return (
<>
{node.slice(0, i)}
<span className="oi-mark">{phrase}</span>
{node.slice(i + phrase.length)}
</>
)
}
const OCTAGON = "35.98,2 84.02,2 118,35.98 118,84.02 84.02,118 35.98,118 2,84.02 2,35.98"
function StopSign({ src, alt, label }: { src?: string; alt: string; label: string }) {
const uid = React.useId().replace(/:/g, "")
if (src) return <img src={src} alt={alt} className="block h-auto w-full object-contain" />
const face = `oi-face-${uid}`
const clip = `oi-clip-${uid}`
const scale = (s: number) => `translate(60 60) scale(${s}) translate(-60 -60)`
const font: React.CSSProperties = { fontFamily: "var(--font-display, Arial, sans-serif)", fontWeight: "var(--display-weight, 800)" as unknown as number }
return (
<svg viewBox="0 0 120 120" role="img" aria-label={alt} className="block h-auto w-full">
<defs>
<linearGradient id={face} x1="0" y1="0" x2="0" y2="1">
<stop offset="0" style={{ stopColor: "oklch(from var(--oi-sign) calc(l + 0.05) c h)" }} />
<stop offset="1" style={{ stopColor: "oklch(from var(--oi-sign) calc(l - 0.08) c h)" }} />
</linearGradient>
<clipPath id={clip}>
<polygon points={OCTAGON} transform={scale(0.84)} />
</clipPath>
</defs>
<polygon points={OCTAGON} style={{ fill: "oklch(from var(--oi-sign) 0.34 c h)" }} />
<polygon points={OCTAGON} style={{ fill: "oklch(from var(--oi-sign) 0.985 0.008 h)" }} transform={scale(0.94)} />
<polygon points={OCTAGON} fill={`url(#${face})`} transform={scale(0.84)} />
<g clipPath={`url(#${clip})`}>
<ellipse cx="60" cy="14" rx="74" ry="32" style={{ fill: "oklch(from var(--oi-sign) 0.99 0.01 h / 0.14)" }} />
</g>
<polygon points={OCTAGON} fill="none" style={{ stroke: "oklch(from var(--oi-sign) 0.34 c h / 0.5)" }} strokeWidth="0.8" transform={scale(0.84)} />
<text x="60" y="71.6" textAnchor="middle" fontSize="31" textLength="78" lengthAdjust="spacingAndGlyphs" style={{ ...font, fill: "oklch(from var(--oi-sign) 0.3 c h / 0.55)" }}>
{label}
</text>
<text x="60" y="70" textAnchor="middle" fontSize="31" textLength="78" lengthAdjust="spacingAndGlyphs" style={{ ...font, fill: "oklch(from var(--oi-sign) 0.99 0.008 h)" }}>
{label}
</text>
</svg>
)
}
const CSS = `
.cf-order-interrupt{--oi-bg:var(--band);--oi-fg:var(--band-ink);--oi-wait:var(--band-ink);--oi-mark:var(--marker,#fae37c);--oi-mark-ink:oklch(from var(--oi-mark) calc(0.2 + clamp(0, (0.62 - l) * 100, 1) * 0.79) 0.02 h);--oi-note-bg:var(--warning-soft);--oi-note-ink:var(--warning);--oi-note-icon:var(--warning);--oi-tape-a:oklch(from var(--warning) 0.82 max(c, 0.14) h);--oi-tape-b:oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h);--oi-sign:oklch(from var(--danger, oklch(0.5 0.17 27)) 0.53 max(c, 0.19) h);font-family:var(--font-body)}
.cf-order-interrupt[data-tone="yellow"]{--oi-bg:var(--warning-soft);--oi-fg:var(--ink);--oi-wait:var(--danger);--oi-mark:var(--card);--oi-mark-ink:var(--ink);--oi-note-bg:var(--card);--oi-note-ink:var(--ink);--oi-note-icon:var(--danger)}
:where(.cf-order-interrupt) .oi-band{background:var(--oi-bg);color:var(--oi-fg)}
:where(.cf-order-interrupt) .oi-copy{container-type:inline-size}
:where(.cf-order-interrupt) .oi-head{margin:0;font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-.01em);text-wrap:balance}
:where(.cf-order-interrupt) .oi-wait{display:block;margin-bottom:.16em;font-size:clamp(3.25rem,8vw,6rem);line-height:.88;letter-spacing:-.02em;color:var(--oi-wait)}
:where(.cf-order-interrupt) .oi-line{display:block;font-size:clamp(1.75rem,4vw,3.25rem);line-height:1.1;text-wrap:balance}
:where(.cf-order-interrupt) .oi-line.oi-one{white-space:nowrap;font-size:min(3.25rem,5.6cqi);line-height:1.15}
@supports not (font-size:1cqi){:where(.cf-order-interrupt) .oi-line.oi-one{white-space:normal;font-size:clamp(1.75rem,4vw,3.25rem)}}
:where(.cf-order-interrupt) .oi-mark{color:var(--oi-mark-ink);background-color:var(--oi-mark);background-image:linear-gradient(100deg,oklch(from var(--oi-mark) calc(l + 0.03) c h),var(--oi-mark) 45%,oklch(from var(--oi-mark) calc(l - 0.03) c h));padding:0 .16em;margin:0 -.02em;border-radius:.28em .1em .32em .12em / .5em .3em .45em .35em;-webkit-box-decoration-break:clone;box-decoration-break:clone}
:where(.cf-order-interrupt) .oi-note{margin:1.5rem 0 0;display:inline-flex;max-width:100%;align-items:flex-start;gap:.625rem;padding:.7rem 1rem;border-radius:var(--card-radius,var(--radius,12px));background:var(--oi-note-bg);color:var(--oi-note-ink);border:1px solid oklch(from var(--oi-note-ink) l c h / 0.22);box-shadow:var(--shadow-sm,0 1px 2px oklch(0.22 0.03 260 / 0.25));text-align:left;font-size:1rem;font-weight:600;line-height:1.4;text-wrap:pretty}
:where(.cf-order-interrupt) .oi-note-icon{width:1.25rem;height:1.25rem;flex-shrink:0;margin-top:.05rem;color:var(--oi-note-icon)}
@media (min-width:640px){:where(.cf-order-interrupt) .oi-note{font-size:1.0625rem}}
:where(.cf-order-interrupt) .oi-tape{position:absolute;left:0;right:0;bottom:0;height:12px;background-image:repeating-linear-gradient(-45deg,var(--oi-tape-a) 0 14.142px,var(--oi-tape-b) 14.142px 28.284px);box-shadow:inset 0 1px 0 oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.5);animation:oi-tape 4s linear infinite}
:where(.cf-order-interrupt) .oi-sign{filter:drop-shadow(0 2px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.45)) drop-shadow(0 6px 8px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.3));transform-origin:50% 8%;animation:oi-swing 1.3s cubic-bezier(.3,.7,.3,1) both}
@keyframes oi-swing{0%{transform:rotate(-9deg) scale(.94)}35%{transform:rotate(5deg)}65%{transform:rotate(-2deg)}100%{transform:rotate(0)}}
@keyframes oi-tape{from{background-position:0 0}to{background-position:40px 0}}
@media (prefers-reduced-motion:reduce){:where(.cf-order-interrupt) .oi-sign,:where(.cf-order-interrupt) .oi-tape{animation:none}}
`
export default OrderInterrupt
pieces/checkout/order-interrupt/specimen.tsx 20 lines
import * as React from "react"
import { OrderInterrupt } from "../order-interrupt"
import { slot } from "../../slots"
export const states = ["default"]
export default function OrderInterruptSpecimen({ state = "default" }: { state?: string }) {
return (
<div data-state={state} className="w-full">
<OrderInterrupt
stampImage={slot("stamp", "")}
tone="red"
alert="Wait!"
headline="Your Order Is Not Complete…"
highlight="Not Complete"
note="Do not close this page or press the back button."
/>
</div>
)
}
| Name | Type | Details |
|---|---|---|
statusLabel OptionalOrderInterrupt |
string |
Default "Order status"
|
stampLabel OptionalOrderInterrupt |
string |
Default "STOP"
|
alert OptionalOrderInterrupt |
React.ReactNode |
Default "Wait!"
|
headline OptionalOrderInterrupt |
React.ReactNode |
Default "Your Order Is Not Complete…"
|
highlight OptionalOrderInterrupt |
string |
Default "Not Complete"
|
singleLine OptionalOrderInterrupt |
boolean |
|
note OptionalOrderInterrupt |
React.ReactNode |
Default "Do not close this page or press the back button."
|
tone OptionalOrderInterrupt |
"red" | "yellow" |
Default "red"
|
stampImage OptionalOrderInterrupt |
string |
|
stampImageAlt OptionalOrderInterrupt |
string |
Default "Stop"
|
className OptionalOrderInterrupt |
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- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--marker- The highlighter colour behind key phrases.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
stamp- A stamp or badge graphic, on a transparent background.