FAQ Block 3
Before-you-buy tiles: the four logistics questions that stall an e-com cart (shipping, returns, fit, billing) as bento tiles that open in place, the guarantee in bold on the dominant tile, then the remaining questions and the add-to-cart close.
Use it in a prompt
Use content/faq-block-3 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/content/faq-block-3.tsx. - Import it and pass your copy and images (Props tab):
import { FaqBlock3 } from "@/components/funneldna/content/faq-block-3"
It restyles from the theme tokens on any wrapper (Theme tab). The specimen source is a complete working example.
pieces/content/faq-block-3/component.tsx 553 lines
// layout: bento-grid
// Before-you-buy tiles: the four logistics questions that stall an e-com cart (shipping, returns, fit, billing) as bento tiles that open in place, the guarantee in bold on the dominant tile, then the remaining questions and the add-to-cart close.
import * as React from 'react';
import { motion, useReducedMotion } from 'motion/react';
import { Lock, Plus } from 'lucide-react';
import { FX_HOST, Spot, Texture } from '../fx/fx';
import truck from '../fx/spots/truck';
import shield from '../fx/spots/shield';
import star from '../fx/spots/star';
import calendar from '../fx/spots/calendar';
import weave from '../fx/textures/weave';
export type FaqBlock3Tile = {
/** Stable id, used by defaultOpenTile. */
id: string;
question: string;
/** One-line answer shown on the closed tile. */
short: React.ReactNode;
/** Full answer paragraphs, revealed in place when the tile opens. */
answer: React.ReactNode[];
/** Clay fx Spot asset, e.g. import truck from '../fx/spots/truck'. */
spot?: string;
/** The dominant tile; it carries the guarantee. Defaults to the first tile. */
featured?: boolean;
};
export type FaqBlock3Question = {
id: string;
question: string;
/** Plain text becomes one paragraph. */
answer: React.ReactNode;
};
export type FaqBlock3Price = {
amount: string;
/** Words beside the price, e.g. “today. That’s it.” */
line?: string;
/** Small line under the price. */
note?: string;
};
export type FaqBlock3Letter = {
salutation?: string;
paragraphs: React.ReactNode[];
signoff?: string;
name?: string;
role?: string;
};
export type FaqBlock3Props = {
headline?: string;
/** Phrase inside the headline that gets the marker stroke. */
headlineMark?: string;
lead?: React.ReactNode;
/** The before-you-buy tiles (designed for four). */
tiles?: FaqBlock3Tile[];
/** Guarantee shown in bold on the dominant tile; empty hides it. */
guarantee?: React.ReactNode;
/** Slot scene: a lifestyle photo tile inside the grid; omit it to drop the tile. */
sceneImage?: string;
sceneImageAlt?: string;
/** Tile id open on first render. */
defaultOpenTile?: string | null;
questionsHeading?: string;
/** The remaining questions, in the accordion under the grid. */
faqs?: FaqBlock3Question[];
/** Question id open on first render. */
defaultOpenQuestion?: string | null;
/** Founder note before the action; null hides it. */
letter?: FaqBlock3Letter | null;
/** Pass null to hide the price line. */
price?: FaqBlock3Price | null;
/** Plain instruction right above the button. */
instruction?: string;
actionLabel?: string;
/** Reassurance line under the button. */
actionNote?: string;
/** Navigation destination; omit it for a button that calls onAction. */
href?: string;
onAction?: (event: React.MouseEvent<HTMLElement>) => void;
copy?: { questionsLabel?: string };
state?: 'default' | 'hover' | 'active' | 'disabled';
className?: string;
};
type Entry = { kind: 'tile'; tile: FaqBlock3Tile; featured: boolean } | { kind: 'photo' };
export function FaqBlock3(props: FaqBlock3Props) {
const {
headline = 'Four questions before you buy. Four straight answers.',
headlineMark = 'Four straight answers.',
lead = 'Shipping, returns, fit and billing, cleared up in one tap. Open any tile for the full answer.',
tiles = DEFAULT_TILES,
guarantee = '30-day money-back guarantee',
sceneImage,
sceneImageAlt = '',
defaultOpenTile = null,
questionsHeading = 'Still wondering about something?',
faqs = DEFAULT_FAQS,
defaultOpenQuestion = null,
letter = DEFAULT_LETTER,
price = DEFAULT_PRICE,
instruction = 'Click the button below to add your blanket to your cart.',
actionLabel = 'Add to cart',
actionNote = 'Free US shipping · 30-day money-back guarantee',
href,
onAction,
copy,
state = 'default',
className,
} = props;
const questionsLabel = copy?.questionsLabel ?? 'More questions before you buy';
const uid = React.useId();
const reduce = useReducedMotion() ?? false;
const [openTile, setOpenTile] = React.useState<string | null>(defaultOpenTile);
const [openFaq, setOpenFaq] = React.useState<string | null>(defaultOpenQuestion);
const rowButtons = React.useRef<Array<HTMLButtonElement | null>>([]);
const disabled = state === 'disabled';
const headId = `${uid}-h`;
const featuredAt = Math.max(0, tiles.findIndex((t) => t.featured));
const ordered = tiles.length ? [tiles[featuredAt], ...tiles.filter((_, i) => i !== featuredAt)] : [];
const openId = ordered.some((t) => t.id === openTile) ? openTile : null;
const entries: Entry[] = ordered.map((tile, i): Entry => ({ kind: 'tile', tile, featured: i === 0 }));
if (sceneImage) entries.push({ kind: 'photo' });
const isOpenEntry = (e: Entry) => e.kind === 'tile' && e.tile.id === openId;
const closed = entries.map((e, i) => (isOpenEntry(e) ? -1 : i)).filter((i) => i >= 0);
const lastClosed = closed[closed.length - 1];
const smallCount = entries.length - 1;
const cols = Math.min(4, Math.max(2, closed.length));
const itemClass = (e: Entry, i: number) => {
const c = ['f3-item', e.kind === 'tile' ? 'f3-tile' : 'f3-photo'];
if (e.kind === 'tile' && e.featured) c.push('is-featured');
if (isOpenEntry(e)) c.push('is-open');
if (!openId && e.kind === 'tile' && e.featured && entries.length > 1) c.push('is-hero');
if (!openId && i > 0 && i === entries.length - 1 && smallCount % 2 === 1) c.push('is-wide');
if (openId && i === lastClosed && closed.length % 2 === 1) c.push('is-wide-sm');
if (state === 'hover' && i === 1 && e.kind === 'tile') c.push('is-demo-hover');
return c.join(' ');
};
const toggleTile = (id: string) => setOpenTile((prev) => (prev === id ? null : id));
const toggleFaq = (id: string) => setOpenFaq((prev) => (prev === id ? null : id));
const onRowKey = (event: React.KeyboardEvent<HTMLButtonElement>, index: number) => {
const last = faqs.length - 1;
let target = -1;
if (event.key === 'ArrowDown') target = index === last ? 0 : index + 1;
else if (event.key === 'ArrowUp') target = index === 0 ? last : index - 1;
else if (event.key === 'Home') target = 0;
else if (event.key === 'End') target = last;
else return;
event.preventDefault();
rowButtons.current[target]?.focus();
};
const action =
href && !disabled ? (
<a className='f3-cta' href={href} onClick={onAction}>
{actionLabel}
</a>
) : (
<button type='button' className='f3-cta' disabled={disabled} onClick={onAction}>
{actionLabel}
</button>
);
return (
<section
className={['cf-faq-block-3', className].filter(Boolean).join(' ')}
data-state={state}
aria-labelledby={headId}
style={FX_HOST}
>
<style>{CSS}</style>
<Texture src={weave} tone='ink' />
<div className='f3-wrap'>
<header className='f3-head'>
<h2 id={headId} className='f3-h'>
{withMark(headline, headlineMark)}
</h2>
{lead ? <p className='f3-lead'>{lead}</p> : null}
</header>
<div
className='f3-grid'
data-open={openId ? 'true' : 'false'}
style={{ '--f3-cols': cols } as React.CSSProperties}
>
{entries.map((e, i) => {
if (e.kind === 'photo') {
return (
<motion.div key='f3-photo' layout={!reduce} transition={LAYOUT} className={itemClass(e, i)}>
<motion.img
layout={!reduce}
transition={LAYOUT}
src={sceneImage}
alt={sceneImageAlt}
loading='lazy'
decoding='async'
/>
</motion.div>
);
}
const { tile, featured } = e;
const open = tile.id === openId;
const btnId = `${uid}-t${i}`;
const panelId = `${uid}-p${i}`;
return (
<motion.div key={tile.id} layout={!reduce} transition={LAYOUT} className={itemClass(e, i)}>
<motion.div layout={reduce ? false : 'position'} transition={LAYOUT} className='f3-tile-in'>
<div className='f3-tile-head'>
{tile.spot ? (
<div className='f3-spot' aria-hidden='true'>
<Spot src={tile.spot} size={featured ? 128 : 64} />
</div>
) : null}
<h3 className='f3-q'>
<button
id={btnId}
type='button'
className='f3-tile-btn'
aria-expanded={open}
aria-controls={panelId}
onClick={() => toggleTile(tile.id)}
onKeyDown={(event) => {
if (event.key === 'Escape' && open) {
event.preventDefault();
setOpenTile(null);
}
}}
>
{tile.question}
<span className='f3-disc' aria-hidden='true'>
<Plus size={20} strokeWidth={2.5} />
</span>
</button>
</h3>
{featured && guarantee ? <p className='f3-promise'>{guarantee}</p> : null}
<p className='f3-short'>{tile.short}</p>
</div>
<div id={panelId} role='region' aria-labelledby={btnId} className='f3-panel' hidden={!open}>
{tile.answer.map((p, k) => (
<p key={k}>{p}</p>
))}
</div>
</motion.div>
</motion.div>
);
})}
</div>
<div className={`f3-more${faqs.length ? '' : ' is-solo'}`}>
{faqs.length ? (
<div className='f3-faq'>
<h3 className='f3-faq-h'>{questionsHeading}</h3>
<ul className='f3-list' aria-label={questionsLabel}>
{faqs.map((f, i) => {
const open = openFaq === f.id;
const btnId = `${uid}-q${i}`;
const panelId = `${uid}-a${i}`;
return (
<li key={f.id} className={`f3-row${open ? ' is-open' : ''}`}>
<h4 className='f3-row-h'>
<button
ref={(el) => {
rowButtons.current[i] = el;
}}
id={btnId}
type='button'
className='f3-row-btn'
aria-expanded={open}
aria-controls={panelId}
onClick={() => toggleFaq(f.id)}
onKeyDown={(event) => onRowKey(event, i)}
>
<span>{f.question}</span>
<span className='f3-dot' aria-hidden='true'>
<Plus size={18} strokeWidth={2.5} />
</span>
</button>
</h4>
<div id={panelId} role='region' aria-labelledby={btnId} className='f3-row-panel'>
<div className='f3-row-in'>
<div className='f3-row-a'>{typeof f.answer === 'string' ? <p>{f.answer}</p> : f.answer}</div>
</div>
</div>
</li>
);
})}
</ul>
</div>
) : null}
<div className={`f3-close${letter ? ' has-letter' : ''}`}>
{letter ? (
<div className='f3-letter-col'>
{letter.salutation ? <p className='f3-salute'>{letter.salutation}</p> : null}
{letter.paragraphs.map((p, k) => (
<p key={k} className='f3-letter'>
{p}
</p>
))}
{letter.signoff || letter.name ? (
<p className='f3-sign'>
{letter.signoff}
{letter.name ? <strong>{letter.name}</strong> : null}
{letter.role ? <span>{letter.role}</span> : null}
</p>
) : null}
</div>
) : null}
<div className='f3-buy'>
{price ? (
<div className='f3-price'>
<p className='f3-price-line'>
<span className='f3-num'>{price.amount}</span>
{price.line ? <span>{price.line}</span> : null}
</p>
{price.note ? <p className='f3-price-note'>{price.note}</p> : null}
</div>
) : null}
{instruction ? <p className='f3-instruct'>{instruction}</p> : null}
{action}
{actionNote ? (
<p className='f3-note'>
<Lock size={16} strokeWidth={2.5} aria-hidden='true' />
{actionNote}
</p>
) : null}
</div>
</div>
</div>
</div>
</section>
);
}
export default FaqBlock3;
function withMark(text: string, mark?: string) {
if (!mark) return text;
const at = text.indexOf(mark);
if (at < 0) return text;
return (
<>
{text.slice(0, at)}
<span className='f3-mark'>{mark}</span>
{text.slice(at + mark.length)}
</>
);
}
const EASE: [number, number, number, number] = [0.2, 0.7, 0.2, 1];
const LAYOUT = { layout: { duration: 0.42, ease: EASE } };
const DEFAULT_TILES: FaqBlock3Tile[] = [
{
id: 'returns',
featured: true,
spot: shield,
question: 'What if it’s not right for me?',
short: 'Sleep on it for 30 nights. If it’s not for you, send it back for a full refund.',
answer: [
'Start your return from the link in your order email any time in the first 30 days. We email you a prepaid label, so sending it back costs you nothing.',
'Your refund goes back to your original payment within 5 business days of the blanket reaching us. No restocking fee and no questions about why.',
],
},
{
id: 'shipping',
spot: truck,
question: 'How fast will it arrive?',
short: 'Ships in 1–2 business days, free across the US.',
answer: [
'Order before 2pm ET and your blanket leaves our warehouse the same or next business day. Most orders arrive 3–5 business days later.',
'You get a tracking link by email the moment it ships, so you know which night you’ll sleep under it.',
],
},
{
id: 'sizing',
spot: star,
question: 'Which weight is right for me?',
short: 'Pick about 10% of your body weight.',
answer: [
'Choose 15 lb if you weigh 120–180 lb, or 20 lb if you weigh 180–240 lb. Both measure 48 × 72 inches.',
'Between two weights? Most sleepers pick the lighter one, and you can swap it free inside your 30 nights.',
],
},
{
id: 'billing',
spot: calendar,
question: 'Will I be billed again?',
short: 'No. One payment, nothing recurring.',
answer: [
'You pay once at checkout. There’s no membership, no auto-ship and no card kept on file for later charges.',
'Want a second blanket one day? You order it yourself, when you choose.',
],
},
];
const DEFAULT_FAQS: FaqBlock3Question[] = [
{
id: 'washing',
question: 'How do I wash it?',
answer: 'Unzip the cotton cover and machine wash it cold, then tumble dry low. Spot clean the weighted inner and let it dry flat.',
},
{
id: 'heat',
question: 'Will it make me too hot at night?',
answer: 'The cover is breathable cotton percale, and the glass beads inside don’t trap heat the way plastic pellets do. Hot sleepers often use it over a sheet only.',
},
{
id: 'couch',
question: 'Can I use it on the couch too?',
answer: 'Yes. At 48 × 72 inches it covers one person in bed and drapes neatly over you on the couch.',
},
{
id: 'packing',
question: 'How does it arrive?',
answer: 'Rolled tight in a recyclable box about the size of a carry-on bag, so it fits through most doors and parcel lockers.',
},
];
const DEFAULT_LETTER: FaqBlock3Letter = {
salutation: 'Dear friend,',
paragraphs: [
'I started Juniper after two years of lying awake at 3am, counting the hours until my alarm.',
'If your nights look like that, give this blanket 30 nights on your own bed. The worst that can happen is a refund.',
],
signoff: 'Sleep well,',
name: 'Maya Ortiz',
role: 'Founder, Juniper Sleep Co.',
};
const DEFAULT_PRICE: FaqBlock3Price = {
amount: '$47',
line: 'today. That’s it.',
note: 'No subscription, no upsell at checkout.',
};
const SH = 'oklch(from var(--shadow, oklch(0.22 0.03 260)) l c h';
const SH_SM = `var(--shadow-sm, 0 1px 1px ${SH} / 0.18), 0 1px 3px ${SH} / 0.14))`;
const SH_MD = `var(--shadow-md, 0 1px 2px ${SH} / 0.22), 0 4px 10px -2px ${SH} / 0.2))`;
const SH_LG = `var(--shadow-lg, 0 2px 4px ${SH} / 0.22), 0 12px 24px -8px ${SH} / 0.32))`;
const R = 'var(--card-radius, var(--radius, 14px))';
const BTN = 'var(--button-bg, var(--cta))';
const BTN2 = 'var(--button-bg-2, var(--cta-2))';
const H3 = 'font-family:var(--font-display);font-weight:var(--display-weight, 800);font-size:clamp(1.3125rem, 1.8vw, 1.625rem);line-height:1.15;letter-spacing:-0.01em';
const BODY = 'font-size:clamp(1.0625rem, 1.25vw, 1.125rem);line-height:1.5';
const RISE = 'f3-rise .45s cubic-bezier(.2,.7,.2,1)';
const CSS = `
.cf-faq-block-3{--f3-marker:oklch(from var(--marker, var(--warning)) l c h / 0.42);--f3-line:oklch(from var(--ink) l c h / 0.12);--f3-pad:clamp(20px, 3vw, 32px);position:relative;background:var(--surface);color:var(--ink);font-family:var(--font-body);padding:clamp(56px, 8vw, 112px) clamp(16px, 5vw, 48px) clamp(64px, 8.5vw, 120px);overflow-x:clip}
.cf-faq-block-3 *,.cf-faq-block-3 *::before,.cf-faq-block-3 *::after{box-sizing:border-box}
.cf-faq-block-3 .f3-wrap{position:relative;z-index:1;max-width:1120px;margin:0 auto}
.cf-faq-block-3 .f3-head{max-width:46rem;animation:${RISE} backwards}
.cf-faq-block-3 .f3-h{margin:0;color:var(--ink);font-family:var(--font-display);font-weight:var(--display-weight, 800);letter-spacing:var(--display-tracking, -0.025em);text-transform:var(--display-case, none);font-size:clamp(2rem, 3.6vw, 3.25rem);line-height:1.06;text-wrap:balance}
.cf-faq-block-3 .f3-mark{background-image:linear-gradient(transparent 56%, var(--f3-marker) 56%, var(--f3-marker) 94%, transparent 94%);-webkit-box-decoration-break:clone;box-decoration-break:clone;padding:0 .06em;border-radius:.12em}
.cf-faq-block-3 .f3-lead{margin:16px 0 0;max-width:60ch;color:var(--muted);font-size:clamp(1.125rem, 1.5vw, 1.375rem);line-height:1.4;font-weight:500;text-wrap:pretty}
.cf-faq-block-3 .f3-grid{display:grid;grid-template-columns:repeat(4, minmax(0, 1fr));grid-auto-flow:row dense;gap:16px;margin-top:clamp(32px, 4vw, 48px)}
.cf-faq-block-3 .f3-grid[data-open='true']{grid-template-columns:repeat(var(--f3-cols, 4), minmax(0, 1fr))}
.cf-faq-block-3 .f3-item{min-width:0}
.cf-faq-block-3 .f3-item.is-hero{grid-column:span 2;grid-row:span 2}
.cf-faq-block-3 .f3-item.is-wide{grid-column:span 2}
.cf-faq-block-3 .f3-item.is-open{grid-column:1 / -1}
.cf-faq-block-3 .f3-tile{position:relative;display:flex;flex-direction:column;background:var(--card);color:var(--ink);border:1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12));border-radius:${R};box-shadow:var(--card-shadow, ${SH_MD});transition:border-color .16s ease, box-shadow .16s ease}
.cf-faq-block-3 .f3-tile.is-featured{background:color-mix(in oklch, var(--accent) 10%, var(--card));border-color:color-mix(in oklch, var(--accent) 34%, var(--card));box-shadow:${SH_LG}}
.cf-faq-block-3 .f3-tile.is-open,.cf-faq-block-3 .f3-tile.is-demo-hover{border-color:oklch(from var(--accent) l c h / 0.5);box-shadow:${SH_LG}}
@media (hover: hover){.cf-faq-block-3 .f3-tile:not(.is-open):hover{border-color:oklch(from var(--accent) l c h / 0.5);box-shadow:${SH_LG}}.cf-faq-block-3 .f3-tile:not(.is-open):hover .f3-disc{background:var(--accent-fill, var(--accent));color:var(--accent-fill-ink, var(--card))}}
.cf-faq-block-3 .f3-tile:not(.is-open):has(.f3-tile-btn:active){box-shadow:${SH_SM}}
.cf-faq-block-3 .f3-tile-in{position:relative;flex:1;display:flex;flex-direction:column;padding:var(--f3-pad);animation:${RISE} backwards}
.cf-faq-block-3 .f3-item:nth-child(2) .f3-tile-in{animation-delay:.07s}
.cf-faq-block-3 .f3-item:nth-child(3) .f3-tile-in{animation-delay:.14s}
.cf-faq-block-3 .f3-item:nth-child(4) .f3-tile-in{animation-delay:.21s}
.cf-faq-block-3 .f3-item:nth-child(n+5) .f3-tile-in{animation-delay:.28s}
.cf-faq-block-3 .f3-tile-head{flex:1;display:flex;flex-direction:column;min-width:0}
.cf-faq-block-3 .f3-spot{margin:0 0 16px;line-height:0}
.cf-faq-block-3 .is-featured .f3-spot{margin-bottom:24px}
.cf-faq-block-3 .f3-q{margin:0 0 12px;color:var(--ink);${H3};text-wrap:balance;overflow-wrap:break-word;hyphens:auto}
.cf-faq-block-3 .f3-q:first-child{padding-right:52px}
.cf-faq-block-3 .is-hero .f3-q{margin-top:auto;padding-top:24px}
.cf-faq-block-3 .f3-tile-btn{appearance:none;margin:0;padding:0;border:0;background:none;color:inherit;font:inherit;letter-spacing:inherit;text-transform:inherit;text-align:left;cursor:pointer}
.cf-faq-block-3 .f3-tile-btn::after{content:'';position:absolute;inset:0;z-index:1;border-radius:${R}}
.cf-faq-block-3 .is-open .f3-tile-btn::after{pointer-events:none}
.cf-faq-block-3 .f3-tile-btn:focus-visible{outline:none}
.cf-faq-block-3 .f3-tile-btn:focus-visible::after{outline:3px solid var(--field-focus, var(--accent));outline-offset:3px}
.cf-faq-block-3 .f3-disc{position:absolute;top:var(--f3-pad);right:var(--f3-pad);z-index:2;display:grid;place-items:center;width:40px;height:40px;border-radius:999px;background:color-mix(in oklch, var(--ink) 7%, var(--card));color:var(--ink);transition:background .16s ease, color .16s ease}
.cf-faq-block-3 .is-featured .f3-disc{background:oklch(from var(--ink) l c h / 0.09)}
.cf-faq-block-3 .f3-disc svg{transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.cf-faq-block-3 .is-open .f3-disc,.cf-faq-block-3 .is-demo-hover .f3-disc{background:var(--accent-fill, var(--accent));color:var(--accent-fill-ink, var(--card))}
.cf-faq-block-3 .is-open .f3-disc svg{transform:rotate(45deg)}
.cf-faq-block-3 .f3-promise{margin:0 0 12px;color:var(--ink);font-family:var(--font-display);font-weight:var(--display-weight, 800);letter-spacing:var(--display-tracking, -0.025em);font-size:clamp(2rem, 3.6vw, 3.25rem);line-height:1.06;text-wrap:balance}
.cf-faq-block-3 .f3-short{margin:0;color:var(--ink);${BODY};font-weight:500;text-wrap:pretty}
.cf-faq-block-3 .is-featured .f3-short{font-size:clamp(1.125rem, 1.5vw, 1.375rem);line-height:1.4}
.cf-faq-block-3 .f3-panel{margin-top:16px;padding-top:16px;border-top:1px solid var(--f3-line)}
.cf-faq-block-3 .f3-panel[hidden]{display:none}
.cf-faq-block-3 .f3-panel:not([hidden]){animation:${RISE} backwards}
.cf-faq-block-3 .f3-panel p{margin:0;max-width:64ch;color:var(--ink);${BODY};text-wrap:pretty}
.cf-faq-block-3 .f3-panel p + p{margin-top:12px}
.cf-faq-block-3 .f3-photo{position:relative;min-height:220px;overflow:hidden;border-radius:12px;background:color-mix(in oklch, var(--ink) 6%, var(--surface))}
.cf-faq-block-3 .f3-photo img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:cover;object-position:50% 50%}
@media (min-width: 861px){.cf-faq-block-3 .f3-tile.is-open .f3-tile-in{display:grid;grid-template-columns:minmax(0, 5fr) minmax(0, 7fr);column-gap:48px;align-items:start}.cf-faq-block-3 .f3-tile.is-open .f3-panel{margin:0;padding:0 56px 0 0;border:0}}
.cf-faq-block-3 .f3-more{display:grid;grid-template-columns:minmax(0, 1fr);gap:16px;margin-top:16px}
@media (min-width: 861px){.cf-faq-block-3 .f3-faq{display:grid;grid-template-columns:minmax(0, 4fr) minmax(0, 7fr);padding:0}.cf-faq-block-3 .f3-faq-h{padding:var(--f3-pad);background:color-mix(in oklch, var(--ink) 4%, var(--card))}.cf-faq-block-3 .f3-row:first-child{border-top:0}}
.cf-faq-block-3 .f3-faq{overflow:hidden;padding:var(--f3-pad) 0 0;background:var(--card);color:var(--ink);border:1px solid var(--card-border, oklch(from var(--ink) l c h / 0.12));border-radius:${R};box-shadow:var(--card-shadow, ${SH_MD});animation:${RISE} .14s backwards}
.cf-faq-block-3 .f3-faq-h{margin:0;padding:0 var(--f3-pad) 16px;color:var(--ink);${H3};text-wrap:balance}
.cf-faq-block-3 .f3-list{list-style:none;margin:0;padding:0}
.cf-faq-block-3 .f3-row{border-top:1px solid var(--f3-line)}
.cf-faq-block-3 .f3-row-h{margin:0;font:inherit}
.cf-faq-block-3 .f3-row-btn{display:flex;width:100%;align-items:center;justify-content:space-between;gap:16px;min-height:64px;margin:0;padding:16px var(--f3-pad);border:0;background:transparent;color:var(--ink);font-family:var(--font-display);font-weight:700;font-size:clamp(1.0625rem, 1.25vw, 1.125rem);line-height:1.3;text-align:left;text-wrap:pretty;cursor:pointer;transition:background-color .16s ease}
.cf-faq-block-3 .f3-row-btn:hover{background:color-mix(in oklch, var(--ink) 4%, var(--card))}
.cf-faq-block-3 .f3-row-btn:active{background:color-mix(in oklch, var(--ink) 7%, var(--card))}
.cf-faq-block-3 .f3-row-btn:focus-visible{outline:3px solid var(--field-focus, var(--accent));outline-offset:-3px}
.cf-faq-block-3 .f3-dot{flex:none;display:grid;place-items:center;width:32px;height:32px;border-radius:999px;background:color-mix(in oklch, var(--ink) 7%, var(--card));color:var(--ink);transition:background .16s ease, color .16s ease}
.cf-faq-block-3 .f3-dot svg{transition:transform .25s cubic-bezier(.2,.7,.2,1)}
.cf-faq-block-3 .f3-row-btn:hover .f3-dot,.cf-faq-block-3 .f3-row.is-open .f3-dot{background:var(--accent-fill, var(--accent));color:var(--accent-fill-ink, var(--card))}
.cf-faq-block-3 .f3-row.is-open .f3-dot svg{transform:rotate(45deg)}
.cf-faq-block-3 .f3-row-panel{display:grid;grid-template-rows:0fr;visibility:hidden;transition:grid-template-rows .3s cubic-bezier(.2,.7,.2,1), visibility 0s linear .3s}
.cf-faq-block-3 .f3-row.is-open .f3-row-panel{grid-template-rows:1fr;visibility:visible;transition-delay:0s}
.cf-faq-block-3 .f3-row-in{min-height:0;overflow:hidden}
.cf-faq-block-3 .f3-row-a{padding:0 var(--f3-pad) 20px}
.cf-faq-block-3 .f3-row-a p{margin:0;max-width:64ch;color:var(--ink);${BODY};text-wrap:pretty}
.cf-faq-block-3 .f3-row-a p + p{margin-top:12px}
.cf-faq-block-3 .f3-close{background:var(--band);color:var(--band-ink);border-radius:${R};padding:clamp(24px, 4vw, 48px);box-shadow:${SH_LG};animation:${RISE} .21s backwards}
.cf-faq-block-3 .f3-close.has-letter{display:grid;grid-template-columns:minmax(0, 1fr);row-gap:32px}
@media (min-width: 861px){.cf-faq-block-3 .f3-close.has-letter{grid-template-columns:minmax(0, 7fr) minmax(0, 5fr);column-gap:clamp(32px, 5vw, 72px);align-items:start}}
.cf-faq-block-3 .f3-letter-col{max-width:64ch;min-width:0}
.cf-faq-block-3 .f3-buy{min-width:0}
.cf-faq-block-3 .f3-buy > :first-child{margin-top:0}
.cf-faq-block-3 .f3-salute{margin:0 0 12px;${H3}}
.cf-faq-block-3 .f3-letter{margin:0 0 12px;${BODY};text-wrap:pretty}
.cf-faq-block-3 .f3-sign{margin:16px 0 0;${BODY}}
.cf-faq-block-3 .f3-sign strong{display:block;margin-top:4px;font-family:var(--font-display);font-weight:var(--display-weight, 800)}
.cf-faq-block-3 .f3-sign span{display:block;font-size:.9375rem;line-height:1.4;font-weight:500}
.cf-faq-block-3 .f3-price{margin-top:32px}
.cf-faq-block-3 .f3-price-line{margin:0;display:flex;flex-wrap:wrap;align-items:baseline;column-gap:12px;row-gap:4px;${H3}}
.cf-faq-block-3 .f3-num{font-size:clamp(2.5rem, 4.2vw, 3.75rem);line-height:1;letter-spacing:-0.03em;font-variant-numeric:tabular-nums}
.cf-faq-block-3 .f3-price-note{margin:12px 0 0;font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-faq-block-3 .f3-instruct{margin:24px 0 16px;font-size:clamp(1.0625rem, 1.25vw, 1.125rem);line-height:1.4;font-weight:700;text-wrap:pretty}
.cf-faq-block-3 .f3-instruct:first-child{margin-top:0}
.cf-faq-block-3 .f3-cta{display:flex;width:100%;min-height:72px;align-items:center;justify-content:center;margin:0;padding:0 28px;border:0;border-radius:var(--button-radius, var(--radius, 12px));background:linear-gradient(oklch(from ${BTN} calc(l + 0.04) c h), oklch(from ${BTN2} calc(l - 0.02) c h));color:var(--button-ink, var(--cta-ink));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;text-align:center;text-wrap:balance;text-decoration:none;text-shadow:var(--button-text-shadow, none);cursor:pointer;box-shadow:var(--button-shadow, inset 0 1px 0 oklch(from ${BTN} calc(l + 0.14) c h / 0.7), inset 0 -3px 0 oklch(from ${BTN} calc(l - 0.16) c h), 0 1px 2px ${SH} / 0.4), 0 8px 16px -6px ${SH} / 0.5));transition:transform .16s ease, box-shadow .16s ease, background .16s ease}
.cf-faq-block-3 .f3-cta:hover:not(:disabled),.cf-faq-block-3[data-state='hover'] .f3-cta:not(:disabled){background:linear-gradient(oklch(from ${BTN} calc(l - 0.01) c h), oklch(from ${BTN2} calc(l - 0.07) c h));box-shadow:inset 0 1px 0 oklch(from ${BTN} calc(l + 0.1) c h / 0.6), inset 0 -3px 0 oklch(from ${BTN} calc(l - 0.2) c h), 0 1px 2px ${SH} / 0.45), 0 10px 18px -6px ${SH} / 0.58)}
.cf-faq-block-3 .f3-cta:active:not(:disabled),.cf-faq-block-3[data-state='active'] .f3-cta:not(:disabled){transform:translateY(1px);background:linear-gradient(oklch(from ${BTN} calc(l - 0.04) c h), oklch(from ${BTN2} calc(l - 0.08) c h));box-shadow:inset 0 2px 4px oklch(from ${BTN} calc(l - 0.22) c h / 0.55), inset 0 -2px 0 oklch(from ${BTN} calc(l - 0.16) c h), 0 1px 1px ${SH} / 0.35)}
.cf-faq-block-3 .f3-cta:focus-visible{outline:3px solid var(--band-ink);outline-offset:3px}
.cf-faq-block-3 .f3-cta:disabled{cursor:not-allowed;background:var(--button-2-bg, var(--secondary));color:var(--button-2-ink, var(--secondary-ink));text-shadow:none;box-shadow:var(--button-2-shadow, ${SH_SM});transform:none}
.cf-faq-block-3 .f3-note{margin:12px 0 0;text-align:center;font-size:.9375rem;line-height:1.4;font-weight:600;text-wrap:pretty}
.cf-faq-block-3 .f3-note svg{display:inline-block;vertical-align:-0.15em;margin-inline-end:.4em}
@media (max-width: 860px){.cf-faq-block-3 .f3-grid,.cf-faq-block-3 .f3-grid[data-open='true']{grid-template-columns:repeat(2, minmax(0, 1fr));gap:12px}.cf-faq-block-3 .f3-item.is-hero{grid-column:1 / -1;grid-row:auto}.cf-faq-block-3 .f3-item.is-wide-sm{grid-column:1 / -1}.cf-faq-block-3 .is-hero .f3-q{margin-top:0;padding-top:0}.cf-faq-block-3 .f3-more{gap:12px;margin-top:12px}}
@media (max-width: 560px){.cf-faq-block-3{--f3-pad:20px}.cf-faq-block-3 .f3-grid,.cf-faq-block-3 .f3-grid[data-open='true']{grid-template-columns:minmax(0, 1fr)}.cf-faq-block-3 .f3-item.is-hero,.cf-faq-block-3 .f3-item.is-wide,.cf-faq-block-3 .f3-item.is-wide-sm{grid-column:1 / -1;grid-row:auto}.cf-faq-block-3 .f3-disc{width:36px;height:36px}.cf-faq-block-3 .f3-tile:not(.is-featured) .f3-tile-head:has(> .f3-spot){display:grid;grid-template-columns:64px minmax(0, 1fr);column-gap:16px;align-items:start}.cf-faq-block-3 .f3-tile:not(.is-featured) .f3-tile-head:has(> .f3-spot) .f3-spot{grid-row:1 / span 2;margin:0}.cf-faq-block-3 .f3-tile:not(.is-featured) .f3-tile-head:has(> .f3-spot) .f3-q{grid-column:2;padding-right:48px;margin-bottom:8px}.cf-faq-block-3 .f3-tile:not(.is-featured) .f3-tile-head:has(> .f3-spot) .f3-short{grid-column:2}.cf-faq-block-3 .f3-tile:not(.is-featured):not(.is-open) .f3-q{font-size:1.125rem}.cf-faq-block-3 .f3-photo{min-height:0;aspect-ratio:16 / 10}}
@media (prefers-reduced-motion: reduce){.cf-faq-block-3 .f3-head,.cf-faq-block-3 .f3-tile-in,.cf-faq-block-3 .f3-panel:not([hidden]),.cf-faq-block-3 .f3-faq,.cf-faq-block-3 .f3-close{animation:none}.cf-faq-block-3 .f3-tile,.cf-faq-block-3 .f3-disc,.cf-faq-block-3 .f3-disc svg,.cf-faq-block-3 .f3-dot,.cf-faq-block-3 .f3-dot svg,.cf-faq-block-3 .f3-row-btn,.cf-faq-block-3 .f3-row-panel,.cf-faq-block-3 .f3-cta{transition:none}.cf-faq-block-3 .f3-cta:active:not(:disabled),.cf-faq-block-3[data-state='active'] .f3-cta:not(:disabled){transform:none}}
@keyframes f3-rise{from{opacity:.82;transform:translateY(8px)}to{opacity:1;transform:none}}
`;
pieces/content/faq-block-3/specimen.tsx 29 lines
import __studioImage1de2a4d8 from "../assets/26f0ea88995284af.webp";
// Specimen: the before-you-buy tiles for a fictional Juniper Sleep Co. weighted blanket.
import * as React from 'react';
import { FaqBlock3 } from '../faq-block-3';
import defaults from '../../studio-defaults.json';
import { slot } from '../../slots';
export const states = ['default', 'hover', 'active', 'disabled'];
type SpecimenState = 'default' | 'hover' | 'active' | 'disabled';
export default function FaqBlock3Specimen({ state = 'default' }: { state?: SpecimenState }) {
const sample = defaults.sample;
return (
<FaqBlock3
key={state}
state={state}
guarantee={sample.guarantee}
price={{ amount: sample.price, line: 'today. That’s it.', note: 'No subscription, no upsell at checkout.' }}
actionNote={`Free US shipping · ${sample.guarantee}`}
sceneImage={slot(
'scene',
__studioImage1de2a4d8,
)}
sceneImageAlt='Sage green weighted blanket draped across a made bed in soft morning light'
defaultOpenTile={state === 'active' ? 'shipping' : null}
/>
);
}
| Name | Type | Details |
|---|---|---|
headline OptionalFaqBlock3 |
string |
|
headlineMark OptionalFaqBlock3 |
string |
|
lead OptionalFaqBlock3 |
React.ReactNode |
|
tiles OptionalFaqBlock3 |
FaqBlock3Tile[] |
|
guarantee OptionalFaqBlock3 |
React.ReactNode |
|
sceneImage OptionalFaqBlock3 |
string |
|
sceneImageAlt OptionalFaqBlock3 |
string |
|
defaultOpenTile OptionalFaqBlock3 |
string | null |
|
questionsHeading OptionalFaqBlock3 |
string |
|
faqs OptionalFaqBlock3 |
FaqBlock3Question[] |
|
defaultOpenQuestion OptionalFaqBlock3 |
string | null |
|
letter OptionalFaqBlock3 |
FaqBlock3Letter | null |
|
price OptionalFaqBlock3 |
FaqBlock3Price | null |
|
instruction OptionalFaqBlock3 |
string |
|
actionLabel OptionalFaqBlock3 |
string |
|
actionNote OptionalFaqBlock3 |
string |
|
href OptionalFaqBlock3 |
string |
|
onAction OptionalFaqBlock3 |
(event: React.MouseEvent<HTMLElement>) => void |
|
copy OptionalFaqBlock3 |
{ questionsLabel?: string } |
|
state OptionalFaqBlock3 |
'default' | 'hover' | 'active' | 'disabled' |
|
className OptionalFaqBlock3 |
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-border--card-radius--card-shadow- Cards and panels: radius, border and shadow.
--display-case--display-tracking--display-weight- Headlines: weight, letter case and tracking.
--field-focus- 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.
scene- A wide atmosphere photo behind or beside the copy.
-
26f0ea88995284af.webp
image/webp · 95.4 KB
-
321240b3188e2da4.webp
image/webp · 18.7 KB
-
4137412454b17370.webp
image/webp · 94.8 KB
-
75ba15955a7397f6.webp
image/webp · 18.6 KB
-
7d6f1c81c93d8f71.webp
image/webp · 18.2 KB
-
b77916eca54aa689.webp
image/webp · 8.32 KB
-
d435db6662febfcf.webp
image/webp · 10 KB
-
f0a5d3e1e61804ba.webp
image/webp · 11.6 KB
-
f6a8de367400456e.webp
image/webp · 14.6 KB