-
-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathCommunitySection.tsx
More file actions
142 lines (124 loc) · 6.83 KB
/
CommunitySection.tsx
File metadata and controls
142 lines (124 loc) · 6.83 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
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
"use client"
import { Github, ArrowRight, ExternalLink, MessageCircle } from "lucide-react"
import Link from "next/link"
import { TESTIMONIALS, type Testimonial } from "@/data/about"
import { GradientBadge } from "@/components/ui/gradient-badge"
import { SectionHeading } from "@/components/ui/section-heading"
export function CommunitySection() {
return (
<section className="w-full py-20 lg:py-28 relative overflow-hidden bg-gray-50 dark:bg-transparent">
<div className="absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[300px] h-[300px] bg-[#1e5eff]/5 dark:bg-[#ff2d55]/5 blur-[80px] rounded-full pointer-events-none" />
<div className="w-full relative z-10">
<div className="container-main mb-12 text-center">
<GradientBadge icon={MessageCircle} text="Community Love" className="mb-4" />
<SectionHeading
title="Approved by"
highlight="Survivors"
subtitle="Join thousands of developers who stopped guessing and started shipping. Real feedback from real engineers."
className="mb-0"
/>
</div>
<div className="relative w-full pause-on-hover mb-8 md:mb-16">
<div className="pointer-events-none absolute left-0 top-0 z-10 h-full w-12 md:w-32 bg-gradient-to-r from-gray-50 dark:from-background to-transparent" />
<div className="pointer-events-none absolute right-0 top-0 z-10 h-full w-12 md:w-32 bg-gradient-to-l from-gray-50 dark:from-background to-transparent" />
<div className="flex w-max min-w-full">
<div className="flex shrink-0 gap-4 px-2 animate-scroll">
{TESTIMONIALS.map((testimonial, index) => (
<TestimonialCard key={`loop1-${index}`} {...testimonial} />
))}
</div>
<div className="flex shrink-0 gap-4 px-2 animate-scroll" aria-hidden="true">
{TESTIMONIALS.map((testimonial, index) => (
<TestimonialCard key={`loop2-${index}`} {...testimonial} />
))}
</div>
</div>
</div>
<div className="container-main text-center">
<div className="flex flex-col items-center gap-2 md:hidden">
<Link
href="https://github.com/DevLoversTeam/devlovers.net/discussions"
target="_blank"
rel="noopener noreferrer"
className="group inline-flex items-center gap-1.5 px-4 py-2 rounded-full
border border-gray-200 dark:border-white/10
bg-white/50 dark:bg-white/5
text-[10px] font-bold uppercase tracking-wider
text-gray-700 dark:text-gray-300
transition-all duration-300
hover:border-[#1e5eff]/40 dark:hover:border-[#ff2d55]/40
hover:text-[#1e5eff] dark:hover:text-[#ff2d55]"
>
<Github size={12} />
Join Discussion
<ArrowRight size={10} className="group-hover:translate-x-0.5 transition-transform" />
</Link>
</div>
<Link
href="https://github.com/DevLoversTeam/devlovers.net/discussions"
target="_blank"
rel="noopener noreferrer"
className="group relative hidden md:inline-flex items-center justify-center gap-4 p-1.5 pl-6 pr-1.5 rounded-full
bg-white dark:bg-white/5 border border-gray-200 dark:border-white/10
transition-all duration-300 ease-out
hover:scale-[1.02]
hover:border-[#1e5eff]/50 dark:hover:border-[#ff2d55]/50
hover:shadow-[0_0_30px_-5px_rgba(30,94,255,0.15)] dark:hover:shadow-[0_0_30px_-5px_rgba(255,45,85,0.15)]"
>
<span className="text-sm text-gray-700 dark:text-gray-200 font-medium">
Have a success story or feature request?
</span>
<span className="flex items-center gap-2 px-5 py-2.5 rounded-full
bg-gray-900 dark:bg-white text-white dark:text-black
text-xs font-bold uppercase tracking-wider
transition-all duration-300
group-hover:bg-[#1e5eff] dark:group-hover:bg-[#ff2d55]
group-hover:text-white dark:group-hover:text-white"
>
<Github size={14} />
Join Discussion
<ArrowRight size={12} className="group-hover:translate-x-1 transition-transform" />
</span>
</Link>
<p className="mt-3 md:mt-6 text-[8px] md:text-[10px] text-gray-400 dark:text-gray-600 uppercase tracking-widest md:font-bold md:opacity-60 opacity-70">
We read every <span className="hidden md:inline">single </span>thread
</p>
</div>
</div>
</section>
)
}
function TestimonialCard({
name,
role,
avatar,
content,
platform,
icon: Icon,
color
}: Testimonial) {
return (
<div className="w-[280px] md:w-[320px] shrink-0 rounded-xl border border-gray-200 dark:border-white/10 bg-white/10 dark:bg-neutral-900/10 backdrop-blur-md p-5 shadow-sm hover:shadow-md transition-all duration-300 hover:border-gray-300 dark:hover:border-white/20 hover:-translate-y-1">
<div className="mb-3 flex items-start justify-between">
<div className="flex items-center gap-3">
<div className="flex h-9 w-9 items-center justify-center rounded-full bg-gray-100 dark:bg-white/10 border border-gray-200 dark:border-white/5 text-xs font-bold text-gray-700 dark:text-gray-200">
{avatar}
</div>
<div>
<div className="font-bold text-gray-900 dark:text-white text-sm leading-none mb-1">{name}</div>
<div className="text-[10px] uppercase tracking-wide text-gray-500 font-medium">{role}</div>
</div>
</div>
<div className={`flex h-7 w-7 items-center justify-center rounded-full ${color}`}>
<Icon size={12} />
</div>
</div>
<p className="text-sm leading-relaxed text-gray-600 dark:text-gray-300 font-normal">
"{content}"
</p>
<div className="mt-3 text-[10px] text-gray-400 dark:text-gray-600 font-mono flex items-center gap-1">
via {platform} <ExternalLink size={8} />
</div>
</div>
)
}