Header 5
smoothui-registry/header-5FreeBlock
Spotlight hero block with dark theme and gradient text
Install it
npx shadcn@latest add https://www.smoothui.dev/r/header-5.jsonSource
1"use client";23import SmoothButton from "@/components/smoothui/smooth-button";4import { motion, useReducedMotion } from "motion/react";56const SPRING = {7 bounce: 0.1,8 duration: 0.25,9 type: "spring" as const,10};1112export function HeroSpotlight() {13 const shouldReduceMotion = useReducedMotion();1415 return (16 <section aria-labelledby="hero-spotlight-heading">17 <div className="relative flex min-h-[600px] items-center justify-center overflow-hidden bg-zinc-950 py-24 md:py-32">18 {/* Spotlight beam */}19 <motion.div20 aria-hidden="true"21 className="pointer-events-none absolute top-0 left-1/2 h-full w-[600px] -translate-x-1/2"22 initial={23 shouldReduceMotion ? { opacity: 0.15 } : { opacity: 0, scaleX: 0 }24 }25 style={{26 background:27 "conic-gradient(from 180deg at 50% 0%, transparent 40%, rgba(120, 119, 198, 0.12) 50%, transparent 60%)",28 }}29 transition={30 shouldReduceMotion31 ? { duration: 0 }32 : { duration: 0.8, ease: [0.23, 1, 0.32, 1] }33 }34 viewport={{ once: true }}35 whileInView={36 shouldReduceMotion37 ? { opacity: 0.15 }38 : { opacity: 0.15, scaleX: 1 }39 }40 />4142 {/* Floating particles */}43 <div44 aria-hidden="true"45 className="pointer-events-none absolute inset-0"46 >47 {Array.from({ length: 20 }, (_, i) => (48 <div49 className="absolute h-1 w-1 rounded-full bg-white/20"50 key={`particle-${i}`}51 style={{52 animation: `pulse ${2 + (i % 3)}s ease-in-out infinite ${(i % 5) * 0.5}s`,53 left: `${(i * 37 + 13) % 100}%`,54 top: `${(i * 53 + 7) % 100}%`,55 }}56 />57 ))}58 </div>5960 <div className="relative z-10 mx-auto max-w-4xl px-6 text-center">61 <motion.div62 initial={63 shouldReduceMotion ? { opacity: 1 } : { opacity: 0, y: 24 }64 }65 transition={66 shouldReduceMotion67 ? { duration: 0 }68 : { ...SPRING, staggerChildren: 0.08 }69 }70 viewport={{ once: true }}71 whileInView={72 shouldReduceMotion ? { opacity: 1 } : { opacity: 1, y: 0 }73 }74 >75 <h176// … truncated
What it pulls in
npm packages
Other registry items
Files it writes
More from SmoothUI Registry
All 178 items| Component | Registry | Kind | Access | Installs | Command |
|---|---|---|---|---|---|
| Chat Templatechat-template | SmoothUI Registry | Blocks | Free | 2 deps · 4 files | |
| Cta 1cta-1 | SmoothUI Registry | Blocks | Free | 1 dep | |
| Cta 2cta-2 | SmoothUI Registry | Blocks | Free | 1 dep | |
| Cta 3cta-3 | SmoothUI Registry | Blocks | Free | 1 dep | |
| Faq 1faq-1 | SmoothUI Registry | Blocks | Free | 2 deps | |
| Faq 2faq-2 | SmoothUI Registry | Blocks | Free | 1 dep | |
| Faq 3faq-3 | SmoothUI Registry | Blocks | Free | 2 deps | |
| Faq 4faq-4 | SmoothUI Registry | Blocks | Free | 2 deps |
