{
  "$schema": "https://ui.shadcn.com/schema/registry-item.json",
  "name": "hero-video-2",
  "title": "Hero Video 2",
  "description": "Solace UI hero video component variation 2.",
  "dependencies": [
    "motion",
    "lucide-react"
  ],
  "files": [
    {
      "path": "src/registry/components/hero-video/two/index.tsx",
      "content": "import { HeroVideoDefault } from \"@/registry/components/hero-video/hero-video-default\";\nimport React from \"react\";\r\n\r\nexport default function HeroVideoSound() {\r\n    return (\r\n        <div className=\"flex flex-col items-center justify-center py-12\">\r\n            <HeroVideoDefault\r\n                className=\"dark:hidden block\"\r\n                videoSrc=\"https://www.youtube.com/embed/cjZjqP3EqdE?si=wXqy8Rpcnwll8Grr&amp;start=360\"\r\n                thumbnailSrc=\"https://startup-template-sage.vercel.app/hero-light.png\"\r\n                thumbnailAlt=\"Hero Video\"\r\n                soundSrc=\"/sounds/whoosh-motion.mp3\"\r\n                enableSound={true}\r\n            />\r\n            <HeroVideoDefault\r\n                className=\"hidden dark:block\"\r\n                videoSrc=\"https://www.youtube.com/embed/cjZjqP3EqdE?si=wXqy8Rpcnwll8Grr&amp;start=360\"\r\n                thumbnailSrc=\"https://startup-template-sage.vercel.app/hero-dark.png\"\r\n                thumbnailAlt=\"Hero Video\"\r\n                soundSrc=\"/sounds/whoosh-motion.mp3\"\r\n                enableSound={true}\r\n            />\r\n        </div>\r\n    );\r\n}\r\n",
      "type": "registry:component",
      "target": "components/hero-video-2.tsx"
    },
    {
      "path": "src/registry/components/hero-video/hero-video-default.tsx",
      "content": "\"use client\";\r\nimport { useState, useEffect, useCallback } from \"react\";\r\nimport { AnimatePresence, motion } from \"motion/react\";\r\nimport { Play, XIcon } from \"lucide-react\";\r\nimport useSound from \"use-sound\";\r\nimport { cn } from \"@/lib/utils\";\r\n\r\ninterface HeroVideoProps {\r\n    videoSrc: string;\r\n    thumbnailSrc: string;\r\n    thumbnailAlt?: string;\r\n    className?: string;\r\n    soundSrc?: string;\r\n    enableSound?: boolean;\r\n}\r\n\r\nexport function HeroVideoDefault({\r\n    videoSrc,\r\n    thumbnailSrc,\r\n    thumbnailAlt = \"Video thumbnail\",\r\n    className,\r\n    soundSrc = \"/sounds/whoosh-motion.mp3\",\r\n    enableSound = true,\r\n}: HeroVideoProps) {\r\n    const [isVideoOpen, setIsVideoOpen] = useState<boolean>(false);\r\n    const [playSound, { sound, stop }] = useSound(soundSrc, {\r\n        soundEnabled: enableSound,\r\n        volume: 1,\r\n    });\r\n\r\n    useEffect(() => {\r\n        console.log(\"Sound enabled:\", enableSound);\r\n        console.log(\"Sound source:\", soundSrc);\r\n        return () => {\r\n            if (sound) {\r\n                stop();\r\n            }\r\n        };\r\n    }, [enableSound, soundSrc, sound, stop]);\r\n\r\n    const handlePlayClick = useCallback(() => {\r\n        console.log(\"Play button clicked\");\r\n        if (enableSound) {\r\n            try {\r\n                playSound();\r\n                console.log(\"Attempting to play sound\");\r\n            } catch (error) {\r\n                console.error(\"Error playing sound:\", error);\r\n            }\r\n        }\r\n        setIsVideoOpen(true);\r\n    }, [enableSound, playSound]);\r\n\r\n    return (\r\n        <div className={cn(\"relative\", className)}>\r\n            <div className=\"group relative cursor-pointer\" onClick={handlePlayClick}>\r\n                <img\r\n                    src={thumbnailSrc}\r\n                    alt={thumbnailAlt}\r\n                    width={1920}\r\n                    height={1080}\r\n                    className=\"w-[20rem] md:w-[60rem] rounded-md border shadow-lg transition-all duration-200 ease-out group-hover:brightness-[0.8]\"\r\n                />\r\n                <div className=\"absolute inset-0 flex scale-[0.9] items-center justify-center rounded-2xl transition-all duration-200 ease-out group-hover:scale-100\">\r\n                    <div className=\"flex size-28 items-center justify-center rounded-full bg-primary/10 backdrop-blur-md dark:bg-[#212121]\">\r\n                        <div\r\n                            className={`relative flex size-20 scale-100 items-center justify-center rounded-full bg-gradient-to-b from-primary/30 to-primary shadow-md transition-all duration-200 ease-out group-hover:scale-[1.2] dark:from-white/10 dark:to-white/30 dark:shadow-gray-900`}\r\n                        >\r\n                            <Play\r\n                                className=\"size-8 scale-100 fill-white text-white transition-transform duration-200 ease-out group-hover:scale-105 dark:fill-gray-300 dark:text-gray-300\"\r\n                                style={{\r\n                                    filter:\r\n                                        \"drop-shadow(0 4px 3px rgb(0 0 0 / 0.07)) drop-shadow(0 2px 2px rgb(0 0 0 / 0.06))\",\r\n                                }}\r\n                            />\r\n                        </div>\r\n                    </div>\r\n                </div>\r\n            </div>\r\n            <AnimatePresence>\r\n                {isVideoOpen && (\r\n                    <motion.div\r\n                        initial={{ opacity: 0 }}\r\n                        animate={{ opacity: 1 }}\r\n                        onClick={() => setIsVideoOpen(false)}\r\n                        exit={{ opacity: 0 }}\r\n                        className=\"fixed inset-0 z-50 flex items-center justify-center bg-black/20 backdrop-blur-md\"\r\n                    >\r\n                        <motion.div\r\n                            initial={{ scale: 0, rotate: \"180deg\" }}\r\n                            animate={{\r\n                                scale: 1,\r\n                                rotate: \"0deg\",\r\n                                transition: {\r\n                                    type: \"spring\",\r\n                                    bounce: 0.25,\r\n                                },\r\n                            }}\r\n                            exit={{ scale: 0, rotate: \"180deg\" }}\r\n                            className=\"relative mx-4 aspect-video w-full max-w-4xl md:mx-0\"\r\n                            onClick={(e) => e.stopPropagation()}\r\n                        >\r\n                            <motion.button\r\n                                className=\"absolute -top-16 right-0 rounded-full bg-neutral-900/50 p-2 text-xl text-white ring-1 backdrop-blur-md dark:bg-neutral-100/50 dark:text-black\"\r\n                                onClick={() => setIsVideoOpen(false)}\r\n                            >\r\n                                <XIcon className=\"size-5\" />\r\n                            </motion.button>\r\n                            <div className=\"relative isolate z-[1] size-full overflow-hidden rounded-2xl border-2 border-white\">\r\n                                <iframe\r\n                                    src={videoSrc}\r\n                                    className=\"size-full rounded-2xl\"\r\n                                    allowFullScreen\r\n                                    allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\"\r\n                                ></iframe>\r\n                            </div>\r\n                        </motion.div>\r\n                    </motion.div>\r\n                )}\r\n            </AnimatePresence>\r\n        </div>\r\n    );\r\n}\r\n",
      "type": "registry:component",
      "target": "components/hero-video-default.tsx"
    }
  ],
  "type": "registry:component"
}