Delayed Offer Reveal 6
Keeps the offer beside presentation notes, then opens its contents and checkout action.
Use it in a prompt
Use offer/delayed-offer-reveal-6 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/delayed-offer-reveal-6.tsx. - Import it and pass your copy and images (Props tab):
import { DelayedOfferReveal6 } from "@/components/funneldna/offer/delayed-offer-reveal-6"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/delayed-offer-reveal-6/component.tsx 429 lines
// Keeps the offer beside presentation notes, then opens its contents and checkout action.
"use client"
import * as React from "react"
import { AlertCircle, Loader2, LockKeyhole, ShieldCheck } from "lucide-react"
export type DelayedOfferReveal6Props = {
/** Supporting copy; {time} and {saving} retain their formatted values. */
copy?: Partial<DelayedOfferReveal6Copy>
sealGuaranteeImage?: string
textureImage?: string
revealed?: boolean
revealAt?: number
currentTime?: number
videoId?: string
onReveal?: () => void
waitingTitle?: string
waitingNote?: string
reLabel?: string
productName?: string
headline?: string
/** A continuous phrase emphasized through color, without drawn markup. */
highlight?: string
lead?: string
items?: DelayedOfferItem[]
valueLabel?: string
regularLabel?: string
/** Struck regular price; shown (with the calculated saving) only when supplied. */
regularPrice?: string
priceLabel?: string
price?: string
note?: string
label?: string
sublabel?: string
href?: string
/** Action handler. While its promise is pending the button shows loadingText; a rejection shows errorText. */
onAction?: () => void | Promise<void>
loadingText?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
successText?: string
/** Deprecated: ignored. The builder wires what happens after the action. */
successNote?: string
errorText?: string
guarantee?: string
guaranteeNote?: string
guaranteeSeal?: string
/** Optional artwork for the waiting state. */
stamp?: string
notes?: DelayedOfferNotes
disabled?: boolean
state?: DelayedOfferRevealState
className?: string
}
export function DelayedOfferReveal6({
copy: copyOverrides,
revealed,
revealAt,
currentTime,
videoId,
onReveal,
waitingTitle = "Keep watching. Your next step appears here.",
waitingNote = "The complete offer opens automatically when the presentation reaches it.",
reLabel = "Re:",
productName = "The Funnel Starter Kit",
headline = "Build your first funnel with a clear plan",
highlight = "a clear plan",
lead = "Get the guide, workbook, and checklist in one download. One payment. Yours to keep.",
items = [],
valueLabel = "Value",
regularLabel = "Regular value",
regularPrice,
priceLabel = "Get the complete kit for",
price = "$47",
note,
label = "Yes! Give Me Access",
sublabel = "",
href = "#checkout",
onAction,
loadingText = "Getting your kit ready…",
errorText = "That didn’t go through. Please try again.",
guarantee = "30-day money-back guarantee",
guaranteeNote = "Try the kit. If it’s not for you, request your money back within 30 days.",
guaranteeSeal,
sealGuaranteeImage = guaranteeSeal,
stamp,
textureImage = stamp,
notes,
disabled = false,
state = "default",
className,
}: DelayedOfferReveal6Props) {
const copy = { ...DEFAULT_COPY, ...Object.fromEntries(Object.entries(copyOverrides ?? {}).filter(([, value]) => value !== undefined)) }
const titleId = React.useId()
const feedbackId = React.useId()
const [videoTime, setVideoTime] = React.useState<number>()
const [status, setStatus] = React.useState<"idle" | "loading" | "error">(state === "error" ? "error" : "idle")
const busy = React.useRef(false)
const mounted = React.useRef(false)
const notified = React.useRef(false)
const [announcement, setAnnouncement] = React.useState("")
React.useEffect(() => {
mounted.current = true
return () => { mounted.current = false }
}, [])
React.useEffect(() => {
setVideoTime(undefined)
if (!videoId) return
const video = document.getElementById(videoId)
if (!(video instanceof HTMLVideoElement)) return
const sync = () => setVideoTime(video.currentTime)
sync()
video.addEventListener("timeupdate", sync)
video.addEventListener("seeked", sync)
video.addEventListener("loadedmetadata", sync)
return () => {
video.removeEventListener("timeupdate", sync)
video.removeEventListener("seeked", sync)
video.removeEventListener("loadedmetadata", sync)
}
}, [videoId])
const threshold = revealAt !== undefined && Number.isFinite(revealAt) ? Math.max(0, revealAt) : undefined
const time = currentTime ?? videoTime
const reached = threshold === undefined || (time !== undefined && Number.isFinite(time) && time >= threshold)
const wants = state !== "before" && (revealed ?? reached)
const [opened, setOpened] = React.useState(wants)
const shown = state === "before" ? false : revealed ?? (opened || wants)
const [justRevealed, setJustRevealed] = React.useState(false)
const wasShown = React.useRef(shown)
React.useEffect(() => {
if (wants) setOpened(true)
if (shown && !wasShown.current) {
setJustRevealed(true)
setAnnouncement(copy.availableAnnouncement)
}
wasShown.current = shown
if (shown && !notified.current) {
notified.current = true
onReveal?.()
}
}, [wants, shown, onReveal, copy.availableAnnouncement])
React.useEffect(() => {
setStatus(state === "error" ? "error" : "idle")
}, [state])
const blocked = disabled || state === "disabled"
const force = state === "hover" || state === "active" ? state : undefined
const saving = savings(regularPrice, price)
const visibleItems = items.slice(0, 4)
const margin = {
waiting: copy.waitingNote,
headline: copy.headlineNote,
items: copy.itemsNote,
price: saving ? copy.saving.replace("{saving}", () => saving) : copy.priceNote,
action: copy.actionNote,
...notes,
}
const formattedSaving = saving && margin.price === copy.saving.replace("{saving}", () => saving)
async function run(event: React.MouseEvent<HTMLButtonElement>) {
event.preventDefault()
if (blocked || busy.current || !onAction) return
busy.current = true
setStatus("loading")
try {
await onAction()
if (mounted.current) setStatus("idle")
} catch {
if (mounted.current) setStatus("error")
} finally {
busy.current = false
}
}
const actionContent = <>
{status === "loading" && <Loader2 className="dor6-spinner" aria-hidden="true" />}
<span>{status === "loading" ? loadingText : label}</span>
</>
return (
<section className={["cf-delayed-offer-reveal-6 dor6", className].filter(Boolean).join(" ")} aria-labelledby={titleId}>
<style>{CSS}</style>
<span className="dor6-sr" aria-live="polite">{announcement}</span>
{!shown ? (
<div className="dor6-body dor6-wait">
<div className="dor6-row">
<aside className="dor6-margin">
{margin.waiting && <p>{margin.waiting}</p>}
{textureImage && <img className="dor6-stamp" src={textureImage} alt="" width={72} height={72} />}
</aside>
<div className="dor6-main">
{productName && <p className="dor6-subject"><span>{reLabel}</span> {productName}</p>}
<h2 id={titleId} className="dor6-heading dor6-wait-heading">{waitingTitle}</h2>
{waitingNote && <p className="dor6-lead">{waitingNote}</p>}
{threshold !== undefined && <p className="dor6-timing"><LockKeyhole aria-hidden="true" /><span>{timeCopy(copy.availableAt, formatTime(threshold))}</span></p>}
</div>
</div>
</div>
) : (
<div className={`dor6-body${justRevealed ? " dor6-reveal" : ""}`}>
<div className="dor6-row">
<aside className="dor6-margin dor6-intro-note">{margin.headline && <p>{margin.headline}</p>}</aside>
<header className="dor6-main">
{productName && <p className="dor6-subject"><span>{reLabel}</span> {productName}</p>}
<h2 id={titleId} className="dor6-heading">{emphasize(headline, highlight)}</h2>
{lead && <p className="dor6-lead">{lead}</p>}
</header>
</div>
{visibleItems.length > 0 && (
<div className="dor6-row dor6-contents-row">
<aside className="dor6-margin">{margin.items && <p>{margin.items}</p>}</aside>
<ul className="dor6-main dor6-items" aria-label={copy.itemsLabel}>
{visibleItems.map((item, index) => (
<li key={`${item.name}-${index}`} className={item.image ? "" : "dor6-item-no-image"}>
{item.image && <img src={item.image} alt={item.imageAlt || item.name} width={80} height={80} loading="lazy" />}
<div className="dor6-item-copy">
<h3>{item.name}</h3>
{item.detail && <p>{item.detail}</p>}
</div>
{item.value && <span className="dor6-item-value"><span className="dor6-sr">{valueLabel}: </span>{item.value}</span>}
</li>
))}
</ul>
</div>
)}
<div className="dor6-row dor6-decision-row">
<aside className="dor6-margin dor6-saving">
{margin.price && (formattedSaving ? <p>{savingCopy(copy.saving, saving)}</p> : <p>{margin.price}</p>)}
</aside>
<div className="dor6-main dor6-price-panel">
{priceLabel && <p className="dor6-price-label">{priceLabel}</p>}
<div className="dor6-prices">
<strong className="dor6-price">{price}</strong>
{regularPrice && <div className="dor6-was"><span>{regularLabel}</span><s>{regularPrice}</s></div>}
</div>
{note && <p className="dor6-price-note">{note}</p>}
</div>
</div>
<div className="dor6-row dor6-action-row">
<aside className="dor6-margin">{margin.action && <p>{margin.action}</p>}</aside>
<div className="dor6-main">
<>
{onAction || blocked || status === "loading" ? (
<button type="button" className="dor6-cta" data-force={force} disabled={blocked || status === "loading"} aria-busy={status === "loading" || undefined} aria-describedby={status === "error" ? feedbackId : undefined} onClick={run}>{actionContent}</button>
) : (
<a className="dor6-cta" data-force={force} href={href} aria-describedby={status === "error" ? feedbackId : undefined}>{actionContent}</a>
)}
{sublabel && <p className="dor6-reassurance"><LockKeyhole aria-hidden="true" /><span>{sublabel}</span></p>}
{status === "error" && <p className="dor6-error" id={feedbackId} role="alert"><AlertCircle aria-hidden="true" /><span>{errorText}</span></p>}
</>
{guarantee && (
<div className="dor6-guarantee">
{sealGuaranteeImage ? <img src={sealGuaranteeImage} alt="" width={64} height={64} loading="lazy" /> : <ShieldCheck className="dor6-shield" aria-hidden="true" />}
<div><p className="dor6-guarantee-title">{guarantee}</p>{guaranteeNote && <p className="dor6-guarantee-note">{guaranteeNote}</p>}</div>
</div>
)}
</div>
</div>
</div>
)}
</section>
)
}
export default DelayedOfferReveal6
export type DelayedOfferRevealState = "default" | "before" | "hover" | "active" | "disabled" | "error" | "success"
export type DelayedOfferItem = { name: string; detail?: string; value?: string; image?: string; imageAlt?: string }
export type DelayedOfferNotes = { waiting?: string; headline?: string; items?: string; price?: string; action?: string }
function formatTime(seconds: number) {
const total = Math.max(0, Math.floor(seconds))
const hours = Math.floor(total / 3600)
const minutes = Math.floor((total % 3600) / 60)
const rest = String(total % 60).padStart(2, "0")
return hours ? `${hours}:${String(minutes).padStart(2, "0")}:${rest}` : `${minutes}:${rest}`
}
function savings(regular?: string, price?: string) {
const parse = (input?: string) => input?.replace(/,/g, "").trim().match(/^([^\d]*)(\d+(?:\.\d+)?)([^\d]*)$/)
const a = parse(regular)
const b = parse(price)
if (!a || !b || a[1] !== b[1] || a[3] !== b[3]) return null
const difference = Number(a[2]) - Number(b[2])
if (difference <= 0) return null
return `${b[1]}${Number.isInteger(difference) ? difference : difference.toFixed(2)}${b[3]}`
}
function emphasize(text: string, phrase?: string) {
const index = phrase ? text.indexOf(phrase) : -1
if (!phrase || index < 0) return text
return <>{text.slice(0, index)}<span className="dor6-emphasis">{phrase}</span>{text.slice(index + phrase.length)}</>
}
export type DelayedOfferRevealProps = DelayedOfferReveal6Props
export { DelayedOfferReveal6 as DelayedOfferReveal }
/** headlineNote and actionNote default to empty so the sidebar carries only the notes that sell; pass copy or notes to add them back. */
const DEFAULT_COPY = {
availableAnnouncement: "The complete offer is now available.",
availableAt: "Available at {time} in the presentation",
waitingNote: "Your next step",
headlineNote: "",
itemsNote: "Everything together.",
priceNote: "One clear next step.",
saving: "You save {saving}",
actionNote: "",
itemsLabel: "Included in your offer",
}
type DelayedOfferReveal6Copy = typeof DEFAULT_COPY
function timeCopy(template: string, time: string) {
return template.split("{time}").map((part, index) => <React.Fragment key={index}>{index > 0 && <strong>{time}</strong>}{part}</React.Fragment>)
}
function savingCopy(template: string, saving: string) {
return template.split("{saving}").map((part, index) => <React.Fragment key={index}>{index > 0 && <strong>{saving}</strong>}{part && <span>{part.trim()}</span>}</React.Fragment>)
}
const CSS = `
.cf-delayed-offer-reveal-6{--dor6-ink:var(--ink);--dor6-muted:var(--muted,#4a5565);--dor6-blue:var(--accent);--dor6-tint:color-mix(in oklch,var(--ink) 4%,var(--card,#fff));--dor6-side:color-mix(in oklch,var(--ink) 4%,var(--card,#fff));--dor6-line:color-mix(in oklch,var(--muted,#4a5565) 18%,var(--card,#fff));--dor6-grey:color-mix(in oklch,var(--muted,#4a5565) 7%,var(--card,#fff));container-type:inline-size;position:relative;isolation:isolate;width:100%;max-width:62rem;margin-inline:auto;border:1px solid var(--card-border, var(--dor6-line));border-radius:var(--card-radius, var(--radius,18px));background:var(--card,#fff);color:var(--dor6-ink);font-family:var(--font-body,Arial,sans-serif);box-shadow:var(--card-shadow, var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)))}
.cf-delayed-offer-reveal-6,.cf-delayed-offer-reveal-6 *,.cf-delayed-offer-reveal-6 *::before,.cf-delayed-offer-reveal-6 *::after{box-sizing:border-box}
.cf-delayed-offer-reveal-6 :where(h2,h3,p,ul){margin:0}
.cf-delayed-offer-reveal-6 :where(p,h2,h3,span,strong){overflow-wrap:anywhere}
.cf-delayed-offer-reveal-6 p{text-wrap:pretty}
.cf-delayed-offer-reveal-6 .dor6-body{position:relative;padding:clamp(1.25rem,3.2cqi,2rem);border-radius:inherit}
.cf-delayed-offer-reveal-6 .dor6-row{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:.625rem;align-items:start}
.cf-delayed-offer-reveal-6 .dor6-main,.cf-delayed-offer-reveal-6 .dor6-margin{min-width:0}
.cf-delayed-offer-reveal-6 .dor6-margin{display:none;color:var(--dor6-muted);font-size:.875rem;font-weight:500;line-height:1.5}
.cf-delayed-offer-reveal-6 .dor6-margin p{max-width:14ch;text-wrap:balance}
.cf-delayed-offer-reveal-6 .dor6-subject{font-size:.9375rem;line-height:1.5;font-weight:600;color:var(--dor6-muted);margin-bottom:.875rem}
.cf-delayed-offer-reveal-6 .dor6-subject span{color:var(--dor6-blue);font-weight:700;margin-right:.25rem}
.cf-delayed-offer-reveal-6 .dor6-heading{font-family:var(--font-display,Arial,sans-serif);font-size:clamp(2rem,5cqi,3.25rem);font-weight:var(--display-weight, 800);letter-spacing:var(--display-tracking, -.045em);line-height:1.08;text-wrap:balance;margin-bottom:1rem;text-transform:var(--display-case, none)}
.cf-delayed-offer-reveal-6 .dor6-emphasis{color:var(--dor6-blue)}
.cf-delayed-offer-reveal-6 .dor6-lead{font-size:clamp(1.0625rem,2cqi,1.1875rem);font-weight:500;line-height:1.55;max-width:51ch;color:var(--dor6-muted)}
.cf-delayed-offer-reveal-6 .dor6-contents-row{margin-top:1.75rem}
.cf-delayed-offer-reveal-6 .dor6-items{padding:0;list-style:none;display:grid;gap:1rem}
.cf-delayed-offer-reveal-6 .dor6-items li{min-width:0;display:grid;grid-template-columns:4rem minmax(0,1fr) auto;align-items:start;gap:.75rem}
.cf-delayed-offer-reveal-6 .dor6-items li.dor6-item-no-image{grid-template-columns:minmax(0,1fr) auto}
.cf-delayed-offer-reveal-6 .dor6-items img{display:block;width:4rem;height:4rem;object-fit:cover;background:var(--card,#fff);border-radius:8px;box-shadow:var(--shadow-sm, 0 1px 1px oklch(0.22 0.03 260 / 0.18), 0 1px 3px oklch(0.22 0.03 260 / 0.14))}
.cf-delayed-offer-reveal-6 .dor6-item-copy{min-width:0;padding-top:.125rem}
.cf-delayed-offer-reveal-6 .dor6-item-copy h3{font-family:var(--font-body,Arial,sans-serif);font-size:1rem;font-weight:700;line-height:1.4;text-wrap:balance}
.cf-delayed-offer-reveal-6 .dor6-item-copy p{font-size:1rem;line-height:1.45;color:var(--dor6-muted);margin-top:.25rem}
.cf-delayed-offer-reveal-6 .dor6-item-value{font-size:1rem;font-weight:600;line-height:1.4;font-variant-numeric:tabular-nums;color:var(--dor6-muted);padding-top:.125rem;white-space:nowrap}
.cf-delayed-offer-reveal-6 .dor6-decision-row{margin-top:1.75rem}
.cf-delayed-offer-reveal-6 .dor6-saving{display:block;font-size:.875rem}
.cf-delayed-offer-reveal-6 .dor6-saving p{display:flex;align-items:baseline;gap:.35rem;max-width:none}
.cf-delayed-offer-reveal-6 .dor6-saving strong{font-family:var(--font-display,Arial,sans-serif);font-size:1rem;font-weight:var(--display-weight, 800);color:var(--success);letter-spacing:var(--display-tracking, -.025em);font-variant-numeric:tabular-nums;text-transform:var(--display-case, none)}
.cf-delayed-offer-reveal-6 .dor6-price-panel{display:grid;grid-template-areas:'label' 'prices' 'note';gap:.75rem;background:var(--dor6-tint);color:var(--dor6-ink);border:0;border-radius:var(--card-radius, calc(var(--radius,18px)*.65));padding:1.125rem 1.25rem}
.cf-delayed-offer-reveal-6 .dor6-price-label{grid-area:label;font-size:1rem;line-height:1.4;font-weight:700;text-wrap:balance}
.cf-delayed-offer-reveal-6 .dor6-prices{grid-area:prices;display:flex;align-items:center;flex-wrap:wrap;gap:.75rem 1.25rem;min-width:0}
.cf-delayed-offer-reveal-6 .dor6-price{font-family:var(--font-display,Arial,sans-serif);font-size:clamp(3.25rem,7cqi,4rem);line-height:1.05;font-weight:var(--display-weight, 800);letter-spacing:var(--display-tracking, -.06em);font-variant-numeric:lining-nums tabular-nums;text-transform:var(--display-case, none)}
.cf-delayed-offer-reveal-6 .dor6-was{display:grid;gap:.125rem;color:var(--dor6-muted);min-width:0}
.cf-delayed-offer-reveal-6 .dor6-was span{font-size:.875rem;font-weight:500;line-height:1.4}
.cf-delayed-offer-reveal-6 .dor6-was s{font-size:1.5rem;font-weight:600;line-height:1.2;text-decoration-thickness:1.5px;text-decoration-color:var(--danger);font-variant-numeric:tabular-nums;color:var(--danger)}
.cf-delayed-offer-reveal-6 .dor6-price-note{grid-area:note;font-size:.875rem;line-height:1.5;font-weight:500;color:var(--dor6-muted)}
.cf-delayed-offer-reveal-6 .dor6-action-row{margin-top:1rem}
.cf-delayed-offer-reveal-6 .dor6-cta{appearance:none;position:relative;display:flex;align-items:center;justify-content:center;gap:.6rem;width:100%;min-height:3.875rem;padding:1rem .75rem;border:1px solid var(--button-bg-2, var(--cta-2,#b42318));border-radius:var(--button-radius, calc(var(--radius,18px)*.55));background:linear-gradient(180deg,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));color:var(--button-ink, var(--cta-ink,#fff));text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));font-family:var(--button-font, var(--font-display,Arial,sans-serif));font-size:clamp(1rem,2.5cqi,1.375rem);font-weight:var(--button-weight, 800);line-height:1.25;text-align:center;text-decoration:none;text-wrap:balance;cursor:pointer;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.12) c h / 0.5),inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)));transition:transform .18s ease,box-shadow .18s ease,background .18s ease;-webkit-tap-highlight-color:transparent;text-transform:var(--button-case, none)}
.cf-delayed-offer-reveal-6 .dor6-cta span{min-width:0}
.cf-delayed-offer-reveal-6 .dor6-cta:not(:disabled):hover,.cf-delayed-offer-reveal-6 .dor6-cta[data-force="hover"]:not(:disabled){transform:translateY(-2px);background:linear-gradient(180deg,var(--button-bg,var(--cta)),var(--button-bg-2,oklch(from var(--button-bg,var(--cta)) calc(l - 0.05) c h)));box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l + 0.12) c h / 0.5),inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h),var(--shadow-md, 0 1px 2px oklch(0.22 0.03 260 / 0.22), 0 4px 10px -2px oklch(0.22 0.03 260 / 0.2)))}
.cf-delayed-offer-reveal-6 .dor6-cta:not(:disabled):active,.cf-delayed-offer-reveal-6 .dor6-cta[data-force="active"]:not(:disabled){transform:translateY(2px);box-shadow:var(--button-shadow, inset 0 2px 5px #00000030,0 1px 0 var(--button-bg-2, var(--cta-2,#b42318)))}
.cf-delayed-offer-reveal-6 .dor6-cta:focus-visible{outline:3px solid var(--dor6-blue);outline-offset:5px}
.cf-delayed-offer-reveal-6 .dor6-cta:disabled{cursor:not-allowed;background:var(--dor6-grey);color:var(--dor6-muted);text-shadow:none;border-color:var(--dor6-line);box-shadow:var(--button-shadow, none);transform:none}
.cf-delayed-offer-reveal-6 .dor6-cta[aria-busy="true"]{cursor:progress;background:var(--button-bg-2, var(--cta-2,#b42318));color:var(--button-ink, var(--cta-ink,#fff));border-color:var(--button-bg-2, var(--cta-2,#b42318))}
.cf-delayed-offer-reveal-6 .dor6-spinner{flex:none;width:1.2rem;height:1.2rem;animation:dor6-spin .85s linear infinite}
.cf-delayed-offer-reveal-6 .dor6-reassurance{display:flex;justify-content:center;align-items:center;gap:.4rem;margin-top:.875rem;color:var(--dor6-muted);font-size:.875rem;line-height:1.5;text-align:center}
.cf-delayed-offer-reveal-6 .dor6-reassurance svg{flex:none;width:.95rem;height:.95rem}
.cf-delayed-offer-reveal-6 .dor6-error{display:flex;align-items:flex-start;gap:.65rem;margin-top:1rem;padding:.85rem 1rem;border:1px solid var(--card-border, var(--card));border-radius:var(--card-radius, var(--radius, 8px));background:var(--danger-soft);color:var(--danger);font-size:1rem;line-height:1.5}
.cf-delayed-offer-reveal-6 .dor6-error svg{flex:none;width:1.2rem;height:1.2rem;margin-top:.15rem}
.cf-delayed-offer-reveal-6 .dor6-guarantee{display:flex;align-items:center;gap:.875rem;margin-top:1.5rem}
.cf-delayed-offer-reveal-6 .dor6-guarantee>img{flex:none;display:block;width:3.5rem;height:3.5rem;object-fit:contain;filter:drop-shadow(0 2px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.28))}
.cf-delayed-offer-reveal-6 .dor6-shield{flex:none;width:1.75rem;height:1.75rem;color:var(--dor6-blue)}
.cf-delayed-offer-reveal-6 .dor6-guarantee-title{font-size:1rem;font-weight:700;line-height:1.4}
.cf-delayed-offer-reveal-6 .dor6-guarantee-note{font-size:1rem;line-height:1.5;color:var(--dor6-muted);margin-top:.125rem;max-width:57ch}
.cf-delayed-offer-reveal-6 .dor6-wait-heading{font-size:clamp(1.9rem,4.8cqi,3rem)}
.cf-delayed-offer-reveal-6 .dor6-timing{display:flex;align-items:flex-start;gap:.6rem;margin-top:1.25rem;padding:1rem;border-radius:var(--card-radius, 10px);background:var(--warning-soft);color:var(--warning);font-size:1rem;line-height:1.5}
.cf-delayed-offer-reveal-6 .dor6-timing svg{flex:none;width:1.2rem;height:1.2rem;margin-top:.1rem}
.cf-delayed-offer-reveal-6 .dor6-timing strong{font-variant-numeric:tabular-nums}
.cf-delayed-offer-reveal-6 .dor6-stamp{display:none;object-fit:contain;margin-top:1.25rem;filter:drop-shadow(0 1px 2px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.22))}
.cf-delayed-offer-reveal-6 .dor6-reveal{animation:dor6-arrive .38s ease-out}
.cf-delayed-offer-reveal-6 .dor6-sr{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}
@container(min-width:44rem){
.cf-delayed-offer-reveal-6 .dor6-body{padding:1.75rem;overflow:clip}
.cf-delayed-offer-reveal-6 .dor6-body::before{content:'';position:absolute;inset:0 auto 0 0;width:9.75rem;background:var(--dor6-side);box-shadow:inset -1px 0 0 oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.1),inset -10px 0 12px -10px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2);pointer-events:none}
.cf-delayed-offer-reveal-6 .dor6-row{grid-template-columns:6.5rem minmax(0,1fr);column-gap:3rem}
.cf-delayed-offer-reveal-6 .dor6-margin{display:block;padding-top:.25rem;font-size:.875rem;line-height:1.5}
.cf-delayed-offer-reveal-6 .dor6-intro-note{padding-top:2.5rem}
.cf-delayed-offer-reveal-6 .dor6-intro-note p{font-size:.9375rem;font-weight:600;line-height:1.45;max-width:12ch}
.cf-delayed-offer-reveal-6 .dor6-items li{grid-template-columns:4.25rem minmax(0,1fr) auto;gap:.875rem}
.cf-delayed-offer-reveal-6 .dor6-items img{width:4.25rem;height:4.25rem}
.cf-delayed-offer-reveal-6 .dor6-item-copy h3{font-size:1.0625rem}
.cf-delayed-offer-reveal-6 .dor6-saving{padding-top:1.125rem}
.cf-delayed-offer-reveal-6 .dor6-saving p{display:grid;gap:.25rem;max-width:14ch}
.cf-delayed-offer-reveal-6 .dor6-saving strong{font-size:1.75rem;line-height:1.15;text-transform:var(--display-case, none)}
.cf-delayed-offer-reveal-6 .dor6-action-row>.dor6-margin{padding-top:1.25rem}
.cf-delayed-offer-reveal-6 .dor6-stamp{display:block;width:4rem;height:4rem}
.cf-delayed-offer-reveal-6 .dor6-price-panel{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:'label prices' 'note prices';column-gap:1.25rem;row-gap:.75rem;padding:1.125rem 1.25rem}
.cf-delayed-offer-reveal-6 .dor6-price-label{align-self:end;max-width:21ch}
.cf-delayed-offer-reveal-6 .dor6-price-note{align-self:start;max-width:27ch}
.cf-delayed-offer-reveal-6 .dor6-prices{align-self:center;max-width:18rem;gap:.75rem 1rem}
.cf-delayed-offer-reveal-6 .dor6-price{font-size:3.5rem;text-transform:var(--display-case, none)}
}
@container(min-width:54rem){.cf-delayed-offer-reveal-6 .dor6-price{font-size:4rem;text-transform:var(--display-case, none)}.cf-delayed-offer-reveal-6 .dor6-price-panel{padding:1.25rem 1.5rem}.cf-delayed-offer-reveal-6 .dor6-prices{gap:1.25rem}}
@container(max-width:23rem){
.cf-delayed-offer-reveal-6 .dor6-body{padding:1.125rem}
.cf-delayed-offer-reveal-6 .dor6-items li{grid-template-columns:3.25rem minmax(0,1fr) auto;gap:.625rem}
.cf-delayed-offer-reveal-6 .dor6-items img{width:3.25rem;height:3.25rem}
.cf-delayed-offer-reveal-6 .dor6-item-copy p{display:none}
.cf-delayed-offer-reveal-6 .dor6-price-panel{padding:1rem}
.cf-delayed-offer-reveal-6 .dor6-guarantee{gap:.75rem}
.cf-delayed-offer-reveal-6 .dor6-guarantee>img{width:3rem;height:3rem}
}
@keyframes dor6-arrive{from{transform:translateY(8px)}to{transform:translateY(0)}}
@keyframes dor6-spin{to{transform:rotate(360deg)}}
@media(prefers-reduced-motion:reduce){.cf-delayed-offer-reveal-6 *{animation:none!important;transition:none!important}.cf-delayed-offer-reveal-6 .dor6-cta{transform:none!important}}
@media(forced-colors:active){.cf-delayed-offer-reveal-6,.cf-delayed-offer-reveal-6 .dor6-cta,.cf-delayed-offer-reveal-6 .dor6-price-panel,.cf-delayed-offer-reveal-6 .dor6-error{border:1px solid CanvasText}.cf-delayed-offer-reveal-6 .dor6-emphasis,.cf-delayed-offer-reveal-6 .dor6-margin{color:CanvasText}}
`
pieces/offer/delayed-offer-reveal-6/specimen.tsx 48 lines
import { slot } from "../../slots";
import __studioImagea6f80c37 from "../assets/faf489e10406b2e3.webp"
import __studioImagebd0ce2f4 from "../assets/e5ea737538e41670.webp"
import * as React from "react"
import DelayedOfferReveal6 from "../delayed-offer-reveal-6"
import defaults from "../../studio-defaults.json"
export const states = ["default", "before", "hover", "active", "disabled", "error"]
type SpecimenState = "default" | "before" | "hover" | "active" | "disabled" | "error"
export default function DelayedOfferReveal6Specimen({ state = "default" }: { state?: SpecimenState }) {
const actionTimer = React.useRef<number | null>(null)
React.useEffect(() => () => { if (actionTimer.current !== null) window.clearTimeout(actionTimer.current) }, [])
const sample = defaults.sample
const before = state === "before"
return (
<div>
<DelayedOfferReveal6
state={state}
revealed={before ? undefined : true}
revealAt={before ? 2280 : undefined}
currentTime={before ? 1455 : undefined}
productName={sample.name}
headline={sample.headline}
highlight="a clear plan"
lead={sample.reason}
items={sample.items.map((item, index) => ({
name: item.name,
detail: item.detail,
value: item.value,
image: slot(`item-${index + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
regularPrice={sample.regularPrice}
priceLabel={sample.todayLabel}
price={sample.price}
note={sample.note}
label={sample.label}
sublabel={sample.sublabel}
guarantee={sample.guarantee}
sealGuaranteeImage={slot("seal-guarantee", __studioImagea6f80c37)}
textureImage={slot("texture", __studioImagebd0ce2f4)}
onAction={() => new Promise<void>(resolve => { actionTimer.current = window.setTimeout(resolve, 900) })}
/>
</div>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalDelayedOfferReveal6 |
Partial<DelayedOfferReveal6Copy> |
|
sealGuaranteeImage OptionalDelayedOfferReveal6 |
string |
Default guaranteeSeal
|
textureImage OptionalDelayedOfferReveal6 |
string |
Default stamp
|
revealed OptionalDelayedOfferReveal6 |
boolean |
|
revealAt OptionalDelayedOfferReveal6 |
number |
|
currentTime OptionalDelayedOfferReveal6 |
number |
|
videoId OptionalDelayedOfferReveal6 |
string |
|
onReveal OptionalDelayedOfferReveal6 |
() => void |
|
waitingTitle OptionalDelayedOfferReveal6 |
string |
Default "Keep watching. Your next step appears here."
|
waitingNote OptionalDelayedOfferReveal6 |
string |
Default "The complete offer opens automatically when the presentation reaches it."
|
reLabel OptionalDelayedOfferReveal6 |
string |
Default "Re:"
|
productName OptionalDelayedOfferReveal6 |
string |
Default "The Funnel Starter Kit"
|
headline OptionalDelayedOfferReveal6 |
string |
Default "Build your first funnel with a clear plan"
|
highlight OptionalDelayedOfferReveal6 |
string |
Default "a clear plan"
|
lead OptionalDelayedOfferReveal6 |
string |
Default "Get the guide, workbook, and checklist in one download. One payment. Yours to keep."
|
items OptionalDelayedOfferReveal6 |
DelayedOfferItem[] |
Default []
|
valueLabel OptionalDelayedOfferReveal6 |
string |
Default "Value"
|
regularLabel OptionalDelayedOfferReveal6 |
string |
Default "Regular value"
|
regularPrice OptionalDelayedOfferReveal6 |
string |
|
priceLabel OptionalDelayedOfferReveal6 |
string |
Default "Get the complete kit for"
|
price OptionalDelayedOfferReveal6 |
string |
Default "$47"
|
note OptionalDelayedOfferReveal6 |
string |
|
label OptionalDelayedOfferReveal6 |
string |
Default "Yes! Give Me Access"
|
sublabel OptionalDelayedOfferReveal6 |
string |
Default ""
|
href OptionalDelayedOfferReveal6 |
string |
Default "#checkout"
|
onAction OptionalDelayedOfferReveal6 |
() => void | Promise<void> |
|
loadingText OptionalDelayedOfferReveal6 |
string |
Default "Getting your kit ready…"
|
successText OptionalDelayedOfferReveal6 |
string |
|
successNote OptionalDelayedOfferReveal6 |
string |
|
errorText OptionalDelayedOfferReveal6 |
string |
Default "That didn’t go through. Please try again."
|
guarantee OptionalDelayedOfferReveal6 |
string |
Default "30-day money-back guarantee"
|
guaranteeNote OptionalDelayedOfferReveal6 |
string |
Default "Try the kit. If it’s not for you, request your money back within 30 days."
|
guaranteeSeal OptionalDelayedOfferReveal6 |
string |
|
stamp OptionalDelayedOfferReveal6 |
string |
|
notes OptionalDelayedOfferReveal6 |
DelayedOfferNotes |
|
disabled OptionalDelayedOfferReveal6 |
boolean |
Default false
|
state OptionalDelayedOfferReveal6 |
DelayedOfferRevealState |
Default "default"
|
className OptionalDelayedOfferReveal6 |
string |
|
copy OptionalDelayedOfferReveal |
Partial<DelayedOfferReveal6Copy> |
|
sealGuaranteeImage OptionalDelayedOfferReveal |
string |
|
textureImage OptionalDelayedOfferReveal |
string |
|
revealed OptionalDelayedOfferReveal |
boolean |
|
revealAt OptionalDelayedOfferReveal |
number |
|
currentTime OptionalDelayedOfferReveal |
number |
|
videoId OptionalDelayedOfferReveal |
string |
|
onReveal OptionalDelayedOfferReveal |
() => void |
|
waitingTitle OptionalDelayedOfferReveal |
string |
|
waitingNote OptionalDelayedOfferReveal |
string |
|
reLabel OptionalDelayedOfferReveal |
string |
|
productName OptionalDelayedOfferReveal |
string |
|
headline OptionalDelayedOfferReveal |
string |
|
highlight OptionalDelayedOfferReveal |
string |
|
lead OptionalDelayedOfferReveal |
string |
|
items OptionalDelayedOfferReveal |
DelayedOfferItem[] |
|
valueLabel OptionalDelayedOfferReveal |
string |
|
regularLabel OptionalDelayedOfferReveal |
string |
|
regularPrice OptionalDelayedOfferReveal |
string |
|
priceLabel OptionalDelayedOfferReveal |
string |
|
price OptionalDelayedOfferReveal |
string |
|
note OptionalDelayedOfferReveal |
string |
|
label OptionalDelayedOfferReveal |
string |
|
sublabel OptionalDelayedOfferReveal |
string |
|
href OptionalDelayedOfferReveal |
string |
|
onAction OptionalDelayedOfferReveal |
() => void | Promise<void> |
|
loadingText OptionalDelayedOfferReveal |
string |
|
successText OptionalDelayedOfferReveal |
string |
|
successNote OptionalDelayedOfferReveal |
string |
|
errorText OptionalDelayedOfferReveal |
string |
|
guarantee OptionalDelayedOfferReveal |
string |
|
guaranteeNote OptionalDelayedOfferReveal |
string |
|
guaranteeSeal OptionalDelayedOfferReveal |
string |
|
stamp OptionalDelayedOfferReveal |
string |
|
notes OptionalDelayedOfferReveal |
DelayedOfferNotes |
|
disabled OptionalDelayedOfferReveal |
boolean |
|
state OptionalDelayedOfferReveal |
DelayedOfferRevealState |
|
className OptionalDelayedOfferReveal |
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.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
item-*- One image per offer item (item-1, item-2…), shown in stacks and lists.
seal-guarantee- The money-back guarantee seal, on a transparent background.
texture- A subtle background texture.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
e5ea737538e41670.webp
image/webp · 177 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
faf489e10406b2e3.webp
image/webp · 439 KB