11import React from 'react' ;
22import certifications from './Certifications.json' ; // Fix problem for Vercel server
3+ import { useTranslation } from 'react-i18next' ;
34
45function Certifications ( ) {
6+ const { t } = useTranslation ( ) ;
57 return (
68 < section className = "relative py-20 px-4 md:px-8" id = "certifications" >
79 { /* Animated Gradient Circles */ }
@@ -10,24 +12,24 @@ function Certifications() {
1012
1113 < div className = "max-w-7xl mx-auto" >
1214 < div className = "text-center mb-20" >
13- < h3 className = "text-5xl md:text-6xl font-bold bg-gradient-to-r from-gray-900 via-blue-800 to-purple-800 bg-clip-text text-transparent mb-4" >
14- Certifications
15+ < h3 className = "text-5xl pt-2 md:text-6xl font-bold bg-gradient-to-r from-gray-900 via-blue-800 to-purple-800 bg-clip-text text-transparent mb-4" >
16+ { t ( 'certifications.title' ) }
1517 </ h3 >
1618 < div className = "w-24 h-1 bg-gradient-to-r from-blue-500 to-purple-600 mx-auto rounded-full" > </ div >
1719 </ div >
1820
1921 < div className = "grid grid-cols-1 sm:grid-cols-2 lg:grid-cols-3 gap-8" >
20- { certifications . map ( ( certification ) => (
22+ { certifications . map ( ( certification , index ) => (
2123 < div
22- key = { certification . id }
23- className = "relative bg-white/20 backdrop-blur-lg border border-white/30 rounded-2xl p-6
24+ key = { certification . id || index }
25+ className = "relative bg-white/20 backdrop-blur-lg border border-white/30 rounded-2xl p-6
2426 shadow-xl hover:shadow-2xl transition-all duration-500 hover:-translate-y-2 group overflow-hidden"
25- > Fix problem for Vircel server
26- < div className = "absolute inset-0 bg-gradient-to-br from-blue-500/10 via-purple-500/10 to-pink-500/10
27+ >
28+ < div className = "absolute inset-0 bg-gradient-to-br from-blue-500/10 via-purple-500/10 to-pink-500/10
2729 opacity-0 group-hover:opacity-100 transition-opacity duration-500 rounded-2xl" > </ div >
28- < div className = "absolute top-0 right-0 w-16 h-16 bg-gradient-to-br from-blue-400/20 to-purple-400/20
30+ < div className = "absolute top-0 right-0 w-16 h-16 bg-gradient-to-br from-blue-400/20 to-purple-400/20
2931 rounded-bl-2xl opacity-50" > </ div >
30- < div className = "absolute bottom-0 left-0 w-12 h-12 bg-gradient-to-tr from-pink-400/20 to-orange-400/20
32+ < div className = "absolute bottom-0 left-0 w-12 h-12 bg-gradient-to-tr from-pink-400/20 to-orange-400/20
3133 rounded-tr-2xl opacity-50" > </ div >
3234
3335 < a
@@ -42,14 +44,14 @@ function Certifications() {
4244 className = "w-full h-48 object-contain rounded-xl border-2 border-white/30 bg-white/10 backdrop-blur-sm"
4345 />
4446 </ a >
45-
47+
4648 < div className = "space-y-3 relative z-10" >
4749 < h4 className = "text-xl font-semibold text-gray-800 group-hover:text-gray-900 transition-colors" >
4850 { certification . title }
4951 </ h4 >
5052 < p className = "text-sm font-medium text-gray-900" > { certification . issuer } </ p >
5153 < p className = "text-sm text-gray-500 bg-white/50 backdrop-blur-sm px-3 py-1 rounded-full inline-block" >
52- Issued { certification . issuedDate }
54+ { certification . issuedDate }
5355 </ p >
5456 </ div >
5557 </ div >
0 commit comments