{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-feature-sections-terminal","type":"registry:block","title":"Terminal","files":[{"path":"components/blocks/marketing/feature-sections/terminal.tsx","content":"import { useState } from 'react';\nimport { Button } from '@/components/ui/button';\nimport { cn } from '@/lib/utils';\n\nconst features = [\n  {\n    title: 'Quick Start',\n    description: 'Get started in seconds with our CLI tool.',\n    command: 'npx create-app@latest my-app',\n    output: [\n      'Creating a new app...',\n      'Installing dependencies...',\n      'Success! Created my-app at /path/to/my-app',\n      '',\n      'Get started with:',\n      '  cd my-app',\n      '  npm run dev',\n    ],\n  },\n  {\n    title: 'Database Setup',\n    description: 'Set up your database with a single command.',\n    command: 'npm run db:setup',\n    output: [\n      'Setting up database...',\n      'Creating tables...',\n      'Running migrations...',\n      'Seeding initial data...',\n      '',\n      'Database setup complete!',\n    ],\n  },\n  {\n    title: 'Deploy',\n    description: 'Deploy your app to production instantly.',\n    command: 'npm run deploy',\n    output: [\n      'Building application...',\n      'Running tests...',\n      'Optimizing assets...',\n      'Deploying to production...',\n      '',\n      '🚀 Deployed successfully!',\n      '  URL: https://your-app.com',\n    ],\n  },\n];\n\nfunction Terminal({ command, output }: { command: string; output: string[] }) {\n  return (\n    <div className=\"bg-foreground overflow-hidden rounded-lg\">\n      <div className=\"bg-accent-foreground flex items-center gap-2 px-4 py-3\">\n        <div className=\"h-3 w-3 rounded-full bg-red-500\" />\n        <div className=\"h-3 w-3 rounded-full bg-yellow-500\" />\n        <div className=\"h-3 w-3 rounded-full bg-green-500\" />\n      </div>\n      <div className=\"p-4 font-mono text-sm\">\n        <div className=\"text-muted-foreground flex items-center gap-2\">\n          <span>$</span>\n          <span className=\"text-background\">{command}</span>\n        </div>\n        <div className=\"mt-4 space-y-1\">\n          {output.map((line, i) => (\n            <div key={i} className={line ? 'text-muted/90' : 'h-4'}>\n              {line}\n            </div>\n          ))}\n        </div>\n      </div>\n    </div>\n  );\n}\n\nexport default function FeatureSectionTerminal() {\n  const [activeFeature, setActiveFeature] = useState(0);\n\n  return (\n    <section className=\"container mx-auto space-y-8 px-4 py-24 md:px-6 2xl:max-w-[1400px]\">\n      <div className=\"space-y-4 text-center\">\n        <h2 className=\"text-3xl font-bold tracking-tighter sm:text-4xl md:text-5xl\">\n          Simple commands, powerful results\n        </h2>\n        <p className=\"text-muted-foreground mx-auto max-w-[700px] md:text-xl/relaxed lg:text-base/relaxed xl:text-xl/relaxed\">\n          Build and deploy your applications with just a few commands.\n        </p>\n      </div>\n\n      <div className=\"grid items-start gap-8 lg:grid-cols-[1fr,2fr]\">\n        <div className=\"flex flex-col gap-4\">\n          {features.map((feature, index) => (\n            <Button\n              key={feature.title}\n              variant={activeFeature === index ? 'default' : 'ghost'}\n              className=\"h-auto justify-start p-4 whitespace-normal\"\n              onClick={() => setActiveFeature(index)}\n            >\n              <div className=\"text-left\">\n                <h3 className=\"font-semibold\">{feature.title}</h3>\n                <p\n                  className={cn(\n                    'text-muted-foreground mt-1 text-sm',\n                    activeFeature === index && 'text-muted/90'\n                  )}\n                >\n                  {feature.description}\n                </p>\n              </div>\n            </Button>\n          ))}\n        </div>\n\n        <div className=\"relative\">\n          <Terminal\n            command={features[activeFeature]!.command}\n            output={features[activeFeature]!.output}\n          />\n        </div>\n      </div>\n    </section>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/feature-sections/terminal.tsx"},{"path":"components/ui/button.tsx","content":"import * as React from \"react\"\nimport { cva, type VariantProps } from \"class-variance-authority\"\nimport { Slot } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nconst buttonVariants = cva(\n  \"group/button inline-flex shrink-0 items-center justify-center rounded-md border border-transparent bg-clip-padding text-sm font-medium whitespace-nowrap transition-all outline-none select-none focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 active:not-aria-[haspopup]:translate-y-px disabled:pointer-events-none disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 [&_svg]:pointer-events-none [&_svg]:shrink-0 [&_svg:not([class*='size-'])]:size-4\",\n  {\n    variants: {\n      variant: {\n        default: \"bg-primary text-primary-foreground hover:bg-primary/80\",\n        outline:\n          \"border-border bg-background shadow-xs hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:border-input dark:bg-input/30 dark:hover:bg-input/50\",\n        secondary:\n          \"bg-secondary text-secondary-foreground hover:bg-secondary/80 aria-expanded:bg-secondary aria-expanded:text-secondary-foreground\",\n        ghost:\n          \"hover:bg-muted hover:text-foreground aria-expanded:bg-muted aria-expanded:text-foreground dark:hover:bg-muted/50\",\n        destructive:\n          \"bg-destructive/10 text-destructive hover:bg-destructive/20 focus-visible:border-destructive/40 focus-visible:ring-destructive/20 dark:bg-destructive/20 dark:hover:bg-destructive/30 dark:focus-visible:ring-destructive/40\",\n        link: \"text-primary underline-offset-4 hover:underline\",\n      },\n      size: {\n        default:\n          \"h-9 gap-1.5 px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        xs: \"h-6 gap-1 rounded-[min(var(--radius-md),8px)] px-2 text-xs in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5 [&_svg:not([class*='size-'])]:size-3\",\n        sm: \"h-8 gap-1 rounded-[min(var(--radius-md),10px)] px-2.5 in-data-[slot=button-group]:rounded-md has-data-[icon=inline-end]:pr-1.5 has-data-[icon=inline-start]:pl-1.5\",\n        lg: \"h-10 gap-1.5 px-2.5 has-data-[icon=inline-end]:pr-2 has-data-[icon=inline-start]:pl-2\",\n        icon: \"size-9\",\n        \"icon-xs\":\n          \"size-6 rounded-[min(var(--radius-md),8px)] in-data-[slot=button-group]:rounded-md [&_svg:not([class*='size-'])]:size-3\",\n        \"icon-sm\":\n          \"size-8 rounded-[min(var(--radius-md),10px)] in-data-[slot=button-group]:rounded-md\",\n        \"icon-lg\": \"size-10\",\n      },\n    },\n    defaultVariants: {\n      variant: \"default\",\n      size: \"default\",\n    },\n  }\n)\n\nfunction Button({\n  className,\n  variant = \"default\",\n  size = \"default\",\n  asChild = false,\n  ...props\n}: React.ComponentProps<\"button\"> &\n  VariantProps<typeof buttonVariants> & {\n    asChild?: boolean\n  }) {\n  const Comp = asChild ? Slot.Root : \"button\"\n\n  return (\n    <Comp\n      data-slot=\"button\"\n      data-variant={variant}\n      data-size={size}\n      className={cn(buttonVariants({ variant, size, className }))}\n      {...props}\n    />\n  )\n}\n\nexport { Button, buttonVariants }\n","type":"registry:ui","target":"components/ui/button.tsx"}],"description":"A feature section featuring a mock terminal with typed commands and output. Built for developer tools where showing real CLI usage sells the value fast.","dependencies":["class-variance-authority","radix-ui"]}