-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrequest.html
More file actions
495 lines (424 loc) · 14.9 KB
/
request.html
File metadata and controls
495 lines (424 loc) · 14.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
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CharityConnect - Request Help</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;
}
.hero {
text-align: center;
padding: 100px 20px;
background: linear-gradient(135deg, #0288d1, #01579b);
color: white;
position: relative;
overflow: hidden;
}
.hero h1 {
font-size: 2.8rem;
margin-bottom: 20px;
animation: fadeInUp 1s ease-out;
}
.hero p {
font-size: 1.2rem;
max-width: 800px;
margin: 0 auto 30px;
animation: fadeInUp 1s ease-out 0.3s both;
}
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(30px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
.hero::before {
content: "";
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
background: url('https://images.unsplash.com/photo-1521791136064-7986c2920216?ixlib=rb-1.2.1&auto=format&fit=crop&w=1350&q=80') center/cover;
opacity: 0.2;
z-index: 0;
animation: zoomInOut 20s infinite alternate;
}
@keyframes zoomInOut {
0% {
transform: scale(1);
}
100% {
transform: scale(1.1);
}
}
.hero > * {
position: relative;
z-index: 1;
}
main {
max-width: 1200px;
margin: 0 auto;
padding: 30px 20px;
}
.request-form {
background: white;
padding: 30px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
margin-bottom: 40px;
}
body.dark-mode .request-form {
background: #1e1e1e;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.request-form h2 {
color: #01579b;
text-align: center;
margin-bottom: 30px;
font-size: 2rem;
}
body.dark-mode .request-form h2 {
color: #4fc3f7;
}
form {
display: grid;
grid-template-columns: 1fr;
gap: 20px;
max-width: 600px;
margin: 0 auto;
}
label {
font-weight: 600;
margin-bottom: 8px;
display: block;
color: #333;
}
body.dark-mode label {
color: #e0e0e0;
}
input, select, textarea {
width: 100%;
padding: 12px;
border: 2px solid #ddd;
border-radius: 6px;
font-size: 1rem;
font-family: "Poppins", sans-serif;
}
body.dark-mode input,
body.dark-mode select,
body.dark-mode textarea {
background: #333;
border-color: #444;
color: white;
}
button[type="submit"] {
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;
margin-top: 10px;
}
button[type="submit"]:hover {
background: #01579b;
}
.eligibility {
background: #f5f5f5;
padding: 20px;
border-radius: 10px;
margin-bottom: 40px;
}
body.dark-mode .eligibility {
background: #292929;
}
.eligibility h2 {
color: #01579b;
text-align: center;
margin-bottom: 20px;
font-size: 1.8rem;
}
body.dark-mode .eligibility h2 {
color: #4fc3f7;
}
.eligibility ul {
list-style: none;
padding: 0;
max-width: 600px;
margin: 0 auto;
}
.eligibility li {
padding: 10px 0;
font-size: 1.1rem;
position: relative;
padding-left: 35px;
}
.eligibility li:before {
content: "✔️";
position: absolute;
left: 0;
color: #2e7d32;
}
body.dark-mode .eligibility li:before {
color: #81c784;
}
.faq {
background: white;
padding: 20px;
border-radius: 10px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}
body.dark-mode .faq {
background: #1e1e1e;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}
.faq h2 {
color: #01579b;
text-align: center;
margin-bottom: 30px;
font-size: 1.8rem;
}
body.dark-mode .faq h2 {
color: #4fc3f7;
}
details {
margin-bottom: 15px;
padding: 15px;
background: #f9f9f9;
border-radius: 8px;
}
body.dark-mode details {
background: #292929;
}
summary {
font-weight: 600;
cursor: pointer;
color: #0277bd;
}
body.dark-mode summary {
color: #4fc3f7;
}
details p {
margin-top: 10px;
color: #555;
}
body.dark-mode details p {
color: #b0b0b0;
}
footer {
background: #1b1b1b;
color: white;
text-align: center;
padding: 30px 20px;
font-size: 0.9rem;
}
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;
}
.hero h1 {
font-size: 2rem;
}
.hero p {
font-size: 1rem;
}
.request-form, .eligibility, .faq {
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" class="active">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">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="hero">
<h1>Need Assistance? We Are Here to Help</h1>
<p>Fill out the form below to request help from our community support network.</p>
</section>
<section class="request-form">
<h2>Request Help Form</h2>
<form id="helpRequestForm">
<label for="name">Full Name:</label>
<input type="text" id="name" name="name" required>
<label for="email">Email Address:</label>
<input type="email" id="email" name="email" required>
<label for="phone">Phone Number:</label>
<input type="tel" id="phone" name="phone" required>
<label for="type">Type of Assistance Needed:</label>
<select id="type" name="type" required>
<option value="">Select an option</option>
<option value="food">Food Assistance</option>
<option value="medical">Medical Aid</option>
<option value="education">Education Support</option>
<option value="shelter">Shelter/Housing</option>
<option value="financial">Financial Assistance</option>
<option value="other">Other</option>
</select>
<label for="details">Describe Your Situation:</label>
<textarea id="details" name="details" rows="4" required></textarea>
<button type="submit">Submit Request</button>
</form>
</section>
<section class="eligibility">
<h2>Eligibility Criteria</h2>
<ul>
<li>Must be in genuine need of assistance</li>
<li>Proof of financial hardship may be required</li>
<li>Assistance availability depends on donations and funding</li>
<li>Priority given to families with children and seniors</li>
<li>Must be willing to provide necessary documentation</li>
</ul>
</section>
<section class="faq">
<h2>Frequently Asked Questions</h2>
<details>
<summary>How long does it take to get assistance?</summary>
<p>Processing time varies based on the type of assistance requested, but we strive to respond to all requests within 5-7 business days. Emergency requests may be processed faster.</p>
</details>
<details>
<summary>Do I need to provide proof of my situation?</summary>
<p>For certain types of assistance (especially financial aid), we may require documentation such as proof of income, medical bills, or other relevant documents to verify your need.</p>
</details>
<details>
<summary>Is there a limit to how often I can request help?</summary>
<p>Yes, to ensure we can help as many people as possible, we typically limit assistance to once every 3 months for non-emergency requests, unless special circumstances apply.</p>
</details>
<details>
<summary>What if my request is denied?</summary>
<p>If your request is denied, we will provide information about other organizations that may be able to help. You may also reapply after 30 days if your situation changes.</p>
</details>
</section>
</main>
<footer>
<p>© 2025 CharityConnect | All rights reserved.</p>
<p>Contact us at: help@charityconnect.org | Phone: 1-800-HELP-NOW</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("helpRequestForm").addEventListener("submit", function(e) {
e.preventDefault();
alert("Thank you for your request. We've received your information and will contact you within 3-5 business days.");
this.reset();
});
</script>
</body>
</html>