Advertorial Offer Band 1
Advertorial offer band: a compact native offer that sits between article chapters. The product on a stepped colour-block
Use it in a prompt
Use offer/advertorial-offer-band 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/advertorial-offer-band.tsx. - Import it and pass your copy and images (Props tab):
import { AdvertorialOfferBand } from "@/components/funneldna/offer/advertorial-offer-band"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/advertorial-offer-band/component.tsx 264 lines
// layout: fact-scoreboard
// Advertorial offer band: a compact native offer that sits between article chapters. The product on a stepped colour-block
// stage, one line of offer, a small scoreboard of supplied facts and a risk-first action as the final tile. Repeatable down the read.
import * as React from "react";
import { ShieldCheck } from "lucide-react";
export type AdvertorialOfferFact = {
value: string; // the big figure, e.g. "3"
label: string; // what it counts, e.g. "tools in one download"
};
export type AdvertorialOfferBandProps = {
name?: string; // product name, set as the band's title
line?: React.ReactNode; // the one line of offer; wrap the key phrase in <strong>
productImage?: string; // `product` slot: transparent product or bundle shot
productImageAlt?: string;
facts?: AdvertorialOfferFact[]; // supplied offer facts set as scoreboard tiles (counts, payment terms)
label?: string; // button action, risk reversal first
price?: string; // price that follows the action on the button
note?: string; // one reassurance line under the button
ariaLabel?: string; // accessible name for the band; "{name}" is replaced with the product name
href?: string;
onAction?: (event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
const DEFAULT_LINE = (
<>
Plan your funnel, write your page copy and <strong>check every step before you launch</strong>.
</>
);
const DEFAULT_FACTS: AdvertorialOfferFact[] = [
{ value: "3", label: "tools in one download" },
{ value: "1", label: "payment, yours to keep" },
];
export function AdvertorialOfferBand({
name = "The Funnel Starter Kit",
line = DEFAULT_LINE,
productImage,
productImageAlt,
facts = DEFAULT_FACTS,
label = "Try it for 30 days",
price = "$47",
note = "30-day money-back guarantee. No subscription, no upsell.",
ariaLabel = "{name} offer",
href,
onAction,
disabled = false,
state = "default",
className,
}: AdvertorialOfferBandProps) {
const isDisabled = disabled || state === "disabled";
const buttonClass = cx("cf-aob__btn", state === "hover" && "is-hover", state === "active" && "is-active");
const buttonContent = (
<>
<span className="cf-aob__btn-label">{label}</span>
{price ? <span className="cf-aob__btn-price">{price}</span> : null}
</>
);
return (
<aside
className={cx("cf-aob", productImage ? "has-image" : false, className)}
aria-label={ariaLabel.replace("{name}", name)}
>
<style>{CSS}</style>
<div className="cf-aob__panel">
{productImage ? (
<div className="cf-aob__stage">
<span className="cf-aob__slab" aria-hidden="true" />
<img
className="cf-aob__img"
src={productImage}
alt={productImageAlt ?? name}
width={288}
height={288}
loading="lazy"
decoding="async"
/>
</div>
) : null}
<div className="cf-aob__copy">
<p className="cf-aob__name">{name}</p>
{line ? <p className="cf-aob__line">{line}</p> : null}
</div>
<div className="cf-aob__board">
{facts.length > 0 ? (
<ul className="cf-aob__facts">
{facts.map((fact, i) => (
<li
key={`${fact.value}-${fact.label}`}
className="cf-aob__fact"
style={{ animationDelay: `${Math.min(0.07 * (i + 1), 0.28)}s` }}
>
<span className="cf-aob__fact-value">{fact.value}</span>
<span className="cf-aob__fact-label">{fact.label}</span>
</li>
))}
</ul>
) : null}
<div className="cf-aob__action">
{href && !isDisabled ? (
<a className={buttonClass} href={href} onClick={onAction}>
{buttonContent}
</a>
) : (
<button type="button" className={buttonClass} disabled={isDisabled} onClick={onAction}>
{buttonContent}
</button>
)}
{note ? (
<p className="cf-aob__note">
<ShieldCheck className="cf-aob__note-icon" size={16} strokeWidth={2.5} aria-hidden="true" />
{note}
</p>
) : null}
</div>
</div>
</div>
</aside>
);
}
export default AdvertorialOfferBand;
function cx(...parts: Array<string | false | null | undefined>) {
return parts.filter(Boolean).join(" ");
}
const CSS = `
.cf-aob{container:cf-aob / inline-size;display:block;width:100%;max-width:52rem;margin-inline:auto;font-family:var(--font-body);color:var(--band-ink, #fff)}
.cf-aob *,.cf-aob *::before,.cf-aob *::after{box-sizing:border-box}
.cf-aob__panel{
--aob-pad:20px;
--aob-stage:104px;
--aob-shadow:var(--shadow, oklch(0.22 0.03 256));
position:relative;isolation:isolate;overflow:hidden;
display:grid;grid-template-columns:var(--aob-stage) minmax(0,1fr);
grid-template-areas:"stage copy" "board board";
column-gap:16px;row-gap:20px;align-items:center;
padding:var(--aob-pad);
background:var(--band, oklch(0.27 0.067 256));
color:var(--band-ink, #fff);
border-radius:var(--card-radius, var(--radius, 14px));
box-shadow:inset 0 1px 0 oklch(from var(--band-ink, #fff) l c h / 0.1), 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));
animation:cf-aob-rise .45s cubic-bezier(.2,.7,.2,1) both;
}
.cf-aob:not(.has-image) .cf-aob__panel{grid-template-columns:minmax(0,1fr);grid-template-areas:"copy" "board"}
/* colour-block stage: a flat accent-fill block with one clean step, bleeding to the panel corner; the cut-out product sits over the step */
.cf-aob__stage{grid-area:stage;position:relative;align-self:stretch;display:grid;place-items:center;min-height:var(--aob-stage)}
.cf-aob__slab{
position:absolute;z-index:0;
top:calc(var(--aob-pad) * -1);left:calc(var(--aob-pad) * -1);right:-14px;bottom:-10px;
background:var(--accent-fill, var(--accent, oklch(0.5 0.17 257)));
clip-path:polygon(0 0,100% 0,100% 68%,86% 68%,86% 100%,0 100%);
}
.cf-aob__img{
position:relative;z-index:1;display:block;width:100%;max-width:none;height:auto;aspect-ratio:1;object-fit:contain;
filter:drop-shadow(0 2px 3px oklch(from var(--aob-shadow) l c h / 0.45)) drop-shadow(0 10px 12px oklch(from var(--aob-shadow) l c h / 0.35));
}
.cf-aob__copy{grid-area:copy;min-width:0}
.cf-aob__name{
margin:0;font-family:var(--font-display);font-weight:var(--display-weight, 800);text-transform:var(--display-case, none);
font-size:clamp(1.3125rem, 1.8vw, 1.625rem);line-height:1.15;letter-spacing:-0.01em;text-wrap:balance;
}
.cf-aob__line{margin:12px 0 0;font-size:clamp(1.0625rem, 1.25vw, 1.125rem);line-height:1.5;font-weight:400;text-wrap:pretty}
.cf-aob__line strong{font-weight:700}
/* scoreboard: fact tiles then the action as the final tile; wraps to full width rows when the column is narrow */
.cf-aob__board{grid-area:board;align-self:stretch;display:flex;flex-wrap:wrap;align-items:flex-start;gap:12px;min-width:0}
.cf-aob__facts{flex:1 1 22rem;min-width:0;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);gap:12px;margin:0;padding:0;list-style:none}
.cf-aob__fact{
display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:12px;
min-width:0;min-height:64px;padding:14px 16px;border-radius:10px;
background:oklch(from var(--band-ink, #fff) l c h / 0.08);
box-shadow:inset 0 0 0 1px oklch(from var(--band-ink, #fff) l c h / 0.14);
animation:cf-aob-rise .45s cubic-bezier(.2,.7,.2,1) both;
}
.cf-aob__fact-value{
font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:2.5rem;line-height:1;
letter-spacing:-0.03em;font-variant-numeric:tabular-nums;white-space:nowrap;
}
.cf-aob__fact-label{font-size:.9375rem;line-height:1.3;font-weight:600;text-wrap:pretty}
.cf-aob__action{flex:1 1 19rem;min-width:0;display:flex;flex-direction:column;gap:12px}
.cf-aob__note{margin:0;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-aob__note-icon{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
/* primary button: risk reversal leads, the price follows on a split segment */
.cf-aob__btn{
--b:var(--button-bg, var(--cta));
--b2:var(--button-bg-2, var(--cta-2, var(--button-bg, var(--cta))));
appearance:none;border:0;margin:0;cursor:pointer;
display:flex;align-items:center;justify-content:center;gap:16px;
width:100%;min-height:64px;padding:8px 10px 8px 28px;
border-radius:var(--button-radius, var(--radius, 12px));
font-family:var(--button-font, var(--font-display));font-weight:var(--button-weight, 800);text-transform:var(--button-case, none);
font-size:clamp(1.125rem, 1.55vw, 1.375rem);line-height:1.15;letter-spacing:-0.005em;text-align:center;text-decoration:none;
color:var(--button-ink, var(--cta-ink, #fff));
text-shadow:var(--button-text-shadow, none);
background:linear-gradient(oklch(from var(--b) calc(l + 0.04) c h), oklch(from var(--b2) calc(l - 0.02) c h));
box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--b) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--b) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--aob-shadow) l c h / 0.35), 0 8px 16px -6px oklch(from var(--aob-shadow) l c h / 0.5));
transition:transform .16s ease, box-shadow .16s ease, background .16s ease;
-webkit-tap-highlight-color:transparent;
}
.cf-aob__btn:not(:disabled):hover,.cf-aob__btn.is-hover{
background:linear-gradient(oklch(from var(--b) calc(l - 0.01) c h), oklch(from var(--b2) calc(l - 0.07) c h));
box-shadow:inset 0 1px 0 oklch(from var(--b) calc(l + 0.1) c h / 0.6), inset 0 -3px 0 oklch(from var(--b) calc(l - 0.2) c h), 0 1px 2px oklch(from var(--aob-shadow) l c h / 0.4), 0 10px 18px -6px oklch(from var(--aob-shadow) l c h / 0.6);
}
.cf-aob__btn:not(:disabled):active,.cf-aob__btn.is-active{
transform:translateY(1px);
background:linear-gradient(oklch(from var(--b) calc(l - 0.04) c h), oklch(from var(--b2) calc(l - 0.08) c h));
box-shadow:inset 0 2px 3px oklch(from var(--b) calc(l - 0.22) c h / 0.45), inset 0 -2px 0 oklch(from var(--b) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--aob-shadow) l c h / 0.35);
}
.cf-aob__btn:focus-visible{outline:3px solid var(--band-ink, #fff);outline-offset:3px}
.cf-aob__btn:disabled{
cursor:not-allowed;transform:none;text-shadow:none;
color:var(--band-ink, #fff);
background:oklch(from var(--band-ink, #fff) l c h / 0.16);
box-shadow:none;
}
.cf-aob__btn-label{flex:1 1 auto;min-width:0;text-wrap:balance}
/* price segment: a recessed pill inside the button, in the button's own hue */
.cf-aob__btn-price{
flex:none;display:inline-flex;align-items:center;min-height:44px;padding:6px 16px;
border-radius:max(6px, calc(var(--button-radius, var(--radius, 12px)) - 4px));
background:oklch(from var(--b2) calc(l - 0.08) c h / 0.6);
box-shadow:inset 0 1px 2px oklch(from var(--b) calc(l - 0.24) c h / 0.45), inset 0 -1px 0 oklch(from var(--b) calc(l + 0.1) c h / 0.35);
font-variant-numeric:tabular-nums;white-space:nowrap;
}
.cf-aob__btn:disabled .cf-aob__btn-price{background:oklch(from var(--band-ink, #fff) l c h / 0.12);box-shadow:none}
@container cf-aob (min-width: 520px){
.cf-aob__panel{--aob-pad:24px;--aob-stage:136px;column-gap:24px;row-gap:24px}
.cf-aob__slab{right:-18px;bottom:-12px}
.cf-aob__fact{flex-direction:row;align-items:center;gap:16px;padding:12px 18px}
.cf-aob__fact-label{max-width:8em}
}
/* wide: the colour block becomes a full-height column on the left; copy, scoreboard and action read down the right */
@container cf-aob (min-width: 760px){
.cf-aob__panel{--aob-pad:32px;--aob-stage:200px;row-gap:24px}
.cf-aob.has-image .cf-aob__panel{grid-template-areas:"stage copy" "stage board";column-gap:48px;align-items:start}
.cf-aob.has-image .cf-aob__copy{padding-top:4px}
.cf-aob__slab{right:0;bottom:calc(var(--aob-pad) * -1);clip-path:polygon(0 0,100% 0,100% 60%,88% 60%,88% 100%,0 100%)}
.cf-aob__img{width:calc(100% + 16px);transform:translateX(10px)}
}
@keyframes cf-aob-rise{from{opacity:.82;transform:translateY(8px)}}
@media (prefers-reduced-motion: reduce){
.cf-aob__panel,.cf-aob__fact{animation:none}
.cf-aob__btn{transition:none}
.cf-aob__btn:not(:disabled):active,.cf-aob__btn.is-active{transform:none}
}
`;
pieces/offer/advertorial-offer-band/specimen.tsx 35 lines
import __studioImage71dc3e0b from "../assets/2421802d9d18d2b7.webp";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
import { AdvertorialOfferBand } from "../advertorial-offer-band";
export const states = ["default", "hover", "active", "disabled"];
type SpecimenState = "default" | "hover" | "active" | "disabled";
export default function AdvertorialOfferBandSpecimen({ state = "default" }: { state?: SpecimenState }) {
const sample = defaults.sample;
return (
<AdvertorialOfferBand
state={state}
name={sample.name}
line={
<>
Plan your funnel, write your page copy and <strong>check every step before you launch</strong>.
</>
}
productImage={slot(
"product",
__studioImage71dc3e0b
)}
productImageAlt={`${sample.name}: planning guide, page copy workbook and launch checklist`}
facts={[
{ value: String(sample.items.length), label: "tools in one download" },
{ value: "1", label: "payment, yours to keep" },
]}
label="Try it for 30 days"
price={sample.price}
note={`${sample.guarantee}. No subscription, no upsell.`}
/>
);
}
| Name | Type | Details |
|---|---|---|
name OptionalAdvertorialOfferBand |
string |
Default "The Funnel Starter Kit"
|
line OptionalAdvertorialOfferBand |
React.ReactNode |
Default DEFAULT_LINE
|
productImage OptionalAdvertorialOfferBand |
string |
|
productImageAlt OptionalAdvertorialOfferBand |
string |
|
facts OptionalAdvertorialOfferBand |
AdvertorialOfferFact[] |
Default DEFAULT_FACTS
|
label OptionalAdvertorialOfferBand |
string |
Default "Try it for 30 days"
|
price OptionalAdvertorialOfferBand |
string |
Default "$47"
|
note OptionalAdvertorialOfferBand |
string |
Default "30-day money-back guarantee. No subscription, no upsell."
|
ariaLabel OptionalAdvertorialOfferBand |
string |
Default "{name} offer"
|
href OptionalAdvertorialOfferBand |
string |
|
onAction OptionalAdvertorialOfferBand |
(event: React.MouseEvent<HTMLAnchorElement | HTMLButtonElement>) => void |
|
disabled OptionalAdvertorialOfferBand |
boolean |
Default false
|
state OptionalAdvertorialOfferBand |
"default" | "hover" | "active" | "disabled" |
Default "default"
|
className OptionalAdvertorialOfferBand |
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-radius- Cards and panels: radius, border and shadow.
--display-case--display-weight- Headlines: weight, letter case and tracking.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
product- The main product shot or cover (ebook, kit, bottle).
-
2421802d9d18d2b7.webp
image/webp · 70.8 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB