@@ -34,16 +34,20 @@ const CONFETTI_DARK = `url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2
34
34
function Contact ( ) {
35
35
const { hasCopied, onCopy } = useClipboard ( process . env . NEXT_PUBLIC_EMAIL ) ;
36
36
37
+ const bgColor = useColorModeValue ( 'white' , 'gray.800' ) ;
38
+ const bgImage = useColorModeValue ( CONFETTI_LIGHT , CONFETTI_DARK ) ;
39
+ const btnHoverColor = useColorModeValue ( 'white' , 'gray.700' ) ;
40
+
41
+ const formBg = useColorModeValue ( 'white' , 'gray.700' ) ;
42
+ const formColor = useColorModeValue ( 'gray.700' , 'whiteAlpha.900' ) ;
43
+
37
44
return (
38
45
< Flex
39
- bg = { useColorModeValue ( 'white' , 'gray.800' ) }
46
+ bg = { bgColor }
40
47
align = "center"
41
48
justify = "center"
42
49
css = { {
43
- backgroundImage : useColorModeValue (
44
- CONFETTI_LIGHT ,
45
- CONFETTI_DARK
46
- ) ,
50
+ backgroundImage : bgImage ,
47
51
backgroundAttachment : 'fixed' ,
48
52
} }
49
53
>
@@ -88,11 +92,8 @@ function Contact() {
88
92
fontSize = "3xl"
89
93
icon = { < MdEmail /> }
90
94
_hover = { {
91
- bg : 'blue.500' ,
92
- color : useColorModeValue (
93
- 'white' ,
94
- 'gray.700'
95
- ) ,
95
+ bg : 'green.500' ,
96
+ color : btnHoverColor ,
96
97
} }
97
98
onClick = { onCopy }
98
99
isRound
@@ -107,11 +108,8 @@ function Contact() {
107
108
fontSize = "3xl"
108
109
icon = { < BsGithub /> }
109
110
_hover = { {
110
- bg : 'blue.500' ,
111
- color : useColorModeValue (
112
- 'white' ,
113
- 'gray.700'
114
- ) ,
111
+ bg : 'black' ,
112
+ color : btnHoverColor ,
115
113
} }
116
114
isRound
117
115
/>
@@ -125,24 +123,18 @@ function Contact() {
125
123
icon = { < BsLinkedin size = "28px" /> }
126
124
_hover = { {
127
125
bg : 'blue.500' ,
128
- color : useColorModeValue (
129
- 'white' ,
130
- 'gray.700'
131
- ) ,
126
+ color : btnHoverColor ,
132
127
} }
133
128
isRound
134
129
/>
135
130
</ ExternalLink >
136
131
</ Stack >
137
132
138
133
< Box
139
- bg = { useColorModeValue ( 'white' , 'gray.700' ) }
134
+ bg = { formBg }
140
135
borderRadius = "lg"
141
136
p = { 8 }
142
- color = { useColorModeValue (
143
- 'gray.700' ,
144
- 'whiteAlpha.900'
145
- ) }
137
+ color = { formColor }
146
138
shadow = "dark-lg"
147
139
>
148
140
< ContactForm />
0 commit comments