Skip to content

Commit e8cea2f

Browse files
committed
added cta
1 parent ff8adb9 commit e8cea2f

File tree

2 files changed

+61
-0
lines changed

2 files changed

+61
-0
lines changed

app/components/cta.jsx

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
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+
}

app/page.jsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import Hero from "@/app/components/hero";
33
import Work from "@/app/components/work";
44
import Features from "@/app/components/features";
55
import Testimonial from "@/app/components/testimonial";
6+
import Cta from "@/app/components/cta";
67

78
export default function App() {
89
return (
@@ -22,6 +23,9 @@ export default function App() {
2223
<div className="border-t border-l border-r border-dashed border-neutral-400 p-1 md:p-1 mx-12">
2324
<Testimonial/>
2425
</div>
26+
<div className="border-t border-l border-r border-dashed border-neutral-400 p-1 md:p-1 mx-12">
27+
<Cta/>
28+
</div>
2529
</>
2630
);
2731
}

0 commit comments

Comments
 (0)