{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "team-plotted",
  "title": "Team with fingerprints",
  "description": "The people behind the product, each over a fingerprint seeded from their name, drawn ring by ring from the core outward.",
  "dependencies": [
    "svg-scroll-draw@^2.29.0"
  ],
  "registryDependencies": [
    "https://scrollfx-ui.vercel.app/r/plotter.json"
  ],
  "files": [
    {
      "path": "registry/blocks/team-plotted.tsx",
      "content": "'use client';\n\n/**\n * team-plotted — the people behind the product, each over a fingerprint a pen\n * draws ring by ring, from the core outward, as their card arrives. The print\n * is seeded from the person's name, so everyone has one of their own, the same\n * every time.\n *\n * Built on svg-scroll-draw (MIT): https://github.com/DhruvilChauahan0210/scrollfx\n * Needs: react, svg-scroll-draw, and lib/plotter (installed with it).\n * Styling: Tailwind CSS with shadcn/ui tokens. The heading takes one emphasised\n * word between asterisks, set in `font-serif`. Cards are `bg-card` sheets.\n *\n * The default people are samples: pass your own team. Names and roles are in\n * the server HTML; the prints are drawn in the browser, each finishing as its\n * card reaches the middle of the screen. Reduced motion shows them drawn.\n */\n\nimport { useEffect, useState } from 'react';\nimport { ScrollDraw } from 'svg-scroll-draw/react';\nimport 'svg-scroll-draw/no-flash.css';\nimport { fingerprint, scrollWindow, seedOf, staggerFor, type Stroke } from '@/lib/plotter';\n\nexport interface Person {\n  name: string;\n  role: string;\n  /** A line about them. */\n  note?: string;\n}\n\nexport interface TeamPlottedProps {\n  eyebrow?: string;\n  heading?: string;\n  description?: string;\n  people?: Person[];\n  accent?: string;\n  className?: string;\n}\n\nconst SAMPLES: Person[] = [\n  { name: 'Lena Ortiz', role: 'Founder', note: 'Ran data for a logistics company for nine years.' },\n  { name: 'Sam Okafor', role: 'Engineering', note: 'Builds the query engine and keeps it fast.' },\n  { name: 'Mira Chen', role: 'Design', note: 'Turns tables into pictures people read.' },\n  { name: 'Theo Varga', role: 'Customers', note: 'Answers every message within a day.' },\n];\n\n// The rings draw one after another over this many trigger ranges (see scrollWindow).\nconst SPREAD = 0.6;\n\nfunction Heading({ text }: { text: string }) {\n  return <>{text.split(/(\\*[^*]+\\*)/).map((p, i) => (p.startsWith('*') ? <em key={i} className=\"italic\">{p.slice(1, -1)}</em> : <span key={i}>{p}</span>))}</>;\n}\n\nfunction Print({ name, stroke }: { name: string; stroke: string }) {\n  const [rings, setRings] = useState<Stroke[] | null>(null);\n  useEffect(() => setRings(fingerprint(seedOf(name), 100)), [name]);\n  if (!rings) return null;\n  return (\n    <ScrollDraw stagger={staggerFor(rings.length, SPREAD)} easing=\"linear\" trigger={scrollWindow(SPREAD)} className=\"absolute inset-0\" aria-hidden>\n      <svg viewBox=\"0 0 100 100\" className=\"size-full\" fill=\"none\" stroke={stroke} strokeWidth=\"0.7\" strokeLinecap=\"round\">\n        {rings.map((r, i) => <path key={i} d={r.d} />)}\n      </svg>\n    </ScrollDraw>\n  );\n}\n\nexport function TeamPlotted({\n  eyebrow = 'The people',\n  heading = 'Made by a *small* team.',\n  description = 'Sample people: replace them with your own.',\n  people = SAMPLES,\n  accent = '#e0482a',\n  className = '',\n}: TeamPlottedProps) {\n  return (\n    <section className={`mx-auto max-w-7xl px-6 py-28 sm:px-10 ${className}`}>\n      <p className=\"font-mono text-[11px] uppercase tracking-[0.22em] text-muted-foreground\">{eyebrow}</p>\n      <h2 className=\"mt-6 font-serif text-[clamp(2.6rem,5vw,4.2rem)] leading-[0.98] tracking-[-0.03em]\">\n        <Heading text={heading} />\n      </h2>\n      {description && <p className=\"mt-4 font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground\">{description}</p>}\n\n      <ul className=\"mt-16 grid gap-6 sm:grid-cols-2 lg:grid-cols-4\">\n        {people.map((p, i) => (\n          <li key={p.name} className=\"flex flex-col rounded-[3px] bg-card p-6 shadow-[0_1px_0_rgba(0,0,0,.04),0_18px_40px_-24px_rgba(40,30,10,.3)] dark:shadow-[0_0_0_1px_rgba(255,255,255,.05)]\">\n            <div className=\"relative aspect-square w-full\">\n              <Print name={p.name} stroke={i === 0 ? accent : 'currentColor'} />\n            </div>\n            <p className=\"mt-6 font-serif text-2xl tracking-[-0.015em]\">{p.name}</p>\n            <p className=\"mt-1 font-mono text-[11px] uppercase tracking-[0.18em] text-muted-foreground\">{p.role}</p>\n            {p.note && <p className=\"mt-4 text-pretty text-[15px] leading-relaxed text-muted-foreground\">{p.note}</p>}\n          </li>\n        ))}\n      </ul>\n    </section>\n  );\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "motion": "Scroll to them: each print grows ring by ring as its card arrives.",
    "tall": false
  },
  "type": "registry:block"
}