@@ -4,6 +4,7 @@ import { ArrowLeftIcon } from '@phosphor-icons/react';
44import colors from '../../config/colors' ;
55import usePageTitle from '../../utils/usePageTitle' ;
66import { useToast } from '../../hooks/useToast' ;
7+ import '../../styles/app-buttons.css' ;
78
89function AsciiConverterPage ( ) {
910 usePageTitle ( 'Text to ASCII Converter' ) ;
@@ -138,63 +139,51 @@ function AsciiConverterPage() {
138139 < div className = "flex justify-center gap-4 mb-4" >
139140 < button
140141 onClick = { textToAscii }
141- className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out"
142+ className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out app-button-hover "
142143 style = { {
143144 backgroundColor : 'rgba(0, 0, 0, 0.2)' ,
144145 color : cardStyle . color ,
145146 borderColor : cardStyle . borderColor ,
146147 border : '1px solid' ,
147- '--hover-bg-color' : colors [ 'app-alpha-50' ] ,
148148 } }
149- onMouseEnter = { ( e ) => e . currentTarget . style . backgroundColor = 'var(--hover-bg-color)' }
150- onMouseLeave = { ( e ) => e . currentTarget . style . backgroundColor = 'rgba(0, 0, 0, 0.2)' }
151149 >
152150 Text to ASCII
153151 </ button >
154152 < button
155153 onClick = { asciiToText }
156- className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out"
154+ className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out app-button-hover "
157155 style = { {
158156 backgroundColor : 'rgba(0, 0, 0, 0.2)' ,
159157 color : cardStyle . color ,
160158 borderColor : cardStyle . borderColor ,
161159 border : '1px solid' ,
162- '--hover-bg-color' : colors [ 'app-alpha-50' ] ,
163160 } }
164- onMouseEnter = { ( e ) => e . currentTarget . style . backgroundColor = 'var(--hover-bg-color)' }
165- onMouseLeave = { ( e ) => e . currentTarget . style . backgroundColor = 'rgba(0, 0, 0, 0.2)' }
166161 >
167162 ASCII to Text
168163 </ button >
169164 </ div >
170165 < div className = "flex justify-center gap-4 mb-4" >
171166 < button
172167 onClick = { textToBinary }
173- className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out"
168+ className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out app-button-hover "
174169 style = { {
175170 backgroundColor : 'rgba(0, 0, 0, 0.2)' ,
176171 color : cardStyle . color ,
177172 borderColor : cardStyle . borderColor ,
178173 border : '1px solid' ,
179- '--hover-bg-color' : colors [ 'app-alpha-50' ] ,
180174 } }
181- onMouseEnter = { ( e ) => e . currentTarget . style . backgroundColor = 'var(--hover-bg-color)' }
182- onMouseLeave = { ( e ) => e . currentTarget . style . backgroundColor = 'rgba(0, 0, 0, 0.2)' }
183175 >
184176 Text to Binary
185177 </ button >
186178 < button
187179 onClick = { binaryToText }
188- className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out"
180+ className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out app-button-hover "
189181 style = { {
190182 backgroundColor : 'rgba(0, 0, 0, 0.2)' ,
191183 color : cardStyle . color ,
192184 borderColor : cardStyle . borderColor ,
193185 border : '1px solid' ,
194- '--hover-bg-color' : colors [ 'app-alpha-50' ] ,
195186 } }
196- onMouseEnter = { ( e ) => e . currentTarget . style . backgroundColor = 'var(--hover-bg-color)' }
197- onMouseLeave = { ( e ) => e . currentTarget . style . backgroundColor = 'rgba(0, 0, 0, 0.2)' }
198187 >
199188 Binary to Text
200189 </ button >
0 commit comments