Calm Clinic Hero
Healthcare hero section: a breathing gradient orb, an appointment stack that fans out and quiet trust stats.
- Heroes
- Healthcare
- React only · 0 deps
- 1 file
Install. One command, or copy the file.
$
npx shadcn@latest add https://freedesignmd.com/r/hero-health-calm.json- Byte-identical to the preview
- No Tailwind or config needed
- SSR-safe · keyboard accessible
- Respects reduced motion & transparency
components/heroes/hero-health-calm.tsx
1/**2 * HeroHealthCalm, a warm, unhurried hero for a digital clinic. A breathing3 * gradient orb (6s inhale / exhale) sits behind a stack of appointment cards4 * that fans out on load and gently re-stacks as the section scrolls away.5 * The pointer lifts the hovered card; trust stats sit below the headline.6 *7 * Props: title, lede, primaryCta, secondaryCta, appointments8 * ({ who, role, when, kind, tone, photo? }[]), stats ({ value, label }[]).9 * CSS vars: --fd-clm-paper, --fd-clm-ink, --fd-clm-accent, --fd-clm-orb-a/b/c.10 *11 * Demo images: /img/people/pN.webp (in the repo's public/img/people, copy next to your page or swap in your own).12 *13 * Browser support: all evergreen browsers.14 * Motion: long, low-amplitude CSS loops (breathing), CSS fan-out entrance,15 * pointer parallax on a soft spring, scroll re-stack via rAF +16 * getBoundingClientRect (transform only, paused off-screen).17 * prefers-reduced-motion: cards rest fanned, orb is still.18 * Accessibility: the card stack is a list with readable text; the orb is19 * decorative.20 */21import { useEffect, useRef } from "react";22import type { ReactNode } from "react";23 24export type Appointment = { who: string; role: string; when: string; kind: string; tone: "sage" | "peach" | "sky"; photo?: string };25export type CalmStat = { value: string; label: string };26 27export interface HeroHealthCalmProps {28 eyebrow?: ReactNode;29 title?: ReactNode;30 lede?: ReactNode;31 primaryCta?: { label: string; href: string };32 secondaryCta?: { label: string; href: string };33 appointments?: Appointment[];34 stats?: CalmStat[];35}36 37const DEFAULT_APPTS: Appointment[] = [38 { who: "Dr. Leila Haddad", role: "General practice", when: "Today · 4:30 pm", kind: "Video visit · 20 min", tone: "sage", photo: "/img/people/p6.webp" },39 { who: "Sam Whitlock, RD", role: "Nutrition", when: "Thu 14 Nov · 9:00 am", kind: "Follow-up · 30 min", tone: "peach", photo: "/img/people/p7.webp" },40 { who: "Dr. Mateo Ruiz", role: "Dermatology", when: "Mon 18 Nov · 11:15 am", kind: "Photo review · async", tone: "sky", photo: "/img/people/p4.webp" },41];42 43const DEFAULT_STATS: CalmStat[] = [44 { value: "11 min", label: "median wait for a same-day visit" },45 { value: "4.9", label: "average rating from 62,000 patients" },46 { value: "HSA/FSA", label: "eligible · most insurers accepted" },47];48 49export function HeroHealthCalm({50 eyebrow = "Primary care, membership included",51 title = (52 <>53 A doctor who knows you,54 <br />55 <em>whenever you need one.</em>56 </>57 ),58 lede = "Same-day video visits, a care team that answers within the hour, and prescriptions sent to your pharmacy before you’ve put the kettle on.",59 primaryCta = { label: "Book your first visit", href: "#book" },60 secondaryCta = { label: "Check your coverage", href: "#coverage" },61 appointments = DEFAULT_APPTS,62 stats = DEFAULT_STATS,63}: HeroHealthCalmProps) {64 const root = useRef<HTMLElement>(null);65 const stack = useRef<HTMLOListElement>(null);66 const orb = useRef<HTMLDivElement>(null);67 68 useEffect(() => {69 const el = root.current;70 if (!el || window.matchMedia("(prefers-reduced-motion: reduce)").matches) return;71 const sp = { x: 0, y: 0, tx: 0, ty: 0 };72 const onMove = (e: PointerEvent) => {73 if (e.pointerType === "touch") return;74 const r = el.getBoundingClientRect();75 sp.tx = ((e.clientX - r.left) / r.width) * 2 - 1;76 sp.ty = ((e.clientY - r.top) / r.height) * 2 - 1;77 };78 el.addEventListener("pointermove", onMove);79 let raf = 0;80 let visible = true;81 const frame = () => {82 raf = 0;83 sp.x += (sp.tx - sp.x) * 0.045;84 sp.y += (sp.ty - sp.y) * 0.045;85 const r = el.getBoundingClientRect();86 const p = Math.min(1, Math.max(0, -r.top / Math.max(1, r.height * 0.7)));87 if (stack.current) {88 stack.current.style.setProperty("--fan", (1 - p).toFixed(4));89 stack.current.style.transform = `translate3d(${(sp.x * 10).toFixed(2)}px, ${(sp.y * 8 + p * -40).toFixed(2)}px, 0) rotateX(${(-sp.y * 4).toFixed(2)}deg) rotateY(${(sp.x * 6).toFixed(2)}deg)`;90 }91 if (orb.current) orb.current.style.transform = `translate3d(${(sp.x * -24).toFixed(2)}px, ${(sp.y * -18 + p * 80).toFixed(2)}px, 0) scale(${(1 + p * 0.25).toFixed(4)})`;92 if (visible && !document.hidden) raf = requestAnimationFrame(frame);93 };94 const start = () => {95 if (!raf && visible && !document.hidden) raf = requestAnimationFrame(frame);96 };97 const io = new IntersectionObserver(([e]) => {98 visible = e.isIntersecting;99 if (visible) start();100 });101 io.observe(el);102 document.addEventListener("visibilitychange", start);103 start();104 return () => {105 cancelAnimationFrame(raf);106 io.disconnect();107 document.removeEventListener("visibilitychange", start);108 el.removeEventListener("pointermove", onMove);109 };110 }, []);111 112 return (113 <section ref={root} className="fd-clm" aria-label="Tend Health">114 <style>{css}</style>115 <div className="fd-clm-grid">116 <div className="fd-clm-copy">117 <p className="fd-clm-eyebrow">118 <span className="fd-clm-pulse" aria-hidden="true" />119 {eyebrow}120 </p>121 <h1 className="fd-clm-h1">{title}</h1>122 <p className="fd-clm-lede">{lede}</p>123 <div className="fd-clm-ctas">124 <a className="fd-clm-btn" href={primaryCta.href}>125 {primaryCta.label}126 </a>127 <a className="fd-clm-link" href={secondaryCta.href}>128 {secondaryCta.label}129 <svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">130 <path d="M3 8h9M8.5 4.5 12 8l-3.5 3.5" fill="none" stroke="currentColor" strokeWidth="1.6" strokeLinecap="round" strokeLinejoin="round" />131 </svg>132 </a>133 </div>134 <dl className="fd-clm-stats">135 {stats.map((s) => (136 <div key={s.label}>137 <dt>{s.label}</dt>138 <dd>{s.value}</dd>139 </div>140 ))}141 </dl>142 </div>143 144 <div className="fd-clm-visual">145 <div ref={orb} className="fd-clm-orbwrap" aria-hidden="true">146 <div className="fd-clm-orb" />147 <div className="fd-clm-ring" />148 <div className="fd-clm-ring fd-clm-ring-2" />149 </div>150 <ol ref={stack} className="fd-clm-stack" aria-label="Upcoming appointments">151 {appointments.map((a, i) => (152 <li key={a.who} className={`fd-clm-card fd-clm-${a.tone}`} style={{ ["--i" as string]: i, ["--fy" as string]: `${[0, 206, 334][i] ?? i * 128}px` }}>153 <div className="fd-clm-card-top">154 <span className="fd-clm-av" aria-hidden="true">155 {a.photo ? (156 <img src={a.photo} alt="" width={44} height={44} loading="lazy" decoding="async" />157 ) : (158 a.who.replace(/^Dr\. /, "").split(" ").map((w) => w[0]).slice(0, 2).join("")159 )}160 </span>161 <div className="fd-clm-who">162 <b>{a.who}</b>163 <span>{a.role}</span>164 </div>165 {i === 0 && <span className="fd-clm-live">Ready</span>}166 </div>167 <div className="fd-clm-card-bot">168 <span className="fd-clm-when">169 <svg viewBox="0 0 16 16" width="14" height="14" aria-hidden="true">170 <circle cx="8" cy="8" r="6.2" fill="none" stroke="currentColor" strokeWidth="1.3" />171 <path d="M8 4.8V8l2.2 1.4" fill="none" stroke="currentColor" strokeWidth="1.3" strokeLinecap="round" />172 </svg>173 {a.when}174 </span>175 <span className="fd-clm-kind">{a.kind}</span>176 </div>177 {i === 0 && (178 <div className="fd-clm-join">179 <span>Join waiting room</span>180 <span className="fd-clm-dots" aria-hidden="true">181 <i /><i /><i />182 </span>183 </div>184 )}185 </li>186 ))}187 </ol>188 </div>189 </div>190 </section>191 );192}193 194const css = `195.fd-clm, .fd-clm *, .fd-clm *::before, .fd-clm *::after { box-sizing: border-box; }196.fd-clm {197 --fd-ease-out: cubic-bezier(0.22, 1, 0.36, 1);198 --fd-ease-in-out: cubic-bezier(0.65, 0, 0.35, 1);199 --fd-spring: cubic-bezier(0.34, 1.56, 0.64, 1);200 --fd-dur-1: 120ms; --fd-dur-2: 240ms; --fd-dur-3: 420ms; --fd-dur-4: 700ms;201 --fd-clm-paper: #FBF7F1;202 --fd-clm-ink: #1F2A24;203 --fd-clm-muted: #66706A;204 --fd-clm-accent: #2F5D4A;205 --fd-clm-orb-a: #F6C8A8;206 --fd-clm-orb-b: #CFE3D2;207 --fd-clm-orb-c: #F3E2B8;208 --fd-clm-serif: ui-serif, "New York", "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;209 --fd-clm-sans: ui-sans-serif, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", Roboto, sans-serif;210 position: relative; display: block; overflow: hidden; margin: 0; padding: 0; min-height: 860px;211 background: var(--fd-clm-paper); color: var(--fd-clm-ink); font: 400 1rem/1.5 var(--fd-clm-sans);212 isolation: isolate;213}214.fd-clm-grid {215 position: relative; max-width: 1240px; min-height: 860px; margin: 0 auto; padding: 132px 48px 72px;216 display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 48px; align-items: center;217}218.fd-clm-eyebrow {219 display: inline-flex; align-items: center; gap: 10px; margin: 0 0 26px; padding: 0;220 font: 500 0.875rem/1 var(--fd-clm-sans); letter-spacing: -0.005em; color: var(--fd-clm-accent);221 animation: fd-clm-rise 1100ms var(--fd-ease-out) 100ms both;222}223.fd-clm-pulse { position: relative; display: block; width: 8px; height: 8px; border-radius: 9999px; background: #5FA37F; }224.fd-clm-pulse::after { content: ""; position: absolute; inset: -5px; border-radius: 9999px; border: 1px solid #5FA37F; animation: fd-clm-ping 3s var(--fd-ease-out) infinite; }225.fd-clm-h1 {226 margin: 0; padding: 0; color: var(--fd-clm-ink);227 font: 400 clamp(2.5rem, 4.6vw, 4.125rem)/1.02 var(--fd-clm-serif); letter-spacing: -0.03em; text-wrap: balance;228 animation: fd-clm-soft 1600ms var(--fd-ease-out) 200ms both;229}230.fd-clm-h1 em { font-style: italic; color: var(--fd-clm-accent); }231.fd-clm-lede {232 margin: 26px 0 0; padding: 0; max-width: 30rem; color: var(--fd-clm-muted);233 font: 400 clamp(1.0625rem, 1.2vw, 1.1875rem)/1.6 var(--fd-clm-sans); letter-spacing: -0.008em; text-wrap: pretty;234 animation: fd-clm-rise 1100ms var(--fd-ease-out) 450ms both;235}236.fd-clm-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 24px; margin: 36px 0 0; animation: fd-clm-rise 1100ms var(--fd-ease-out) 600ms both; }237.fd-clm-btn {238 display: inline-flex; align-items: center; margin: 0; height: 54px; padding: 0 28px; border-radius: 9999px; border: 0;239 background: var(--fd-clm-accent); color: #FBF7F1; text-decoration: none; font: 500 1rem/1 var(--fd-clm-sans); letter-spacing: -0.01em;240 box-shadow: 0 1px 0 rgba(255,255,255,0.18) inset, 0 14px 30px -14px rgba(47,93,74,0.7);241 transition: transform var(--fd-dur-2) var(--fd-spring), background var(--fd-dur-2) var(--fd-ease-out);242}243.fd-clm-btn:hover { background: #274E3E; }244.fd-clm-btn:active { transform: scale(0.96); transition-duration: var(--fd-dur-1); }245.fd-clm-link { display: inline-flex; align-items: center; gap: 8px; margin: 0; padding: 0; color: var(--fd-clm-ink); text-decoration: none; font: 500 1rem/1 var(--fd-clm-sans); letter-spacing: -0.01em; }246.fd-clm-link svg { display: block; transition: transform var(--fd-dur-3) var(--fd-ease-out); }247.fd-clm-link:hover svg { transform: translateX(4px); }248.fd-clm-btn:focus-visible, .fd-clm-link:focus-visible { outline: 2px solid rgba(47,93,74,0.7); outline-offset: 3px; }249.fd-clm-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 56px 0 0; padding: 24px 0 0; border-top: 1px solid rgba(31,42,36,0.1); animation: fd-clm-rise 1100ms var(--fd-ease-out) 750ms both; }250.fd-clm-stats div { display: flex; flex-direction: column-reverse; justify-content: flex-end; margin: 0; }251.fd-clm-stats dd { margin: 0 0 6px; padding: 0; font: 400 1.75rem/1 var(--fd-clm-serif); letter-spacing: -0.02em; color: var(--fd-clm-ink); }252.fd-clm-stats dt { margin: 0; padding: 0; font: 400 0.8125rem/1.4 var(--fd-clm-sans); color: var(--fd-clm-muted); }253 254.fd-clm-visual { position: relative; height: 560px; display: grid; place-items: center; perspective: 1400px; }255.fd-clm-orbwrap { position: absolute; inset: 0; display: grid; place-items: center; will-change: transform; }256.fd-clm-orb {257 width: 470px; height: 470px; border-radius: 50%;258 background:259 radial-gradient(40% 40% at 30% 30%, var(--fd-clm-orb-c), transparent 70%),260 radial-gradient(50% 50% at 70% 35%, var(--fd-clm-orb-a), transparent 72%),261 radial-gradient(60% 60% at 45% 75%, var(--fd-clm-orb-b), transparent 75%),262 radial-gradient(closest-side, #F7DCC6, #FBF7F1);263 filter: blur(26px) saturate(1.1);264 animation: fd-clm-in 2000ms var(--fd-ease-out) both, fd-clm-breathe 12s var(--fd-ease-in-out) 2s infinite;265}266.fd-clm-ring { position: absolute; width: 520px; height: 520px; border-radius: 50%; border: 1px solid rgba(47,93,74,0.12); animation: fd-clm-breathe 12s var(--fd-ease-in-out) 2.4s infinite, fd-clm-fade 2000ms var(--fd-ease-out) 400ms both; }267.fd-clm-ring-2 { width: 640px; height: 640px; border-color: rgba(47,93,74,0.07); animation-delay: 2.8s, 600ms; }268 269.fd-clm-stack { --fan: 1; position: relative; width: 380px; height: 460px; margin: 0; padding: 0; list-style: none; transform-style: preserve-3d; will-change: transform; }270.fd-clm-card {271 --y: calc(var(--i) * 16px * (1 - var(--fan)) + var(--fy) * var(--fan));272 --r: calc((var(--i) - 1) * var(--fan) * 2.5deg);273 --s: calc(1 - var(--i) * 0.05 * (1 - var(--fan)));274 position: absolute; left: 0; right: 0; top: 0; margin: 0; padding: 18px 18px 16px;275 border-radius: 24px; background: rgba(255,255,255,0.86); border: 1px solid rgba(255,255,255,0.9);276 box-shadow: 0 1px 0 #fff inset, 0 24px 48px -24px rgba(70, 52, 30, 0.28), 0 0 0 1px rgba(31,42,36,0.05);277 -webkit-backdrop-filter: blur(18px); backdrop-filter: blur(18px);278 z-index: calc(10 - var(--i));279 transform: translate3d(calc((var(--i) - 1) * var(--fan) * 22px), var(--y), calc(var(--i) * -30px)) rotate(var(--r)) scale(var(--s));280 animation: fd-clm-deal 1400ms var(--fd-ease-out) both; animation-delay: calc(600ms + var(--i) * 180ms);281 transition: box-shadow var(--fd-dur-3) var(--fd-ease-out);282}283.fd-clm-card:hover { box-shadow: 0 1px 0 #fff inset, 0 34px 60px -24px rgba(70, 52, 30, 0.38), 0 0 0 1px rgba(31,42,36,0.08); }284.fd-clm-card-top { display: flex; align-items: center; gap: 12px; }285.fd-clm-av { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 9999px; font: 500 0.9375rem/1 var(--fd-clm-serif); color: var(--fd-clm-ink); }286.fd-clm-av img { width: 100%; height: 100%; border-radius: 9999px; object-fit: cover; object-position: center top; }287.fd-clm-sage .fd-clm-av { background: linear-gradient(135deg, #DCEBDD, #B9D5C0); }288.fd-clm-peach .fd-clm-av { background: linear-gradient(135deg, #FBE1CF, #F2C3A4); }289.fd-clm-sky .fd-clm-av { background: linear-gradient(135deg, #DDE9F4, #BCD2E8); }290.fd-clm-who { display: flex; flex-direction: column; gap: 3px; min-width: 0; }291.fd-clm-who b { font: 600 0.9375rem/1.2 var(--fd-clm-sans); letter-spacing: -0.01em; color: var(--fd-clm-ink); }292.fd-clm-who span { font: 400 0.8125rem/1.2 var(--fd-clm-sans); color: var(--fd-clm-muted); }293.fd-clm-live { margin-left: auto; padding: 5px 10px; border-radius: 9999px; background: #E3F1E7; color: #2F6B4D; font: 600 0.6875rem/1 var(--fd-clm-sans); letter-spacing: 0.02em; }294.fd-clm-card-bot { display: flex; justify-content: space-between; gap: 12px; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px dashed rgba(31,42,36,0.12); }295.fd-clm-when { display: inline-flex; align-items: center; gap: 6px; font: 500 0.8125rem/1 var(--fd-clm-sans); color: var(--fd-clm-ink); }296.fd-clm-when svg { display: block; color: var(--fd-clm-muted); }297.fd-clm-kind { font: 400 0.8125rem/1 var(--fd-clm-sans); color: var(--fd-clm-muted); }298.fd-clm-join { display: flex; align-items: center; justify-content: space-between; margin: 14px 0 0; padding: 12px 16px; border-radius: 14px; background: var(--fd-clm-accent); color: #FBF7F1; font: 500 0.875rem/1 var(--fd-clm-sans); }299.fd-clm-dots { display: inline-flex; gap: 4px; }300.fd-clm-dots i { display: block; width: 5px; height: 5px; border-radius: 9999px; background: currentColor; opacity: 0.4; animation: fd-clm-dot 1.8s var(--fd-ease-in-out) infinite; }301.fd-clm-dots i:nth-child(2) { animation-delay: 0.2s; } .fd-clm-dots i:nth-child(3) { animation-delay: 0.4s; }302 303@keyframes fd-clm-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }304@keyframes fd-clm-soft { from { opacity: 0; filter: blur(10px); } to { opacity: 1; filter: none; } }305@keyframes fd-clm-fade { from { opacity: 0; } to { opacity: 1; } }306@keyframes fd-clm-in { from { opacity: 0; transform: scale(0.7); } to { opacity: 1; transform: none; } }307@keyframes fd-clm-breathe { 0%, 100% { transform: scale(0.94); } 50% { transform: scale(1.06); } }308@keyframes fd-clm-ping { 0% { transform: scale(0.6); opacity: 0.8; } 80%, 100% { transform: scale(1.6); opacity: 0; } }309@keyframes fd-clm-dot { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }310@keyframes fd-clm-deal { from { opacity: 0; transform: translate3d(0, 60px, -80px) rotate(0deg) scale(0.92); } to { opacity: 1; } }311 312@media (max-width: 900px) {313 .fd-clm { min-height: 844px; }314 .fd-clm-grid { grid-template-columns: 1fr; gap: 12px; padding: 104px 20px 48px; min-height: 844px; }315 .fd-clm-visual { height: 500px; order: 2; }316 .fd-clm-orb { width: 340px; height: 340px; }317 .fd-clm-ring { width: 380px; height: 380px; } .fd-clm-ring-2 { width: 460px; height: 460px; }318 .fd-clm-stack { width: min(340px, 100%); }319 .fd-clm-stack { height: 400px; }320 .fd-clm-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 36px; }321 .fd-clm-stats dd { font-size: 1.25rem; }322 .fd-clm-stats dt { font-size: 0.75rem; }323}324@media (prefers-reduced-motion: reduce) { .fd-clm *, .fd-clm *::before, .fd-clm *::after { animation: none !important; } }325@media (prefers-reduced-transparency: reduce) { .fd-clm-card { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }326`;327 328/* ───────────────────────── Demo ───────────────────────── */329 330export function Demo() {331 return (332 <div className="fd-clm-demo">333 <style>{demoCss}</style>334 <header className="fd-clm-demo-nav">335 <a className="fd-clm-demo-logo" href="#top">336 <svg viewBox="0 0 22 22" width="22" height="22" aria-hidden="true">337 <path d="M11 3c3 3.2 6 6 6 9.4A6 6 0 0 1 11 18.6a6 6 0 0 1-6-6.2C5 9 8 6.2 11 3Z" fill="#2F5D4A" />338 <path d="M11 9v6M8 12h6" stroke="#FBF7F1" strokeWidth="1.6" strokeLinecap="round" />339 </svg>340 tend341 </a>342 <nav aria-label="Primary">343 <a href="#care">Care</a>344 <a href="#membership">Membership</a>345 <a href="#employers">For employers</a>346 <a href="#clinicians">Our clinicians</a>347 </nav>348 <div className="fd-clm-demo-r">349 <a href="#login">Log in</a>350 <a className="fd-clm-demo-cta" href="#join">Join for $19/mo</a>351 </div>352 </header>353 <HeroHealthCalm />354 </div>355 );356}357 358const demoCss = `359.fd-clm-demo { position: relative; margin: 0; padding: 0; min-height: 100vh; background: #FBF7F1; }360.fd-clm-demo *, .fd-clm-demo *::before, .fd-clm-demo *::after { box-sizing: border-box; }361.fd-clm-demo-nav {362 position: absolute; z-index: 10; top: 0; left: 0; right: 0; max-width: 1240px; height: 80px; margin: 0 auto; padding: 0 48px;363 display: flex; align-items: center; justify-content: space-between; gap: 20px;364 animation: fd-clm-demo-in 1200ms cubic-bezier(0.22, 1, 0.36, 1) both;365}366.fd-clm-demo-nav .fd-clm-demo-logo { display: inline-flex; align-items: center; gap: 8px; margin: 0; color: #1F2A24; text-decoration: none; font: 500 1.5rem/1 ui-serif, "New York", "Iowan Old Style", Georgia, serif; letter-spacing: -0.03em; }367.fd-clm-demo-logo svg { display: block; }368.fd-clm-demo-nav nav { display: flex; gap: 32px; }369.fd-clm-demo-nav a { color: #48524C; text-decoration: none; font: 500 0.9375rem/1 ui-sans-serif, -apple-system, "Inter", sans-serif; letter-spacing: -0.01em; }370.fd-clm-demo-r { display: flex; align-items: center; gap: 22px; }371.fd-clm-demo-r .fd-clm-demo-cta { display: inline-flex; align-items: center; height: 40px; padding: 0 18px; border-radius: 9999px; background: #fff; color: #1F2A24; box-shadow: 0 0 0 1px rgba(31,42,36,0.1), 0 4px 12px -6px rgba(70,52,30,0.25); }372.fd-clm-demo-nav a:focus-visible { outline: 2px solid rgba(47,93,74,.7); outline-offset: 2px; border-radius: 8px; }373@keyframes fd-clm-demo-in { from { opacity: 0; } to { opacity: 1; } }374@media (max-width: 900px) { .fd-clm-demo-nav { padding: 0 20px; height: 68px; } .fd-clm-demo-nav nav, .fd-clm-demo-r a:not(.fd-clm-demo-cta) { display: none; } }375@media (prefers-reduced-motion: reduce) { .fd-clm-demo-nav { animation: none; } }376`;More Heroes. Same file contract.
Questions about Calm Clinic Hero
Run npx shadcn@latest add https://freedesignmd.com/r/hero-health-calm.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.
Healthcare hero section: a breathing gradient orb, an appointment stack that fans out and quiet trust stats. 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.


