{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "cta-section-v7",
  "title": "CTA Section v7",
  "description": "Centered CTA with a Windows Terminal style window: PowerShell and WSL tabs, each showing the shadcn command that adds a uiception block, at its real prompt with a copy button, then a default and a secondary button.",
  "dependencies": [
    "lucide-react"
  ],
  "registryDependencies": [
    "button"
  ],
  "files": [
    {
      "path": "registry/new-york/blocks/cta-section-v7/page.tsx",
      "content": "import CtaSectionV7 from \"./components/cta-section-v7\"\n\nexport default function Page() {\n  return <CtaSectionV7 />\n}\n",
      "type": "registry:page",
      "target": "app/cta-section-v7/page.tsx"
    },
    {
      "path": "registry/new-york/blocks/cta-section-v7/components/cta-section-v7.tsx",
      "content": "import Link from \"next/link\"\n\nimport { Button } from \"@/components/ui/button\"\n\nimport WindowsTerminal from \"./windows-terminal\"\nimport { ctaSectionV7Content } from \"../lib/config\"\n\nexport default function CtaSectionV7() {\n  const { heading, description, primaryCta, secondaryCta } = ctaSectionV7Content\n\n  return (\n    <section className=\"py-16 md:py-24\">\n      <div className=\"mx-auto max-w-6xl px-4\">\n        <div className=\"mx-auto flex max-w-2xl flex-col items-center gap-5 text-center\">\n          <h2 className=\"text-3xl leading-[1.05] font-medium tracking-[-0.035em] text-balance text-foreground sm:text-4xl lg:text-5xl\">\n            {heading}\n          </h2>\n          <p className=\"max-w-xl text-base leading-relaxed text-pretty text-muted-foreground md:text-lg\">\n            {description}\n          </p>\n        </div>\n\n        <WindowsTerminal className=\"mx-auto mt-10 max-w-2xl md:mt-12\" />\n\n        <div className=\"mt-8 flex flex-wrap items-center justify-center gap-3\">\n          <Button size=\"lg\" variant=\"default\" asChild className=\"rounded-full\">\n            <Link href={primaryCta.href}>{primaryCta.label}</Link>\n          </Button>\n          <Button size=\"lg\" variant=\"secondary\" asChild className=\"rounded-full\">\n            <Link href={secondaryCta.href}>{secondaryCta.label}</Link>\n          </Button>\n        </div>\n      </div>\n    </section>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/cta-section-v7/components/cta-section-v7.tsx"
    },
    {
      "path": "registry/new-york/blocks/cta-section-v7/components/windows-terminal.tsx",
      "content": "\"use client\"\n\nimport { useEffect, useRef, useState, type KeyboardEvent } from \"react\"\nimport { Check, Copy } from \"lucide-react\"\n\nimport { cn } from \"@/lib/utils\"\n\nimport { commandText, sessions, type Segment, type Tone } from \"../lib/commands\"\n\nimport \"../styles/cta-section-v7.css\"\n\nconst toneClass: Record<Tone, string> = {\n  fg: \"text-(--wt-fg)\",\n  cyan: \"text-(--wt-cyan)\",\n  \"bright-yellow\": \"text-(--wt-bright-yellow)\",\n}\n\nfunction Segments({ segments }: { segments: Segment[] }) {\n  return segments.map((segment, i) => (\n    <span key={i} className={toneClass[segment.tone ?? \"fg\"]}>\n      {segment.text}\n    </span>\n  ))\n}\n\nexport default function WindowsTerminal({ className }: { className?: string }) {\n  const [activeId, setActiveId] = useState(sessions[0].id)\n  const [copied, setCopied] = useState(false)\n  const tabRefs = useRef<(HTMLButtonElement | null)[]>([])\n  const active = sessions.find((session) => session.id === activeId) ?? sessions[0]\n\n  const selectTab = (index: number) => {\n    setActiveId(sessions[index].id)\n    setCopied(false)\n  }\n\n  const onTabKeyDown = (event: KeyboardEvent<HTMLButtonElement>, index: number) => {\n    const last = sessions.length - 1\n    let next: number\n    switch (event.key) {\n      case \"ArrowRight\":\n        next = index === last ? 0 : index + 1\n        break\n      case \"ArrowLeft\":\n        next = index === 0 ? last : index - 1\n        break\n      case \"Home\":\n        next = 0\n        break\n      case \"End\":\n        next = last\n        break\n      default:\n        return\n    }\n    event.preventDefault()\n    selectTab(next)\n    tabRefs.current[next]?.focus()\n  }\n\n  useEffect(() => {\n    if (!copied) return\n    const timeout = setTimeout(() => setCopied(false), 2000)\n    return () => clearTimeout(timeout)\n  }, [copied])\n\n  const copy = async () => {\n    try {\n      await navigator.clipboard.writeText(commandText(active))\n      setCopied(true)\n    } catch {\n      // Clipboard can be blocked (insecure context, permissions); nothing to do.\n    }\n  }\n\n  return (\n    <div\n      className={cn(\n        \"wt-window w-full min-w-0 overflow-hidden rounded-lg border border-(--wt-border) bg-(--wt-tabrow-bg)\",\n        className\n      )}\n    >\n      {/* Tab row, Windows Terminal style */}\n      <div className=\"wt-ui flex h-10 items-stretch select-none\">\n        <div\n          role=\"tablist\"\n          aria-label=\"Install command\"\n          className=\"flex min-w-0 flex-1 items-end pl-2\"\n        >\n          {sessions.map((session, i) => {\n            const selected = session.id === activeId\n            const nextSelected = sessions[i + 1]?.id === activeId\n\n            return (\n              <button\n                key={session.id}\n                ref={(el) => {\n                  tabRefs.current[i] = el\n                }}\n                type=\"button\"\n                role=\"tab\"\n                id={`wt-tab-${session.id}`}\n                aria-selected={selected}\n                aria-controls={`wt-panel-${session.id}`}\n                tabIndex={selected ? 0 : -1}\n                onClick={() => selectTab(i)}\n                onKeyDown={(event) => onTabKeyDown(event, i)}\n                className={cn(\n                  \"relative flex h-8 items-center rounded-t-lg px-4 text-xs\",\n                  selected\n                    ? \"wt-tab-selected z-10 bg-(--wt-term-bg) text-(--wt-tab-fg-selected)\"\n                    : \"text-(--wt-tab-fg) hover:bg-(--wt-tab-hover)\"\n                )}\n              >\n                {session.title}\n                {/* Separator between two unselected tabs */}\n                {!selected && !nextSelected && i < sessions.length - 1 ? (\n                  <span className=\"absolute top-2 right-0 h-4 w-px bg-(--wt-tab-sep)\" />\n                ) : null}\n              </button>\n            )\n          })}\n        </div>\n      </div>\n\n      {/* Terminal buffer: one prompt with the install command */}\n      <div\n        role=\"tabpanel\"\n        id={`wt-panel-${active.id}`}\n        aria-labelledby={`wt-tab-${active.id}`}\n        className=\"flex items-center gap-2 bg-(--wt-term-bg) py-3 pr-2 pl-3\"\n      >\n        <code className=\"wt-mono min-w-0 flex-1 overflow-x-auto text-[13px] leading-tight whitespace-nowrap text-(--wt-fg) [scrollbar-width:none]\">\n          <span className=\"select-none\">\n            {active.prompt}{\" \"}\n          </span>\n          <Segments segments={active.command} />\n        </code>\n        <button\n          type=\"button\"\n          onClick={copy}\n          aria-label={copied ? \"Copied\" : \"Copy command\"}\n          className=\"flex size-7 shrink-0 items-center justify-center rounded-md text-(--wt-bright-black) transition-colors hover:bg-(--wt-copy-hover) hover:text-(--wt-fg)\"\n        >\n          {copied ? <Check className=\"size-3.5\" /> : <Copy className=\"size-3.5\" />}\n        </button>\n        <span role=\"status\" className=\"sr-only\">\n          {copied ? \"Command copied\" : \"\"}\n        </span>\n      </div>\n    </div>\n  )\n}\n",
      "type": "registry:component",
      "target": "app/cta-section-v7/components/windows-terminal.tsx"
    },
    {
      "path": "registry/new-york/blocks/cta-section-v7/lib/config.ts",
      "content": "export const ctaSectionV7Content = {\n  heading: \"Bring uiception to your project\",\n  description: \"Install now and start building with uiception blocks in your Next.js app.\",\n  primaryCta: { label: \"Try now\", href: \"#\" },\n  secondaryCta: { label: \"Read docs\", href: \"#\" },\n} as const\n",
      "type": "registry:lib",
      "target": "app/cta-section-v7/lib/config.ts"
    },
    {
      "path": "registry/new-york/blocks/cta-section-v7/lib/commands.ts",
      "content": "/** Color scheme slots used by the commands (see styles/cta-section-v7.css). */\nexport type Tone = \"fg\" | \"cyan\" | \"bright-yellow\"\n\nexport type Segment = { text: string; tone?: Tone }\n\nexport type Session = {\n  id: string\n  /** Tab label. */\n  title: string\n  /** Shell prompt; shown but not copied. */\n  prompt: string\n  /** The install command, split into highlighted tokens. */\n  command: Segment[]\n}\n\nexport const sessions: Session[] = [\n  {\n    id: \"powershell\",\n    title: \"PowerShell\",\n    prompt: \">\",\n    // PSReadLine defaults: commands bright yellow, strings dark cyan. The\n    // registry name is quoted because PowerShell reads a leading @ as splatting.\n    command: [\n      { text: \"npx\", tone: \"bright-yellow\" },\n      { text: \" shadcn@latest add \" },\n      { text: \"\\\"@uiception/cta-section-v7\\\"\", tone: \"cyan\" },\n    ],\n  },\n  {\n    id: \"wsl\",\n    title: \"WSL\",\n    prompt: \"$\",\n    // Same token colors as the PowerShell tab, the way a highlighting shell\n    // (zsh-syntax-highlighting, fish) would color it. No quotes needed in bash.\n    command: [\n      { text: \"pnpm\", tone: \"bright-yellow\" },\n      { text: \" dlx shadcn@latest add \" },\n      { text: \"@uiception/cta-section-v7\", tone: \"cyan\" },\n    ],\n  },\n]\n\nexport const commandText = (session: Session) =>\n  session.command.map((segment) => segment.text).join(\"\")\n",
      "type": "registry:lib",
      "target": "app/cta-section-v7/lib/commands.ts"
    },
    {
      "path": "registry/new-york/blocks/cta-section-v7/styles/cta-section-v7.css",
      "content": "/* cta-section-v7: Windows Terminal chrome tokens and color schemes */\n\n.wt-window {\n  /* Windows 11 light chrome (Mica) */\n  --wt-tabrow-bg: #eeeeee;\n  --wt-border: rgb(0 0 0 / 0.14);\n  --wt-tab-fg: #1a1a1a;\n  --wt-tab-hover: rgb(0 0 0 / 0.05);\n  --wt-tab-sep: rgb(0 0 0 / 0.16);\n\n  /* Selected tab takes the terminal background (WT 1.16+ default theme) */\n  --wt-tab-fg-selected: #1a1a1a;\n  --wt-copy-hover: rgb(0 0 0 / 0.06);\n\n  /* One Half Light on a white background; the bright slots use the\n     scheme's normal colors so they stay readable on white */\n  --wt-term-bg: #ffffff;\n  --wt-fg: #383a42;\n  --wt-cyan: #0997b3;\n  --wt-bright-black: #a0a1a7;\n  --wt-bright-yellow: #c18301;\n}\n\n.dark .wt-window {\n  /* Windows 11 dark chrome (Mica) */\n  --wt-tabrow-bg: #202020;\n  --wt-border: rgb(255 255 255 / 0.1);\n  --wt-tab-fg: #c5c5c5;\n  --wt-tab-hover: rgb(255 255 255 / 0.05);\n  --wt-tab-sep: rgb(255 255 255 / 0.14);\n\n  --wt-tab-fg-selected: #f2f2f2;\n  --wt-copy-hover: rgb(255 255 255 / 0.08);\n\n  /* Campbell, the Windows Terminal default */\n  --wt-term-bg: #0c0c0c;\n  --wt-fg: #cccccc;\n  --wt-cyan: #3a96dd;\n  --wt-bright-black: #767676;\n  --wt-bright-yellow: #f9f1a5;\n}\n\n.wt-ui {\n  font-family: \"Segoe UI Variable Text\", \"Segoe UI\", system-ui, sans-serif;\n}\n\n.wt-mono {\n  font-family: \"Cascadia Mono\", \"Cascadia Code\", Consolas, \"Courier New\", ui-monospace,\n    monospace;\n}\n\n/* WinUI TabView: the selected tab flares into the content below it */\n.wt-tab-selected::before,\n.wt-tab-selected::after {\n  content: \"\";\n  position: absolute;\n  bottom: 0;\n  width: 8px;\n  height: 8px;\n  pointer-events: none;\n}\n\n.wt-tab-selected::before {\n  left: -8px;\n  background: radial-gradient(circle at 0 0, transparent 7.5px, var(--wt-term-bg) 8px);\n}\n\n.wt-tab-selected::after {\n  right: -8px;\n  background: radial-gradient(circle at 100% 0, transparent 7.5px, var(--wt-term-bg) 8px);\n}\n",
      "type": "registry:file",
      "target": "app/cta-section-v7/styles/cta-section-v7.css"
    }
  ],
  "type": "registry:block"
}