@@ -21,7 +21,7 @@ const domains: Domain[] = [
2121 id : "cp" ,
2222 name : "CP/DSA" ,
2323 icon : Code ,
24- color : "from-blue-500 to-cyan-500 " ,
24+ color : "from-[#1a1a2e] to-[#16213e] " ,
2525 description : "Competitive Programming & Data Structures and Algorithms" ,
2626 advantages : [
2727 "Strong problem-solving skills" ,
@@ -41,7 +41,7 @@ const domains: Domain[] = [
4141 id : "aiml" ,
4242 name : "AI/ML" ,
4343 icon : Brain ,
44- color : "from-purple-500 to-pink-500 " ,
44+ color : "from-[#2d132c] to-[#1a0a1a] " ,
4545 description : "Artificial Intelligence & Machine Learning" ,
4646 advantages : [
4747 "Cutting-edge technology field" ,
@@ -61,7 +61,7 @@ const domains: Domain[] = [
6161 id : "web3" ,
6262 name : "Web3" ,
6363 icon : Blocks ,
64- color : "from-emerald-500 to-teal-500 " ,
64+ color : "from-[#0f2027] to-[#203a43] " ,
6565 description : "Blockchain & Decentralized Applications" ,
6666 advantages : [
6767 "Emerging technology" ,
@@ -81,7 +81,7 @@ const domains: Domain[] = [
8181 id : "web2" ,
8282 name : "Web2" ,
8383 icon : Globe2 ,
84- color : "from-orange-500 to-red-500 " ,
84+ color : "from-[#3d1c1c] to-[#1a0a0a] " ,
8585 description : "Traditional Web Development" ,
8686 advantages : [
8787 "Wide job market" ,
@@ -118,19 +118,25 @@ const DomainCard = ({ domain }: { domain: Domain }) => {
118118 onClick = { ( ) => navigate ( `/${ domain . id } ` ) }
119119 >
120120 { /* Front */ }
121- < div className = "absolute w-full h-full backface-hidden" >
122- < div className = { `h-full rounded-2xl bg-gradient-to-br ${ domain . color } p-8 flex flex-col items-center justify-center text-primary-foreground shadow-elegant` } >
121+ < div
122+ className = "absolute w-full h-full backface-hidden"
123+ style = { { backfaceVisibility : 'hidden' , WebkitBackfaceVisibility : 'hidden' } }
124+ >
125+ < div className = { `h-full rounded-2xl bg-gradient-to-br ${ domain . color } p-8 flex flex-col items-center justify-center text-white shadow-elegant border border-white/10` } >
123126 < Icon className = "w-20 h-20 mb-6" strokeWidth = { 1.5 } />
124127 < h3 className = "text-3xl font-bold mb-4" > { domain . name } </ h3 >
125- < p className = "text-center text-primary-foreground/90 " > { domain . description } </ p >
128+ < p className = "text-center text-white/80 " > { domain . description } </ p >
126129 </ div >
127130 </ div >
128131
129132 { /* Back */ }
130- < div className = "absolute w-full h-full backface-hidden" style = { { transform : "rotateY(180deg)" } } >
131- < div className = "h-full rounded-2xl glass-card border border-primary/20 p-6 overflow-y-auto" >
133+ < div
134+ className = "absolute w-full h-full backface-hidden"
135+ style = { { transform : 'rotateY(180deg)' , backfaceVisibility : 'hidden' , WebkitBackfaceVisibility : 'hidden' } }
136+ >
137+ < div className = "h-full rounded-2xl bg-card border border-border p-6 overflow-y-auto shadow-elegant" >
132138 < h4 className = "text-xl font-bold text-foreground mb-4" > { domain . name } Overview</ h4 >
133-
139+
134140 < div className = "space-y-4" >
135141 < div >
136142 < h5 className = "font-semibold text-success mb-2" > Advantages:</ h5 >
@@ -175,11 +181,11 @@ const Domains = () => {
175181 return (
176182 < div className = "min-h-screen bg-background bg-mesh py-12 px-4" >
177183 < Navigation />
178-
184+
179185 { /* Ambient effects */ }
180186 < div className = "fixed top-1/4 right-0 w-96 h-96 bg-primary/8 rounded-full blur-3xl pointer-events-none" />
181187 < div className = "fixed bottom-0 left-1/4 w-80 h-80 bg-accent/8 rounded-full blur-3xl pointer-events-none" />
182-
188+
183189 < motion . div
184190 initial = { { opacity : 0 , y : - 20 } }
185191 animate = { { opacity : 1 , y : 0 } }
0 commit comments