-
-
Notifications
You must be signed in to change notification settings - Fork 55
Expand file tree
/
Copy pathFeatures.tsx
More file actions
75 lines (68 loc) · 2.86 KB
/
Copy pathFeatures.tsx
File metadata and controls
75 lines (68 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
export function Features() {
const cards = [{
num: "01",
title: "Lightweight & Fast",
desc: "Under 10KB gzipped. Zero external dependencies. Won't slow down your website's load time or affect Core Web Vitals.",
color: "bg-[#FFCC00]",
textColor: "text-black",
},
{
num: "02",
title: "Fully Customizable",
desc: "Every button comes with a clean default design, but can be easily themed using CSS variables to match your brand.",
color: "bg-[#00C853]",
textColor: "text-black",
},
{
num: "03",
title: "Framework Agnostic",
desc: "Use it with Vanilla JS, React, Vue, Angular, Alpine.js, or any modern framework. It just works.",
color: "bg-white dark:bg-neutral-900",
textColor: "text-black dark:text-white",
},
{
num: "04",
title: "Privacy Respected",
desc: "No tracking scripts. No analytics bloat. We don't collect any data about you or your users. Ever.",
color: "bg-[#00C853]",
textColor: "text-black",
},
];
return (
<div className="py-24 bg-background border-t-2 border-black dark:border-white">
<div className="max-w-7xl mx-auto px-4 sm:px-6 lg:px-8">
<div className="mb-16">
<span className="text-xs font-bold tracking-widest text-[#FFCC00] uppercase mb-4 block">
Core Features
</span>
<h2 className="text-4xl md:text-5xl font-serif font-bold tracking-tight text-balance">
Everything you need.<br />Nothing you don't.
</h2>
</div>
<div className="flex gap-6 md:gap-8 overflow-x-auto pb-12 pt-4 snap-x hide-scrollbar">
{cards.map((card, i) => (
<div
key={i}
className={`snap-center shrink-0 w-[300px] md:w-[350px] lg:w-[400px] rounded-[32px] p-8 md:p-10 relative flex flex-col transition-transform hover:-translate-y-2 border-[3px] border-black dark:border-white shadow-[8px_8px_0px_0px_rgba(0,0,0,1)] dark:shadow-[8px_8px_0px_0px_rgba(255,255,255,1)] ${card.color} ${card.textColor} aspect-square`}
>
<span className={`text-6xl md:text-7xl font-serif opacity-30 absolute top-6 right-8 font-bold ${card.textColor}`}>
{card.num}
</span>
<div className="mt-auto pt-12">
<h3 className="text-xl md:text-2xl font-bold mb-4 pr-4">{card.title}</h3>
<p className={`text-[14px] md:text-[15px] opacity-90 leading-relaxed font-semibold mb-8`}>
{card.desc}
</p>
<div>
<span className="text-sm font-bold px-6 py-3 bg-black text-white dark:bg-white dark:text-black rounded-full shadow-sm hover:opacity-80 transition cursor-pointer">
Learn more
</span>
</div>
</div>
</div>
))}
</div>
</div>
</div>
);
}