{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-section-6",
  "title": "Hero Section 6",
  "description": "Solace UI hero section block variation 6.",
  "dependencies": [
    "motion"
  ],
  "files": [
    {
      "path": "src/registry/blocks/hero-section/six/index.tsx",
      "content": "\"use client\";\r\nimport React from \"react\";\r\nimport Image from \"next/image\";\r\nimport { cn } from \"@/lib/utils\";\r\nimport Link from \"next/link\";\r\nimport { motion, Variants } from \"motion/react\";\r\nimport { AnimatedGroup } from \"@/components/ui/animated-group\";\r\n\r\ninterface Iphone15ProProps extends React.SVGProps<SVGSVGElement> {\r\n  width?: string | number;\r\n  height?: string | number;\r\n  src?: string;\r\n  alt?: string;\r\n}\r\n\r\nconst Iphone15Pro: React.FC<Iphone15ProProps> = ({\r\n  width = \"100%\",\r\n  height = \"auto\",\r\n  src,\r\n  alt = \"iPhone screen content\",\r\n  className,\r\n  ...props\r\n}) => {\r\n  return (\r\n    <div className={cn(\"relative\", className)}>\r\n      <svg\r\n        width={width}\r\n        height={height}\r\n        viewBox=\"0 0 433 882\"\r\n        preserveAspectRatio=\"xMidYMid meet\"\r\n        fill=\"none\"\r\n        xmlns=\"http://www.w3.org/2000/svg\"\r\n        className=\"transition-all duration-500 ease-in-out\"\r\n        {...props}\r\n      >\r\n        {/* Outer frame */}\r\n        <path\r\n          d=\"M2 73C2 32.6832 34.6832 0 75 0H357C397.317 0 430 32.6832 430 73V809C430 849.317 397.317 882 357 882H75C34.6832 882 2 849.317 2 809V73Z\"\r\n          className=\"dark:fill-[#DADADA] fill-[#404040]\"\r\n        />\r\n        {/* Side buttons */}\r\n        <path\r\n          d=\"M0 171C0 170.448 0.447715 170 1 170H3V204H1C0.447715 204 0 203.552 0 203V171Z\"\r\n          className=\"dark:fill-[#DADADA] fill-[#404040]\"\r\n        />\r\n        <path\r\n          d=\"M1 234C1 233.448 1.44772 233 2 233H3.5V300H2C1.44772 300 1 299.552 1 299V234Z\"\r\n          className=\"dark:fill-[#DADADA] fill-[#404040]\"\r\n        />\r\n        <path\r\n          d=\"M1 319C1 318.448 1.44772 318 2 318H3.5V385H2C1.44772 385 1 384.552 1 384V319Z\"\r\n          className=\"dark:fill-[#DADADA] fill-[#404040]\"\r\n        />\r\n        <path\r\n          d=\"M430 279H432C432.552 279 433 279.448 433 280V384C433 384.552 432.552 385 432 385H430V279Z\"\r\n          className=\"dark:fill-[#DADADA] fill-[#404040]\"\r\n        />\r\n\r\n        {/* Inner body */}\r\n        <path\r\n          d=\"M6 74C6 35.3401 37.3401 4 76 4H356C394.66 4 426 35.3401 426 74V808C426 846.66 394.66 878 356 878H76C37.3401 878 6 846.66 6 808V74Z\"\r\n          className=\"fill-[#262626] dark:fill-black\" // Simplified dark mode fill\r\n        />\r\n\r\n        {/* Top speaker grille */}\r\n        <path\r\n          opacity=\"0.5\"\r\n          d=\"M174 5H258V5.5C258 6.60457 257.105 7.5 256 7.5H176C174.895 7.5 174 6.60457 174 5.5V5Z\"\r\n          className=\"dark:fill-[#DADADA] fill-[#404040]\"\r\n        />\r\n\r\n        {/* Screen area */}\r\n        <path\r\n          d=\"M21.25 75C21.25 44.2101 46.2101 19.25 77 19.25H355C385.79 19.25 410.75 44.2101 410.75 75V807C410.75 837.79 385.79 862.75 355 862.75H77C46.2101 862.75 21.25 837.79 21.25 807V75Z\"\r\n          className=\"fill-[#111] dark:fill-[#F5F5F5]\" // Screen background\r\n        />\r\n\r\n        {/* Screen Content Area */}\r\n        {src && (\r\n          <foreignObject\r\n            x=\"21.25\"\r\n            y=\"19.25\"\r\n            width=\"389.5\"\r\n            height=\"843.5\"\r\n            clipPath=\"url(#roundedCorners)\"\r\n          >\r\n            <div\r\n              style={{\r\n                width: \"100%\",\r\n                height: \"100%\",\r\n                borderRadius: \"55.75px\",\r\n                overflow: \"hidden\",\r\n                position: \"relative\",\r\n                backgroundColor: \"#111\",\r\n              }}\r\n              className=\"dark:bg-[#F5F5F5]\"\r\n            >\r\n              <Image\r\n                src={src}\r\n                alt={alt}\r\n                fill\r\n                style={{ objectFit: \"cover\" }}\r\n                sizes=\"(max-width: 768px) 80vw, (max-width: 1200px) 50vw, 33vw\"\r\n                priority\r\n                unoptimized\r\n              />\r\n            </div>\r\n          </foreignObject>\r\n        )}\r\n\r\n        {/* Notch area */}\r\n        <path\r\n          d=\"M154 48.5C154 38.2827 162.283 30 172.5 30H259.5C269.717 30 278 38.2827 278 48.5C278 58.7173 269.717 67 259.5 67H172.5C162.283 67 154 58.7173 154 48.5Z\"\r\n          className=\"fill-[#262626] dark:fill-[#F0F0F0]\"\r\n        />\r\n        {/* Inner Notch Elements */}\r\n        <path\r\n          d=\"M249 48.5C249 42.701 253.701 38 259.5 38C265.299 38 270 42.701 270 48.5C270 54.299 265.299 59 259.5 59C253.701 59 249 54.299 249 48.5Z\"\r\n          className=\"fill-[#111] dark:fill-[#D1D1D1]\" // Slightly darker for contrast\r\n        />\r\n        <path\r\n          d=\"M254 48.5C254 45.4624 256.462 43 259.5 43C262.538 43 265 45.4624 265 48.5C265 51.5376 262.538 54 259.5 54C256.462 54 254 51.5376 254 48.5Z\"\r\n          className=\"fill-white/30 dark:fill-black\" // Even darker for the lens appearance\r\n        />\r\n\r\n        <defs>\r\n          <clipPath id=\"roundedCorners\">\r\n            <rect\r\n              x=\"21.25\"\r\n              y=\"19.25\"\r\n              width=\"389.5\"\r\n              height=\"843.5\"\r\n              rx=\"55.75\"\r\n              ry=\"55.75\"\r\n            />\r\n          </clipPath>\r\n        </defs>\r\n      </svg>\r\n    </div>\r\n  );\r\n};\r\n\r\nconst navItems = [\r\n  { name: \"Product\", href: \"#\" },\r\n  { name: \"Customer\", href: \"#\" },\r\n  { name: \"Solution\", href: \"#\" },\r\n  { name: \"Pricing\", href: \"#\" },\r\n  { name: \"Company\", href: \"#\" },\r\n];\r\n\r\nexport default function HeroSection6() {\r\n  const textVariants: Variants = {\r\n    hidden: { opacity: 0, filter: \"blur(10px)\", y: 20 },\r\n    visible: {\r\n      opacity: 1,\r\n      filter: \"blur(0px)\",\r\n      y: 0,\r\n      transition: {\r\n        type: \"spring\",\r\n        bounce: 0.2,\r\n        duration: 1,\r\n      },\r\n    },\r\n  };\r\n\r\n  return (\r\n    <div className=\"relative w-full h-screen [--color-primary:#003AF9] overflow-hidden\">\r\n      {/* Radial Gradient Background */}\r\n      <div className=\"absolute inset-0 z-0 bg-[radial-gradient(125%_125%_at_50%_10%,#fff_40%,var(--color-primary)_100%)] dark:bg-[radial-gradient(125%_125%_at_50%_10%,#000_40%,var(--color-primary)_100%)]\" />\r\n\r\n      {/* Navbar */}\r\n      <nav className=\"w-full flex justify-between items-center py-4 px-4 sm:px-6 border-b border-black/10 dark:border-white/20 relative z-10\">\r\n        <div className=\"font-bold text-md tracking-tight\">SolaceUI</div>\r\n\r\n        <div className=\"items-center gap-4 hidden md:flex\">\r\n          {navItems.map((item) => (\r\n            <Link href={item.href} key={item.name}>\r\n              <span className=\"text-sm md:text-[1rem] text-neutral-400 hover:text-black transition-colors  dark:text-white/70\">\r\n                {item.name}\r\n              </span>\r\n            </Link>\r\n          ))}\r\n        </div>\r\n\r\n        <div className=\"flex items-center gap-4\">\r\n          <Link href=\"#\">\r\n            <button className=\"px-3 py-1 text-sm font-medium border border-neutral-200 text-black dark:text-white hover:bg-neutral-200 transition-colors rounded-sm\">\r\n              Log in\r\n            </button>\r\n          </Link>\r\n          <Link href=\"#\">\r\n            <button className=\"px-3 py-1 text-sm font-medium bg-(--color-primary) text-white hover:bg-black/90 transition-colors rounded-sm\">\r\n              Sign Up\r\n            </button>\r\n          </Link>\r\n        </div>\r\n      </nav>\r\n\r\n      {/* Hero Content */}\r\n      <div className=\"flex flex-col items-center justify-start text-center pt-20 md:pt-10 px-4 pb-0 max-w-7xl mx-auto z-10 relative rounded-none\">\r\n        <AnimatedGroup\r\n          className=\"max-w-4xl mx-auto text-center flex flex-col items-center\"\r\n          variants={{\r\n            container: {\r\n              visible: {\r\n                transition: {\r\n                  staggerChildren: 0.1,\r\n                },\r\n              },\r\n            },\r\n            item: textVariants,\r\n          }}\r\n        >\r\n          <h1 className=\"text-3xl md:text-4xl lg:text-6xl font-bold tracking-tight text-gray-900 dark:text-white mb-5 leading-[1.1] px-6 md:px-0\">\r\n            AI Agents That Code\r\n            <br />\r\n            Like Your Best Engineer\r\n          </h1>\r\n          <p className=\"text-sm sm:text-sm md:text-lg lg:text-xl text-neutral-600 dark:text-neutral-300 max-w-[350px]  md:max-w-lg  mx-auto mb-6 md:mb-5\">\r\n            Autonomous agents that debug, refactor, and ship features while you\r\n            focus on architecture and strategy\r\n          </p>\r\n          <div className=\"flex flex-row sm:flex-row items-center justify-center gap-4 w-[300px] md:w-full mb-16 mx-auto\">\r\n            <button className=\"px-1 py-1 md:px-4 md:py-2 text-lg rounded-md bg-(--color-primary) hover:bg-(--color-primary)/90 text-white w-full sm:w-auto shadow-lg shadow-(--color-primary)/20 transition-all hover:shadow-(--color-primary)/40 rounded-sm cursor-pointer\">\r\n              Book a demo\r\n            </button>\r\n\r\n            <button className=\"px-1 py-1 md:px-4 md:py-2 text-lg rounded-md w-full sm:w-auto border border-neutral-300 dark:border-neutral-700 hover:bg-neutral-300 dark:hover:bg-neutral-800 transition-colors rounded-sm cursor-pointer\">\r\n              Try for free\r\n            </button>\r\n          </div>\r\n        </AnimatedGroup>\r\n\r\n        {/* Hero Images Section */}\r\n        <div className=\"relative w-full mx-auto z-20\">\r\n          <div className=\"relative\">\r\n            {/* Desktop Screenshot */}\r\n            <motion.div\r\n              initial={{ opacity: 0, y: 30, scale: 0.98 }}\r\n              animate={{ opacity: 1, y: 0, scale: 1 }}\r\n              transition={{ duration: 0.8, delay: 0.4, ease: \"easeOut\" }}\r\n              className=\"relative w-full rounded-md overflow-hidden border border-gray-200 dark:border-gray-800 shadow-xl dark:bg-gray-900\"\r\n            >\r\n              <Image\r\n                src=\"https://assets.solaceui.com/solaceui-hero-light.png\"\r\n                alt=\"Desktop Dashboard\"\r\n                width={800}\r\n                height={800}\r\n                className=\"object-cover object-left w-full h-auto\"\r\n                priority\r\n                unoptimized\r\n              />\r\n            </motion.div>\r\n\r\n            {/* iPhone Frame */}\r\n            <div className=\"absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-[55%] md:-translate-y-[45%] lg:-translate-y-[55%] w-[150px] sm:w-[220px] md:w-[260px] lg:w-[320px] xl:w-[380px]\">\r\n              <motion.div\r\n                initial={{ opacity: 0, scale: 0.8, y: 20 }}\r\n                animate={{ opacity: 1, scale: 1, y: 0 }}\r\n                transition={{ duration: 0.8, delay: 0.7, ease: \"easeOut\" }}\r\n              >\r\n                <Iphone15Pro\r\n                  src=\"https://assets.solaceui.com/solaceui-Notion-screen.png\"\r\n                  className=\"w-full h-[240px] md:h-[420px] lg:h-[480px] xl:h-[540px]\"\r\n                />\r\n              </motion.div>\r\n            </div>\r\n          </div>\r\n\r\n          {/* Fade Overlay for both images */}\r\n          {/* Fade Overlay for both images */}\r\n          <motion.div\r\n            initial={{ opacity: 0 }}\r\n            animate={{ opacity: 1 }}\r\n            transition={{ duration: 0.8, delay: 0.4, ease: \"easeOut\" }}\r\n            className=\"absolute -bottom-2 left-0 right-0 h-50 md:h-60 lg:h-80 bg-gradient-to-t from-white via-white/80 to-transparent  z-30 pointer-events-none rounded-md\"\r\n          />\r\n        </div>\r\n      </div>\r\n    </div>\r\n  );\r\n}\r\n",
      "type": "registry:component",
      "target": "components/hero-section-6.tsx"
    },
    {
      "path": "src/components/ui/animated-group.tsx",
      "content": "// Component From Motion Primitives\r\n\r\n\"use client\";\r\nimport { ReactNode } from \"react\";\r\nimport { motion, Variants, HTMLMotionProps } from \"motion/react\";\r\nimport React from \"react\";\r\n\r\nexport type PresetType =\r\n  | \"fade\"\r\n  | \"slide\"\r\n  | \"scale\"\r\n  | \"blur\"\r\n  | \"blur-slide\"\r\n  | \"zoom\"\r\n  | \"flip\"\r\n  | \"bounce\"\r\n  | \"rotate\"\r\n  | \"swing\";\r\n\r\nexport type AnimatedGroupProps = {\r\n  children: ReactNode;\r\n  className?: string;\r\n  variants?: {\r\n    container?: Variants;\r\n    item?: Variants;\r\n  };\r\n  preset?: PresetType;\r\n  as?: React.ElementType;\r\n  asChild?: React.ElementType;\r\n};\r\n\r\nconst defaultContainerVariants: Variants = {\r\n  visible: {\r\n    transition: {\r\n      staggerChildren: 0.1,\r\n    },\r\n  },\r\n};\r\n\r\nconst defaultItemVariants: Variants = {\r\n  hidden: { opacity: 0 },\r\n  visible: { opacity: 1 },\r\n};\r\n\r\nconst presetVariants: Record<PresetType, Variants> = {\r\n  fade: {},\r\n  slide: {\r\n    hidden: { y: 20 },\r\n    visible: { y: 0 },\r\n  },\r\n  scale: {\r\n    hidden: { scale: 0.8 },\r\n    visible: { scale: 1 },\r\n  },\r\n  blur: {\r\n    hidden: { filter: \"blur(4px)\" },\r\n    visible: { filter: \"blur(0px)\" },\r\n  },\r\n  \"blur-slide\": {\r\n    hidden: { filter: \"blur(4px)\", y: 20 },\r\n    visible: { filter: \"blur(0px)\", y: 0 },\r\n  },\r\n  zoom: {\r\n    hidden: { scale: 0.5 },\r\n    visible: {\r\n      scale: 1,\r\n      transition: { type: \"spring\", stiffness: 300, damping: 20 },\r\n    },\r\n  },\r\n  flip: {\r\n    hidden: { rotateX: -90 },\r\n    visible: {\r\n      rotateX: 0,\r\n      transition: { type: \"spring\", stiffness: 300, damping: 20 },\r\n    },\r\n  },\r\n  bounce: {\r\n    hidden: { y: -50 },\r\n    visible: {\r\n      y: 0,\r\n      transition: { type: \"spring\", stiffness: 400, damping: 10 },\r\n    },\r\n  },\r\n  rotate: {\r\n    hidden: { rotate: -180 },\r\n    visible: {\r\n      rotate: 0,\r\n      transition: { type: \"spring\", stiffness: 200, damping: 15 },\r\n    },\r\n  },\r\n  swing: {\r\n    hidden: { rotate: -10 },\r\n    visible: {\r\n      rotate: 0,\r\n      transition: { type: \"spring\", stiffness: 300, damping: 8 },\r\n    },\r\n  },\r\n};\r\n\r\nconst mergeVariants = (\r\n  defaultVariants: Variants,\r\n  customVariants: Partial<Variants> = {},\r\n): Variants => {\r\n  return {\r\n    hidden: {\r\n      ...defaultVariants.hidden,\r\n      ...customVariants.hidden,\r\n    },\r\n    visible: {\r\n      ...defaultVariants.visible,\r\n      ...customVariants.visible,\r\n    },\r\n  };\r\n};\r\n\r\nfunction AnimatedGroup({\r\n  children,\r\n  className,\r\n  variants,\r\n  preset = \"fade\",\r\n  as = \"div\",\r\n  asChild = \"div\",\r\n}: AnimatedGroupProps) {\r\n  const MotionContainer = motion.div;\r\n  const MotionChild = motion.div;\r\n\r\n  const presetVariant = preset ? presetVariants[preset] : {};\r\n  const itemVariants = variants?.item\r\n    ? mergeVariants(defaultItemVariants, variants.item)\r\n    : mergeVariants(defaultItemVariants, presetVariant);\r\n\r\n  const containerVariants = variants?.container || defaultContainerVariants;\r\n\r\n  return (\r\n    <MotionContainer\r\n      initial=\"hidden\"\r\n      animate=\"visible\"\r\n      variants={containerVariants}\r\n      className={className}\r\n    >\r\n      {React.Children.map(children, (child, index) => (\r\n        <MotionChild key={index} variants={itemVariants}>\r\n          {child}\r\n        </MotionChild>\r\n      ))}\r\n    </MotionContainer>\r\n  );\r\n}\r\n\r\nexport { AnimatedGroup };\r\n",
      "type": "registry:ui",
      "target": "components/animated-group.tsx"
    }
  ],
  "type": "registry:block"
}