@@ -122,6 +122,7 @@ import React from 'react';
122122import PropTypes from 'prop-types' ;
123123import { FaDownload , FaEye } from 'react-icons/fa6' ;
124124import { useTranslation } from 'react-i18next' ;
125+ import { motion } from 'framer-motion' ;
125126
126127function About ( ) {
127128 const { t } = useTranslation ( ) ;
@@ -168,25 +169,41 @@ function About() {
168169 { /* Text Content */ }
169170 < div className = "lg:col-span-2 space-y-6" >
170171 { t ( 'about.description' , { returnObjects : true } ) . map ( ( paragraph , index ) => (
171- < div
172+ < motion . div
172173 key = { `para-${ index } ` }
173174 className = "relative bg-white/20 backdrop-blur-lg border border-white/30
174175 rounded-2xl p-6 shadow-xl hover:shadow-2xl transition-all duration-500
175176 hover:-translate-y-2 group"
177+ whileHover = { {
178+ scale : 1.02 ,
179+ transition : { duration : 0.1 }
180+ } }
181+ transition = { { duration : 0.5 } }
182+ onHoverStart = { ( ) => console . log ( 'Hover starts' ) }
183+ onHoverEnd = { ( ) => console . log ( 'Hover ends' ) }
176184 >
177185 < div className = "absolute inset-0 bg-gradient-to-br from-blue-500/10 via-purple-500/10 to-pink-500/10
178186 opacity-0 group-hover:opacity-100 transition-opacity duration-500 rounded-2xl" > </ div >
179187 < p className = "text-lg leading-relaxed text-gray-800 relative z-10" >
180188 { paragraph }
181189 </ p >
182- </ div >
190+ </ motion . div >
183191 ) ) }
184192 </ div >
185193
186194 { /* Download Card */ }
187- < div className = "relative bg-white/20 backdrop-blur-lg border border-white/30 rounded-2xl
195+ < motion . div
196+ className = "relative bg-white/20 backdrop-blur-lg border border-white/30 rounded-2xl
188197 p-8 shadow-xl hover:shadow-2xl transition-all duration-500 hover:-translate-y-2
189- group overflow-hidden" >
198+ group overflow-hidden"
199+ whileHover = { {
200+ scale : 1.05 ,
201+ transition : { duration : 0.1 }
202+ } }
203+ transition = { { duration : 0.5 } }
204+ onHoverStart = { ( ) => console . log ( 'Hover starts' ) }
205+ onHoverEnd = { ( ) => console . log ( 'Hover ends' ) }
206+ >
190207 < div className = "absolute inset-0 bg-gradient-to-br from-blue-500/10 via-purple-500/10 to-pink-500/10
191208 opacity-0 group-hover:opacity-100 transition-opacity duration-500 rounded-2xl" > </ div >
192209 < div className = "absolute top-0 right-0 w-16 h-16 bg-gradient-to-br from-blue-400/20 to-purple-400/20
@@ -229,7 +246,7 @@ function About() {
229246 </ a >
230247 </ div >
231248 </ div >
232- </ div >
249+ </ motion . div >
233250 </ div >
234251 </ div >
235252 </ section >
0 commit comments