Skip to content

Bento Product Hero

SaaS hero section with a live bento grid where every tile runs a micro-interaction, plus a pointer spotlight.

  • Heroes
  • B2B SaaS
  • React only · 0 deps
  • 1 file
Full screen

Install. One command, or copy the file.

$npx shadcn@latest add https://freedesignmd.com/r/hero-saas-bento.json
  • Byte-identical to the preview
  • No Tailwind or config needed
  • SSR-safe · keyboard accessible
  • Respects reduced motion & transparency
components/heroes/hero-saas-bento.tsx
1/**
2 * HeroSaasBento, a B2B SaaS hero: a centred headline over an animated bento
3 * grid. Each tile runs its own micro-interaction on a staggered loop: a revenue
4 * chart draws, notifications slide in, a policy toggle flips, an approval
5 * avatar stack fills, a sync ring completes and a command palette types.
6 * Tiles tilt toward the pointer with a spotlight border; on scroll the grid
7 * unfolds from a slight 3D lean to flat and the headline parallaxes.
8 *
9 * Demo images: /img/people/pN.webp (in the repo's public/img/people, copy next to your page or swap in your own).
10 *
11 * Props: title, lede, primaryCta, secondaryCta, logos (string[]).
12 * CSS vars: --fd-bto-bg, --fd-bto-ink, --fd-bto-accent.
13 *
14 * Browser support: all evergreen browsers.
15 * Motion: a single 7.2s timeline clock (rAF, paused off-screen / hidden tab)
16 * toggles step classes; transitions use the library curves. Pointer spotlight
17 * and tilt via CSS variables. Scroll via rAF + getBoundingClientRect.
18 * prefers-reduced-motion: every tile shows its finished state, no loop.
19 * Accessibility: tiles are an aria-hidden illustration with a visually
20 * hidden summary; the toggle shown is decorative (the real control lives in
21 * the product).
22 */
23import { useEffect, useRef, useState } from "react";
24import type { ReactNode } from "react";
25
26export interface HeroSaasBentoProps {
27 eyebrow?: ReactNode;
28 title?: ReactNode;
29 lede?: ReactNode;
30 primaryCta?: { label: string; href: string };
31 secondaryCta?: { label: string; href: string };
32 logos?: string[];
33}
34
35const CYCLE = 7200;
36
37export function HeroSaasBento({
38 eyebrow = "Workflows 2.0",
39 title = (
40 <>
41 Every purchase <span className="fd-bto-hl">approved</span> before the money moves.
42 </>
43 ),
44 lede = "Plinth routes every purchase request, enforces policy before money moves, and syncs approved spend to NetSuite in real time.",
45 primaryCta = { label: "Start free trial", href: "#trial" },
46 secondaryCta = { label: "Talk to sales", href: "#sales" },
47 logos = ["Northwind", "Halden", "Kestrel", "Oslo Freight", "Marlow & Finch"],
48}: HeroSaasBentoProps) {
49 const root = useRef<HTMLElement>(null);
50 const grid = useRef<HTMLDivElement>(null);
51 const head = useRef<HTMLDivElement>(null);
52 const [step, setStep] = useState(0); // 0..11 within a cycle
53 const [loop, setLoop] = useState(0);
54
55 useEffect(() => {
56 const el = root.current;
57 if (!el) return;
58 if (window.matchMedia("(prefers-reduced-motion: reduce)").matches) {
59 setStep(11);
60 return;
61 }
62 let raf = 0;
63 let visible = true;
64 let clock = 0;
65 let last = performance.now();
66 let prevStep = -1;
67 let prevLoop = 0;
68 const frame = (now: number) => {
69 raf = 0;
70 clock += Math.min(now - last, 64);
71 last = now;
72 const st = Math.floor(((clock % CYCLE) / CYCLE) * 12);
73 const lp = Math.floor(clock / CYCLE);
74 if (st !== prevStep) {
75 prevStep = st;
76 setStep(st);
77 }
78 if (lp !== prevLoop) {
79 prevLoop = lp;
80 setLoop(lp);
81 }
82 const r = el.getBoundingClientRect();
83 const p = Math.min(1, Math.max(0, -r.top / Math.max(1, r.height)));
84 const enter = Math.min(1, Math.max(0, 1 - r.top / Math.max(1, window.innerHeight)));
85 if (grid.current) grid.current.style.transform = `perspective(1600px) rotateX(${(Math.max(0, 14 - enter * 10 - p * 30)).toFixed(2)}deg) translate3d(0, ${(p * -80).toFixed(1)}px, 0) scale(${(0.97 + Math.min(1, p * 2) * 0.03).toFixed(4)})`;
86 if (head.current) {
87 head.current.style.transform = `translate3d(0, ${(p * 100).toFixed(1)}px, 0)`;
88 head.current.style.opacity = (1 - p * 1.8).toFixed(3);
89 }
90 if (visible && !document.hidden) raf = requestAnimationFrame(frame);
91 };
92 const start = () => {
93 if (!raf && visible && !document.hidden) {
94 last = performance.now();
95 raf = requestAnimationFrame(frame);
96 }
97 };
98 const io = new IntersectionObserver(([e]) => {
99 visible = e.isIntersecting;
100 if (visible) start();
101 });
102 io.observe(el);
103 document.addEventListener("visibilitychange", start);
104 start();
105 return () => {
106 cancelAnimationFrame(raf);
107 io.disconnect();
108 document.removeEventListener("visibilitychange", start);
109 };
110 }, []);
111
112 // spotlight + tilt per tile
113 useEffect(() => {
114 const g = grid.current;
115 if (!g || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;
116 const onMove = (e: PointerEvent) => {
117 if (e.pointerType === "touch") return;
118 g.querySelectorAll<HTMLElement>(".fd-bto-tile").forEach((t) => {
119 const r = t.getBoundingClientRect();
120 t.style.setProperty("--mx", `${e.clientX - r.left}px`);
121 t.style.setProperty("--my", `${e.clientY - r.top}px`);
122 });
123 };
124 g.addEventListener("pointermove", onMove);
125 return () => g.removeEventListener("pointermove", onMove);
126 }, []);
127
128 const on = (n: number) => step >= n;
129 const cmd = "Approve all under $5k from Design";
130 const typed = step >= 7 ? cmd.slice(0, Math.min(cmd.length, (step - 6) * 9)) : "";
131
132 return (
133 <section ref={root} className="fd-bto" aria-label="Plinth procurement">
134 <style>{css}</style>
135 <div className="fd-bto-bgfx" aria-hidden="true" />
136 <div ref={head} className="fd-bto-head">
137 <a className="fd-bto-eyebrow" href="#whats-new">
138 <span className="fd-bto-eb-tag">{eyebrow}</span>
139 <span>See what’s new</span>
140 <svg viewBox="0 0 16 16" width="12" height="12" aria-hidden="true"><path d="M6 3.5 10.5 8 6 12.5" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" /></svg>
141 </a>
142 <h1 className="fd-bto-h1">{title}</h1>
143 <p className="fd-bto-lede">{lede}</p>
144 <div className="fd-bto-ctas">
145 <a className="fd-bto-btn" href={primaryCta.href}>
146 {primaryCta.label}
147 </a>
148 <a className="fd-bto-btn2" href={secondaryCta.href}>
149 {secondaryCta.label}
150 </a>
151 </div>
152 </div>
153
154 <p className="fd-bto-sr">Product preview: spend chart, live approval notifications, policy toggles, approver chain, ERP sync status and a command bar.</p>
155
156 <div ref={grid} className="fd-bto-grid" aria-hidden="true">
157 {/* chart */}
158 <div className="fd-bto-tile fd-bto-t-chart">
159 <div className="fd-bto-th">
160 <span>Committed spend · Q4</span>
161 <b className="fd-bto-delta">−12.4% vs plan</b>
162 </div>
163 <p className="fd-bto-big">$2.41M</p>
164 <svg aria-hidden="true" focusable="false" className={`fd-bto-chart ${on(1) ? "is-on" : ""}`} viewBox="0 0 400 120" preserveAspectRatio="none" key={`c${loop}`}>
165 <path className="fd-bto-plan" d="M0 96 L400 18" />
166 <path className="fd-bto-area" d="M0 110 C40 104 70 98 100 92 C140 84 160 88 200 74 C240 60 260 66 300 54 C340 42 370 46 400 38 L400 120 L0 120Z" />
167 <path className="fd-bto-line" pathLength="1" d="M0 110 C40 104 70 98 100 92 C140 84 160 88 200 74 C240 60 260 66 300 54 C340 42 370 46 400 38" />
168 <circle className="fd-bto-dot" cx="400" cy="38" r="4" />
169 </svg>
170 <div className="fd-bto-axis"><span>Oct</span><span>Nov</span><span>Dec</span></div>
171 </div>
172
173 {/* notifications */}
174 <div className="fd-bto-tile fd-bto-t-notes">
175 <div className="fd-bto-th"><span>Requests</span><b className="fd-bto-count">{on(5) ? 3 : on(3) ? 2 : on(1) ? 1 : 0} new</b></div>
176 <ul className="fd-bto-notes">
177 {[
178 ["Figma Enterprise", "Design · $18,400/yr", "#0D5C4A", 1],
179 ["AWS reserved instances", "Platform · $42,000", "#FF9900", 3],
180 ["Offsite, Lisbon", "People · $9,850", "#22C55E", 5],
181 ].map(([t, s, c, at]) => (
182 <li key={t as string} className={on(at as number) ? "is-in" : ""}>
183 <i style={{ background: c as string }} />
184 <div><b>{t}</b><span>{s}</span></div>
185 <em className={on((at as number) + 2) ? "is-ok" : ""}>{on((at as number) + 2) ? "Approved" : "Review"}</em>
186 </li>
187 ))}
188 </ul>
189 </div>
190
191 {/* toggle */}
192 <div className="fd-bto-tile fd-bto-t-toggle">
193 <div className="fd-bto-th"><span>Policy</span></div>
194 {[
195 ["Block personal cards", 2],
196 ["Require PO over $10k", 4],
197 ["Auto-renew SaaS", 99],
198 ].map(([l, at]) => (
199 <div key={l as string} className="fd-bto-row">
200 <span>{l}</span>
201 <span className={`fd-bto-sw ${on(at as number) ? "is-on" : ""}`}><i /></span>
202 </div>
203 ))}
204 </div>
205
206 {/* approvers */}
207 <div className="fd-bto-tile fd-bto-t-chain">
208 <div className="fd-bto-th"><span>Approval chain</span></div>
209 <div className="fd-bto-avs">
210 {[
211 ["Marcus Kane", "#FDE68A", "/img/people/p2.webp", "a bearded man with dark hair"],
212 ["Jia Lin", "#BFDBFE", "/img/people/p6.webp", "a woman with long wavy dark hair"],
213 ["Amara Reyes", "#FBCFE8", "/img/people/p3.webp", "a woman with braided hair"],
214 ["Tom Sato", "#BBF7D0", "/img/people/p8.webp", "a smiling man with swept-back hair"],
215 ].map(([nm, c, src, look], k) => (
216 <span key={nm} className={`fd-bto-av ${on(2 + k * 2) ? "is-ok" : ""}`} style={{ background: c }}>
217 <img src={src} alt={`${nm}, approver: portrait of ${look} in a black sweater`} width={40} height={40} loading="lazy" decoding="async" />
218 <b>✓</b>
219 </span>
220 ))}
221 </div>
222 <p className="fd-bto-small">{on(8) ? "Fully approved in 2h 14m" : "Waiting on Finance"}</p>
223 </div>
224
225 {/* sync */}
226 <div className="fd-bto-tile fd-bto-t-sync">
227 <svg aria-hidden="true" focusable="false" className="fd-bto-ring" viewBox="0 0 64 64">
228 <circle cx="32" cy="32" r="26" className="fd-bto-ring-bg" />
229 <circle cx="32" cy="32" r="26" className="fd-bto-ring-fg" pathLength="1" style={{ strokeDashoffset: 1 - Math.min(1, step / 9) }} />
230 </svg>
231 <div>
232 <b>{on(9) ? "Synced to NetSuite" : "Syncing ledger…"}</b>
233 <span>{Math.min(1284, Math.round((step / 9) * 1284)).toLocaleString("en-US")} / 1,284 lines</span>
234 </div>
235 </div>
236
237 {/* command */}
238 <div className="fd-bto-tile fd-bto-t-cmd">
239 <div className="fd-bto-cmd">
240 <svg aria-hidden="true" focusable="false" viewBox="0 0 16 16" width="14" height="14"><circle cx="7" cy="7" r="4.5" fill="none" stroke="currentColor" strokeWidth="1.5" /><path d="m10.5 10.5 3 3" stroke="currentColor" strokeWidth="1.5" strokeLinecap="round" /></svg>
241 <span>{typed || <span className="fd-bto-ph">Ask Plinth…</span>}<i className="fd-bto-caret" /></span>
242 <kbd>⌘K</kbd>
243 </div>
244 </div>
245 </div>
246
247 <div className="fd-bto-logos">
248 <span>Trusted by finance teams at</span>
249 <ul>
250 {logos.map((l) => (
251 <li key={l}>{l}</li>
252 ))}
253 </ul>
254 </div>
255 </section>
256 );
257}
258
259const css = `
260.fd-bto, .fd-bto *, .fd-bto *::before, .fd-bto *::after { box-sizing: border-box; }
261.fd-bto {
262 --fd-ease-out: cubic-bezier(0.22, 1, 0.36, 1);
263 --fd-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);
264 --fd-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
265 --fd-dur-1: 120ms; --fd-dur-2: 240ms; --fd-dur-3: 420ms; --fd-dur-4: 700ms;
266 --fd-bto-bg: #F6F5F1;
267 --fd-bto-ink: #0B0B0F;
268 --fd-bto-muted: #6B6B76;
269 --fd-bto-accent: #0D5C4A;
270 --fd-bto-sans: "SF Pro Display", ui-sans-serif, -apple-system, BlinkMacSystemFont, "Inter", "Segoe UI", Roboto, sans-serif;
271 position: relative; display: block; overflow: hidden; margin: 0; padding: 120px 32px 48px; min-height: 880px;
272 background: var(--fd-bto-bg); color: var(--fd-bto-ink); font: 400 1rem/1.5 var(--fd-bto-sans); isolation: isolate;
273}
274.fd-bto-bgfx { display: none; }
275.fd-bto-head { max-width: 820px; margin: 0 auto; text-align: center; will-change: transform, opacity; }
276.fd-bto-eyebrow {
277 display: inline-flex; align-items: center; gap: 8px; margin: 0 0 24px; padding: 0; text-decoration: none;
278 background: transparent; border: 0; box-shadow: none;
279 font: 500 0.8125rem/1 var(--fd-bto-sans); color: #3a3a44; animation: fd-bto-rise var(--fd-dur-4) var(--fd-ease-out) both;
280 transition: border-color var(--fd-dur-1);
281}
282.fd-bto-eyebrow:hover { color: var(--fd-bto-ink); }
283.fd-bto-eyebrow svg { display: block; }
284.fd-bto-eb-tag { padding: 0; background: none; color: var(--fd-bto-accent); font: 600 0.8125rem/1 var(--fd-bto-sans); }
285.fd-bto-h1 { margin: 0; padding: 0; font: 600 clamp(2.75rem, 6.2vw, 5.25rem)/0.98 var(--fd-bto-sans); letter-spacing: -0.05em; color: var(--fd-bto-ink); text-wrap: balance; animation: fd-bto-blur 1000ms var(--fd-ease-out) 100ms both; }
286.fd-bto-hl { color: var(--fd-bto-accent); }
287.fd-bto-lede { margin: 22px auto 0; padding: 0; max-width: 34rem; font: 400 clamp(1rem, 1.25vw, 1.1875rem)/1.55 var(--fd-bto-sans); letter-spacing: -0.01em; color: var(--fd-bto-muted); text-wrap: pretty; animation: fd-bto-rise var(--fd-dur-4) var(--fd-ease-out) 240ms both; }
288.fd-bto-ctas { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; animation: fd-bto-rise var(--fd-dur-4) var(--fd-ease-out) 340ms both; }
289.fd-bto-btn, .fd-bto-btn2 { display: inline-flex; align-items: center; margin: 0; height: 46px; padding: 0 20px; border-radius: 12px; text-decoration: none; font: 500 0.9375rem/1 var(--fd-bto-sans); letter-spacing: -0.01em; transition: transform var(--fd-dur-2) var(--fd-spring), box-shadow var(--fd-dur-2), background var(--fd-dur-1); }
290.fd-bto-btn { background: var(--fd-bto-ink); color: #fff; box-shadow: none; }
291.fd-bto-btn2 { background: #fff; color: var(--fd-bto-ink); box-shadow: 0 0 0 1px rgba(11,11,15,0.1), 0 2px 4px rgba(11,11,15,0.04); }
292.fd-bto-btn:active, .fd-bto-btn2:active { transform: scale(0.96); transition-duration: var(--fd-dur-1); }
293.fd-bto-btn:focus-visible, .fd-bto-btn2:focus-visible, .fd-bto-eyebrow:focus-visible { outline: 2px solid rgba(13,92,74,0.7); outline-offset: 2px; }
294.fd-bto-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
295
296.fd-bto-grid {
297 display: grid; grid-template-columns: 1.4fr 1fr 1fr; grid-template-rows: auto auto auto; gap: 14px;
298 max-width: 1120px; margin: 56px auto 0; transform-origin: 50% 0%; will-change: transform;
299 animation: fd-bto-gridin 1200ms var(--fd-ease-out) 400ms both;
300}
301.fd-bto-tile {
302 --mx: -400px; --my: -400px;
303 position: relative; overflow: hidden; margin: 0; padding: 18px; border-radius: 20px; background: #fff;
304 box-shadow: 0 0 0 1px rgba(11,11,15,0.06), 0 1px 2px rgba(11,11,15,0.04), 0 12px 32px -16px rgba(11,11,15,0.14);
305}
306.fd-bto-tile::before { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
307 background: radial-gradient(240px circle at var(--mx) var(--my), rgba(11,11,15,0.3), transparent 60%);
308 -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
309.fd-bto-tile::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: radial-gradient(300px circle at var(--mx) var(--my), rgba(11,11,15,0.03), transparent 60%); }
310.fd-bto-t-chart { grid-row: span 2; }
311.fd-bto-t-notes { grid-row: span 2; }
312.fd-bto-t-cmd { grid-column: 2 / -1; display: flex; align-items: center; padding: 10px; }
313.fd-bto-t-cmd .fd-bto-cmd { flex: 1; }
314.fd-bto-th { display: flex; justify-content: space-between; align-items: center; gap: 8px; font: 500 0.8125rem/1 var(--fd-bto-sans); color: var(--fd-bto-muted); }
315.fd-bto-delta { padding: 4px 8px; border-radius: 9999px; background: #ECFDF5; color: #047857; font: 600 0.6875rem/1 var(--fd-bto-sans); }
316.fd-bto-big { margin: 10px 0 0; padding: 0; font: 600 2.25rem/1 var(--fd-bto-sans); letter-spacing: -0.04em; color: var(--fd-bto-ink); font-variant-numeric: tabular-nums; }
317.fd-bto-chart { display: block; width: 100%; height: 150px; margin: 14px 0 0; overflow: visible; }
318.fd-bto-plan { fill: none; stroke: rgba(11,11,15,0.18); stroke-width: 1.2; stroke-dasharray: 4 5; vector-effect: non-scaling-stroke; }
319.fd-bto-line { fill: none; stroke: #0D5C4A; stroke-width: 2.5; vector-effect: non-scaling-stroke; stroke-dasharray: 1; stroke-dashoffset: 1; }
320.fd-bto-area { fill: rgba(13,92,74,0.08); opacity: 0; }
321.fd-bto-dot { fill: #0D5C4A; opacity: 0; transform-box: fill-box; transform-origin: center; }
322.fd-bto-chart.is-on .fd-bto-line { stroke-dashoffset: 0; transition: stroke-dashoffset 1600ms var(--fd-ease-out); }
323.fd-bto-chart.is-on .fd-bto-area { opacity: 1; transition: opacity var(--fd-dur-4) var(--fd-ease-out) 900ms; }
324.fd-bto-chart.is-on .fd-bto-dot { opacity: 1; animation: fd-bto-ping 2s var(--fd-ease-out) 1500ms infinite; transition: opacity var(--fd-dur-2) 1400ms; }
325.fd-bto-axis { display: flex; justify-content: space-between; margin: 8px 0 0; font: 500 0.6875rem/1 var(--fd-bto-sans); color: #9a9aa5; }
326
327.fd-bto-count { font: 600 0.6875rem/1 var(--fd-bto-sans); color: var(--fd-bto-accent); background: rgba(13,92,74,0.1); padding: 4px 8px; border-radius: 9999px; font-variant-numeric: tabular-nums; }
328.fd-bto-notes { display: flex; flex-direction: column; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
329.fd-bto-notes li {
330 display: grid; grid-template-columns: 8px minmax(0, 1fr) auto; gap: 10px; align-items: center; margin: 0; padding: 12px; border-radius: 14px; background: #FAFAFB;
331 box-shadow: 0 0 0 1px rgba(11,11,15,0.05); opacity: 0; transform: translateX(24px) scale(0.98);
332 transition: opacity var(--fd-dur-3) var(--fd-ease-out), transform var(--fd-dur-4) var(--fd-spring);
333}
334.fd-bto-notes li.is-in { opacity: 1; transform: none; }
335.fd-bto-notes i { display: block; width: 8px; height: 8px; border-radius: 9999px; }
336.fd-bto-notes b { display: block; font: 600 0.8125rem/1.2 var(--fd-bto-sans); color: var(--fd-bto-ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
337.fd-bto-notes span { display: block; margin-top: 2px; font: 400 0.75rem/1.2 var(--fd-bto-sans); color: var(--fd-bto-muted); }
338.fd-bto-notes em { font: 600 0.6875rem/1 var(--fd-bto-sans); font-style: normal; padding: 5px 8px; border-radius: 9999px; background: #FEF3C7; color: #92400E; transition: background var(--fd-dur-2), color var(--fd-dur-2); }
339.fd-bto-notes em.is-ok { background: #DCFCE7; color: #166534; }
340
341.fd-bto-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0 0; font: 500 0.8125rem/1.2 var(--fd-bto-sans); color: var(--fd-bto-ink); }
342.fd-bto-sw { position: relative; flex: none; width: 36px; height: 22px; border-radius: 9999px; background: #E4E4EA; transition: background var(--fd-dur-2) var(--fd-ease-in-out); }
343.fd-bto-sw i { position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 9999px; background: #fff; box-shadow: 0 1px 3px rgba(11,11,15,0.25); transition: transform var(--fd-dur-3) var(--fd-spring); }
344.fd-bto-sw.is-on { background: #0D5C4A; }
345.fd-bto-sw.is-on i { transform: translateX(14px); }
346
347.fd-bto-avs { display: flex; margin: 16px 0 0; }
348.fd-bto-av { position: relative; display: grid; place-items: center; width: 40px; height: 40px; margin-right: -8px; border-radius: 9999px; border: 2px solid #fff; font: 600 0.75rem/1 var(--fd-bto-sans); color: #1C1C22; filter: grayscale(1); opacity: 0.45; transition: filter var(--fd-dur-3), opacity var(--fd-dur-3), transform var(--fd-dur-3) var(--fd-spring); }
349.fd-bto-av b { position: absolute; right: -3px; bottom: -3px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 9999px; background: #22C55E; color: #fff; border: 2px solid #fff; font: 700 0.5rem/1 var(--fd-bto-sans); transform: scale(0); transition: transform var(--fd-dur-3) var(--fd-spring); }
350.fd-bto-av img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 9999px; object-fit: cover; object-position: center top; }
351.fd-bto-av.is-ok { filter: none; opacity: 1; transform: translateY(-2px); }
352.fd-bto-av.is-ok b { transform: scale(1); }
353.fd-bto-small { margin: 14px 0 0; padding: 0; font: 400 0.75rem/1.3 var(--fd-bto-sans); color: var(--fd-bto-muted); }
354
355.fd-bto-t-sync { display: flex; align-items: center; gap: 14px; }
356.fd-bto-ring { display: block; flex: none; width: 52px; height: 52px; transform: rotate(-90deg); }
357.fd-bto-ring circle { fill: none; stroke-width: 5; }
358.fd-bto-ring-bg { stroke: #EEEEF2; }
359.fd-bto-ring-fg { stroke: #22C55E; stroke-linecap: round; stroke-dasharray: 1; transition: stroke-dashoffset var(--fd-dur-4) var(--fd-ease-out); }
360.fd-bto-t-sync b { display: block; font: 600 0.875rem/1.2 var(--fd-bto-sans); color: var(--fd-bto-ink); }
361.fd-bto-t-sync span { display: block; margin-top: 4px; font: 400 0.75rem/1.2 var(--fd-bto-sans); color: var(--fd-bto-muted); font-variant-numeric: tabular-nums; }
362
363.fd-bto-cmd { display: flex; align-items: center; gap: 12px; height: 48px; padding: 0 14px; border-radius: 12px; background: #FAFAFB; box-shadow: inset 0 0 0 1px rgba(11,11,15,0.06); color: #9a9aa5; font: 400 0.9375rem/1 var(--fd-bto-sans); }
364.fd-bto-cmd svg { display: block; flex: none; }
365.fd-bto-cmd > span { flex: 1; color: var(--fd-bto-ink); white-space: nowrap; overflow: hidden; }
366.fd-bto-ph { color: #9a9aa5; }
367.fd-bto-caret { display: inline-block; width: 2px; height: 1.1em; margin: 0 0 -0.2em 2px; background: var(--fd-bto-accent); animation: fd-bto-blink 1s steps(1) infinite; }
368.fd-bto-cmd kbd { padding: 4px 7px; border-radius: 6px; background: #fff; box-shadow: 0 0 0 1px rgba(11,11,15,0.1); font: 500 0.75rem/1 var(--fd-bto-sans); color: var(--fd-bto-muted); }
369
370.fd-bto-logos { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px 36px; max-width: 1120px; margin: 40px auto 0; animation: fd-bto-rise var(--fd-dur-4) var(--fd-ease-out) 900ms both; }
371.fd-bto-logos > span { font: 500 0.8125rem/1 var(--fd-bto-sans); color: #9a9aa5; }
372.fd-bto-logos ul { display: flex; flex-wrap: wrap; gap: 14px 36px; margin: 0; padding: 0; list-style: none; }
373.fd-bto-logos li { margin: 0; padding: 0; font: 700 1.0625rem/1 var(--fd-bto-sans); letter-spacing: -0.03em; color: #B4B4BE; }
374
375@keyframes fd-bto-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
376@keyframes fd-bto-blur { from { opacity: 0; filter: blur(12px); transform: translateY(8px); } to { opacity: 1; filter: none; transform: none; } }
377@keyframes fd-bto-gridin { from { opacity: 0; translate: 0 60px; } to { opacity: 1; translate: 0 0; } }
378@keyframes fd-bto-ping { 0% { transform: scale(1); } 50% { transform: scale(1.6); opacity: 0.6; } 100% { transform: scale(1); opacity: 1; } }
379@keyframes fd-bto-blink { 50% { opacity: 0; } }
380
381@media (max-width: 860px) {
382 .fd-bto { padding: 100px 16px 40px; min-height: 844px; }
383 .fd-bto-grid { grid-template-columns: 1fr 1fr; margin-top: 40px; gap: 10px; }
384 .fd-bto-t-chart { grid-column: 1 / -1; grid-row: auto; }
385 .fd-bto-t-notes { grid-column: 1 / -1; grid-row: auto; }
386 .fd-bto-t-toggle, .fd-bto-t-cmd { display: none; }
387 .fd-bto-t-sync { flex-direction: column; align-items: flex-start; }
388 .fd-bto-chart { height: 100px; }
389 .fd-bto-logos { display: none; }
390}
391@media (prefers-reduced-motion: reduce) {
392 .fd-bto *, .fd-bto *::before, .fd-bto *::after { animation: none !important; transition-duration: 1ms !important; transition-delay: 0ms !important; }
393}
394`;
395
396/* ───────────────────────── Demo ───────────────────────── */
397
398export function Demo() {
399 return (
400 <div className="fd-bto-demo">
401 <style>{demoCss}</style>
402 <header className="fd-bto-demo-nav">
403 <a className="fd-bto-demo-logo" href="#top">
404 <svg viewBox="0 0 20 20" width="20" height="20" aria-hidden="true">
405 <rect x="2" y="12" width="16" height="5" rx="1.5" fill="#0B0B0F" />
406 <rect x="5" y="7" width="10" height="4" rx="1.2" fill="#0D5C4A" />
407 <rect x="8" y="3" width="4" height="3" rx="1" fill="#0B0B0F" />
408 </svg>
409 Plinth
410 </a>
411 <nav aria-label="Primary">
412 <a href="#product">Product</a>
413 <a href="#customers">Customers</a>
414 <a href="#integrations">Integrations</a>
415 <a href="#pricing">Pricing</a>
416 </nav>
417 <div className="fd-bto-demo-r">
418 <a href="#signin">Sign in</a>
419 <a className="fd-bto-demo-cta" href="#trial">Get started</a>
420 </div>
421 </header>
422 <HeroSaasBento />
423 </div>
424 );
425}
426
427const demoCss = `
428.fd-bto-demo { position: relative; margin: 0; padding: 0; min-height: 100vh; background: #FAFAFB; }
429.fd-bto-demo *, .fd-bto-demo *::before, .fd-bto-demo *::after { box-sizing: border-box; }
430.fd-bto-demo-nav { position: absolute; z-index: 10; top: 0; left: 0; right: 0; max-width: 1120px; height: 68px; margin: 0 auto; padding: 0 32px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
431.fd-bto-demo-nav .fd-bto-demo-logo { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #0B0B0F; text-decoration: none; font: 700 1.0625rem/1 "SF Pro Display", ui-sans-serif, -apple-system, "Inter", sans-serif; letter-spacing: -0.03em; }
432.fd-bto-demo-logo svg { display: block; }
433.fd-bto-demo-nav nav { display: flex; gap: 28px; }
434.fd-bto-demo-nav a { color: #4a4a55; text-decoration: none; font: 500 0.875rem/1 ui-sans-serif, -apple-system, "Inter", sans-serif; }
435.fd-bto-demo-r { display: flex; align-items: center; gap: 18px; }
436.fd-bto-demo-r .fd-bto-demo-cta { display: inline-flex; align-items: center; height: 34px; padding: 0 14px; border-radius: 10px; background: #0B0B0F; color: #fff; }
437.fd-bto-demo-nav a:focus-visible { outline: 2px solid rgba(13,92,74,.7); outline-offset: 2px; border-radius: 6px; }
438@media (max-width: 860px) { .fd-bto-demo-nav { padding: 0 16px; } .fd-bto-demo-nav nav, .fd-bto-demo-r a:not(.fd-bto-demo-cta) { display: none; } }
439`;

More Heroes. Same file contract.

Ledger Card Hero, heroes preview: Fintech hero section with a CSS 3D metal card that tilts to the cursor, then flips and docks on scroll as…

Ledger Card Hero

Fintech hero section with a CSS 3D metal card that tilts to the cursor, then flips and docks on scroll as stats count up.

Agent Terminal Hero, heroes preview: AI hero section with a terminal that types a prompt and streams an agent's plan while a dashboard assembles…

Agent Terminal Hero

AI hero section with a terminal that types a prompt and streams an agent's plan while a dashboard assembles beside it.

Maison Editorial Hero, heroes preview: Editorial fashion hero section: a giant serif masthead over three campaign photos, revealed by clip-path wipes

Maison Editorial Hero

Editorial fashion hero section: a giant serif masthead over three campaign photos, revealed by clip-path wipes.

Questions about Bento Product Hero

Run npx shadcn@latest add https://freedesignmd.com/r/hero-saas-bento.json, or open the page and copy the file into your project. It has zero dependencies besides React. What you copy is the exact file that renders the live demo.

SaaS hero section with a live bento grid where every tile runs a micro-interaction, plus a pointer spotlight. It is a free, MIT-licensed React heroes component from the freedesignmd library.

Yes. It is free and MIT-licensed, use, modify and ship it in personal and commercial projects without attribution.

All evergreen browsers (Chrome, Edge, Safari and Firefox). It respects prefers-reduced-motion.

Yes. It is a plain React component with its own styles, so it runs in Next.js, Vite, Remix and Lovable projects, and it needs no Tailwind setup. It has zero dependencies besides React.