@@ -2,7 +2,61 @@ import React from "react";
2
2
3
3
const SocialMedia = ( { user } ) => {
4
4
return (
5
- < div className = "bg-white w-full h-10 py-8 flex items-center justify-center gap-2 flex-wrap" >
5
+ < div className = "bg-white w-full h-10 py-4 flex items-center justify-center gap-2 flex-wrap" >
6
+ { /* Email Button */ }
7
+ < a
8
+ href = { `mailto:${ user . email } ` } // Add the user's email to the mailto link
9
+ className = "w-10 h-10 flex items-center justify-center rounded-lg bg-white shadow-md shadow-gray-200 group transition-all duration-300"
10
+ aria-label = "Email"
11
+ >
12
+ < svg
13
+ className = "rounded-md transition-all duration-300 group-hover:scale-110"
14
+ xmlns = "http://www.w3.org/2000/svg"
15
+ viewBox = "0 0 48 48"
16
+ width = "28px"
17
+ height = "28px"
18
+ >
19
+ < path
20
+ fill = "#4caf50"
21
+ d = "M45,16.2l-5,2.75l-5,4.75L35,40h7c1.657,0,3-1.343,3-3V16.2z"
22
+ />
23
+ < path
24
+ fill = "#1e88e5"
25
+ d = "M3,16.2l3.614,1.71L13,23.7V40H6c-1.657,0-3-1.343-3-3V16.2z"
26
+ />
27
+ < polygon
28
+ fill = "#e53935"
29
+ points = "35,11.2 24,19.45 13,11.2 12,17 13,23.7 24,31.95 35,23.7 36,17"
30
+ />
31
+ < path
32
+ fill = "#c62828"
33
+ d = "M3,12.298V16.2l10,7.5V11.2L9.876,8.859C9.132,8.301,8.228,8,7.298,8h0C4.924,8,3,9.924,3,12.298z"
34
+ />
35
+ < path
36
+ fill = "#fbc02d"
37
+ d = "M45,12.298V16.2l-10,7.5V11.2l3.124-2.341C38.868,8.301,39.772,8,40.702,8h0 C43.076,8,45,9.924,45,12.298z"
38
+ />
39
+ </ svg >
40
+ </ a >
41
+
42
+ { /* LinkedIn Button */ }
43
+ < button className = "w-10 h-10 flex items-center justify-center rounded-lg bg-white shadow-md shadow-gray-200 group transition-all duration-300" >
44
+ < svg
45
+ className = "rounded-md transition-all duration-300 group-hover:scale-110"
46
+ xmlns = "http://www.w3.org/2000/svg"
47
+ x = "0px"
48
+ y = "0px"
49
+ width = "60"
50
+ height = "30"
51
+ viewBox = "0 0 30 30"
52
+ >
53
+ < path d = "M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z" > </ path >
54
+ </ svg >
55
+ </ button >
56
+
57
+ { /* Add additional social media buttons as needed */ }
58
+
59
+ { /* Example for another social media button */ }
6
60
< button className = "w-10 h-10 flex items-center justify-center rounded-lg bg-white shadow-md shadow-gray-200 group transition-all duration-300" >
7
61
< svg
8
62
className = "rounded-md transition-all duration-300 group-hover:scale-110"
@@ -20,12 +74,6 @@ const SocialMedia = ({ user }) => {
20
74
/>
21
75
</ svg >
22
76
</ button >
23
-
24
- < button className = "w-10 h-10 flex items-center justify-center rounded-lg bg-white shadow-md shadow-gray-200 group transition-all duration-300" >
25
- < svg className = "rounded-md transition-all duration-300 group-hover:scale-110" xmlns = "http://www.w3.org/2000/svg" x = "0px" y = "0px" width = "60" height = "30" viewBox = "0 0 30 30" >
26
- < path d = "M15,3C8.373,3,3,8.373,3,15c0,5.623,3.872,10.328,9.092,11.63C12.036,26.468,12,26.28,12,26.047v-2.051 c-0.487,0-1.303,0-1.508,0c-0.821,0-1.551-0.353-1.905-1.009c-0.393-0.729-0.461-1.844-1.435-2.526 c-0.289-0.227-0.069-0.486,0.264-0.451c0.615,0.174,1.125,0.596,1.605,1.222c0.478,0.627,0.703,0.769,1.596,0.769 c0.433,0,1.081-0.025,1.691-0.121c0.328-0.833,0.895-1.6,1.588-1.962c-3.996-0.411-5.903-2.399-5.903-5.098 c0-1.162,0.495-2.286,1.336-3.233C9.053,10.647,8.706,8.73,9.435,8c1.798,0,2.885,1.166,3.146,1.481C13.477,9.174,14.461,9,15.495,9 c1.036,0,2.024,0.174,2.922,0.483C18.675,9.17,19.763,8,21.565,8c0.732,0.731,0.381,2.656,0.102,3.594 c0.836,0.945,1.328,2.066,1.328,3.226c0,2.697-1.904,4.684-5.894,5.097C18.199,20.49,19,22.1,19,23.313v2.734 c0,0.104-0.023,0.179-0.035,0.268C23.641,24.676,27,20.236,27,15C27,8.373,21.627,3,15,3z" > </ path >
27
- </ svg >
28
- </ button >
29
77
</ div >
30
78
) ;
31
79
} ;
0 commit comments