@@ -23,7 +23,8 @@ export const socialLinks: SocialLink[] = [
23
23
name : 'twitter' ,
24
24
href : `https://twitter.com/${ config . twitter } ` ,
25
25
title : `Twitter @${ config . twitter } ` ,
26
- color : "#2795e9" ,
26
+ color : "#ffffff" ,
27
+ background : "#2795e9" ,
27
28
icon : FaTwitter
28
29
} ,
29
30
config . twitterX && {
@@ -46,7 +47,11 @@ export const socialLinks: SocialLink[] = [
46
47
name : 'github' ,
47
48
href : `https://github.com/${ config . github } ` ,
48
49
title : `GitHub @${ config . github } ` ,
49
- color : "#c9510c" ,
50
+ // FIXME: Figure out great way to preserve github black and white theme, For now it uses rainbow
51
+ color : "#ffffff" ,
52
+ // Fun rainbow background, similarl as their pride logo
53
+ // FIXME: Gradients can't be transitioned with css :(
54
+ background : "linear-gradient(to bottom, #C6474E 0%, #C6474E 17%, #D67940 17%, #D67940 33%, #F8D45C 33%, #F8D45C 50%, #67A25A 50%, #67A25A 67%, #3A63C7 67%, #3A63C7 84%, #6446B4 84%)" ,
50
55
icon : FaGithub
51
56
} ,
52
57
@@ -62,7 +67,8 @@ export const socialLinks: SocialLink[] = [
62
67
name : 'linkedin' ,
63
68
href : `https://www.linkedin.com/in/${ config . linkedin } ` ,
64
69
title : `LinkedIn ${ config . author } ` ,
65
- color : "#0077b5" ,
70
+ color : "#ffffff" ,
71
+ background : "#0077b5" ,
66
72
icon : FaLinkedin
67
73
} ,
68
74
@@ -95,7 +101,8 @@ export const socialLinks: SocialLink[] = [
95
101
name : 'reddit' ,
96
102
href : `https://www.reddit.com/u/${ config . reddit } ` ,
97
103
title : `Reddit @${ config . reddit } ` ,
98
- color : "#ff0000" ,
104
+ color : "#ffffff" ,
105
+ background : "#FF5700" ,
99
106
icon : FaReddit
100
107
} ,
101
108
@@ -112,31 +119,13 @@ export function PageSocial() {
112
119
return (
113
120
< >
114
121
< div className = { styles . pageSocial } >
115
- { socialLinks . map ( ( action ) => (
116
- < >
117
- < a
118
- key = { action . name }
119
- style = { { '--hover-color' : action . color } as React . CSSProperties }
120
- className = { cs ( styles . action , styles [ action . name ] , styles . socialLink ) }
121
- href = { action . href }
122
- title = { action . title }
123
- target = '_blank'
124
- rel = 'noopener noreferrer'
125
- >
126
- < div className = { styles . actionBg } >
127
- < div className = { styles . actionBgPane } style = { { background : action . background } as React . CSSProperties } />
128
- </ div >
129
-
130
- < div className = { styles . actionBg } > { action . icon ( { size : 24 } ) } </ div >
131
- </ a >
132
- </ >
133
- ) ) }
122
+ < PageSocialButtons iconSize = { 24 } />
134
123
</ div >
135
124
</ >
136
125
)
137
126
}
138
127
139
- export function PageSocialButtons ( ) {
128
+ export function PageSocialButtons ( { iconSize = 32 } : { iconSize : number } ) {
140
129
return (
141
130
< >
142
131
{ socialLinks . map ( ( action ) => (
@@ -149,7 +138,7 @@ export function PageSocialButtons() {
149
138
target = '_blank'
150
139
rel = 'noopener noreferrer'
151
140
>
152
- { action . icon ( { size : 32 } ) }
141
+ { action . icon ( { size : iconSize } ) }
153
142
</ a >
154
143
) ) }
155
144
</ >
0 commit comments