{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "logo-cloud-marquee",
  "title": "Logo cloud marquee",
  "description": "Two opposing marquee rows of hand-drawn customer marks with edge fades, pause on hover, a play/pause control and tappable logos that reveal who the customer is.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "https://goodui.dev/r/button.json",
    "https://goodui.dev/r/counter-up.json",
    "https://goodui.dev/r/marquee.json"
  ],
  "files": [
    {
      "path": "registry/blocks/marketing/logo-cloud-marquee.tsx",
      "content": "\"use client\"\n\nimport * as React from \"react\"\nimport { ArrowRight, Pause, Play } from \"lucide-react\"\nimport { Button } from \"@/components/goodui/button\"\nimport { Marquee } from \"@/components/goodui/marquee\"\nimport { CounterUp } from \"@/components/goodui/counter-up\"\nimport { cn } from \"@/lib/utils\"\n\n/* ---------- Demo data: made-up businesses with hand-drawn marks, no real brands ---------- */\n\ntype Logo = { name: string; mark: React.ReactNode; city: string }\n\nconst LOGOS: Logo[] = [\n  { name: \"Lumen Spa\", city: \"Austin\", mark: <circle cx=\"12\" cy=\"12\" r=\"7\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" /> },\n  { name: \"Northside Dental\", city: \"Chicago\", mark: <path d=\"M12 3 21 20H3Z\" fill=\"currentColor\" /> },\n  { name: \"Pawsome\", city: \"Denver\", mark: <><circle cx=\"7\" cy=\"8\" r=\"2.5\" fill=\"currentColor\" /><circle cx=\"17\" cy=\"8\" r=\"2.5\" fill=\"currentColor\" /><ellipse cx=\"12\" cy=\"15\" rx=\"5\" ry=\"4\" fill=\"currentColor\" /></> },\n  { name: \"Kinetic Physio\", city: \"Seattle\", mark: <path d=\"M4 18 10 6l4 8 2-4 4 8\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinejoin=\"round\" /> },\n  { name: \"Bloom Studio\", city: \"Portland\", mark: <path d=\"M12 21c-5-3-8-7-8-11a8 8 0 0 1 16 0c0 4-3 8-8 11Z\" fill=\"currentColor\" /> },\n  { name: \"Harbor Clinic\", city: \"Boston\", mark: <rect x=\"4\" y=\"4\" width=\"16\" height=\"16\" rx=\"4\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" /> },\n  { name: \"Ferro Barbers\", city: \"Brooklyn\", mark: <path d=\"M6 4h12v4H6zM6 10h12v4H6zM6 16h12v4H6z\" fill=\"currentColor\" /> },\n  { name: \"Atlas Tutors\", city: \"London\", mark: <path d=\"M12 3 21 8 12 13 3 8Z M6 11v5c3 2 9 2 12 0v-5\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2\" strokeLinejoin=\"round\" /> },\n  { name: \"Pulse Pilates\", city: \"Sydney\", mark: <path d=\"M3 12h4l2-6 4 12 2-6h6\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" strokeLinecap=\"round\" strokeLinejoin=\"round\" /> },\n  { name: \"Reed & Sons\", city: \"Dublin\", mark: <><circle cx=\"12\" cy=\"12\" r=\"9\" fill=\"none\" stroke=\"currentColor\" strokeWidth=\"2.5\" /><circle cx=\"12\" cy=\"12\" r=\"3\" fill=\"currentColor\" /></> },\n  { name: \"Ironworks Gym\", city: \"Toronto\", mark: <path d=\"M4 9h3v6H4zM17 9h3v6h-3zM7 11h10v2H7z\" fill=\"currentColor\" /> },\n  { name: \"Studio Bernard\", city: \"Paris\", mark: <path d=\"M5 19 12 5l7 14H5Zm3.5-3h7L12 9.5 8.5 16Z\" fill=\"currentColor\" /> },\n]\n\n/* ---------- Pieces ---------- */\n\nfunction LogoTile({ l, onSelect, active }: { l: Logo; onSelect: () => void; active: boolean }) {\n  return (\n    <button\n      type=\"button\"\n      onClick={onSelect}\n      aria-pressed={active}\n      className={cn(\n        \"flex h-14 shrink-0 items-center gap-2.5 rounded-xl border px-4 text-sm font-semibold tracking-tight whitespace-nowrap transition-colors outline-none focus-visible:ring-3 focus-visible:ring-ring/40\",\n        active ? \"border-foreground bg-foreground text-background\" : \"bg-card text-muted-foreground hover:border-foreground/30 hover:text-foreground\",\n      )}\n    >\n      <svg viewBox=\"0 0 24 24\" className=\"size-5\" aria-hidden=\"true\">{l.mark}</svg>\n      {l.name}\n    </button>\n  )\n}\n\n/* ---------- Block ---------- */\n\nexport default function LogoCloudMarquee() {\n  const [paused, setPaused] = React.useState(false)\n  const [selected, setSelected] = React.useState<Logo | null>(null)\n  const half = Math.ceil(LOGOS.length / 2)\n\n  return (\n    <div className=\"p-4 md:p-6\">\n      <section className=\"mx-auto max-w-6xl\">\n        <div className=\"flex flex-col items-center text-center\">\n          <p className=\"text-sm font-medium text-muted-foreground\">\n            Trusted by <CounterUp value={2400} className=\"font-semibold text-foreground\" format={{ maximumFractionDigits: 0 }} />+ studios, clinics and gyms in 14 countries\n          </p>\n        </div>\n        <div className=\"relative mt-6\">\n          <div className={cn(paused && \"[&_.pc-marquee-track]:[animation-play-state:paused]\")}>\n            <Marquee duration={38} gap=\"0.75rem\" pauseOnHover className=\"py-2\">\n              {LOGOS.slice(0, half).map((l) => (\n                <LogoTile key={l.name} l={l} active={selected?.name === l.name} onSelect={() => setSelected((s) => (s?.name === l.name ? null : l))} />\n              ))}\n            </Marquee>\n            <Marquee duration={46} gap=\"0.75rem\" reverse pauseOnHover className=\"py-2\">\n              {LOGOS.slice(half).map((l) => (\n                <LogoTile key={l.name} l={l} active={selected?.name === l.name} onSelect={() => setSelected((s) => (s?.name === l.name ? null : l))} />\n              ))}\n            </Marquee>\n          </div>\n        </div>\n        <div className=\"mt-4 flex flex-col items-center justify-between gap-3 sm:flex-row\">\n          <div aria-live=\"polite\" className=\"min-h-6 text-sm text-muted-foreground\">\n            {selected ? (\n              <span>\n                <strong className=\"font-medium text-foreground\">{selected.name}</strong> · {selected.city} · booking online since 2024\n              </span>\n            ) : (\n              <span>Hover to pause, tap a logo to see who they are.</span>\n            )}\n          </div>\n          <div className=\"flex items-center gap-2\">\n            <Button size=\"sm\" variant=\"ghost\" tone=\"neutral\" iconLeft={paused ? <Play /> : <Pause />} aria-pressed={paused} onClick={() => setPaused((p) => !p)}>\n              {paused ? \"Play\" : \"Pause\"}\n            </Button>\n            <Button size=\"sm\" variant=\"link\" iconRight={<ArrowRight />} onClick={() => setSelected(LOGOS[0] ?? null)}>\n              Read their stories\n            </Button>\n          </div>\n        </div>\n      </section>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "components/goodui/logo-cloud-marquee.tsx"
    }
  ],
  "categories": [
    "marketing"
  ],
  "type": "registry:block"
}
