Skip to content

Commit 61c3753

Browse files
authored
Merge pull request #545 from Codeboy20/jayyy
Fix : Text Visibility in light mode on Contact page
2 parents 5d7ed1d + 3cf9e4e commit 61c3753

File tree

1 file changed

+37
-30
lines changed

1 file changed

+37
-30
lines changed

src/pages/contact-us/index.tsx

Lines changed: 37 additions & 30 deletions
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ const ContactUs: React.FC = () => {
9999
<h1 className="text-4xl md:text-5xl font-bold gradient-text mb-6">
100100
Get In Touch
101101
</h1>
102-
<p className="text-lg text-gray-600 dark:text-gray-300 max-w-2xl mx-auto">
102+
<p className="text-lg max-w-2xl mx-auto" style={{color: 'white'}}>
103103
Have questions, feedback, or want to collaborate? We'd love to hear from you.
104104
Reach out to us and we'll get back to you as soon as possible.
105105
</p>
@@ -109,7 +109,7 @@ const ContactUs: React.FC = () => {
109109
{/* Contact Information */}
110110
<div className="space-y-8">
111111
<div>
112-
<h2 className="text-2xl font-bold text-gray-900 dark:text-white mb-6">
112+
<h2 className="text-2xl font-bold mb-6" style={{color: 'white'}}>
113113
Contact Information
114114
</h2>
115115

@@ -120,14 +120,14 @@ const ContactUs: React.FC = () => {
120120
<Mail className="w-6 h-6 text-blue-600 dark:text-blue-400" />
121121
</div>
122122
<div>
123-
<h3 className="font-semibold text-gray-900 dark:text-white">Email</h3>
123+
<h3 className="font-semibold" style={{color: 'white'}}>Email</h3>
124124
<a
125125
href="mailto:[email protected]"
126-
className="text-blue-600 dark:text-blue-400 hover:underline"
126+
className="text-blue-400 hover:underline"
127127
>
128128
129129
</a>
130-
<p className="text-sm text-gray-600 dark:text-gray-400 mt-1">
130+
<p className="text-sm mt-1" style={{color: 'white'}}>
131131
General inquiries and support
132132
</p>
133133
</div>
@@ -139,11 +139,11 @@ const ContactUs: React.FC = () => {
139139
<Clock className="w-6 h-6 text-green-600 dark:text-green-400" />
140140
</div>
141141
<div>
142-
<h3 className="font-semibold text-gray-900 dark:text-white">Response Time</h3>
143-
<p className="text-gray-600 dark:text-gray-300">
142+
<h3 className="font-semibold" style={{color: 'white'}}>Response Time</h3>
143+
<p style={{color: 'white'}}>
144144
Within 24-48 hours
145145
</p>
146-
<p className="text-sm text-gray-600 dark:text-gray-400 mt-1">
146+
<p className="text-sm mt-1" style={{color: 'white'}}>
147147
We'll get back to you promptly
148148
</p>
149149
</div>
@@ -155,11 +155,11 @@ const ContactUs: React.FC = () => {
155155
<MapPin className="w-6 h-6 text-purple-600 dark:text-purple-400" />
156156
</div>
157157
<div>
158-
<h3 className="font-semibold text-gray-900 dark:text-white">Location</h3>
159-
<p className="text-gray-600 dark:text-gray-300">
158+
<h3 className="font-semibold" style={{color: 'white'}}>Location</h3>
159+
<p style={{color: 'white'}}>
160160
Online & Global
161161
</p>
162-
<p className="text-sm text-gray-600 dark:text-gray-400 mt-1">
162+
<p className="text-sm mt-1" style={{color: 'white'}}>
163163
Serving developers worldwide
164164
</p>
165165
</div>
@@ -168,11 +168,11 @@ const ContactUs: React.FC = () => {
168168
</div>
169169

170170
{/* Additional Information */}
171-
<div className="bg-gradient-to-r from-blue-50 to-purple-50 dark:from-blue-900/20 dark:to-purple-900/20 p-6 rounded-xl">
172-
<h3 className="font-bold text-gray-900 dark:text-white mb-3">
171+
<div className="bg-gradient-to-r from-blue-50 to-purple-50 dark:from-blue-950/50 dark:to-purple-950/50 border border-gray-200 dark:border-gray-700 p-6 rounded-xl">
172+
<h3 className="font-bold mb-3" style={{color: 'white'}}>
173173
What we can help you with:
174174
</h3>
175-
<ul className="space-y-2 text-gray-600 dark:text-gray-300">
175+
<ul className="space-y-2" style={{color: 'white'}}>
176176
<li className="flex items-center space-x-2">
177177
<span className="w-2 h-2 bg-blue-500 rounded-full"></span>
178178
<span>Learning resources and tutorials</span>
@@ -198,21 +198,22 @@ const ContactUs: React.FC = () => {
198198
</div>
199199

200200
{/* Contact Form */}
201-
<div className="bg-white dark:bg-gray-800 rounded-2xl shadow-xl p-8">
202-
<h2 className="text-2xl font-bold text-gray-900 dark:text-white mb-6">
201+
<div className="bg-gray-50 dark:bg-gray-800 border border-gray-200 dark:border-gray-700 rounded-2xl shadow-xl p-8">
202+
<h2 className="text-2xl font-bold mb-6" style={{color: 'white'}}>
203203
Send us a message
204204
</h2>
205205

206206
<form onSubmit={handleSubmit} className="space-y-6">
207207
<div className="grid md:grid-cols-2 gap-4">
208208
<div>
209-
<label htmlFor="firstName" className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
209+
<label htmlFor="firstName" className="block text-sm font-medium mb-2" style={{color: 'white'}}>
210210
First Name
211211
</label>
212212
<input
213213
type="text"
214214
id="firstName"
215215
name="firstName"
216+
className="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 transition-colors"
216217
value={formData.firstName}
217218
onChange={handleChange}
218219
className="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:text-white"
@@ -221,13 +222,14 @@ const ContactUs: React.FC = () => {
221222
{errors.firstName && <p className="text-red-500 text-xs mt-1">{errors.firstName}</p>}
222223
</div>
223224
<div>
224-
<label htmlFor="lastName" className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
225+
<label htmlFor="lastName" className="block text-sm font-medium mb-2" style={{color: 'white'}}>
225226
Last Name
226227
</label>
227228
<input
228229
type="text"
229230
id="lastName"
230231
name="lastName"
232+
className="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 transition-colors"
231233
value={formData.lastName}
232234
onChange={handleChange}
233235
className="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:text-white"
@@ -238,13 +240,14 @@ const ContactUs: React.FC = () => {
238240
</div>
239241

240242
<div>
241-
<label htmlFor="email" className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
243+
<label htmlFor="email" className="block text-sm font-medium mb-2" style={{color: 'white'}}>
242244
Email Address
243245
</label>
244246
<input
245247
type="email"
246248
id="email"
247249
name="email"
250+
className="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 transition-colors"
248251
value={formData.email}
249252
onChange={handleChange}
250253
className="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:text-white"
@@ -254,17 +257,19 @@ const ContactUs: React.FC = () => {
254257
</div>
255258

256259
<div>
257-
<label htmlFor="subject" className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
260+
<label htmlFor="subject" className="block text-sm font-medium mb-2" style={{color: 'white'}}>
258261
Subject
259262
</label>
260263
<select
261264
id="subject"
262265
name="subject"
266+
className="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white transition-colors"
267+
required
263268
value={formData.subject}
264269
onChange={handleChange}
265270
className="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:text-white"
266271
>
267-
<option value="">Select a subject</option>
272+
<option value="" className="text-gray-500 dark:text-gray-400">Select a subject</option>
268273
<option value="general">General Inquiry</option>
269274
<option value="support">Technical Support</option>
270275
<option value="collaboration">Collaboration</option>
@@ -276,13 +281,15 @@ const ContactUs: React.FC = () => {
276281
</div>
277282

278283
<div>
279-
<label htmlFor="message" className="block text-sm font-medium text-gray-700 dark:text-gray-300 mb-2">
284+
<label htmlFor="message" className="block text-sm font-medium mb-2" style={{color: 'white'}}>
280285
Message
281286
</label>
282287
<textarea
283288
id="message"
284289
name="message"
285290
rows={6}
291+
className="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-blue-500 dark:bg-gray-700 dark:text-white placeholder-gray-500 dark:placeholder-gray-400 resize-none transition-colors"
292+
286293
value={formData.message}
287294
onChange={handleChange}
288295
className="w-full px-4 py-3 border border-gray-300 dark:border-gray-600 rounded-lg focus:ring-2 focus:ring-blue-500 focus:border-transparent dark:bg-gray-700 dark:text-white resize-none"
@@ -293,7 +300,7 @@ const ContactUs: React.FC = () => {
293300

294301
<button
295302
type="submit"
296-
className="w-full bg-gradient-to-r from-blue-600 to-purple-600 text-white font-semibold py-3 px-6 rounded-lg hover:from-blue-700 hover:to-purple-700 transition-all duration-300 transform hover:scale-[1.02] shadow-lg"
303+
className="w-full bg-gradient-to-r from-blue-600 to-purple-600 hover:from-blue-700 hover:to-purple-700 text-white font-semibold py-3 px-6 rounded-lg transition-all duration-300 transform hover:scale-[1.02] shadow-lg hover:shadow-xl"
297304
>
298305
Send Message
299306
</button>
@@ -303,15 +310,15 @@ const ContactUs: React.FC = () => {
303310

304311
{/* Additional Resources */}
305312
<div className="mt-16 text-center">
306-
<h2 className="text-2xl font-bold text-gray-900 dark:text-white mb-8">
313+
<h2 className="text-2xl font-bold mb-8" style={{color: 'white'}}>
307314
Other Ways to Connect
308315
</h2>
309316
<div className="grid md:grid-cols-3 gap-6">
310317
<a
311318
href="/community"
312-
className="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-[1.02]"
319+
className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 p-6 rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-[1.02] group"
313320
>
314-
<div className="text-blue-600 dark:text-blue-400 text-2xl mb-3">📚</div>
321+
<div className="text-blue-600 dark:text-blue-400 text-2xl mb-3 group-hover:scale-110 transition-transform">📚</div>
315322
<h3 className="font-semibold text-gray-900 dark:text-white mb-2">Community</h3>
316323
<p className="text-gray-600 dark:text-gray-400 text-sm">
317324
Join our community and connect with fellow developers
@@ -320,9 +327,9 @@ const ContactUs: React.FC = () => {
320327

321328
<a
322329
href="/docs"
323-
className="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-[1.02]"
330+
className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 p-6 rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-[1.02] group"
324331
>
325-
<div className="text-green-600 dark:text-green-400 text-2xl mb-3">📖</div>
332+
<div className="text-green-600 dark:text-green-400 text-2xl mb-3 group-hover:scale-110 transition-transform">📖</div>
326333
<h3 className="font-semibold text-gray-900 dark:text-white mb-2">Documentation</h3>
327334
<p className="text-gray-600 dark:text-gray-400 text-sm">
328335
Explore our comprehensive learning resources
@@ -331,9 +338,9 @@ const ContactUs: React.FC = () => {
331338

332339
<a
333340
href="/blogs"
334-
className="bg-white dark:bg-gray-800 p-6 rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-[1.02]"
341+
className="bg-white dark:bg-gray-800 border border-gray-200 dark:border-gray-700 p-6 rounded-xl shadow-lg hover:shadow-xl transition-all duration-300 hover:scale-[1.02] group"
335342
>
336-
<div className="text-purple-600 dark:text-purple-400 text-2xl mb-3">✍️</div>
343+
<div className="text-purple-600 dark:text-purple-400 text-2xl mb-3 group-hover:scale-110 transition-transform">✍️</div>
337344
<h3 className="font-semibold text-gray-900 dark:text-white mb-2">Blog</h3>
338345
<p className="text-gray-600 dark:text-gray-400 text-sm">
339346
Read our latest articles and tutorials

0 commit comments

Comments
 (0)