Guarantee Certificate 1
Takes the risk off the purchase with a signed money-back guarantee beside the price and one button.
Use it in a prompt
Use offer/guarantee-certificate 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/guarantee-certificate.tsx. - Import it and pass your copy and images (Props tab):
import { GuaranteeCertificate } from "@/components/funneldna/offer/guarantee-certificate"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/guarantee-certificate/component.tsx 596 lines
// Takes the risk off the purchase with a signed money-back guarantee beside the price and one button.
// layout: path-to-action
// Guarantee certificate: a signed, framed 30-day promise whose path runs from the kit, through the terms, to a hang-tag price and one risk-first button.
import * as React from "react";
import { Check, Lock, Package, ShieldCheck, Tag } from "lucide-react";
export type GuaranteeCertificateItem = {
name: string;
image?: string;
imageAlt?: string;
};
export type GuaranteeCertificateProps = {
/** Main promise. Wrap the key phrase in <mark> for the marker stroke. */
headline?: React.ReactNode;
/** Sub-headline under the promise. */
lead?: React.ReactNode;
/** Slot "seal-guarantee": transparent money-back seal art. */
sealImage?: string;
sealAlt?: string;
kitName?: string;
kitDetail?: React.ReactNode;
/** Product thumbnails (slots item-1 … item-n). */
items?: GuaranteeCertificateItem[];
/** Guarantee terms: supplied terms only, key phrase in <strong>. */
terms?: React.ReactNode;
/** Name written in the signature face (used when there is no signatureImage). */
signature?: string;
/** Slot "signature": transparent handwritten signature image. */
signatureImage?: string;
signatureCaption?: string;
/** Written on the date line; leave empty for a blank line to sign. */
date?: string;
dateCaption?: string;
regularPrice?: string;
price?: string;
/** Short lines on the price tag; parts separated by "·" become their own lines. */
priceNote?: string;
/** Screen-reader label before the struck price. */
regularPriceText?: string;
/** Screen-reader label before today's price. */
todayPriceText?: string;
/** Button label; {price} is replaced with the price. */
actionLabel?: string;
/** One short reassurance line under the button. */
actionNote?: string;
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
disabled?: boolean;
state?: "default" | "hover" | "active" | "disabled";
className?: string;
};
export function GuaranteeCertificate({
headline = (
<>
Try it for <mark>30 days</mark>, or get your money back.
</>
),
lead = "Your order comes with this promise, in writing and signed.",
sealImage,
sealAlt = "30-day money-back guarantee seal",
kitName = "The Funnel Starter Kit",
kitDetail = "Get the guide, workbook, and checklist in one download. One payment. Yours to keep.",
items = [],
terms = (
<>
Take the full 30 days to plan your funnel, write your page copy and check every step before you launch.{" "}
<strong>You’re covered by a 30-day money-back guarantee.</strong>
</>
),
signature = "Owner",
signatureImage,
signatureCaption = "Owner’s signature",
date,
dateCaption = "Date",
regularPrice = "$97",
price = "$47",
priceNote = "One payment · Lifetime access",
regularPriceText = "Regular price",
todayPriceText = "Today’s price",
actionLabel = "Try It for 30 Days — {price}",
actionNote = "",
href,
onAction,
disabled = false,
state = "default",
className,
}: GuaranteeCertificateProps) {
const uid = React.useId();
const headingId = `${uid}-heading`;
const isDisabled = disabled || state === "disabled";
const btnClass = ["cf-gc-btn", state === "hover" ? "is-hover" : "", state === "active" ? "is-active" : ""]
.filter(Boolean)
.join(" ");
const label = <span className="cf-gc-btn-label">{fillPrice(actionLabel, price)}</span>;
const thumbs = items.filter((item) => Boolean(item.image));
const noteLines = splitNote(priceNote);
const action =
href && !isDisabled ? (
<a className={btnClass} href={href} onClick={onAction}>
{label}
</a>
) : (
<button type="button" className={btnClass} disabled={isDisabled} onClick={isDisabled ? undefined : onAction}>
{label}
</button>
);
return (
<article className={["cf-guarantee-certificate", className].filter(Boolean).join(" ")} aria-labelledby={headingId}>
<link rel="stylesheet" href={SIGNATURE_FONT_URL} />
<style>{CSS}</style>
<div className="cf-gc-frame">
<Rosette className="cf-gc-corner is-tl" />
<Rosette className="cf-gc-corner is-tr" />
<Rosette className="cf-gc-corner is-bl" />
<Rosette className="cf-gc-corner is-br" />
<span className="cf-gc-gem is-t" aria-hidden="true" />
<span className="cf-gc-gem is-b" aria-hidden="true" />
<span className="cf-gc-gem is-l" aria-hidden="true" />
<span className="cf-gc-gem is-r" aria-hidden="true" />
<div className="cf-gc-sheet">
<header className={sealImage ? "cf-gc-head" : "cf-gc-head is-plain"}>
{sealImage ? (
<div className="cf-gc-seal">
<img src={sealImage} alt={sealAlt} width={400} height={400} decoding="async" />
</div>
) : null}
<div className="cf-gc-intro">
<h2 id={headingId} className="cf-gc-headline">
{headline}
</h2>
{lead ? <p className="cf-gc-lead">{lead}</p> : null}
</div>
</header>
<ol className="cf-gc-path">
<li className="cf-gc-stop" style={stepStyle(0)}>
<div className="cf-gc-rail" aria-hidden="true">
<span className="cf-gc-node">
<Package />
</span>
</div>
<div className="cf-gc-content">
<p className="cf-gc-kit-name">{kitName}</p>
{kitDetail ? <p className="cf-gc-text">{kitDetail}</p> : null}
{thumbs.length ? (
<ul className="cf-gc-thumbs">
{thumbs.map((item, i) => (
<li key={`${item.name}-${i}`}>
<img
src={item.image}
alt={item.imageAlt ?? item.name}
width={136}
height={136}
loading="lazy"
decoding="async"
/>
</li>
))}
</ul>
) : null}
</div>
</li>
<li className="cf-gc-stop" style={stepStyle(1)}>
<div className="cf-gc-rail" aria-hidden="true">
<span className="cf-gc-node">
<ShieldCheck />
</span>
</div>
<div className="cf-gc-content">
<p className="cf-gc-terms">{terms}</p>
<div className="cf-gc-signoff">
<div>
<div className="cf-gc-sig">
{signatureImage ? <img src={signatureImage} alt={signature} /> : <span>{signature}</span>}
</div>
<p className="cf-gc-caption">{signatureCaption}</p>
</div>
<div>
<div className="cf-gc-dateline">{date ? <span>{date}</span> : null}</div>
<p className="cf-gc-caption">{dateCaption}</p>
</div>
</div>
</div>
</li>
<li className="cf-gc-stop is-final" style={stepStyle(2)}>
<div className="cf-gc-rail" aria-hidden="true">
<span className="cf-gc-node">
<Tag />
</span>
</div>
<div className="cf-gc-content">
<div className="cf-gc-deal">
<div className="cf-gc-tag-area">
<div className="cf-gc-tag">
<span className="cf-gc-tag-edge" aria-hidden="true" />
<div className="cf-gc-tag-body">
<p className="cf-gc-price-row">
{regularPrice ? (
<span className="cf-gc-was">
<span className="cf-gc-sr">{regularPriceText} </span>
<s>{regularPrice}</s>
</span>
) : null}
<span className="cf-gc-now">
<span className="cf-gc-sr">{todayPriceText} </span>
{price}
</span>
</p>
{noteLines.length ? (
<ul className="cf-gc-tag-note">
{noteLines.map((line, i) => (
<li key={`${line}-${i}`}>
<Check aria-hidden="true" />
<span>{line}</span>
</li>
))}
</ul>
) : null}
</div>
<span className="cf-gc-hole" aria-hidden="true" />
</div>
<svg className="cf-gc-string" width="1" height="1" aria-hidden="true" focusable="false">
<path className="cf-gc-string-desk" d="M25 98 C 22 66, 2 30, -17 22" />
<path className="cf-gc-string-mob" d="M25 98 C 22 48, 6 0, -13 -12" />
<circle cx="25" cy="98" r="2.75" />
</svg>
</div>
<div className="cf-gc-action">
{action}
{actionNote ? (
<p className="cf-gc-note">
<Lock aria-hidden="true" />
<span>{actionNote}</span>
</p>
) : null}
</div>
</div>
</div>
</li>
</ol>
</div>
</div>
</article>
);
}
export default GuaranteeCertificate;
function fillPrice(template: string, price: string): React.ReactNode {
const parts = template.split("{price}");
return parts.map((part, i) => (
<React.Fragment key={i}>
{part}
{i < parts.length - 1 ? <span className="cf-gc-nowrap">{price}</span> : null}
</React.Fragment>
));
}
function splitNote(note?: string): string[] {
if (!note) return [];
return note
.split("·")
.map((part) => part.trim())
.filter(Boolean);
}
function stepStyle(i: number): React.CSSProperties {
return { "--i": String(i) } as unknown as React.CSSProperties;
}
function Rosette({ className }: { className: string }) {
return (
<svg className={className} viewBox="0 0 40 40" aria-hidden="true" focusable="false">
<circle className="cf-gc-rosette-fill" cx="20" cy="20" r="17" stroke="currentColor" strokeWidth="1.5" />
<circle cx="20" cy="20" r="12.5" fill="none" stroke="currentColor" strokeWidth="0.75" opacity="0.55" />
{[0, 45, 90, 135, 180, 225, 270, 315].map((a) => (
<ellipse
key={a}
cx="20"
cy="12"
rx="2.6"
ry="4.8"
fill="currentColor"
opacity={a % 90 === 0 ? 0.95 : 0.45}
transform={`rotate(${a} 20 20)`}
/>
))}
<circle className="cf-gc-rosette-fill" cx="20" cy="20" r="3" stroke="currentColor" strokeWidth="1.25" />
</svg>
);
}
const SIGNATURE_FONT_URL = "https://fonts.googleapis.com/css2?family=Allura&display=swap";
const CSS = `
.cf-guarantee-certificate{
--gc-accent:var(--accent, #2f5fd0);
--gc-card:var(--card, #ffffff);
--gc-ink:var(--ink, #111a2e);
--gc-muted:var(--muted, #4a5568);
--gc-band:var(--band, #13254a);
--gc-band-ink:var(--band-ink, #ffffff);
--gc-shadow:var(--shadow, oklch(0.22 0.03 260));
--gc-btn:var(--button-bg, var(--cta, #d6352b));
--gc-btn-2:var(--button-bg-2, var(--cta-2, #b82a21));
--gc-btn-ink:var(--button-ink, var(--cta-ink, #ffffff));
--gc-radius:min(var(--card-radius, var(--radius, 10px)), 16px);
--signature-font:var(--signature-face, "Allura", var(--font-display, cursive));
container-type:inline-size;
position:relative;
width:100%;
max-width:1000px;
margin-inline:auto;
color:var(--gc-ink);
font-family:var(--font-body, system-ui, sans-serif);
font-size:1rem;
line-height:1.5;
text-align:left;
}
.cf-guarantee-certificate *, .cf-guarantee-certificate *::before, .cf-guarantee-certificate *::after{box-sizing:border-box;}
.cf-guarantee-certificate .cf-gc-frame{
--gc-left:200px; --gc-rail:36px; --gc-gap:16px; --gc-band-w:11px; --gc-corner:36px; --gc-tag-w:264px;
--gc-step-gap:clamp(1.75rem, 3.6cqi, 2.5rem);
position:relative;
padding:var(--gc-band-w);
border:1.5px solid var(--accent-fill,var(--gc-accent));
border-radius:var(--gc-radius);
background-color:var(--gc-card);
background-image:
repeating-linear-gradient(135deg, oklch(from var(--accent-fill,var(--gc-accent)) l c h / 0.32) 0 1px, transparent 1px 6px),
repeating-linear-gradient(45deg, oklch(from var(--accent-fill,var(--gc-accent)) l c h / 0.18) 0 1px, transparent 1px 6px);
box-shadow:var(--card-shadow, var(--shadow-lg, 0 2px 4px oklch(0.22 0.03 260 / 0.22), 0 12px 24px -8px oklch(0.22 0.03 260 / 0.32)));
}
.cf-guarantee-certificate .cf-gc-sheet{
position:relative;
border:1px solid var(--accent-fill,var(--gc-accent));
border-radius:max(2px, calc(var(--gc-radius) - 8px));
background:var(--gc-card);
box-shadow:inset 0 0 0 4px var(--gc-card), inset 0 0 0 5px oklch(from var(--accent-fill,var(--gc-accent)) l c h / 0.45);
padding:clamp(28px, 5.5cqi, 60px) clamp(22px, 6.5cqi, 68px);
}
.cf-guarantee-certificate .cf-gc-corner{position:absolute; z-index:2; width:var(--gc-corner); height:var(--gc-corner); color:var(--accent-fill,var(--gc-accent)); pointer-events:none;}
.cf-guarantee-certificate .cf-gc-corner.is-tl{top:-1px; left:-1px;}
.cf-guarantee-certificate .cf-gc-corner.is-tr{top:-1px; right:-1px;}
.cf-guarantee-certificate .cf-gc-corner.is-bl{bottom:-1px; left:-1px;}
.cf-guarantee-certificate .cf-gc-corner.is-br{bottom:-1px; right:-1px;}
.cf-guarantee-certificate .cf-gc-rosette-fill{fill:var(--gc-card);}
.cf-guarantee-certificate .cf-gc-gem{position:absolute; z-index:2; width:9px; height:9px; background:var(--accent-fill,var(--gc-accent)); box-shadow:0 0 0 3px var(--gc-card); transform:rotate(45deg); pointer-events:none;}
.cf-guarantee-certificate .cf-gc-gem.is-t{top:calc(var(--gc-band-w) / 2 - 4.5px); left:calc(50% - 4.5px);}
.cf-guarantee-certificate .cf-gc-gem.is-b{bottom:calc(var(--gc-band-w) / 2 - 4.5px); left:calc(50% - 4.5px);}
.cf-guarantee-certificate .cf-gc-gem.is-l{left:calc(var(--gc-band-w) / 2 - 4.5px); top:calc(50% - 4.5px);}
.cf-guarantee-certificate .cf-gc-gem.is-r{right:calc(var(--gc-band-w) / 2 - 4.5px); top:calc(50% - 4.5px);}
.cf-guarantee-certificate .cf-gc-head{display:grid; grid-template-columns:var(--gc-left) minmax(0,1fr); column-gap:calc(var(--gc-gap) * 2 + var(--gc-rail)); align-items:center;}
.cf-guarantee-certificate .cf-gc-head.is-plain{grid-template-columns:minmax(0,1fr);}
.cf-guarantee-certificate .cf-gc-seal{justify-self:center; width:100%; max-width:var(--gc-left);}
.cf-guarantee-certificate .cf-gc-seal img{
display:block; width:100%; height:auto; aspect-ratio:1; object-fit:contain;
transform:rotate(-6deg);
filter:drop-shadow(0 2px 2px oklch(from var(--gc-shadow) l c h / 0.32)) drop-shadow(0 10px 10px oklch(from var(--gc-shadow) l c h / 0.2));
animation:cf-gc-stamp .55s cubic-bezier(.2,1.3,.4,1) .05s backwards;
}
.cf-guarantee-certificate .cf-gc-intro{min-width:0;}
.cf-guarantee-certificate .cf-gc-headline{
margin:0 0 .3em;
font-family:var(--font-display, inherit);
font-weight:var(--display-weight, 800);
text-transform:var(--display-case, none);
letter-spacing:var(--display-tracking, -0.02em);
font-size:clamp(2rem, 1.1rem + 3.4cqi, 3.375rem);
line-height:1.05;
color:var(--gc-ink);
text-wrap:balance;
}
.cf-guarantee-certificate .cf-gc-headline mark{
color:var(--field-ink, var(--gc-ink));
background:color-mix(in oklch, var(--marker, #fae37c) 88%, var(--field, #ffffff));
padding:0 .14em;
margin:0 -.04em;
border-radius:.18em .42em .3em .5em / .5em .26em .44em .22em;
-webkit-box-decoration-break:clone;
box-decoration-break:clone;
}
.cf-guarantee-certificate .cf-gc-lead{margin:0; max-width:54ch; font-size:clamp(1.0625rem, .98rem + .45cqi, 1.25rem); font-weight:500; line-height:1.5; color:var(--gc-muted); text-wrap:pretty;}
.cf-guarantee-certificate .cf-gc-path{list-style:none; margin:clamp(2rem, 4.5cqi, 3rem) 0 0; padding:0;}
.cf-guarantee-certificate .cf-gc-stop{display:grid; grid-template-columns:var(--gc-left) var(--gc-rail) minmax(0,1fr); column-gap:var(--gc-gap); padding-bottom:var(--gc-step-gap);}
.cf-guarantee-certificate .cf-gc-stop:last-child{padding-bottom:0;}
.cf-guarantee-certificate .cf-gc-rail{grid-column:2; grid-row:1 / span 2; position:relative; display:flex; justify-content:center; align-items:flex-start;}
.cf-guarantee-certificate .cf-gc-rail::before{
content:""; position:absolute; left:calc(50% - 1px); width:2px; top:0; bottom:calc(-1 * var(--gc-step-gap));
border-radius:2px; background:oklch(from var(--accent-fill,var(--gc-accent)) l c h / 0.42);
transform-origin:top;
animation:cf-gc-draw .5s ease-out calc(.25s + var(--i, 0) * .2s) backwards;
}
.cf-guarantee-certificate .cf-gc-stop:first-child .cf-gc-rail::before{top:16px;}
.cf-guarantee-certificate .cf-gc-stop:last-child .cf-gc-rail::before{bottom:auto; height:16px;}
.cf-guarantee-certificate .cf-gc-node{
position:relative; z-index:1; display:grid; place-items:center; width:32px; height:32px; border-radius:50%;
border:2px solid var(--accent-fill,var(--gc-accent)); background:var(--gc-card); color:var(--gc-accent); box-shadow:0 0 0 4px var(--gc-card);
}
.cf-guarantee-certificate .cf-gc-node svg{width:16px; height:16px;}
.cf-guarantee-certificate .cf-gc-stop.is-final .cf-gc-node{background:var(--accent-fill,var(--gc-accent)); color:var(--accent-fill-ink,var(--gc-card));}
.cf-guarantee-certificate .cf-gc-content{grid-column:3; grid-row:1; min-width:0; padding-top:2px;}
.cf-guarantee-certificate .cf-gc-kit-name{
margin:0 0 .45rem; font-family:var(--font-display, inherit); font-weight:var(--display-weight, 800);
font-size:1.375rem; line-height:1.25; letter-spacing:var(--display-tracking, -0.01em); color:var(--gc-ink); text-wrap:balance;
}
.cf-guarantee-certificate .cf-gc-text{margin:0; max-width:60ch; font-size:1.0625rem; line-height:1.6; color:var(--gc-muted); text-wrap:pretty;}
.cf-guarantee-certificate .cf-gc-thumbs{list-style:none; display:flex; flex-wrap:wrap; gap:.75rem; margin:1rem 0 0; padding:0;}
.cf-guarantee-certificate .cf-gc-thumbs img{
display:block; width:68px; height:68px; object-fit:cover; border-radius:calc(var(--radius, 10px) * .6);
filter:drop-shadow(0 1px 1.5px oklch(from var(--gc-shadow) l c h / 0.3)) drop-shadow(0 4px 5px oklch(from var(--gc-shadow) l c h / 0.16));
transition:transform .2s ease;
}
.cf-guarantee-certificate .cf-gc-terms{margin:0; max-width:60ch; font-size:clamp(1.0625rem, 1rem + .3cqi, 1.1875rem); line-height:1.6; color:var(--gc-ink); text-wrap:pretty;}
.cf-guarantee-certificate .cf-gc-terms strong{font-weight:800;}
.cf-guarantee-certificate .cf-gc-signoff{display:grid; grid-template-columns:minmax(0,1.15fr) minmax(0,1fr); column-gap:2.25rem; max-width:520px; margin-top:1.5rem;}
.cf-guarantee-certificate .cf-gc-sig{
display:flex; align-items:flex-end; height:3.25rem; font-family:var(--signature-font); font-weight:400;
font-size:2.75rem; line-height:1; color:var(--signature-ink, var(--gc-ink)); white-space:nowrap;
}
.cf-guarantee-certificate .cf-gc-sig img{display:block; height:100%; width:auto; max-width:100%; object-fit:contain; object-position:left bottom;}
.cf-guarantee-certificate .cf-gc-dateline{
display:flex; align-items:flex-end; height:3.25rem; padding:0 .25rem .2rem; overflow:hidden;
border-bottom:1.5px solid oklch(from var(--gc-ink) l c h / 0.5);
font-family:var(--signature-font); font-size:1.625rem; line-height:1; color:var(--signature-ink, var(--gc-ink)); white-space:nowrap;
}
.cf-guarantee-certificate .cf-gc-caption{margin:.5rem 0 0; font-size:.875rem; font-weight:600; line-height:1.3; color:var(--gc-muted);}
.cf-guarantee-certificate .cf-gc-deal{display:flex; flex-wrap:wrap; align-items:flex-start; column-gap:2rem; row-gap:1.25rem;}
.cf-guarantee-certificate .cf-gc-tag-area{position:relative; flex:none; width:var(--gc-tag-w); max-width:100%; height:168px;}
.cf-guarantee-certificate .cf-gc-tag{
position:absolute; left:0; top:34px; width:100%; height:128px;
transform-origin:25px 64px; transform:rotate(-5deg);
filter:drop-shadow(0 1px 1.5px oklch(from var(--gc-shadow) l c h / 0.4)) drop-shadow(0 6px 6px oklch(from var(--gc-shadow) l c h / 0.2));
transition:transform .6s cubic-bezier(.25,1.6,.45,1);
animation:cf-gc-swing 1.3s cubic-bezier(.3,.6,.4,1) .4s backwards;
}
.cf-guarantee-certificate .cf-gc-tag-edge, .cf-guarantee-certificate .cf-gc-tag-body{
position:absolute;
clip-path:polygon(30px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 30px 100%, 0 50%);
}
.cf-guarantee-certificate .cf-gc-tag-edge{inset:0; background:oklch(from var(--gc-band-ink) l c h / 0.24);}
.cf-guarantee-certificate .cf-gc-tag-body{
inset:1.5px; display:flex; flex-direction:column; justify-content:center; align-items:flex-start; gap:12px;
padding:0 20px 0 54px;
background:linear-gradient(oklch(from var(--gc-band) calc(l + 0.05) c h), var(--gc-band));
color:var(--gc-band-ink);
}
.cf-guarantee-certificate .cf-gc-hole{
position:absolute; z-index:1; left:18px; top:calc(50% - 7px); width:14px; height:14px; border-radius:50%;
background:var(--gc-card);
box-shadow:0 0 0 2px oklch(from var(--gc-band-ink) l c h / 0.45), inset 0 1px 2px oklch(from var(--gc-shadow) l c h / 0.5);
}
.cf-guarantee-certificate .cf-gc-price-row{display:flex; flex-wrap:nowrap; align-items:baseline; column-gap:.625rem; margin:0; line-height:1;}
.cf-guarantee-certificate .cf-gc-was{
font-family:var(--font-display, inherit); font-weight:700; font-size:1.25rem; line-height:1; white-space:nowrap;
color:color-mix(in oklch, var(--gc-band-ink) 76%, var(--gc-band));
}
.cf-guarantee-certificate .cf-gc-was s{
text-decoration-line:line-through;
text-decoration-color:oklch(from var(--danger, #d0342c) max(l, 0.66) c h);
text-decoration-thickness:.12em;
}
.cf-guarantee-certificate .cf-gc-now{
font-family:var(--font-display, inherit); font-weight:var(--display-weight, 800);
font-size:2.75rem; line-height:1; letter-spacing:-.025em; color:var(--gc-band-ink); white-space:nowrap;
font-variant-numeric:lining-nums;
}
.cf-guarantee-certificate .cf-gc-tag-note{list-style:none; display:grid; gap:4px; margin:0; padding:0;}
.cf-guarantee-certificate .cf-gc-tag-note li{
display:flex; align-items:center; gap:7px; font-size:.875rem; font-weight:600; line-height:1.25; white-space:nowrap;
color:color-mix(in oklch, var(--gc-band-ink) 90%, var(--gc-band));
}
.cf-guarantee-certificate .cf-gc-tag-note svg{flex:none; width:14px; height:14px; stroke-width:3; color:color-mix(in oklch, var(--gc-band-ink) 82%, var(--gc-band));}
.cf-guarantee-certificate .cf-gc-string{position:absolute; left:0; top:0; z-index:2; overflow:visible; pointer-events:none;}
.cf-guarantee-certificate .cf-gc-string path{fill:none; stroke:oklch(from var(--gc-ink) l c h / 0.5); stroke-width:1.75; stroke-linecap:round;}
.cf-guarantee-certificate .cf-gc-string circle{fill:oklch(from var(--gc-ink) l c h / 0.6);}
.cf-guarantee-certificate .cf-gc-string-mob{display:none;}
.cf-guarantee-certificate .cf-gc-action{flex:1 1 260px; max-width:420px; min-width:0; padding-top:66px;}
.cf-guarantee-certificate .cf-gc-btn{
display:flex; align-items:center; justify-content:center; width:100%; min-height:62px; margin:0;
padding:.95rem 1.25rem;
border:1px solid oklch(from var(--gc-btn) calc(l - 0.14) c h);
border-radius:var(--button-radius, var(--radius, 10px));
background:linear-gradient(oklch(from var(--gc-btn) calc(l + 0.04) c h), var(--gc-btn-2));
color:var(--gc-btn-ink);
font-family:var(--button-font, var(--font-display, inherit));
font-weight:var(--button-weight, 800);
font-size:clamp(1.0625rem, .98rem + .5cqi, 1.25rem);
line-height:1.2; letter-spacing:-.005em;
text-transform:var(--button-case, none);
text-align:center; text-decoration:none; text-wrap:balance;
text-shadow:var(--button-text-shadow, none);
cursor:pointer; appearance:none; -webkit-tap-highlight-color:transparent;
box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from var(--gc-btn) calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from var(--gc-btn) calc(l - 0.16) c h), 0 1px 2px oklch(from var(--gc-shadow) l c h / 0.3), 0 6px 12px -4px oklch(from var(--gc-shadow) l c h / 0.38));
transition:transform .15s ease, background .15s ease, box-shadow .15s ease;
}
.cf-guarantee-certificate .cf-gc-nowrap{white-space:nowrap;}
.cf-guarantee-certificate .cf-gc-btn.is-hover{
background:linear-gradient(oklch(from var(--gc-btn) calc(l - 0.02) c h), oklch(from var(--gc-btn-2) calc(l - 0.06) c h));
transform:translateY(-1px);
box-shadow:inset 0 1px 0 oklch(from var(--gc-btn) calc(l + 0.1) c h / 0.6), inset 0 -3px 0 oklch(from var(--gc-btn) calc(l - 0.2) c h), 0 2px 3px oklch(from var(--gc-shadow) l c h / 0.32), 0 9px 16px -6px oklch(from var(--gc-shadow) l c h / 0.42);
}
.cf-guarantee-certificate .cf-gc-btn:active:not(:disabled), .cf-guarantee-certificate .cf-gc-btn.is-active{
background:linear-gradient(oklch(from var(--gc-btn) calc(l - 0.08) c h), oklch(from var(--gc-btn-2) calc(l - 0.08) c h));
transform:translateY(1px);
box-shadow:inset 0 2px 3px oklch(from var(--gc-btn) calc(l - 0.22) c h / 0.55), inset 0 -1px 0 oklch(from var(--gc-btn) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--gc-shadow) l c h / 0.3);
}
.cf-guarantee-certificate .cf-gc-btn:focus-visible{outline:3px solid var(--field-focus, var(--gc-accent)); outline-offset:3px;}
.cf-guarantee-certificate .cf-gc-btn:disabled{
cursor:not-allowed; transform:none;
background:var(--button-2-bg, var(--secondary, #e6e9ef));
color:var(--button-2-ink, var(--secondary-ink, #1a2233));
border-color:oklch(from var(--secondary, #e6e9ef) calc(l - 0.1) c h);
text-shadow:none;
box-shadow:var(--button-2-shadow, var(--shadow-sm));
}
.cf-guarantee-certificate .cf-gc-note{display:flex; align-items:center; justify-content:center; gap:.4rem; margin:.75rem 0 0; font-size:.875rem; font-weight:600; line-height:1.35; color:var(--gc-muted); text-align:center; text-wrap:pretty;}
.cf-guarantee-certificate .cf-gc-note svg{flex:none; width:15px; height:15px;}
.cf-guarantee-certificate .cf-gc-sr{position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0;}
@media (hover:hover) and (pointer:fine){
.cf-guarantee-certificate .cf-gc-deal:hover .cf-gc-tag{transform:rotate(-1deg);}
.cf-guarantee-certificate .cf-gc-thumbs img:hover{transform:translateY(-3px);}
.cf-guarantee-certificate .cf-gc-btn:hover:not(:disabled){
background:linear-gradient(oklch(from var(--gc-btn) calc(l - 0.02) c h), oklch(from var(--gc-btn-2) calc(l - 0.06) c h));
transform:translateY(-1px);
box-shadow:inset 0 1px 0 oklch(from var(--gc-btn) calc(l + 0.1) c h / 0.6), inset 0 -3px 0 oklch(from var(--gc-btn) calc(l - 0.2) c h), 0 2px 3px oklch(from var(--gc-shadow) l c h / 0.32), 0 9px 16px -6px oklch(from var(--gc-shadow) l c h / 0.42);
}
.cf-guarantee-certificate .cf-gc-btn:hover:active:not(:disabled){
background:linear-gradient(oklch(from var(--gc-btn) calc(l - 0.08) c h), oklch(from var(--gc-btn-2) calc(l - 0.08) c h));
transform:translateY(1px);
box-shadow:inset 0 2px 3px oklch(from var(--gc-btn) calc(l - 0.22) c h / 0.55), inset 0 -1px 0 oklch(from var(--gc-btn) calc(l - 0.16) c h), 0 1px 1px oklch(from var(--gc-shadow) l c h / 0.3);
}
}
@container (max-width: 900px){
.cf-guarantee-certificate .cf-gc-frame{--gc-left:160px;}
.cf-guarantee-certificate .cf-gc-action{padding-top:0;}
}
@container (max-width: 640px){
.cf-guarantee-certificate .cf-gc-frame{--gc-band-w:8px; --gc-corner:28px; --gc-tag-w:236px;}
.cf-guarantee-certificate .cf-gc-head{grid-template-columns:minmax(0,1fr); row-gap:1.25rem;}
.cf-guarantee-certificate .cf-gc-seal{justify-self:start; max-width:128px;}
.cf-guarantee-certificate .cf-gc-stop{grid-template-columns:32px minmax(0,1fr); column-gap:12px; row-gap:12px;}
.cf-guarantee-certificate .cf-gc-rail{grid-column:1; grid-row:1 / span 2;}
.cf-guarantee-certificate .cf-gc-content{grid-column:2; grid-row:1; padding-top:2px;}
.cf-guarantee-certificate .cf-gc-stop.is-final .cf-gc-rail{grid-row:1;}
.cf-guarantee-certificate .cf-gc-stop.is-final .cf-gc-content{grid-column:1 / -1; grid-row:2; padding-top:0;}
.cf-guarantee-certificate .cf-gc-tag-area{margin-left:44px; max-width:calc(100% - 44px);}
.cf-guarantee-certificate .cf-gc-tag-body{padding:0 16px 0 50px;}
.cf-guarantee-certificate .cf-gc-action{flex-basis:100%; max-width:none; padding-top:0;}
.cf-guarantee-certificate .cf-gc-string-desk{display:none;}
.cf-guarantee-certificate .cf-gc-string-mob{display:inline;}
.cf-guarantee-certificate .cf-gc-signoff{column-gap:1.25rem;}
.cf-guarantee-certificate .cf-gc-sig{font-size:2.25rem;}
.cf-guarantee-certificate .cf-gc-thumbs img{width:56px; height:56px;}
}
@keyframes cf-gc-stamp{
from{opacity:0; transform:rotate(-16deg) scale(1.25);}
70%{opacity:1; transform:rotate(-4deg) scale(.97);}
to{opacity:1; transform:rotate(-6deg) scale(1);}
}
@keyframes cf-gc-swing{
0%{transform:rotate(16deg);}
35%{transform:rotate(-14deg);}
60%{transform:rotate(2deg);}
80%{transform:rotate(-8deg);}
100%{transform:rotate(-5deg);}
}
@keyframes cf-gc-draw{from{transform:scaleY(0);} to{transform:scaleY(1);}}
@media (prefers-reduced-motion: reduce){
.cf-guarantee-certificate .cf-gc-seal img, .cf-guarantee-certificate .cf-gc-tag, .cf-guarantee-certificate .cf-gc-rail::before{animation:none;}
.cf-guarantee-certificate .cf-gc-tag, .cf-guarantee-certificate .cf-gc-btn, .cf-guarantee-certificate .cf-gc-thumbs img{transition:none;}
.cf-guarantee-certificate .cf-gc-deal:hover .cf-gc-tag{transform:rotate(-5deg);}
.cf-guarantee-certificate .cf-gc-thumbs img:hover,
.cf-guarantee-certificate .cf-gc-btn:hover:not(:disabled),
.cf-guarantee-certificate .cf-gc-btn:hover:active:not(:disabled),
.cf-guarantee-certificate .cf-gc-btn.is-hover,
.cf-guarantee-certificate .cf-gc-btn:active:not(:disabled),
.cf-guarantee-certificate .cf-gc-btn.is-active{transform:none;}
}
`;
pieces/offer/guarantee-certificate/specimen.tsx 36 lines
import __studioImage1f6e3036 from "../assets/04a949d0a0d21c13.webp";
import * as React from "react";
import { GuaranteeCertificate } from "../guarantee-certificate";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default", "hover", "active", "disabled"];
export default function GuaranteeCertificateSpecimen({
state = "default",
}: {
state?: "default" | "hover" | "active" | "disabled";
}) {
const sample = defaults.sample;
return (
<GuaranteeCertificate
sealImage={slot(
"seal-guarantee",
__studioImage1f6e3036
)}
sealAlt={`${sample.guarantee} seal`}
kitName={sample.name}
kitDetail={sample.reason}
items={sample.items.map((item, i) => ({
name: item.name,
image: slot(`item-${i + 1}`, item.image),
imageAlt: item.imageAlt,
}))}
regularPrice={sample.regularPrice}
price={sample.price}
priceNote={sample.note}
actionNote={sample.sublabel}
state={state}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalGuaranteeCertificate |
React.ReactNode |
Default (
<>
Try it for <mark>30 days</mark>, or get your money back.
</>
)
|
lead OptionalGuaranteeCertificate |
React.ReactNode |
Default "Your order comes with this promise, in writing and signed."
|
sealImage OptionalGuaranteeCertificate |
string |
|
sealAlt OptionalGuaranteeCertificate |
string |
Default "30-day money-back guarantee seal"
|
kitName OptionalGuaranteeCertificate |
string |
Default "The Funnel Starter Kit"
|
kitDetail OptionalGuaranteeCertificate |
React.ReactNode |
Default "Get the guide, workbook, and checklist in one download. One payment. Yours to keep."
|
items OptionalGuaranteeCertificate |
GuaranteeCertificateItem[] |
Default []
|
terms OptionalGuaranteeCertificate |
React.ReactNode |
Default (
<>
Take the full 30 days to plan your funnel, write your page copy and check every step before you launch.{" "}
<strong>You’re covered by a 30-day money-back guarantee.</strong>
</>
)
|
signature OptionalGuaranteeCertificate |
string |
Default "Owner"
|
signatureImage OptionalGuaranteeCertificate |
string |
|
signatureCaption OptionalGuaranteeCertificate |
string |
Default "Owner’s signature"
|
date OptionalGuaranteeCertificate |
string |
|
dateCaption OptionalGuaranteeCertificate |
string |
Default "Date"
|
regularPrice OptionalGuaranteeCertificate |
string |
Default "$97"
|
price OptionalGuaranteeCertificate |
string |
Default "$47"
|
priceNote OptionalGuaranteeCertificate |
string |
Default "One payment · Lifetime access"
|
regularPriceText OptionalGuaranteeCertificate |
string |
Default "Regular price"
|
todayPriceText OptionalGuaranteeCertificate |
string |
Default "Today’s price"
|
actionLabel OptionalGuaranteeCertificate |
string |
Default "Try It for 30 Days — {price}"
|
actionNote OptionalGuaranteeCertificate |
string |
Default ""
|
href OptionalGuaranteeCertificate |
string |
|
onAction OptionalGuaranteeCertificate |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalGuaranteeCertificate |
boolean |
Default false
|
state OptionalGuaranteeCertificate |
"default" | "hover" | "active" | "disabled" |
Default "default"
|
className OptionalGuaranteeCertificate |
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.
--button-2-bg--button-2-ink--button-2-shadow- Secondary button.
--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-ink- Form inputs: background, ink, border, radius and focus colour.
--marker- The highlighter colour behind key phrases.
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.
-
04a949d0a0d21c13.webp
image/webp · 315 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB