{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "noise-gate-focus-demo",
  "type": "registry:block",
  "title": "Noise Gate: Focus Section",
  "description": "Before and After Section example, Focus Section: A whole landing section: heading, subhead, and a calmer, slower gate with a call to action pinned under the counter. The calm panel is ink in light mode and turns white in dark mode. A take on the before and after (before after). Fits features sections.",
  "author": "KeyframeUI <https://keyframeui.com>",
  "categories": [
    "features",
    "before-and-after",
    "section",
    "comparison",
    "counter",
    "marketing"
  ],
  "docs": "Live preview, examples and props: https://keyframeui.com/components/noise-gate#noise-gate-focus-demo",
  "registryDependencies": [
    "https://keyframeui.com/r/noise-gate.json"
  ],
  "files": [
    {
      "path": "components/noise-gate-focus-demo.tsx",
      "type": "registry:component",
      "content": "import { NoiseGate, type NoiseGateItem } from \"@/components/ui/noise-gate\";\n\nfunction Icon({ d }: { d: string }) {\n  return (\n    <svg viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.5} strokeLinecap=\"round\" strokeLinejoin=\"round\">\n      <path d={d} />\n    </svg>\n  );\n}\n\nfunction Avatar({ initials, className }: { initials: string; className: string }) {\n  return (\n    <span className={`grid size-5 place-items-center rounded-full text-[9px] font-semibold text-white ${className}`}>\n      {initials}\n    </span>\n  );\n}\n\nconst hash = \"M6 2.5 4.5 13.5M11.5 2.5 10 13.5M2.5 6h11M2 10h11\";\nconst calendar = \"M2.5 4.5a1 1 0 0 1 1-1h9a1 1 0 0 1 1 1v8a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-8ZM2.5 7h11M5.5 2v2.5M10.5 2v2.5\";\nconst bell = \"M4 11V7a4 4 0 0 1 8 0v4l1 1.5H3L4 11ZM6.5 14h3\";\nconst mail = \"M2.5 4.5h11v7a1 1 0 0 1-1 1h-9a1 1 0 0 1-1-1v-7ZM2.5 4.5 8 9l5.5-4.5\";\n\nconst pings: NoiseGateItem[] = [\n  { icon: <Icon d={hash} />, title: \"@here standup moved to 9:15 (again)\", detail: \"#general · 214 people\" },\n  {\n    tag: \"DM\",\n    tone: \"warning\",\n    icon: <Avatar initials=\"PS\" className=\"bg-fuchsia-500\" />,\n    title: \"quick q, got 5 min?\",\n    detail: \"Priya · just now\",\n  },\n  {\n    tag: \"Conflict\",\n    tone: \"critical\",\n    icon: <Icon d={calendar} />,\n    title: \"3 meetings at 2:00 PM\",\n    detail: \"Thursday · you accepted all three\",\n  },\n  {\n    icon: <Avatar initials=\"SR\" className=\"bg-orange-500\" />,\n    title: \"“Can you hop on a call real quick?”\",\n    detail: \"Sam R. · huddle\",\n  },\n  { icon: <Icon d={bell} />, title: \"48 unread in #design-feedback\", detail: \"Since you looked away\" },\n  {\n    tag: \"Mention\",\n    tone: \"warning\",\n    repeat: 3,\n    title: \"You were mentioned in #launch\",\n    detail: \"Three threads, same question\",\n  },\n  { icon: <Icon d={mail} />, title: \"Re: Re: Fwd: Re: Q4 offsite\", detail: \"17 replies\" },\n  { tag: \"Reminder\", tone: \"critical\", title: \"Reply to Dana's thread\", detail: \"Snoozed 4 times\" },\n  { icon: <Icon d={calendar} />, title: \"This week is 86% meetings\", detail: \"Up from 71%\" },\n];\n\nexport function NoiseGateFocusDemo() {\n  return (\n    <section className=\"w-full max-w-5xl\">\n      <div className=\"mx-auto max-w-xl text-center\">\n        <h2 className=\"text-[clamp(2rem,5vw,3rem)] leading-[1.02] font-semibold tracking-[-0.04em] text-balance text-zinc-950 dark:text-zinc-50\">\n          Your attention, back.\n        </h2>\n        <p className=\"mx-auto mt-4 max-w-md text-base leading-relaxed text-pretty text-zinc-600 dark:text-zinc-400\">\n          Quietly holds pings, threads and invites until they matter, then hands you one calm digest.\n        </p>\n      </div>\n\n      <NoiseGate\n        className=\"mt-10\"\n        items={pings}\n        density={6}\n        duration={18}\n        noiseTitle={\n          <>\n            Getting work done with <span className=\"text-zinc-500 dark:text-zinc-400\">“do not disturb”</span>\n          </>\n        }\n        calmTitle=\"Focusing with Quietly\"\n        count={312}\n        countPrefix=\"Held back\"\n        countSuffix=\"pings today\"\n        calmClassName=\"bg-zinc-950 text-white dark:bg-zinc-50 dark:text-zinc-950\"\n        calmFooter={\n          <a\n            href=\"#early-access\"\n            className=\"inline-flex h-10 items-center gap-1.5 rounded-full bg-white px-5 text-sm font-medium text-zinc-950 transition-[transform,background-color] duration-150 ease-out hover:bg-zinc-200 focus-visible:outline-2 focus-visible:outline-offset-2 focus-visible:outline-white active:scale-[0.97] dark:bg-zinc-950 dark:text-white dark:hover:bg-zinc-800 dark:focus-visible:outline-zinc-950\"\n          >\n            Get early access\n            <svg aria-hidden viewBox=\"0 0 16 16\" fill=\"none\" stroke=\"currentColor\" strokeWidth={1.75} strokeLinecap=\"round\" strokeLinejoin=\"round\" className=\"size-4\">\n              <path d=\"M3.5 8h9M8.5 4l4 4-4 4\" />\n            </svg>\n          </a>\n        }\n      />\n    </section>\n  );\n}\n"
    }
  ]
}