Guarantee 1
Presents the creator’s guarantee as a certificate beside the decision to buy.
Use it in a prompt
Use kit/guarantee 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/kit/guarantee.tsx. - Import it and pass your copy and images (Props tab):
import { Guarantee } from "@/components/funneldna/kit/guarantee"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/kit/guarantee/component.tsx 159 lines
// pages: sales, order, upsell, downsell, opt-in, webinar-registration, application
// Presents the creator’s guarantee as a certificate beside the decision to buy.
import { useId, type ReactNode } from "react";
export type GuaranteeProps = {
label?: ReactNode;
title?: ReactNode;
/** Terms as paragraphs; mark highlights the promise and strong retains the approved emphasis. */
children?: ReactNode;
/** A real policy link; blank or hash-only targets stay hidden. */
policy?: { label: string; href: string };
/** Text repeated around the certificate’s seal. */
seal?: string;
/** The texture slot’s image URL; defaults to the approved grain. */
textureImage?: string;
className?: string;
};
export function Guarantee({
label = "The guarantee",
title = "30-day money-back guarantee",
children = GUARANTEE_TERMS,
policy,
seal = "Money-back guarantee",
textureImage = guaranteeTexture,
className,
}: GuaranteeProps) {
return (
<aside className={["cf-guarantee group relative isolate mx-auto w-full max-w-[820px] overflow-hidden rounded-[var(--card-radius,var(--radius,4px))] border-[length:var(--border-w,1px)] border-[var(--card-border,oklch(from_var(--ink)_l_c_h_/_0.12))] bg-[color-mix(in_oklch,var(--accent-fill,var(--accent))_6%,var(--card))] p-2.5 text-center text-[var(--ink)] shadow-[var(--card-shadow,inset_0_1px_0_oklch(from_var(--card)_calc(l_+_0.04)_c_h_/_0.85),0_1px_2px_oklch(from_var(--shadow,oklch(0.22_0.03_260))_l_c_h_/_0.12),0_2px_3px_oklch(from_var(--shadow,oklch(0.22_0.03_260))_l_c_h_/_0.45))] [font-family:var(--font-body)] sm:p-3.5", className].filter(Boolean).join(" ")}>
<style>{COPY_CSS}</style>
<div aria-hidden className="pointer-events-none absolute inset-0 -z-10 opacity-[0.08]" style={{ backgroundImage: `url(${JSON.stringify(textureImage)})` }} />
<div className="relative border-[4px] border-double px-5 pb-8 pt-7 sm:px-14 sm:pb-11 sm:pt-10" style={{ borderColor: GOLD_DEEP }}>
<div aria-hidden className="pointer-events-none absolute inset-[6px] border [border-style:var(--frame-style,solid)] border-[oklch(from_var(--accent-fill,var(--accent))_l_c_h_/_0.45)]" />
<CertCorner flip="none" />
<CertCorner flip="scaleX(-1)" />
<CertCorner flip="scaleY(-1)" />
<CertCorner flip="scale(-1)" />
<div className="relative flex flex-col items-center">
<GoldSeal text={seal} />
<p className="mb-3 mt-5 flex max-w-full items-center justify-center gap-3 text-[14px] font-bold uppercase leading-snug tracking-[var(--kicker-tracking,0.2em)] text-[var(--ink)]">
<span aria-hidden className="h-px w-6 shrink-0 bg-current opacity-60 sm:w-10" />
<span className="min-w-0">{label}</span>
<span aria-hidden className="h-px w-6 shrink-0 bg-current opacity-60 sm:w-10" />
</p>
<h2 className="mx-auto my-0 text-[clamp(2rem,5vw,3rem)] leading-[1.08] tracking-[var(--display-tracking,-0.012em)] [text-transform:var(--display-case,none)] [font-weight:var(--display-weight,700)] [text-wrap:balance]" style={{ fontFamily: "var(--font-display)" }}>{title}</h2>
<svg aria-hidden viewBox="0 0 160 14" className="mb-6 mt-5 w-[150px] sm:w-[180px]">
<g stroke={GOLD_DEEP} strokeLinecap="round">
<path d="M4 7h56" strokeWidth="1" />
<path d="M100 7h56" strokeWidth="1" />
</g>
<circle cx="64" cy="7" r="1.6" fill={GOLD} />
<circle cx="96" cy="7" r="1.6" fill={GOLD} />
<path d="M80 1l6 6-6 6-6-6z" fill={GOLD} stroke={GOLD_DEEP} strokeWidth=".8" />
</svg>
<div className="cfg-copy mx-auto flex max-w-[52ch] flex-col gap-[1.125rem] text-[1.0625rem] leading-relaxed [text-wrap:pretty] sm:text-[1.125rem] [&_strong]:font-bold [&_strong]:text-[var(--ink)]">{children}</div>
{policy?.href.trim() && policy.href.trim() !== "#" && (
<div className="mt-7 w-full max-w-[40ch] border-t pt-4 border-[oklch(from_var(--accent-fill,var(--accent))_l_c_h_/_0.4)]">
<a href={policy.href} className="inline-flex items-center justify-center rounded px-3 py-3 text-[16px] font-semibold text-[color:var(--link,var(--accent))] underline decoration-[oklch(from_var(--link,var(--accent))_l_c_h_/_0.45)] decoration-2 underline-offset-[0.18em] transition-colors hover:text-[color:oklch(from_var(--link,var(--accent))_calc(l_-_0.08)_c_h)] hover:decoration-current focus-visible:text-[color:oklch(from_var(--link,var(--accent))_calc(l_-_0.08)_c_h)] focus-visible:decoration-current focus-visible:outline-2 focus-visible:outline-offset-4" style={{ fontFamily: "var(--font-body)" }}>{policy.label}</a>
</div>
)}
</div>
</div>
</aside>
);
}
export default Guarantee;
// Serrated stamp edge, centred at 60,58 in a 120x140 box (room for the ribbon tails).
const SEAL = Array.from({ length: 56 }, (_, i) => { const r = i % 2 ? 46 : 50, a = (i * Math.PI) / 28; return `${(60 + r * Math.cos(a)).toFixed(1)},${(58 + r * Math.sin(a)).toFixed(1)}`; }).join(" ");
export const guaranteeTexture = "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.8' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E";
const GOLD = "var(--accent-fill,var(--accent))";
const GOLD_DEEP = "oklch(from var(--accent-fill,var(--accent)) calc(l - 0.10) c h)";
// private
function GoldSeal({ text }: { text: string }) {
const uid = useId().replace(/[^a-zA-Z0-9_-]/g, "");
const ring = `${text.toUpperCase()} \u2022 ${text.toUpperCase()} \u2022 `;
return (
<svg aria-hidden viewBox="0 0 120 140" className="w-[96px] -rotate-[6deg] motion-safe:transition-transform motion-safe:duration-500 group-hover:-rotate-[12deg] group-hover:scale-[1.04] sm:w-[124px]" style={{ filter: "drop-shadow(0 2px 3px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.28))" }}>
<defs>
<linearGradient id={`${uid}g`} x1="0" y1="0" x2="1" y2="1">
<stop offset="0" stopColor="oklch(from color-mix(in oklch,var(--accent-fill,var(--accent)) 10%,var(--card)) calc(l + 0.02) c h)" />
<stop offset=".28" stopColor="oklch(from color-mix(in oklch,var(--accent-fill,var(--accent)) 10%,var(--card)) calc(l + 0.00) c h)" />
<stop offset=".55" stopColor="oklch(from color-mix(in oklch,var(--accent-fill,var(--accent)) 10%,var(--card)) calc(l - 0.02) c h)" />
<stop offset=".78" stopColor="oklch(from color-mix(in oklch,var(--accent-fill,var(--accent)) 10%,var(--card)) calc(l + 0.01) c h)" />
<stop offset="1" stopColor="oklch(from color-mix(in oklch,var(--accent-fill,var(--accent)) 10%,var(--card)) calc(l - 0.03) c h)" />
</linearGradient>
<radialGradient id={`${uid}d`} cx=".4" cy=".35" r=".75">
<stop offset="0" stopColor="oklch(from color-mix(in oklch,var(--accent-fill,var(--accent)) 10%,var(--card)) calc(l + 0.02) c h)" />
<stop offset=".45" stopColor="oklch(from color-mix(in oklch,var(--accent-fill,var(--accent)) 10%,var(--card)) calc(l + 0.00) c h)" />
<stop offset="1" stopColor="oklch(from color-mix(in oklch,var(--accent-fill,var(--accent)) 10%,var(--card)) calc(l - 0.03) c h)" />
</radialGradient>
<path id={`${uid}p`} d="M60,58 m-34,0 a34,34 0 1,1 68,0 a34,34 0 1,1 -68,0" />
</defs>
<g fill="var(--band)">
<path d="M47 84 L33 134 L43 126 L51 137 L63 90 Z" />
<path d="M73 84 L87 134 L77 126 L69 137 L57 90 Z" />
</g>
<g fill="none" stroke="var(--card)" strokeOpacity=".22" strokeWidth="1">
<path d="M49 89 L38.5 127" />
<path d="M71 89 L81.5 127" />
</g>
<polygon points={SEAL} fill={`url(#${uid}g)`} stroke="var(--ink)" strokeWidth="1" strokeLinejoin="round" />
<circle cx="60" cy="58" r="42" fill="none" stroke="var(--card)" strokeOpacity=".7" strokeWidth="1" />
<circle cx="60" cy="58" r="40.5" fill="none" stroke="var(--ink)" strokeWidth="1.2" />
<text fontFamily="var(--font-body)" fontSize="6.6" fontWeight="700" fill="var(--ink)">
<textPath href={`#${uid}p`} textLength="210" lengthAdjust="spacing">{ring}</textPath>
</text>
<circle cx="60" cy="58" r="27" fill="var(--success-soft)" stroke="var(--ink)" strokeWidth="1.2" />
<circle cx="60" cy="58" r="24" fill="none" stroke="var(--ink)" strokeOpacity=".55" strokeWidth=".8" strokeDasharray="1 2.2" />
<path d="M48.5 59.5 l8.5 8.5 l16-18" fill="none" stroke="var(--card)" strokeOpacity=".75" strokeWidth="5.5" strokeLinecap="round" strokeLinejoin="round" transform="translate(.9 1.1)" />
<path d="M48.5 59.5 l8.5 8.5 l16-18" fill="none" stroke="var(--success)" strokeWidth="5.5" strokeLinecap="round" strokeLinejoin="round" />
<ellipse cx="44" cy="34" rx="20" ry="9" fill="var(--card)" opacity=".2" transform="rotate(-32 44 34)" />
</svg>
);
}
// private
function CertCorner({ flip }: { flip: string }) {
return (
<svg aria-hidden viewBox="0 0 32 32" className="pointer-events-none absolute size-6 sm:size-8" style={{ transform: flip, ...(flip.includes("scaleX") || flip.includes("scale(-1)") ? { right: 10 } : { left: 10 }), ...(flip.includes("scaleY") || flip.includes("scale(-1)") ? { bottom: 10 } : { top: 10 }) }}>
<g fill="none" stroke={GOLD_DEEP} strokeLinecap="round">
<path d="M2 30V9a7 7 0 0 1 7-7h21" strokeWidth="1.6" />
<path d="M8 30V15a7 7 0 0 1 7-7h15" strokeWidth=".8" strokeOpacity=".7" />
</g>
<circle cx="9" cy="9" r="1.8" fill={GOLD} />
</svg>
);
}
const GUARANTEE_TERMS = <>
<p><mark>Here’s my promise to you:</mark> grab the kit, map your offer, draft your page copy and run the launch checklist. Put it to work for a full <strong>30 days</strong>.</p>
<p>If you decide it isn’t right for you, just email <strong>support@example.com</strong> with your order reference and <strong>we’ll refund your purchase to your original payment method.</strong></p>
</>;
// The certificate uses theme tints and surface-tinted shadows.
// Copy styles: the first paragraph is the promise (body face, a touch larger); <mark> gets a hand-laid gold highlighter swipe
// drawn on the span itself, so it follows the words across line breaks.
const COPY_CSS = `
.cf-guarantee .cfg-copy > p { margin: 0; }
.cf-guarantee .cfg-copy > p:first-child { font-family: var(--font-body); font-size: clamp(1.1875rem, 2.4vw, 1.375rem); line-height: 1.5; }
.cf-guarantee .cfg-copy > p + p { padding-top: 1.125rem; position: relative; }
.cf-guarantee .cfg-copy > p + p::before { content: ""; position: absolute; top: 0; left: 50%; width: 2.5rem; height: 1px; transform: translateX(-50%); background: oklch(from var(--accent-fill,var(--accent)) l c h / 0.7); }
.cf-guarantee .cfg-copy mark {
color: inherit; font-weight: 700; padding: 0 .18em; margin: 0 -.06em;
background-color: transparent;
background-image: linear-gradient(color-mix(in oklch,var(--marker,#fae37c) 20%,var(--card)),color-mix(in oklch,var(--marker,#fae37c) 20%,var(--card)));
background-repeat: no-repeat; background-size: 100% .68em; background-position: 0 88%;
border-radius: .35em .15em .4em .2em;
-webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-reduced-motion: no-preference) {
.cf-guarantee .cfg-copy mark { animation: cfg-swipe .9s cubic-bezier(.2,.7,.2,1) .35s both; }
@keyframes cfg-swipe { from { background-size: 0% .68em; } to { background-size: 100% .68em; } }
}
`;
pieces/kit/guarantee/specimen.tsx 16 lines
// Specimen for guarantee.tsx. Fictional Funnel Starter Kit; proof remains unsupplied.
import { Guarantee, guaranteeTexture } from "../guarantee";
import { Section } from "../core";
import defaults from "../../studio-defaults.json";
import { slot } from "../../slots";
export const states = ["default"];
export default function GuaranteeSpecimen({ state = "default" }: { state?: string }) {
return <>
<Section tone="open" ><Guarantee textureImage={slot("texture", guaranteeTexture)} label={defaults.sample.name} title="30-day money-back guarantee">
<p><mark>Here’s my promise to you:</mark> grab the kit, map your offer, draft your page copy and run the launch checklist. Put it to work for a full <strong>30 days</strong>.</p>
<p>If you decide it isn’t right for you, just email <strong>support@example.com</strong> with your order reference and <strong>we’ll refund your purchase to your original payment method.</strong></p>
</Guarantee></Section>
</>;
}
| Name | Type | Details |
|---|---|---|
label OptionalGuarantee |
ReactNode |
Default "The guarantee"
|
title OptionalGuarantee |
ReactNode |
Default "30-day money-back guarantee"
|
children OptionalGuarantee |
ReactNode |
Default GUARANTEE_TERMS
|
policy OptionalGuarantee |
{ label: string; href: string } |
|
seal OptionalGuarantee |
string |
Default "Money-back guarantee"
|
textureImage OptionalGuarantee |
string |
Default guaranteeTexture
|
className OptionalGuarantee |
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-border--card-radius--card-shadow- 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.
texture- A subtle background texture.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
c5c36baf6b897f22.svg image/svg+xml · 236 Bytes
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB