1-
2- const About = ( { result } ) => {
1+ import { motion } from 'framer-motion'
2+ const About = ( { result, index } ) => {
3+ const random = Math . floor ( Math . random ( ) * 1 )
34 return (
45 < div className = "mt-4 mb-2 justify-self-start" >
56
@@ -8,37 +9,66 @@ const About = ({ result }) => {
89 <span className='text-sm text-[#BDBEC3] '>India</span>
910 </p> */ }
1011 {
11- result ?. website ?. link && ( < a target = "_blank" rel = 'noreferrer' href = { result ?. website ?. link } className = "flex" >
12- < iconify-icon icon = "streamline-emojis:globe-showing-americas" style = { { color : 'white' , marginRight : '1px' } } width = "19" height = "19" > </ iconify-icon >
13- < span className = 'text-sm text-[#BDBEC3] ' >
14- < p className = "" > { result ?. website ?. text } </ p >
15- </ span >
16- </ a > )
12+ result ?. website ?. link && ( < motion . div
13+ initial = { { opacity : 0 , x : - 50 } }
14+ whileInView = { { opacity : 1 , x : 0 } }
15+ viewport = { { once : true } }
16+ transition = { { duration : 0.3 , type : "spring" , stiffness : 110 , delay : ( index % 4 ) * 0.1 + 0.3 } }
17+ >
18+ < a target = "_blank" rel = 'noreferrer' href = { result ?. website ?. link } className = "flex" >
19+ < iconify-icon icon = "streamline-emojis:globe-showing-americas" style = { { color : 'white' , marginRight : '1px' } } width = "19" height = "19" > </ iconify-icon >
20+ < span className = 'text-sm text-[#BDBEC3] ' >
21+ < p className = "" > { result ?. website ?. text } </ p >
22+ </ span >
23+ </ a >
24+ </ motion . div > )
1725 }
1826 {
19- result ?. github ?. link && ( < a target = "_blank" rel = 'noreferrer' href = { result ?. github ?. link } className = "flex" >
20- < iconify-icon icon = "mdi:github" style = { { color : 'white' , marginRight : '5px' } } width = "17" height = "19" > </ iconify-icon >
21- < span className = 'text-sm text-[#BDBEC3] ' >
22- < p className = "" > { result ?. github ?. text } </ p >
23- </ span >
24- </ a > )
27+ result ?. github ?. link && (
28+ < motion . div
29+ initial = { { opacity : 0 , x : - 50 } }
30+ whileInView = { { opacity : 1 , x : 0 } }
31+ viewport = { { once : true } }
32+ transition = { { duration : 0.3 , type : "spring" , stiffness : 110 , delay : ( index % 4 ) * 0.2 + 0.2 } }
33+ > < a target = "_blank" rel = 'noreferrer' href = { result ?. github ?. link } className = "flex" >
34+ < iconify-icon icon = "mdi:github" style = { { color : 'white' , marginRight : '5px' } } width = "17" height = "19" > </ iconify-icon >
35+ < span className = 'text-sm text-[#BDBEC3] ' >
36+ < p className = "" > { result ?. github ?. text } </ p >
37+ </ span >
38+ </ a >
39+ </ motion . div > )
2540 }
2641 {
27- result ?. twitter ?. link && ( < a target = "_blank" rel = 'noreferrer' href = { result ?. twitter ?. link } className = "flex" >
28- < iconify-icon icon = "fa6-brands:square-x-twitter" style = { { color : 'white' , marginRight : '5px' } } width = "17" height = "19" > </ iconify-icon >
29- < span className = 'text-sm text-[#BDBEC3] ' >
30- < p className = "" > { result ?. twitter ?. text } </ p >
31- </ span >
32- </ a > )
42+ result ?. twitter ?. link && (
43+ < motion . div
44+ initial = { { opacity : 0 , x : - 50 } }
45+ whileInView = { { opacity : 1 , x : 0 } }
46+ viewport = { { once : true } }
47+ transition = { { duration : 0.3 , type : "spring" , stiffness : 110 , delay : ( index % 4 ) * 0.3 + 0.1 } }
48+ >
49+ < a target = "_blank" rel = 'noreferrer' href = { result ?. twitter ?. link } className = "flex" >
50+ < iconify-icon icon = "fa6-brands:square-x-twitter" style = { { color : 'white' , marginRight : '5px' } } width = "17" height = "19" > </ iconify-icon >
51+ < span className = 'text-sm text-[#BDBEC3] ' >
52+ < p className = "" > { result ?. twitter ?. text } </ p >
53+ </ span >
54+ </ a >
55+ </ motion . div > )
3356 }
3457 {
35- result ?. linkedin ?. link && ( < a target = "_blank" rel = 'noreferrer' href = { result ?. linkedin ?. link } className = "flex" >
36- < iconify-icon icon = "devicon:linkedin" style = { { color : 'white' , marginRight : '5px' } } width = "17" height = "19 " > </ iconify-icon >
37- < span className = 'text-sm text-[#BDBEC3] ' >
38- < p className = "" > { result ?. linkedin ?. text } </ p >
39- </ span >
40- </ a >
41- )
58+ result ?. linkedin ?. link && (
59+ < motion . div
60+ initial = { { opacity : 0 , x : - 50 } }
61+ whileInView = { { opacity : 1 , x : 0 } }
62+ viewport = { { once : true } }
63+ transition = { { duration : 0.3 , type : "spring" , stiffness : 110 , delay : ( index % 4 ) * 0.2 + 0.3 } }
64+ >
65+ < a target = "_blank" rel = 'noreferrer' href = { result ?. linkedin ?. link } className = "flex" >
66+ < iconify-icon icon = "devicon:linkedin" style = { { color : 'white' , marginRight : '5px' } } width = "17" height = "19 " > </ iconify-icon >
67+ < span className = 'text-sm text-[#BDBEC3] ' >
68+ < p className = "" > { result ?. linkedin ?. text } </ p >
69+ </ span >
70+ </ a >
71+ </ motion . div > )
4272 }
4373 </ div >
4474 )
0 commit comments