{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "analytics-11",
  "type": "registry:block",
  "description": "Inverted live band with pulsing status, ticking visitor counter, auto-updating bar stream and top live pages.",
  "dependencies": [],
  "registryDependencies": [],
  "files": [
    {
      "path": "registry/designali/blocks/analytics/analytics-11.tsx",
      "content": "\"use client\"\n\nimport { useEffect, useState } from \"react\"\n\nimport { CounterNumber } from \"@/registry/designali/ui/counter-number\"\n\nconst seed = [38, 42, 40, 45, 51, 48, 53, 57, 55, 60, 58, 62, 66, 63, 61, 67, 70, 68, 72, 69, 74, 71, 76, 79, 77, 81, 78, 83, 86, 84]\n\nconst pages = [\n  { path: \"/icons\", live: 412 },\n  { path: \"/pricing\", live: 188 },\n  { path: \"/docs\", live: 141 },\n  { path: \"/blocks\", live: 76 },\n]\n\nexport default function Analytics11() {\n  const [series, setSeries] = useState(seed)\n\n  useEffect(() => {\n    const id = setInterval(() => {\n      setSeries((prev) => {\n        const last = prev[prev.length - 1] ?? 60\n        const next = Math.max(30, Math.min(100, last + Math.round((Math.random() - 0.45) * 10)))\n        return [...prev.slice(1), next]\n      })\n    }, 1500)\n    return () => clearInterval(id)\n  }, [])\n\n  const current = series[series.length - 1] ?? 0\n  const liveNow = current * 11 + 23\n  const max = 100\n\n  return (\n    <section className=\"w-full bg-foreground py-16 text-background md:py-24\">\n      <div className=\"mx-auto max-w-7xl px-6\">\n        <div className=\"grid gap-12 lg:grid-cols-[1fr_1.3fr] lg:items-end\">\n          <div>\n            <div className=\"inline-flex items-center gap-2 border border-background/20 px-3 py-1 text-xs\">\n              <span className=\"relative flex size-2\">\n                <span className=\"absolute inline-flex size-full animate-ping rounded-full bg-primary opacity-75\" />\n                <span className=\"relative inline-flex size-2 rounded-full bg-primary\" />\n              </span>\n              Live, updating every 1.5s\n            </div>\n            <p className=\"mt-8 text-sm text-background/60\">People on site right now</p>\n            <CounterNumber\n              value={liveNow}\n              duration={800}\n              className=\"mt-2 block text-6xl font-light tracking-tighter text-background md:text-8xl\"\n            />\n            <p className=\"mt-4 max-w-sm text-sm text-background/60\">\n              Designali Icons launch day. Traffic is 4.2x a normal Tuesday and every\n              edge region is healthy.\n            </p>\n          </div>\n\n          <div>\n            <div className=\"flex h-40 items-end gap-[3px]\">\n              {series.map((v, i) => (\n                <div\n                  key={i}\n                  className=\"flex-1 bg-background/25 transition-[height] duration-500 last:bg-primary\"\n                  style={{ height: `${(v / max) * 100}%` }}\n                />\n              ))}\n            </div>\n            <div className=\"mt-2 flex justify-between text-[10px] text-background/50\">\n              <span>45s ago</span>\n              <span>now</span>\n            </div>\n\n            <ul className=\"mt-8 divide-y divide-background/15 border-y border-background/15\">\n              {pages.map((p) => (\n                <li key={p.path} className=\"flex items-center justify-between gap-4 py-3 text-sm\">\n                  <span className=\"min-w-0 truncate font-sans text-background/80\">{p.path}</span>\n                  <span className=\"font-sans tabular-nums\">{p.live}</span>\n                </li>\n              ))}\n            </ul>\n          </div>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component"
    }
  ],
  "meta": {
    "iframeHeight": "650px"
  },
  "categories": [
    "analytics"
  ]
}