-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontact.html
More file actions
367 lines (313 loc) · 10.9 KB
/
contact.html
File metadata and controls
367 lines (313 loc) · 10.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CharityConnect - Contact Us</title>
<style>
body {
font-family: "Poppins", sans-serif;
margin: 0;
padding: 0;
background: linear-gradient(135deg, #e3f2fd, #bbdefb);
color: #333;
transition: background-color 0.5s, color 0.5s;
line-height: 1.6;
}
body.dark-mode {
background: linear-gradient(135deg, #1e1e1e, #292929);
color: #f8f9fa;
}
header {
background: linear-gradient(to right, #0277bd, #01579b);
padding: 15px 20px;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}
.logo {
height: 70px;
width: auto;
}
nav ul {
list-style: none;
padding: 0;
display: flex;
margin: 0;
align-items: center;
}
nav ul li {
margin: 0 12px;
}
nav ul li a {
text-decoration: none;
color: white;
font-weight: 600;
font-size: 1rem;
transition: all 0.3s ease;
padding: 8px 12px;
border-radius: 4px;
}
nav ul li a:hover {
background: rgba(255, 255, 255, 0.2);
}
nav ul li a.active {
background: rgba(255, 255, 255, 0.3);
}
.dark-mode-toggle {
background: #333;
color: white;
border: none;
padding: 8px 16px;
border-radius: 4px;
cursor: pointer;
font-family: "Poppins", sans-serif;
font-weight: 600;
transition: background 0.3s;
}
.dark-mode-toggle:hover {
background: #555;
}
body.dark-mode .dark-mode-toggle {
background: #555;
color: white;
}
main {
max-width: 800px;
margin: 40px auto;
padding: 0 20px;
}
.contact-container {
display: flex;
flex-direction: column;
gap: 40px;
}
.contact-container h1 {
text-align: center;
color: #01579b;
font-size: 2.5rem;
margin-bottom: 20px;
animation: fadeIn 1s ease-out;
}
body.dark-mode .contact-container h1 {
color: #4fc3f7;
}
@keyframes fadeIn {
from { opacity: 0; }
to { opacity: 1; }
}
.contact-info {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
body.dark-mode .contact-info {
background: #1e1e1e;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.contact-info p {
margin-bottom: 15px;
font-size: 1.1rem;
}
.contact-info strong {
color: #0277bd;
font-weight: 600;
}
body.dark-mode .contact-info strong {
color: #4fc3f7;
}
.contact-form {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
display: grid;
grid-template-columns: 1fr;
gap: 20px;
}
body.dark-mode .contact-form {
background: #1e1e1e;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.contact-form label {
display: block;
margin-bottom: 8px;
font-weight: 600;
color: #333;
}
body.dark-mode .contact-form label {
color: #e0e0e0;
}
.contact-form input,
.contact-form textarea,
.contact-form select {
width: 100%;
padding: 12px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 1rem;
font-family: "Poppins", sans-serif;
transition: border-color 0.3s;
box-sizing: border-box;
}
body.dark-mode .contact-form input,
body.dark-mode .contact-form textarea,
body.dark-mode .contact-form select {
background: #333;
border-color: #444;
color: white;
}
.contact-form input:focus,
.contact-form textarea:focus {
border-color: #0277bd;
outline: none;
}
body.dark-mode .contact-form input:focus,
body.dark-mode .contact-form textarea:focus {
border-color: #4fc3f7;
}
.contact-form textarea {
resize: vertical;
min-height: 150px;
}
.contact-form button {
background: #0277bd;
color: white;
border: none;
padding: 15px;
border-radius: 8px;
cursor: pointer;
font-family: "Poppins", sans-serif;
font-weight: bold;
font-size: 1.1rem;
transition: background 0.3s, transform 0.2s;
width: 100%;
margin-top: 10px;
}
.contact-form button:hover {
background: #01579b;
transform: translateY(-2px);
}
footer {
background: #1b1b1b;
color: white;
text-align: center;
padding: 30px 20px;
font-size: 0.9rem;
margin-top: 60px;
}
body.dark-mode footer {
background: #000;
}
@media (max-width: 768px) {
header {
flex-direction: column;
padding: 15px;
}
.logo {
margin-bottom: 15px;
}
nav ul {
flex-wrap: wrap;
justify-content: center;
}
nav ul li {
margin: 5px 8px;
}
.contact-container h1 {
font-size: 2rem;
}
.contact-info,
.contact-form {
padding: 20px;
}
}
</style>
</head>
<body>
<header>
<img src="logo.png" alt="CharityConnect Logo" class="logo">
<nav>
<ul>
<li><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="donate.html">Donate</a></li>
<li><a href="request.html">Request Help</a></li>
<li><a href="events.html">Events</a></li>
<li><a href="testimonials.html">Testimonials</a></li>
<li><a href="blog.html">Blog</a></li>
<li><a href="contact.html" class="active">Contact</a></li>
<li><a href="faq.html">FAQ</a></li>
<li><button class="dark-mode-toggle" onclick="toggleDarkMode()">Dark Mode</button></li>
</ul>
</nav>
</header>
<main>
<section class="contact-container">
<h1>Contact Us</h1>
<div class="contact-info">
<p><strong>Office Address:</strong></p>
<p>CharityConnect Foundation,</p>
<p>123 MG Road, Bengaluru, India - 560001</p>
<p><strong>Phone:</strong> +91 1234567890</p>
<p><strong>Email:</strong> support@charityconnect.org</p>
<p><strong>Working Hours:</strong></p>
<p>Monday to Friday: 9:00 AM - 6:00 PM</p>
<p>Saturday: 10:00 AM - 4:00 PM</p>
<p>Sunday: Closed</p>
</div>
<form class="contact-form" id="contactForm">
<div>
<label for="name">Your Name</label>
<input type="text" id="name" name="name" placeholder="Enter your name" required>
</div>
<div>
<label for="email">Your Email</label>
<input type="email" id="email" name="email" placeholder="Enter your email" required>
</div>
<div>
<label for="subject">Subject</label>
<input type="text" id="subject" name="subject" placeholder="Enter subject" required>
</div>
<div>
<label for="message">Your Message</label>
<textarea id="message" name="message" rows="5" placeholder="Write your message..." required></textarea>
</div>
<button type="submit">Send Message</button>
</form>
</section>
</main>
<footer>
<p>© 2025 CharityConnect | All rights reserved.</p>
<p>Follow us on:
<a href="https://www.facebook.com/" style="color: #4fc3f7;">Facebook</a> |
<a href="https://www.instagram.com/" style="color: #4fc3f7;">Twitter</a> |
<a href="https://x.com/?lang=en" style="color: #4fc3f7;">Instagram</a>
</p>
</footer>
<script>
function toggleDarkMode() {
document.body.classList.toggle("dark-mode");
const darkModeBtn = document.querySelector(".dark-mode-toggle");
if (document.body.classList.contains("dark-mode")) {
darkModeBtn.textContent = "Light Mode";
localStorage.setItem("darkMode", "enabled");
} else {
darkModeBtn.textContent = "Dark Mode";
localStorage.setItem("darkMode", "disabled");
}
}
if (localStorage.getItem("darkMode") === "enabled") {
document.body.classList.add("dark-mode");
document.querySelector(".dark-mode-toggle").textContent = "Light Mode";
}
document.getElementById("contactForm").addEventListener("submit", function(e) {
e.preventDefault();
alert("Thank you for your message! We'll get back to you soon.");
this.reset();
});
</script>
</body>
</html>