@@ -4,7 +4,6 @@ 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' ;
87
98function AsciiConverterPage ( ) {
109 usePageTitle ( 'Text to ASCII Converter' ) ;
@@ -87,12 +86,6 @@ function AsciiConverterPage() {
8786 } ) ;
8887 } ;
8988
90- const cardStyle = {
91- backgroundColor : colors [ 'app-alpha-10' ] ,
92- borderColor : colors [ 'app-alpha-50' ] ,
93- color : colors . app ,
94- } ;
95-
9689 const detailTextColor = colors [ 'app-light' ] ;
9790
9891 return (
@@ -114,8 +107,7 @@ function AsciiConverterPage() {
114107 < hr className = "border-gray-700" />
115108 < div className = "flex justify-center items-center mt-16" >
116109 < div
117- className = "group bg-transparent border rounded-lg shadow-2xl p-6 flex flex-col justify-between relative transform transition-all duration-300 ease-in-out scale-105 overflow-hidden h-full w-full max-w-4xl"
118- style = { cardStyle }
110+ className = "group border rounded-lg shadow-2xl p-6 flex flex-col justify-between relative transform transition-all duration-300 ease-in-out scale-105 overflow-hidden h-full w-full max-w-4xl bg-app-alpha-10 hover:bg-app/15 text-app border-app"
119111 >
120112 < div
121113 className = "absolute top-0 left-0 w-full h-full opacity-10"
@@ -129,10 +121,10 @@ function AsciiConverterPage() {
129121 < hr className = "border-gray-700 mb-4" />
130122 < div className = "relative z-10 p-1" >
131123 < div className = "mb-4" >
132- < label className = "block text-lg font-semibold mb-2" style = { { color : cardStyle . color } } > Input Text</ label >
124+ < label className = "block text-lg font-semibold mb-2 text-app" > Input Text</ label >
133125 < textarea
134- className = "w-full h-32 p-4 bg-gray-900/50 font-mono resize-y border rounded-md focus:ring-0 "
135- style = { { borderColor : cardStyle . borderColor , color : detailTextColor } }
126+ className = "w-full h-32 p-4 bg-gray-900/50 font-mono resize-y focus:ring-0 border rounded-md border-app "
127+ style = { { color : detailTextColor } }
136128 value = { inputText }
137129 onChange = { ( e ) => setInputText ( e . target . value ) }
138130 placeholder = "Enter text or ASCII codes (space-separated) to convert..."
@@ -141,62 +133,38 @@ function AsciiConverterPage() {
141133 < div className = "flex justify-center gap-4 mb-4" >
142134 < button
143135 onClick = { textToAscii }
144- className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out app-button-hover"
145- style = { {
146- backgroundColor : 'rgba(0, 0, 0, 0.2)' ,
147- color : cardStyle . color ,
148- borderColor : cardStyle . borderColor ,
149- border : '1px solid' ,
150- } }
136+ className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out bg-tb hover:bg-app/30 text-app border-app border"
151137 >
152138 Text to ASCII
153139 </ button >
154140 < button
155141 onClick = { asciiToText }
156- className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out app-button-hover"
157- style = { {
158- backgroundColor : 'rgba(0, 0, 0, 0.2)' ,
159- color : cardStyle . color ,
160- borderColor : cardStyle . borderColor ,
161- border : '1px solid' ,
162- } }
142+ className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out bg-tb hover:bg-app/30 text-app border-app border"
163143 >
164144 ASCII to Text
165145 </ button >
166146 </ div >
167147 < div className = "flex justify-center gap-4 mb-4" >
168148 < button
169149 onClick = { textToBinary }
170- className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out app-button-hover"
171- style = { {
172- backgroundColor : 'rgba(0, 0, 0, 0.2)' ,
173- color : cardStyle . color ,
174- borderColor : cardStyle . borderColor ,
175- border : '1px solid' ,
176- } }
150+ className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out bg-tb hover:bg-app/30 text-app border-app border"
177151 >
178152 Text to Binary
179153 </ button >
180154 < button
181155 onClick = { binaryToText }
182- className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out app-button-hover"
183- style = { {
184- backgroundColor : 'rgba(0, 0, 0, 0.2)' ,
185- color : cardStyle . color ,
186- borderColor : cardStyle . borderColor ,
187- border : '1px solid' ,
188- } }
156+ className = "px-6 py-2 rounded-md text-lg font-arvo font-normal transition-colors duration-300 ease-in-out bg-tb hover:bg-app/30 text-app border-app border"
189157 >
190158 Binary to Text
191159 </ button >
192160 </ div >
193161 < div >
194- < label className = "block text-lg font-semibold mb-2" style = { { color : cardStyle . color } } > ASCII Output</ label >
162+ < label className = "block text-lg font-semibold mb-2 text-app" > ASCII Output</ label >
195163 < div className = "relative" >
196164 < textarea
197165 readOnly
198- className = "w-full h-32 p-4 bg-gray-800/50 font-mono resize-y border rounded-md mb-4"
199- style = { { borderColor : cardStyle . borderColor , color : detailTextColor } }
166+ className = "w-full h-32 p-4 bg-gray-800/50 font-mono resize-y border rounded-md mb-4 border-app "
167+ style = { { color : detailTextColor } }
200168 value = { asciiOutput }
201169 placeholder = "Converted ASCII will appear here..."
202170 />
@@ -209,12 +177,12 @@ function AsciiConverterPage() {
209177 </ div >
210178 </ div >
211179 < div >
212- < label className = "block text-lg font-semibold mb-2" style = { { color : cardStyle . color } } > Binary Output</ label >
180+ < label className = "block text-lg font-semibold mb-2 text-app" > Binary Output</ label >
213181 < div className = "relative" >
214182 < textarea
215183 readOnly
216- className = "w-full h-32 p-4 bg-gray-800/50 font-mono resize-y border rounded-md"
217- style = { { borderColor : cardStyle . borderColor , color : detailTextColor } }
184+ className = "w-full h-32 p-4 bg-gray-800/50 font-mono resize-y border rounded-md border-app "
185+ style = { { color : detailTextColor } }
218186 value = { binaryOutput }
219187 placeholder = "Converted Binary will appear here..."
220188 />
0 commit comments