{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-hero-forms-split-screen-multi-step","type":"registry:block","title":"Split Screen Multi Step","files":[{"path":"components/blocks/marketing/hero-forms/split-screen-multi-step.tsx","content":"import { useState } from 'react';\nimport { Button } from '@/components/ui/button';\nimport { Input } from '@/components/ui/input';\nimport { Label } from '@/components/ui/label';\nimport { Checkbox } from '@/components/ui/checkbox';\nimport { ArrowLeftIcon, ArrowRightIcon, CheckCircle2Icon } from 'lucide-react';\n\nexport default function HeroFormSplitScreenMultiStep() {\n  const [step, setStep] = useState(1);\n  const totalSteps = 3;\n\n  const nextStep = () => {\n    if (step < totalSteps) setStep(step + 1);\n  };\n\n  const prevStep = () => {\n    if (step > 1) setStep(step - 1);\n  };\n\n  return (\n    <>\n      {/* Hero */}\n      <div className=\"bg-background relative grid min-h-[600px] overflow-hidden md:min-h-screen md:grid-cols-2\">\n        {/* Left Image */}\n        <div className=\"relative hidden md:block\">\n          <img\n            src=\"https://images.unsplash.com/photo-1519389950473-47ba0277781c?q=80&w=2070&auto=format&fit=crop\"\n            alt=\"Workspace with laptop and notebook\"\n            className=\"object-cover\"\n          />\n          <div className=\"bg-primary/20 absolute inset-0 flex items-center justify-center p-10 backdrop-blur-sm\">\n            <div className=\"bg-background/80 max-w-md rounded-lg p-8 shadow-lg backdrop-blur-md\">\n              <h2 className=\"mb-4 text-2xl font-bold\">\n                Why join our platform?\n              </h2>\n              <ul className=\"space-y-3\">\n                <li className=\"flex items-start\">\n                  <CheckCircle2Icon className=\"text-primary mt-0.5 mr-2 h-5 w-5 flex-shrink-0\" />\n                  <span>Access to exclusive resources and templates</span>\n                </li>\n                <li className=\"flex items-start\">\n                  <CheckCircle2Icon className=\"text-primary mt-0.5 mr-2 h-5 w-5 flex-shrink-0\" />\n                  <span>Join a community of like-minded professionals</span>\n                </li>\n                <li className=\"flex items-start\">\n                  <CheckCircle2Icon className=\"text-primary mt-0.5 mr-2 h-5 w-5 flex-shrink-0\" />\n                  <span>Weekly live workshops and training sessions</span>\n                </li>\n                <li className=\"flex items-start\">\n                  <CheckCircle2Icon className=\"text-primary mt-0.5 mr-2 h-5 w-5 flex-shrink-0\" />\n                  <span>Direct access to industry experts and mentors</span>\n                </li>\n              </ul>\n            </div>\n          </div>\n        </div>\n\n        {/* Right Form */}\n        <div className=\"flex items-center justify-center p-8\">\n          <div className=\"w-full max-w-md\">\n            <h1 className=\"mb-2 scroll-m-20 text-3xl font-bold tracking-tight md:text-4xl\">\n              Create your account\n            </h1>\n            <p className=\"text-muted-foreground mb-8\">\n              Complete the steps below to get started.\n            </p>\n\n            {/* Step Counter */}\n            <div className=\"mb-8 flex items-center\">\n              <div className=\"bg-muted h-1 flex-1 overflow-hidden rounded-full\">\n                <div\n                  className=\"bg-primary h-full transition-all duration-300\"\n                  style={{ width: `${(step / totalSteps) * 100}%` }}\n                ></div>\n              </div>\n              <span className=\"ml-4 text-sm font-medium\">\n                Step {step} of {totalSteps}\n              </span>\n            </div>\n\n            {/* Step 1 - Basic Info */}\n            {step === 1 && (\n              <div className=\"space-y-4\">\n                <h2 className=\"mb-4 text-xl font-semibold\">\n                  Basic Information\n                </h2>\n                <div>\n                  <Label htmlFor=\"name\" className=\"mb-2\">\n                    Full name\n                  </Label>\n                  <Input id=\"name\" placeholder=\"John Doe\" />\n                </div>\n                <div>\n                  <Label htmlFor=\"email\" className=\"mb-2\">\n                    Email address\n                  </Label>\n                  <Input\n                    id=\"email\"\n                    type=\"email\"\n                    placeholder=\"john@example.com\"\n                  />\n                </div>\n                <div>\n                  <Label htmlFor=\"password\" className=\"mb-2\">\n                    Create password\n                  </Label>\n                  <Input id=\"password\" type=\"password\" placeholder=\"••••••••\" />\n                </div>\n                <div className=\"pt-4\">\n                  <Button className=\"w-full\" onClick={nextStep}>\n                    Continue <ArrowRightIcon className=\"ml-2 h-4 w-4\" />\n                  </Button>\n                </div>\n              </div>\n            )}\n\n            {/* Step 2 - Profile */}\n            {step === 2 && (\n              <div className=\"space-y-4\">\n                <h2 className=\"mb-4 text-xl font-semibold\">Profile Details</h2>\n                <div>\n                  <Label htmlFor=\"profession\" className=\"mb-2\">\n                    Profession\n                  </Label>\n                  <Input id=\"profession\" placeholder=\"Software Developer\" />\n                </div>\n                <div>\n                  <Label htmlFor=\"company\" className=\"mb-2\">\n                    Company (optional)\n                  </Label>\n                  <Input id=\"company\" placeholder=\"Acme Inc.\" />\n                </div>\n                <div>\n                  <Label htmlFor=\"experience\" className=\"mb-2\">\n                    Years of experience\n                  </Label>\n                  <Input id=\"experience\" type=\"number\" placeholder=\"5\" />\n                </div>\n                <div className=\"flex gap-3 pt-4\">\n                  <Button variant=\"outline\" onClick={prevStep}>\n                    <ArrowLeftIcon className=\"mr-2 h-4 w-4\" /> Back\n                  </Button>\n                  <Button className=\"flex-1\" onClick={nextStep}>\n                    Continue <ArrowRightIcon className=\"ml-2 h-4 w-4\" />\n                  </Button>\n                </div>\n              </div>\n            )}\n\n            {/* Step 3 - Preferences */}\n            {step === 3 && (\n              <div className=\"space-y-4\">\n                <h2 className=\"mb-4 text-xl font-semibold\">Preferences</h2>\n                <p className=\"text-muted-foreground mb-4 text-sm\">\n                  Select the topics you&apos;re interested in:\n                </p>\n\n                <div className=\"space-y-3\">\n                  <div className=\"flex items-center space-x-2\">\n                    <Checkbox id=\"programming\" />\n                    <Label htmlFor=\"programming\" className=\"cursor-pointer\">\n                      Programming & Development\n                    </Label>\n                  </div>\n                  <div className=\"flex items-center space-x-2\">\n                    <Checkbox id=\"design\" />\n                    <Label htmlFor=\"design\" className=\"cursor-pointer\">\n                      UI/UX Design\n                    </Label>\n                  </div>\n                  <div className=\"flex items-center space-x-2\">\n                    <Checkbox id=\"marketing\" />\n                    <Label htmlFor=\"marketing\" className=\"cursor-pointer\">\n                      Digital Marketing\n                    </Label>\n                  </div>\n                  <div className=\"flex items-center space-x-2\">\n                    <Checkbox id=\"business\" />\n                    <Label htmlFor=\"business\" className=\"cursor-pointer\">\n                      Business & Entrepreneurship\n                    </Label>\n                  </div>\n                  <div className=\"flex items-center space-x-2\">\n                    <Checkbox id=\"data\" />\n                    <Label htmlFor=\"data\" className=\"cursor-pointer\">\n                      Data Science & Analytics\n                    </Label>\n                  </div>\n                </div>\n\n                <div className=\"flex gap-3 pt-8\">\n                  <Button variant=\"outline\" onClick={prevStep}>\n                    <ArrowLeftIcon className=\"mr-2 h-4 w-4\" /> Back\n                  </Button>\n                  <Button className=\"flex-1\">Complete Setup</Button>\n                </div>\n              </div>\n            )}\n\n            <p className=\"text-muted-foreground mt-8 text-center text-xs\">\n              By creating an account, you agree to our{' '}\n              <a href=\"#\" className=\"hover:text-foreground underline\">\n                Terms of Service\n              </a>{' '}\n              and{' '}\n              <a href=\"#\" className=\"hover:text-foreground underline\">\n                Privacy Policy\n              </a>\n            </p>\n          </div>\n        </div>\n      </div>\n      {/* End Hero */}\n    </>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/hero-forms/split-screen-multi-step.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"},{"path":"components/ui/input.tsx","content":"import * as React from \"react\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Input({ className, type, ...props }: React.ComponentProps<\"input\">) {\n  return (\n    <input\n      type={type}\n      data-slot=\"input\"\n      className={cn(\n        \"h-9 w-full min-w-0 rounded-md border border-input bg-transparent px-2.5 py-1 text-base shadow-xs transition-[color,box-shadow] outline-none file:inline-flex file:h-7 file:border-0 file:bg-transparent file:text-sm file:font-medium file:text-foreground placeholder:text-muted-foreground focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:pointer-events-none disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 md:text-sm dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Input }\n","type":"registry:ui","target":"components/ui/input.tsx"},{"path":"components/ui/label.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Label as LabelPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\n\nfunction Label({\n  className,\n  ...props\n}: React.ComponentProps<typeof LabelPrimitive.Root>) {\n  return (\n    <LabelPrimitive.Root\n      data-slot=\"label\"\n      className={cn(\n        \"flex items-center gap-2 text-sm leading-none font-medium select-none group-data-[disabled=true]:pointer-events-none group-data-[disabled=true]:opacity-50 peer-disabled:cursor-not-allowed peer-disabled:opacity-50\",\n        className\n      )}\n      {...props}\n    />\n  )\n}\n\nexport { Label }\n","type":"registry:ui","target":"components/ui/label.tsx"},{"path":"components/ui/checkbox.tsx","content":"\"use client\"\n\nimport * as React from \"react\"\nimport { Checkbox as CheckboxPrimitive } from \"radix-ui\"\n\nimport { cn } from \"@/lib/utils\"\nimport { CheckIcon } from \"lucide-react\"\n\nfunction Checkbox({\n  className,\n  ...props\n}: React.ComponentProps<typeof CheckboxPrimitive.Root>) {\n  return (\n    <CheckboxPrimitive.Root\n      data-slot=\"checkbox\"\n      className={cn(\n        \"peer relative flex size-4 shrink-0 items-center justify-center rounded-[4px] border border-input shadow-xs transition-shadow outline-none group-has-disabled/field:opacity-50 after:absolute after:-inset-x-3 after:-inset-y-2 focus-visible:border-ring focus-visible:ring-3 focus-visible:ring-ring/50 disabled:cursor-not-allowed disabled:opacity-50 aria-invalid:border-destructive aria-invalid:ring-3 aria-invalid:ring-destructive/20 aria-invalid:aria-checked:border-primary dark:bg-input/30 dark:aria-invalid:border-destructive/50 dark:aria-invalid:ring-destructive/40 data-checked:border-primary data-checked:bg-primary data-checked:text-primary-foreground dark:data-checked:bg-primary\",\n        className\n      )}\n      {...props}\n    >\n      <CheckboxPrimitive.Indicator\n        data-slot=\"checkbox-indicator\"\n        className=\"grid place-content-center text-current transition-none [&>svg]:size-3.5\"\n      >\n        <CheckIcon\n        />\n      </CheckboxPrimitive.Indicator>\n    </CheckboxPrimitive.Root>\n  )\n}\n\nexport { Checkbox }\n","type":"registry:ui","target":"components/ui/checkbox.tsx"}],"description":"A split screen hero with a multi step form and a progress indicator. Guides visitors through a longer signup without overwhelming them at once.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}