{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "center-content-hero", "type": "registry:block", "title": "Center Content", "description": "A centered hero section with content", "registryDependencies": [ "utils" ], "files": [ { "path": "registry/default/blocks/hero-sections/center-content-hero/hero.tsx", "content": "'use client'\r\n\r\nimport Link from 'next/link'\r\nimport { cn } from '@/lib/utils'\r\nimport { buttonVariants } from '@/components/ui/button'\r\nimport { InteractiveGridPattern } from '@/components/ui/interactive-grid-pattern'\r\nimport { motion as m, Variants } from 'motion/react'\r\n\r\nconst staggerDelay = 0.4\r\nconst initialDelay = 0.2 // initial delay before the first element animates\r\nconst totalDelay = initialDelay + staggerDelay * 6 // number of elements animating\r\n\r\nexport default function Hero() {\r\n const variants = {\r\n hidden: () => ({\r\n opacity: 0,\r\n filter: 'blur(10px)',\r\n transform: 'translateY(10px) scale(0.95)',\r\n }),\r\n visible: (custom: number) => ({\r\n opacity: 1,\r\n transform: 'translateY(0) scale(1)',\r\n filter: 'blur(0)',\r\n transition: {\r\n delay: custom * staggerDelay + initialDelay,\r\n duration: 0.5,\r\n ease: 'easeInOut',\r\n },\r\n }),\r\n }\r\n\r\n return (\r\n