{"$schema":"https://ui.shadcn.com/schema/registry-item.json","name":"marketing-hero-sections-animated-text-hero","type":"registry:block","title":"Animated Text Hero","files":[{"path":"components/blocks/marketing/hero-sections/animated-text-hero.tsx","content":"import { useState, useEffect } from 'react';\n\nimport { Button } from '@/components/ui/button';\nimport { ArrowRight } from 'lucide-react';\n\nexport default function AnimatedTextHero() {\n  const [typedText, setTypedText] = useState('');\n  const [currentPhraseIndex, setCurrentPhraseIndex] = useState(0);\n  const [isDeleting, setIsDeleting] = useState(false);\n  const phrases = [\n    'innovative solutions',\n    'creative workflows',\n    'powerful analytics',\n    'seamless experiences',\n  ];\n\n  useEffect(() => {\n    const typingSpeed = isDeleting ? 50 : 100;\n    const pauseTime = 1500;\n\n    const currentPhrase = phrases[currentPhraseIndex]!;\n\n    // Handle typing, pausing, and deleting\n    const timer = setTimeout(() => {\n      if (!isDeleting && typedText === currentPhrase) {\n        // Finished typing, wait before starting to delete\n        setTimeout(() => setIsDeleting(true), pauseTime);\n        return;\n      } else if (isDeleting && typedText === '') {\n        // Finished deleting, move to next phrase\n        setIsDeleting(false);\n        setCurrentPhraseIndex((currentPhraseIndex + 1) % phrases.length);\n        return;\n      }\n\n      // Either typing or deleting\n      setTypedText((prev) => {\n        if (isDeleting) {\n          return prev.substring(0, prev.length - 1);\n        } else {\n          return currentPhrase.substring(0, prev.length + 1);\n        }\n      });\n    }, typingSpeed);\n\n    return () => clearTimeout(timer);\n  }, [typedText, currentPhraseIndex, isDeleting, phrases]);\n\n  return (\n    <div className=\"bg-background relative overflow-hidden\">\n      <div className=\"via-foreground/10 absolute top-0 right-0 left-0 h-[1px] bg-gradient-to-r from-transparent to-transparent\"></div>\n\n      <div className=\"container mx-auto px-4 py-24 md:px-6 md:py-32 lg:py-40 2xl:max-w-[1400px]\">\n        <div className=\"mx-auto flex max-w-4xl flex-col items-center space-y-10 text-center\">\n          <div className=\"space-y-6\">\n            <h1 className=\"text-4xl font-bold tracking-tight sm:text-5xl md:text-6xl lg:text-7xl\">\n              Empower your team with{' '}\n              <span className=\"relative inline-flex overflow-hidden\">\n                <span className=\"text-primary\">{typedText}</span>\n                <span className=\"bg-primary absolute right-0 h-full w-[2px] animate-pulse\"></span>\n              </span>\n            </h1>\n            <p className=\"text-muted-foreground dark:text-muted-foreground/90 mx-auto max-w-[700px] md:text-xl\">\n              Our platform helps teams work smarter, not harder. Streamline your\n              workflow, boost productivity, and deliver exceptional results.\n            </p>\n          </div>\n\n          <div className=\"mx-auto flex w-full max-w-md flex-col gap-4 sm:flex-row\">\n            <Button size=\"lg\" className=\"w-full\" asChild>\n              <a href=\"#\">\n                Get Started\n                <ArrowRight className=\"ml-2 h-4 w-4\" />\n              </a>\n            </Button>\n            <Button\n              size=\"lg\"\n              variant=\"outline\"\n              className=\"w-full dark:border-gray-700\"\n              asChild\n            >\n              <a href=\"#\">Book a Demo</a>\n            </Button>\n          </div>\n\n          <div className=\"grid w-full max-w-3xl grid-cols-2 gap-8 pt-12 md:grid-cols-4\">\n            <div className=\"flex flex-col items-center space-y-2\">\n              <div className=\"text-foreground text-3xl font-bold\">10k+</div>\n              <div className=\"text-muted-foreground text-sm\">Active Users</div>\n            </div>\n            <div className=\"flex flex-col items-center space-y-2\">\n              <div className=\"text-foreground text-3xl font-bold\">200+</div>\n              <div className=\"text-muted-foreground text-sm\">\n                Enterprise Clients\n              </div>\n            </div>\n            <div className=\"flex flex-col items-center space-y-2\">\n              <div className=\"text-foreground text-3xl font-bold\">99.9%</div>\n              <div className=\"text-muted-foreground text-sm\">Uptime</div>\n            </div>\n            <div className=\"flex flex-col items-center space-y-2\">\n              <div className=\"text-foreground text-3xl font-bold\">24/7</div>\n              <div className=\"text-muted-foreground text-sm\">Support</div>\n            </div>\n          </div>\n        </div>\n      </div>\n\n      <div className=\"via-foreground/10 absolute right-0 bottom-0 left-0 h-[1px] bg-gradient-to-r from-transparent to-transparent\"></div>\n    </div>\n  );\n}\n","type":"registry:component","target":"components/blocks/marketing/hero-sections/animated-text-hero.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 hero where the headline word swaps through phrases with smooth motion. Highlights several value points in one line at the top of a landing page.","dependencies":["class-variance-authority","lucide-react","radix-ui"]}