1+ import Link from "@docusaurus/Link" ;
2+ import {
3+ BookOpen ,
4+ Code2 ,
5+ Users2 ,
6+ Zap ,
7+ Trophy ,
8+ Github
9+ } from 'lucide-react' ;
10+
11+ const reasons = [
12+ {
13+ title : "Free Education" ,
14+ desc : "Comprehensive tech curriculum taught by industry masters, 100% free." ,
15+ icon : < BookOpen className = "w-10 h-10" /> ,
16+ } ,
17+ {
18+ title : "Open Source" ,
19+ desc : "Contribute to real-world projects and build your GitHub profile." ,
20+ icon : < Github className = "w-10 h-10" /> ,
21+ } ,
22+ {
23+ title : "Live Editor" ,
24+ desc : "Practice coding in real-time with our integrated browser-based IDE." ,
25+ icon : < Code2 className = "w-10 h-10" /> ,
26+ } ,
27+ {
28+ title : "Active Community" ,
29+ desc : "Join over 100+ contributors and thousands of learners worldwide." ,
30+ icon : < Users2 className = "w-10 h-10" /> ,
31+ } ,
32+ {
33+ title : "DSA Mastery" ,
34+ desc : "Curated problems and solutions to help you crack technical interviews." ,
35+ icon : < Zap className = "w-10 h-10" /> ,
36+ } ,
37+ {
38+ title : "Expert Guidance" ,
39+ desc : "Roadmaps and tutorials designed for both beginners and pros." ,
40+ icon : < Trophy className = "w-10 h-10" /> ,
41+ } ,
42+ ] ;
43+
44+ const WhyChooseCodeHarbor = ( ) => {
45+ return (
46+ < section className = "py-24 px-6 bg-[var(--ifm-bg-color)] transition-colors duration-300 font-sans relative overflow-hidden" >
47+ { /* Subtle Background Pattern */ }
48+ < div className = "absolute inset-0 opacity-[0.03] dark:opacity-[0.05] pointer-events-none" >
49+ < svg width = "100%" height = "100%" > < pattern id = "grid" width = "40" height = "40" patternUnits = "userSpaceOnUse" > < path d = "M 40 0 L 0 0 0 40" fill = "none" stroke = "currentColor" strokeWidth = "1" /> </ pattern > < rect width = "100%" height = "100%" fill = "url(#grid)" /> </ svg >
50+ </ div >
51+
52+ < div className = "max-w-7xl mx-auto relative z-10" >
53+
54+ { /* Header */ }
55+ < div className = "text-center mb-20" >
56+ < span className = "inline-block px-4 py-1.5 mb-6 text-xs font-bold tracking-[0.2em] uppercase text-[var(--ifm-color-primary)] bg-[var(--ifm-color-primary)]/10 rounded-full border border-[var(--ifm-color-primary)]/20" >
57+ Why CodeHarborHub?
58+ </ span >
59+ < h2 className = "text-4xl md:text-6xl font-black text-[var(--ifm-text-color)] leading-tight tracking-tight" >
60+ Empowering Your < span className = "text-[var(--ifm-color-primary)]" > Tech Journey</ span >
61+ </ h2 >
62+ < p className = "mt-6 text-lg opacity-70 text-[var(--ifm-text-color)] max-w-2xl mx-auto leading-relaxed" >
63+ We shatter limitations by offering an exclusive open-source platform for mastering
64+ in-demand skills and launching your dream career.
65+ </ p >
66+ </ div >
67+
68+ { /* Feature Grid */ }
69+ < div className = "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8" >
70+ { reasons . map ( ( item , index ) => (
71+ < div
72+ key = { index }
73+ className = "relative group p-10 bg-white dark:bg-slate-800/40 rounded-3xl border border-slate-200 dark:border-slate-700/50 shadow-sm hover:shadow-2xl hover:border-[var(--ifm-color-primary)]/50 transition-all duration-500 hover:-translate-y-2 overflow-hidden"
74+ >
75+ { /* Animated Glow Effect */ }
76+ < div className = "absolute -right-10 -top-10 w-32 h-32 bg-[var(--ifm-color-primary)] opacity-0 group-hover:opacity-10 blur-3xl transition-opacity duration-500" />
77+
78+ { /* Icon Container */ }
79+ < div className = "mb-8 inline-flex items-center justify-center w-20 h-20 rounded-2xl bg-slate-50 dark:bg-slate-800 text-[var(--ifm-color-primary)] group-hover:bg-[var(--ifm-color-primary)] group-hover:text-white transition-all duration-500 shadow-inner group-hover:shadow-[var(--ifm-color-primary)]/40 group-hover:scale-110" >
80+ { item . icon }
81+ </ div >
82+
83+ { /* Content */ }
84+ < h3 className = "text-2xl font-bold text-[var(--ifm-text-color)] mb-4" >
85+ { item . title }
86+ </ h3 >
87+ < p className = "opacity-60 text-[var(--ifm-text-color)] leading-relaxed text-base" >
88+ { item . desc }
89+ </ p >
90+
91+ { /* Bottom Accent Line */ }
92+ < div className = "absolute bottom-0 left-0 h-1.5 bg-[var(--ifm-color-primary)] w-0 group-hover:w-full transition-all duration-700 ease-in-out" />
93+ </ div >
94+ ) ) }
95+ </ div >
96+
97+ { /* Call to Action */ }
98+ < div className = "mt-20 text-center" >
99+ < Link
100+ href = "https://github.com/codeharborhub"
101+ className = "group inline-flex items-center gap-3 px-10 py-4 bg-[var(--ifm-color-primary)] text-white font-black rounded-2xl hover:brightness-110 transition-all hover:shadow-[0_0_25px_rgba(var(--ifm-color-primary-rgb),0.4)] hover:no-underline hover:text-gray-100"
102+ >
103+ < Github className = "w-6 h-6 group-hover:rotate-12 transition-transform" />
104+ < span > Join Our Open Source Mission</ span >
105+ </ Link >
106+ </ div >
107+
108+ </ div >
109+ </ section >
110+ ) ;
111+ } ;
112+
113+ export default WhyChooseCodeHarbor ;
0 commit comments