Value Stack 2
Makes a course or resource bundle easy to scan with a thumbnail beside each deliverable, then the price and order button.
Use it in a prompt
Use offer/value-stack-2 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/value-stack-2.tsx. - Import it and pass your copy and images (Props tab):
import { ValueStack2 } from "@/components/funneldna/offer/value-stack-2"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/offer/value-stack-2/component.tsx 256 lines
// Lists everything the buyer gets, with the supplied values, above the price and the buy button.
import * as React from 'react'
import { Lock, ShieldCheck, ShoppingCart } from 'lucide-react'
export type ValueStack2Props = {
/** Default heading parts keep the existing strong/emphasis markup; named placeholders are documented below. */
copy?: Partial<ValueStack2Copy>
state?: ValueStack2State
/** Offer name, used in the default head-band headline. */
productName?: string
/** Replace the head-band headline entirely. */
title?: React.ReactNode
items: ValueStack2Item[]
/** Word after each value, as in ($49 Value). */
valueSuffix?: string
totalLabel?: string
totalValue?: string
todayLabel?: string
price: string
reasonWhy?: string
ctaLabel?: string
ctaSublabel?: string
href?: string
onAction?: (event: React.MouseEvent<HTMLElement>) => void
disabled?: boolean
/** Deprecated: ignored. The builder wires what happens after the action. */
status?: 'idle' | 'success'
/** Deprecated: ignored. The builder wires what happens after the action. */
statusMessage?: string
reassurance?: string[]
/** Studio preview only: force the hover or press look. */
previewState?: 'hover' | 'active'
className?: string
id?: string
}
export function ValueStack2({
copy,
state,
productName,
title,
items,
valueSuffix = 'Value',
totalLabel = 'Total Value:',
totalValue,
todayLabel = 'Get it today for',
price,
reasonWhy,
ctaLabel = 'Yes! Give Me Access',
ctaSublabel,
href,
onAction,
disabled = false,
reassurance = [],
previewState,
className,
id,
}: ValueStack2Props) {
const text = { ...DEFAULT_COPY, ...copy }
const isDisabled = disabled || state === "disabled"
const forced = state === undefined ? previewState : state === "hover" || state === "active" ? state : undefined
const uid = React.useId()
const headingId = 'cfvs2-title-' + uid
const heading =
title ??
(productName ? (
<>
{text.productLead}<strong>{text.everything}</strong>{text.productBridge}<em>{text.productName.split("{name}").join(productName)}</em>{text.productTail}
</>
) : (
<>
{text.defaultLead}<strong>{text.everything}</strong>{text.defaultTail}
</>
))
const ctaInner = (
<>
<ShoppingCart className='cfvs2-cta-icon' size={22} strokeWidth={2.4} aria-hidden='true' />
<span className='cfvs2-cta-label'>{ctaLabel}</span>
<span className='cfvs2-cta-spacer' aria-hidden='true' />
</>
)
const cta =
href && !isDisabled ? (
<a className='cfvs2-cta' href={href} data-preview={forced} onClick={onAction}>
{ctaInner}
</a>
) : (
<button type='button' className='cfvs2-cta' data-preview={forced} disabled={isDisabled} onClick={onAction}>
{ctaInner}
</button>
)
return (
<section id={id} className={['cf-value-stack-2', className].filter(Boolean).join(' ')} aria-labelledby={headingId}>
<header className='cfvs2-head'>
<h2 id={headingId} className='cfvs2-title'>
{heading}
</h2>
</header>
<ul className='cfvs2-list' role='list'>
{items.map((item, i) => (
<li key={item.name + i} className='cfvs2-row' style={{ '--i': i } as React.CSSProperties}>
<Tick />
<div className={item.value ? 'cfvs2-line' : 'cfvs2-line cfvs2-line--plain'}>
<span className='cfvs2-name'>
{item.name}
{item.bonus ? <span className='cfvs2-bonus'>{text.bonus}</span> : null}
</span>
{item.value ? (
<span className='cfvs2-value'>
{text.value.split("{value}").join(item.value).split("{suffix}").join(valueSuffix)}
</span>
) : null}
</div>
{item.detail ? <p className='cfvs2-detail'>{item.detail}</p> : null}
</li>
))}
</ul>
<div className='cfvs2-offer'>
{totalValue ? (
<p className='cfvs2-total'>
{totalLabel} <s>{totalValue}</s>
</p>
) : null}
<p className='cfvs2-today'>{todayLabel}</p>
<p className='cfvs2-price'>
<span>{price}</span>
</p>
{reasonWhy ? <p className='cfvs2-why'>{reasonWhy}</p> : null}
<div className='cfvs2-action'>
<div className='cfvs2-btnwrap'>{cta}</div>
{ctaSublabel ? (
<p className='cfvs2-sub'>
<Lock size={15} strokeWidth={2.4} aria-hidden='true' />
<span>{ctaSublabel}</span>
</p>
) : null}
</div>
{reassurance.length ? (
<ul className='cfvs2-trust' role='list'>
{reassurance.map((line) => (
<li key={line}>
<ShieldCheck size={17} strokeWidth={2.3} aria-hidden='true' />
<span>{line}</span>
</li>
))}
</ul>
) : null}
</div>
<style>{CSS}</style>
</section>
)
}
export default ValueStack2
export type ValueStack2Item = {
name: string
detail?: string
value?: string
bonus?: boolean
}
function Tick() {
return (
<svg className='cfvs2-tick' viewBox='0 0 28 28' aria-hidden='true' focusable='false'>
<circle cx='14' cy='14' r='13' className='cfvs2-tick-disc' />
<ellipse cx='14' cy='8.5' rx='8.5' ry='4.2' className='cfvs2-tick-shine' />
<path d='M8.2 14.6l4.1 4.1 8-8.6' pathLength={1} className='cfvs2-tick-path' />
</svg>
)
}
const CSS = `
.cf-value-stack-2{container:cfvs2/inline-size;position:relative;box-sizing:border-box;width:100%;max-width:46rem;margin-inline:auto;overflow:hidden;color:var(--ink,#18181b);border:2px solid var(--band,#27272a);font-family:var(--font-body,system-ui,sans-serif);-webkit-font-smoothing:antialiased;background:var(--card);border-color:var(--card-border,oklch(from var(--ink) l c h / 0.12));border-radius:var(--card-radius,var(--radius));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-value-stack-2 *,.cf-value-stack-2 *::before,.cf-value-stack-2 *::after{box-sizing:border-box}
:where(.cf-value-stack-2) .cfvs2-head{position:relative;isolation:isolate;padding:clamp(1.5rem,4.5cqi,2.25rem) clamp(1.15rem,5.5cqi,3rem);background:var(--band,#27272a);color:var(--band-ink,#fff);text-align:center}
:where(.cf-value-stack-2) .cfvs2-head::before{content:'';position:absolute;inset:0;z-index:-1;pointer-events:none;background:none;}
:where(.cf-value-stack-2) .cfvs2-head::after{content:'';position:absolute;left:50%;bottom:-.75rem;z-index:-2;width:1.5rem;height:1.5rem;background:var(--band,#27272a);border-radius:0 0 .25rem 0;transform:translateX(-50%) rotate(45deg)}
:where(.cf-value-stack-2) .cfvs2-title{margin:0 auto;font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.5rem,4.6cqi,2.3rem);line-height:1.14;text-wrap:balance;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,-.015em);text-transform:var(--display-case,none);}
:where(.cf-value-stack-2) .cfvs2-title strong{font-weight:inherit;padding:0 .06em;-webkit-box-decoration-break:clone;box-decoration-break:clone;background-image:linear-gradient(transparent 62%,oklch(from var(--marker,#fae37c) l c h / 0.10) 62%,oklch(from var(--marker,#fae37c) l c h / 0.10) 92%,transparent 92%);}
:where(.cf-value-stack-2) .cfvs2-title em{font-style:italic}
:where(.cf-value-stack-2) .cfvs2-list{display:grid;gap:clamp(.95rem,2.4cqi,1.2rem);margin:0;padding:clamp(2.1rem,5.5cqi,2.8rem) clamp(1.15rem,5.5cqi,3rem) clamp(1.6rem,4cqi,2.2rem);list-style:none}
:where(.cf-value-stack-2) .cfvs2-row{display:grid;grid-template-columns:auto minmax(0,1fr);column-gap:.8rem;row-gap:.25rem;align-items:start}
:where(.cf-value-stack-2) .cfvs2-tick{grid-column:1;grid-row:1;display:block;width:1.5rem;height:1.5rem;margin-top:.1rem}
:where(.cf-value-stack-2) .cfvs2-tick-disc{fill:var(--success-soft)}
:where(.cf-value-stack-2) .cfvs2-tick-shine{;fill:oklch(from var(--cta-ink) l c h / 0.16);}
:where(.cf-value-stack-2) .cfvs2-tick-path{fill:none;stroke:var(--success);stroke-width:3;stroke-linecap:round;stroke-linejoin:round}
:where(.cf-value-stack-2) .cfvs2-line{grid-column:2;display:flex;align-items:baseline;gap:.65rem;min-width:0}
:where(.cf-value-stack-2) .cfvs2-line::after{content:'';order:1;flex:1 1 1.25rem;min-width:1.25rem;border-bottom:2px dotted oklch(from var(--ink,#18181b) l c h / 0.3);transform:translateY(-.3em)}
:where(.cf-value-stack-2) .cfvs2-line--plain::after{display:none}
:where(.cf-value-stack-2) .cfvs2-name{min-width:0;font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.08rem,2.8cqi,1.25rem);font-weight:700;line-height:1.3;text-wrap:pretty}
:where(.cf-value-stack-2) .cfvs2-value{order:2;flex:none;color:var(--accent,#b42318);font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.02rem,2.6cqi,1.15rem);font-weight:800;line-height:1.3;font-variant-numeric:tabular-nums;white-space:nowrap}
:where(.cf-value-stack-2) .cfvs2-bonus{display:inline-block;margin-left:.55rem;padding:.22rem .65rem;border-radius:999px;font-family:var(--font-body,system-ui,sans-serif);font-size:.75rem;font-weight:800;line-height:1.2;letter-spacing:.08em;text-transform:uppercase;vertical-align:.12em;background:var(--success-soft);color:var(--success);}
:where(.cf-value-stack-2) .cfvs2-detail{grid-column:2;max-width:46ch;margin:0;color:var(--muted,#52525b);font-size:1rem;line-height:1.5;text-wrap:pretty}
:where(.cf-value-stack-2) .cfvs2-offer{padding:clamp(1.75rem,4.5cqi,2.5rem) clamp(1.15rem,5.5cqi,3rem) clamp(1.75rem,5cqi,2.75rem);text-align:center;border-top:2px solid oklch(from var(--ink,#18181b) l c h / 0.12);background:var(--card);border-top-color:transparent;}
:where(.cf-value-stack-2) .cfvs2-total s{color:var(--danger);text-decoration-color:var(--danger)}
:where(.cf-value-stack-2) .cfvs2-total{margin:0;color:var(--ink);font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.6rem,5.2cqi,2.5rem);font-weight:800;line-height:1.1;letter-spacing:-.01em;font-variant-numeric:tabular-nums}
:where(.cf-value-stack-2) .cfvs2-total s{text-decoration-thickness:.09em;text-decoration-color:var(--ink,#18181b)}
:where(.cf-value-stack-2) .cfvs2-today{margin:.85rem 0 0;color:var(--ink,#18181b);font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(1.25rem,3.8cqi,1.75rem);line-height:1.2;text-wrap:balance;font-weight:var(--display-weight,800);letter-spacing:var(--display-tracking,normal);text-transform:var(--display-case,none);}
:where(.cf-value-stack-2) .cfvs2-price{margin:.3rem 0 0;font-family:var(--font-display,system-ui,sans-serif);font-size:clamp(4.5rem,19cqi,8rem);font-weight:900;line-height:.95;letter-spacing:-.045em;font-variant-numeric:tabular-nums;color:var(--ink);}
:where(.cf-value-stack-2) .cfvs2-price span{display:inline-block;padding-inline:.08em;background-image:linear-gradient(transparent 68%,color-mix(in oklch,var(--marker,#fae37c) 25%,var(--card)) 68%,color-mix(in oklch,var(--marker,#fae37c) 25%,var(--card)) 90%,transparent 90%);}
:where(.cf-value-stack-2) .cfvs2-why{max-width:46ch;margin:1rem auto 0;color:var(--ink,#18181b);font-size:clamp(1rem,2.4cqi,1.1rem);font-weight:600;line-height:1.5;text-wrap:balance}
:where(.cf-value-stack-2) .cfvs2-action{margin-top:clamp(1.4rem,4cqi,1.9rem)}
:where(.cf-value-stack-2) .cfvs2-btnwrap{display:block;width:min(100%,30rem);margin-inline:auto}
:where(.cf-value-stack-2) .cfvs2-cta{position:relative;isolation:isolate;overflow:hidden;display:inline-flex;align-items:center;justify-content:center;gap:.7rem;width:100%;min-height:4.25rem;margin:0;padding:.9rem 1.25rem;border:0;text-align:center;text-decoration:none;text-wrap:balance;cursor:pointer;transition:transform .16s cubic-bezier(.2,.8,.2,1),box-shadow .16s ease,filter .16s ease;-webkit-tap-highlight-color:transparent;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));border-color:var(--button-bg-2,var(--cta-2));border-radius:var(--button-radius,var(--radius));font:var(--button-weight,800) clamp(1.02rem,3cqi,1.3rem)/1.2 var(--button-font,var(--font-display));text-transform:var(--button-case,none);text-shadow:var(--button-text-shadow, 0 1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.2) c h / 0.75));box-shadow:var(--button-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)), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));}
:where(.cf-value-stack-2) .cfvs2-cta::before{content:'';position:absolute;top:0;bottom:0;left:-60%;z-index:-1;width:45%;transform:skewX(-18deg);pointer-events:none;background:linear-gradient(100deg,transparent,oklch(from var(--button-bg,var(--cta)) calc(l - 0.06) c h / 0.14),transparent);}
:where(.cf-value-stack-2) .cfvs2-cta-spacer{flex:none;width:20px}
:where(.cf-value-stack-2) .cfvs2-cta svg{flex:none}
:where(.cf-value-stack-2) .cfvs2-cta-label{min-width:0}
:where(.cf-value-stack-2) .cfvs2-cta[data-preview=hover]{transform:translateY(-2px);filter:none;box-shadow:var(--button-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)), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));}
@media (hover:hover){:where(.cf-value-stack-2) .cfvs2-cta:not(:disabled):hover{transform:translateY(-2px);filter:none;box-shadow:var(--button-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)), inset 0 -3px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));}}
:where(.cf-value-stack-2) .cfvs2-cta:not(:disabled):active,:where(.cf-value-stack-2) .cfvs2-cta[data-preview=active]{transform:translateY(2px);filter:none;box-shadow:var(--button-shadow, 0 1px 1px oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h / 0.2), inset 0 -1px 0 oklch(from var(--button-bg, var(--cta)) calc(l - 0.16) c h));}
:where(.cf-value-stack-2) .cfvs2-cta:focus-visible{outline:3px solid var(--ink,#18181b);outline-offset:4px}
:where(.cf-value-stack-2) .cfvs2-cta:disabled{cursor:not-allowed;transform:none;background:var(--button-2-bg,var(--card));color:var(--button-2-ink,var(--ink));border-color:var(--button-2-border,oklch(from var(--ink) l c h / 0.22));border-radius:var(--button-radius,var(--radius));text-shadow:none;box-shadow:var(--button-shadow, none);opacity:1;filter:none;}
:where(.cf-value-stack-2) .cfvs2-sub{display:flex;align-items:center;justify-content:center;gap:.4rem;margin:.85rem 0 0;color:var(--muted,#52525b);font-size:.9375rem;font-weight:600;line-height:1.4}
:where(.cf-value-stack-2) .cfvs2-sub svg{flex:none}
:where(.cf-value-stack-2) .cfvs2-trust{display:flex;flex-wrap:wrap;justify-content:center;gap:.5rem 1.25rem;margin:1.25rem 0 0;padding:0;list-style:none;color:var(--ink,#18181b);font-size:.9375rem;font-weight:600;line-height:1.4}
:where(.cf-value-stack-2) .cfvs2-trust li{display:inline-flex;align-items:center;gap:.4rem}
:where(.cf-value-stack-2) .cfvs2-trust svg{flex:none;color:var(--success)}
@container cfvs2 (min-width:32em){:where(.cf-value-stack-2) .cfvs2-cta{text-transform:var(--button-case,uppercase);letter-spacing:.02em}}
@container cfvs2 (max-width:32em){:where(.cf-value-stack-2) .cfvs2-line{flex-direction:column;align-items:flex-start;gap:.15rem}:where(.cf-value-stack-2) .cfvs2-line::after{display:none}}
@container cfvs2 (max-width:26em){:where(.cf-value-stack-2) .cfvs2-cta-icon{display:none}:where(.cf-value-stack-2) .cfvs2-cta{gap:.55rem;padding-inline:.9rem}}
@media (prefers-reduced-motion:no-preference){
:where(.cf-value-stack-2) .cfvs2-row{animation:cfvs2-rise .5s cubic-bezier(.2,.8,.2,1) both;animation-delay:calc(var(--i,0) * 70ms + 80ms)}
:where(.cf-value-stack-2) .cfvs2-tick-path{stroke-dasharray:1;stroke-dashoffset:1;animation:cfvs2-draw .45s ease-out forwards;animation-delay:calc(var(--i,0) * 70ms + 260ms)}
:where(.cf-value-stack-2) .cfvs2-cta[data-preview=hover]::before{animation:cfvs2-sheen .8s ease-out}
}
@media (prefers-reduced-motion:no-preference) and (hover:hover){:where(.cf-value-stack-2) .cfvs2-cta:not(:disabled):hover::before{animation:cfvs2-sheen .8s ease-out}}
@media (prefers-reduced-motion:reduce){:where(.cf-value-stack-2) .cfvs2-cta{transition:none}:where(.cf-value-stack-2) .cfvs2-cta[data-preview=hover],:where(.cf-value-stack-2) .cfvs2-cta[data-preview=active],:where(.cf-value-stack-2) .cfvs2-cta:not(:disabled):hover,:where(.cf-value-stack-2) .cfvs2-cta:not(:disabled):active{transform:none}}
@keyframes cfvs2-rise{from{transform:translateY(.6rem)}to{transform:none}}
@keyframes cfvs2-draw{to{stroke-dashoffset:0}}
@keyframes cfvs2-sheen{from{left:-60%}to{left:120%}}
`
export type ValueStack2State = 'default' | 'hover' | 'active' | 'disabled' | 'success'
export type ValueStack2Copy = {
productLead: string; everything: string; productBridge: string
/** {name} is the product name inside the existing emphasis. */
productName: string
productTail: string; defaultLead: string; defaultTail: string; bonus: string
/** {value} and {suffix} preserve the value annotation. */
value: string
}
const DEFAULT_COPY: ValueStack2Copy = { productLead: 'Let Me Show You ', everything: 'EVERYTHING', productBridge: ' You Get When You Order ', productName: '‘{name}’', productTail: ' Today!', defaultLead: 'Here’s ', defaultTail: ' You Get When You Order Today!', bonus: 'Bonus', value: '({value} {suffix})' }
pieces/offer/value-stack-2/specimen.tsx 25 lines
// One neutral, local-only example. Clicking never sends data or charges money.
import { ValueStack2, type ValueStack2State } from '../value-stack-2'
import defaults from '../../studio-defaults.json'
export const states = ['default', 'hover', 'active', 'disabled']
export default function Specimen({ state = 'default' }: { state?: string }) {
const s = defaults.sample
return (
<ValueStack2
productName={s.name}
items={s.items.map(({ name, detail, value }) => ({ name, detail, value }))}
totalValue={s.regularPrice}
todayLabel={s.todayLabel}
price={s.price}
reasonWhy={s.reason}
ctaLabel={s.label}
ctaSublabel={s.sublabel}
reassurance={s.reassurance}
href='#order'
state={state as ValueStack2State}
onAction={(event) => event.preventDefault()}
/>
)
}
| Name | Type | Details |
|---|---|---|
copy OptionalValueStack2 |
Partial<ValueStack2Copy> |
|
state OptionalValueStack2 |
ValueStack2State |
|
productName OptionalValueStack2 |
string |
|
title OptionalValueStack2 |
React.ReactNode |
|
items RequiredValueStack2 |
ValueStack2Item[] |
|
valueSuffix OptionalValueStack2 |
string |
Default 'Value'
|
totalLabel OptionalValueStack2 |
string |
Default 'Total Value:'
|
totalValue OptionalValueStack2 |
string |
|
todayLabel OptionalValueStack2 |
string |
Default 'Get it today for'
|
price RequiredValueStack2 |
string |
|
reasonWhy OptionalValueStack2 |
string |
|
ctaLabel OptionalValueStack2 |
string |
Default 'Yes! Give Me Access'
|
ctaSublabel OptionalValueStack2 |
string |
|
href OptionalValueStack2 |
string |
|
onAction OptionalValueStack2 |
(event: React.MouseEvent<HTMLElement>) => void |
|
disabled OptionalValueStack2 |
boolean |
Default false
|
status OptionalValueStack2 |
'idle' | 'success' |
|
statusMessage OptionalValueStack2 |
string |
|
reassurance OptionalValueStack2 |
string[] |
Default []
|
previewState OptionalValueStack2 |
'hover' | 'active' |
|
className OptionalValueStack2 |
string |
|
id OptionalValueStack2 |
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-border--button-2-ink- Secondary button.
--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.
This piece reads no image slots.
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB