Award Badges 1
Award badges: supplied awards and certifications sit as medallions on one rail that runs straight into the button, so the proof hands the visitor to the action.
Use it in a prompt
Use proof/award-badges 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/proof/award-badges.tsx. - Import it and pass your copy and images (Props tab):
import { AwardBadges } from "@/components/funneldna/proof/award-badges"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/proof/award-badges/component.tsx 257 lines
// layout: path-to-action
// Award badges: supplied awards and certifications sit as medallions on one rail that runs straight into the button, so the proof hands the visitor to the action.
import * as React from "react"
export type AwardBadge = {
/** Award or certification name exactly as awarded; one short line. */
name: string
/** Transparent medallion, seal or rosette artwork for this award. */
image: string
/** Leave empty when the name beside it already says what the medallion is. */
imageAlt?: string
/** Optional issuer and year, one short line. */
detail?: string
/** Optional page where the award can be verified. */
href?: string
}
export type AwardBadgesProps = {
/** Only real, supplied awards. An empty list renders nothing. */
awards?: AwardBadge[]
heading?: React.ReactNode
headingAs?: "h2" | "h3" | "p"
/** Accessible name for the list when no heading is shown. */
listLabel?: string
/** Button label at the end of the rail; pass "" to end the rail at the last medallion. */
actionLabel?: string
href?: string
onAction?: (event: React.MouseEvent<HTMLElement>) => void
/** The quiet line under the button. */
secondaryLabel?: string
secondaryHref?: string
disabled?: boolean
state?: "default" | "hover" | "active" | "disabled"
className?: string
}
export function AwardBadges({
awards = [],
heading = "Recognised for the work behind it",
headingAs = "h3",
listLabel = "Awards and certifications",
actionLabel = "Get started now",
href,
onAction,
secondaryLabel = "or keep reading to see what's inside",
secondaryHref,
disabled = false,
state = "default",
className,
}: AwardBadgesProps) {
const headingId = React.useId()
if (!awards.length) return null
const isDisabled = disabled || state === "disabled"
const forced = state === "hover" || state === "active" ? state : undefined
const Heading = headingAs
const rootClass = [
"cf-award-badges",
actionLabel ? "" : "cf-award-badges--no-action",
awards.length >= 5 ? "cf-award-badges--many" : "",
className ?? "",
]
.filter(Boolean)
.join(" ")
let button: React.ReactNode = null
if (actionLabel) {
if (href && !isDisabled) {
button = (
<a className="cf-award-badges__button" data-state={forced} href={href} onClick={onAction}>
{actionLabel}
</a>
)
} else if (href) {
button = (
<a className="cf-award-badges__button" role="link" aria-disabled="true">
{actionLabel}
</a>
)
} else {
button = (
<button
type="button"
className="cf-award-badges__button"
data-state={forced}
disabled={isDisabled}
onClick={onAction}
>
{actionLabel}
</button>
)
}
}
return (
<div className={rootClass}>
<style>{CSS}</style>
<div className="cf-award-badges__inner">
{heading ? (
<Heading id={headingId} className="cf-award-badges__title">
{heading}
</Heading>
) : null}
<div className="cf-award-badges__path">
<ol
className="cf-award-badges__list"
aria-labelledby={heading ? headingId : undefined}
aria-label={heading ? undefined : listLabel}
>
{awards.map((award, i) => {
const body = (
<>
<span className="cf-award-badges__medal">
<img
src={award.image}
alt={award.imageAlt ?? ""}
width={160}
height={160}
loading="lazy"
decoding="async"
/>
</span>
<span className="cf-award-badges__text">
<span className="cf-award-badges__name">{award.name}</span>
{award.detail ? <span className="cf-award-badges__detail">{award.detail}</span> : null}
</span>
</>
)
return (
<li
key={`${award.name}-${i}`}
className="cf-award-badges__stop"
style={{ "--i": i } as React.CSSProperties}
>
{award.href ? (
<a className="cf-award-badges__body cf-award-badges__link" href={award.href}>
{body}
</a>
) : (
<div className="cf-award-badges__body">{body}</div>
)}
</li>
)
})}
</ol>
{actionLabel ? (
<div className="cf-award-badges__action" style={{ "--i": awards.length } as React.CSSProperties}>
<span className="cf-award-badges__lead" aria-hidden="true" />
<div className="cf-award-badges__cta">
{button}
{secondaryLabel ? (
secondaryHref ? (
<a className="cf-award-badges__more" href={secondaryHref}>
{secondaryLabel}
</a>
) : (
<p className="cf-award-badges__more">{secondaryLabel}</p>
)
) : null}
</div>
</div>
) : null}
</div>
</div>
</div>
)
}
export default AwardBadges
// Vertical rail rules, shared by the narrow layout and by long award rows.
function vertical(p: string) {
return `
${p} .cf-award-badges__inner{--ab-medal:76px}
${p} .cf-award-badges__title{text-align:left;font-size:1.5rem;margin-bottom:1.5rem}
${p} .cf-award-badges__path{flex-direction:column;align-items:stretch}
${p} .cf-award-badges__list{flex-direction:column}
${p} .cf-award-badges__stop{flex:none;min-width:0;padding-bottom:1.25rem}
${p}.cf-award-badges--no-action .cf-award-badges__stop:last-child{padding-bottom:0}
${p} .cf-award-badges__stop::before{top:0;bottom:0;left:calc(var(--ab-medal) / 2 - var(--ab-rail) / 2);right:auto;width:var(--ab-rail);height:auto;transform-origin:center top;animation-name:cf-ab-draw-y}
${p} .cf-award-badges__stop:first-child::before{top:calc(var(--ab-medal) / 2);left:calc(var(--ab-medal) / 2 - var(--ab-rail) / 2)}
${p}.cf-award-badges--no-action .cf-award-badges__stop:last-child::before{right:auto;bottom:calc(100% - var(--ab-medal) / 2)}
${p} .cf-award-badges__body{flex-direction:row;align-items:flex-start;gap:1rem;padding:0;text-align:left}
${p} .cf-award-badges__text{min-height:var(--ab-medal);justify-content:center}
${p} .cf-award-badges__action{flex-direction:column;align-items:stretch}
${p} .cf-award-badges__lead{width:var(--ab-rail);height:1.75rem;margin:0 0 0 calc(var(--ab-medal) / 2 - var(--ab-rail) / 2);background:linear-gradient(to bottom in oklab,var(--ab-rail-color),var(--cta));transform-origin:center top;animation-name:cf-ab-draw-y}
${p} .cf-award-badges__cta{margin-top:0;align-items:stretch}
${p} .cf-award-badges__button{width:100%;white-space:normal;text-wrap:balance;padding:.875rem 1.25rem}
`
}
const CSS = `
.cf-award-badges{container-type:inline-size;width:100%;color:var(--ink);font-family:var(--font-body)}
.cf-award-badges *,.cf-award-badges *::before,.cf-award-badges *::after{box-sizing:border-box}
.cf-award-badges__inner{
--ab-medal:clamp(88px,12cqi,136px);
--ab-rail:3px;
--ab-rail-color:color-mix(in oklch,var(--ink) 16%,transparent);
--ab-red:color-mix(in oklch,var(--cta) 55%,var(--ink));
--ab-shadow:var(--shadow,oklch(0.22 0.03 260));
--ab-shadow-sm:var(--shadow-sm,0 1px 1px oklch(0.22 0.03 260 / .18),0 1px 3px oklch(0.22 0.03 260 / .14));
--ab-shadow-md:var(--button-shadow,var(--shadow-md,0 1px 2px oklch(0.22 0.03 260 / .22),0 4px 10px -2px oklch(0.22 0.03 260 / .2)));
--ab-shadow-lg:var(--shadow-lg,0 2px 4px oklch(0.22 0.03 260 / .22),0 12px 24px -8px oklch(0.22 0.03 260 / .32));
}
.cf-award-badges__title{margin:0 0 clamp(1.75rem,3.5cqi,2.5rem);color:var(--ab-red);font-family:var(--font-display);font-weight:var(--display-weight,800);text-transform:var(--display-case,none);letter-spacing:var(--display-tracking,-0.015em);font-size:clamp(1.5rem,3.2cqi,2.125rem);line-height:1.12;text-align:center;text-wrap:balance}
.cf-award-badges__path{display:flex;align-items:flex-start;justify-content:center}
.cf-award-badges__list{display:flex;flex:0 1 auto;min-width:0;margin:0;padding:0;list-style:none}
.cf-award-badges__stop{position:relative;flex:0 1 13.5rem;min-width:calc(var(--ab-medal) + 1.5rem)}
.cf-award-badges__stop::before{content:'';position:absolute;z-index:0;top:calc(var(--ab-medal) / 2 - var(--ab-rail) / 2);left:0;right:0;height:var(--ab-rail);background:var(--ab-rail-color);transform-origin:left center;animation:cf-ab-draw-x .42s calc(var(--i,0) * .1s) both cubic-bezier(.3,.7,.2,1)}
.cf-award-badges__stop:first-child::before{left:50%}
.cf-award-badges--no-action .cf-award-badges__stop:last-child::before{right:50%}
.cf-award-badges__body{position:relative;z-index:1;display:flex;flex-direction:column;align-items:center;gap:1rem;padding:0 .75rem;text-align:center;color:inherit;text-decoration:none;border-radius:var(--radius,12px)}
.cf-award-badges__medal{display:grid;place-items:center;flex:none;width:var(--ab-medal);height:var(--ab-medal);animation:cf-ab-pop .48s calc(var(--i,0) * .1s + .04s) both cubic-bezier(.2,.8,.2,1)}
.cf-award-badges__medal img{display:block;width:100%;height:100%;object-fit:contain;filter:drop-shadow(0 2px 2px oklch(from var(--ab-shadow) l c h / .3)) drop-shadow(0 6px 8px oklch(from var(--ab-shadow) l c h / .18));transition:transform .22s cubic-bezier(.2,.8,.2,1),filter .22s ease}
.cf-award-badges__text{display:flex;flex-direction:column;gap:.25rem;min-width:0}
.cf-award-badges__name{font-family:var(--font-display);font-weight:var(--display-weight,800);font-size:1.0625rem;line-height:1.25;color:var(--ink);text-wrap:balance}
.cf-award-badges__detail{font-size:.875rem;line-height:1.4;color:var(--muted);text-wrap:pretty}
.cf-award-badges__link{cursor:pointer}
.cf-award-badges__link:hover .cf-award-badges__medal img,.cf-award-badges__link:focus-visible .cf-award-badges__medal img{transform:translateY(-4px) rotate(-3deg);filter:drop-shadow(0 3px 2px oklch(from var(--ab-shadow) l c h / .32)) drop-shadow(0 10px 10px oklch(from var(--ab-shadow) l c h / .2))}
.cf-award-badges__link:active .cf-award-badges__medal img{transform:translateY(-1px) rotate(-1deg)}
.cf-award-badges__link:hover .cf-award-badges__name{text-decoration:underline;text-decoration-thickness:2px;text-underline-offset:.2em;text-decoration-color:oklch(from var(--ink) l c h / .4)}
.cf-award-badges__link:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:4px}
.cf-award-badges__action{display:flex;align-items:flex-start;flex:0 0 auto}
.cf-award-badges__lead{flex:none;width:clamp(2rem,5cqi,4.5rem);height:var(--ab-rail);margin-top:calc(var(--ab-medal) / 2 - var(--ab-rail) / 2);background:linear-gradient(to right in oklab,var(--ab-rail-color),var(--cta));transform-origin:left center;animation:cf-ab-draw-x .42s calc(var(--i,0) * .1s) both cubic-bezier(.3,.7,.2,1)}
.cf-award-badges__cta{display:flex;flex-direction:column;align-items:center;gap:.75rem;margin-top:calc(var(--ab-medal) / 2 - 30px)}
.cf-award-badges__button{
--ab-bg:var(--button-bg,var(--cta,oklch(0.576 0.209 29.5)));
--ab-bg-2:var(--button-bg-2,var(--cta-2,oklch(0.506 0.206 29.5)));
appearance:none;border:0;margin:0;cursor:pointer;text-decoration:none;
display:inline-flex;align-items:center;justify-content:center;text-align:center;
min-height:60px;padding:0 1.75rem;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:1.125rem;line-height:1.15;letter-spacing:-0.005em;white-space:nowrap;
color:var(--button-ink,var(--cta-ink));text-shadow:var(--button-text-shadow,none);
background:linear-gradient(oklch(from var(--ab-bg) calc(l + 0.05) c h),var(--ab-bg-2));
box-shadow:inset 0 1px 0 oklch(from var(--ab-bg) calc(l + 0.14) c h / .7),inset 0 -3px 0 oklch(from var(--ab-bg) calc(l - 0.16) c h),var(--ab-shadow-md);
transition:transform .16s ease,box-shadow .16s ease,background .16s ease;
}
.cf-award-badges__button:not(:disabled):not([aria-disabled=true]):hover,.cf-award-badges__button[data-state=hover]{background:linear-gradient(oklch(from var(--ab-bg) calc(l + 0.01) c h),oklch(from var(--ab-bg-2) calc(l - 0.05) c h));transform:translateY(-2px);box-shadow:inset 0 1px 0 oklch(from var(--ab-bg) calc(l + 0.12) c h / .7),inset 0 -3px 0 oklch(from var(--ab-bg) calc(l - 0.2) c h),var(--ab-shadow-lg)}
.cf-award-badges__button:not(:disabled):not([aria-disabled=true]):active,.cf-award-badges__button[data-state=active]{background:linear-gradient(oklch(from var(--ab-bg) calc(l - 0.06) c h),oklch(from var(--ab-bg-2) calc(l - 0.08) c h));transform:translateY(1px);box-shadow:inset 0 2px 3px oklch(from var(--ab-bg) calc(l - 0.24) c h / .5),inset 0 -1px 0 oklch(from var(--ab-bg) calc(l - 0.16) c h),var(--ab-shadow-sm)}
.cf-award-badges__button:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px}
.cf-award-badges__button:disabled,.cf-award-badges__button[aria-disabled=true]{cursor:not-allowed;transform:none;text-shadow:none;background:var(--button-2-bg,var(--secondary));color:color-mix(in oklch,var(--button-2-ink,var(--secondary-ink)) 72%,var(--button-2-bg,var(--secondary)));box-shadow:var(--button-2-shadow, var(--shadow-sm))}
.cf-award-badges__more{margin:0;font-size:.9375rem;line-height:1.4;color:var(--muted);text-align:center;text-wrap:pretty}
a.cf-award-badges__more{text-decoration:underline;text-decoration-color:oklch(from var(--muted) l c h / .45);text-underline-offset:.18em}
a.cf-award-badges__more:hover{color:var(--ink);text-decoration-color:currentColor}
a.cf-award-badges__more:focus-visible{outline:3px solid var(--field-focus,var(--accent));outline-offset:3px;border-radius:4px}
@keyframes cf-ab-draw-x{from{transform:scaleX(0)}to{transform:scaleX(1)}}
@keyframes cf-ab-draw-y{from{transform:scaleY(0)}to{transform:scaleY(1)}}
@keyframes cf-ab-pop{from{opacity:.82;transform:translateY(6px) scale(.94)}to{opacity:1;transform:none}}
@container (max-width: 760px){${vertical(".cf-award-badges")}}
@container (max-width: 1000px){${vertical(".cf-award-badges--many")}}
@media (prefers-reduced-motion: reduce){
/* !important: the vertical rail rules set animation-name with higher specificity. */
.cf-award-badges *,.cf-award-badges *::before,.cf-award-badges *::after{animation:none !important;transition:none !important}
.cf-award-badges .cf-award-badges__link .cf-award-badges__medal img,.cf-award-badges .cf-award-badges__button{transform:none !important}
}
`
pieces/proof/award-badges/specimen.tsx 46 lines
import __studioImagef141c092 from "../assets/7ac8849c0c0c6bfa.webp";
import __studioImage69d6d3b0 from "../assets/a3b58417886ffb5a.webp";
import __studioImage1a62dbdd from "../assets/121b2535a736814f.webp";
import { AwardBadges } from "../award-badges"
import defaults from "../../studio-defaults.json"
const sample = defaults.sample
export const states = ["default", "hover", "active", "disabled"]
export default function AwardBadgesSpecimen({
state = "default",
}: {
state?: "default" | "hover" | "active" | "disabled"
}) {
const awards = [
{
name: "Course of the Year 2026",
detail: "Funnel Builders Guild",
image: __studioImagef141c092,
imageAlt: "",
},
{
name: "Certified Funnel Curriculum",
detail: "Online Course Standards Board",
image: __studioImage69d6d3b0,
imageAlt: "",
},
{
name: "Readers' Pick: Best Starter Kit",
detail: "Small Business Toolkit Awards",
image: __studioImage1a62dbdd,
imageAlt: "",
},
]
return (
<AwardBadges
state={state}
heading="Recognised for making funnels simple"
awards={awards}
actionLabel={`Get ${sample.name}`}
secondaryLabel="or keep reading to see what's inside"
/>
)
}
| Name | Type | Details |
|---|---|---|
awards OptionalAwardBadges |
AwardBadge[] |
Default []
|
heading OptionalAwardBadges |
React.ReactNode |
Default "Recognised for the work behind it"
|
headingAs OptionalAwardBadges |
"h2" | "h3" | "p" |
Default "h3"
|
listLabel OptionalAwardBadges |
string |
Default "Awards and certifications"
|
actionLabel OptionalAwardBadges |
string |
Default "Get started now"
|
href OptionalAwardBadges |
string |
|
onAction OptionalAwardBadges |
(event: React.MouseEvent<HTMLElement>) => void |
|
secondaryLabel OptionalAwardBadges |
string |
Default "or keep reading to see what's inside"
|
secondaryHref OptionalAwardBadges |
string |
|
disabled OptionalAwardBadges |
boolean |
Default false
|
state OptionalAwardBadges |
"default" | "hover" | "active" | "disabled" |
Default "default"
|
className OptionalAwardBadges |
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.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- Form inputs: background, ink, border, radius and focus colour.
Image slots
Filled from the brand’s images; the specimen ships its own defaults.
This piece reads no image slots.
-
121b2535a736814f.webp
image/webp · 401 KB
-
7ac8849c0c0c6bfa.webp
image/webp · 389 KB
-
a3b58417886ffb5a.webp
image/webp · 191 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB