1+ import { IoMdCloseCircle } from "react-icons/io" ;
2+
3+ export default function Hero ( ) {
4+ return (
5+ < section className = "relative flex justify-center items-center min-h-screen py-12 px-6 bg-neutral-100" >
6+ { /* White base layer (card) */ }
7+ < div className = "relative max-w-6xl w-full bg-white rounded-xl shadow-lg z-10" >
8+ { /* Bento grid background layer */ }
9+ < div className = "absolute mt-10 inset-0 pointer-events-none flex flex-wrap gap-4 p-4 opacity-20 z-20" >
10+ { Array . from ( { length : 30 } ) . map ( ( _ , i ) => (
11+ < div
12+ key = { i }
13+ className = "w-24 h-24 bg-neutral-200 rounded-xl border border-neutral-300"
14+ > </ div >
15+ ) ) }
16+ </ div >
17+
18+ { /* Content layer */ }
19+ < div className = "relative z-30 flex flex-col min-h-[400px]" >
20+ < div className = "flex justify-between mx-2 my-2" >
21+ < IoMdCloseCircle className = "text-lg text-black opacity-50" />
22+ < IoMdCloseCircle className = "text-lg text-black opacity-50" />
23+ </ div >
24+ < div className = "flex flex-col items-center justify-center text-center px-6 py-16 md:py-24 gap-6 flex-grow" >
25+ < span className = "text-xs uppercase border border-black rounded-full bg-white px-4 py-1 tracking-widest text-black" >
26+ Get Started
27+ </ span >
28+ < h2 className = "text-4xl md:text-5xl font-semibold text-neutral-900 max-w-2xl" >
29+ Build Faster with < span className = "font-semibold" > Stream</ span > < span className = "px-2 py-1 bg-black text-white rounded-md" > UI</ span >
30+ </ h2 >
31+ < p className = "mt-4 text-neutral-600 dark:text-neutral-400 max-w-xl text-lg" >
32+ Copy-paste ready components to accelerate your development without sacrificing design.
33+ </ p >
34+ < div className = "flex flex-col sm:flex-row gap-4 mt-6" >
35+ < a
36+ href = "#components"
37+ className = "bg-black shadow-xl text-white px-6 py-3 rounded-full hover:bg-neutral-800 transition text-sm font-medium"
38+ >
39+ Browse Components
40+ </ a >
41+ < a
42+ href = "#docs"
43+ className = "border shadow-xl border-neutral-700 text-neutral-900 px-6 py-3 rounded-full hover:bg-neutral-100 transition text-sm font-medium"
44+ >
45+ View Documentation
46+ </ a >
47+ </ div >
48+ </ div >
49+ < div className = "flex justify-between mx-2 my-2" >
50+ < IoMdCloseCircle className = "text-lg text-black opacity-50" />
51+ < IoMdCloseCircle className = "text-lg text-black opacity-50" />
52+ </ div >
53+ </ div >
54+ </ div >
55+ </ section >
56+ ) ;
57+ }
0 commit comments