-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfaq.html
More file actions
370 lines (312 loc) · 11.4 KB
/
faq.html
File metadata and controls
370 lines (312 loc) · 11.4 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CharityConnect - FAQs</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, #b3d7f4, rgb(7, 101, 177));
padding: 12px 20px;
display: flex;
align-items: center;
justify-content: space-between;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.logo {
height: 90px;
width: auto;
}
nav ul {
list-style: none;
padding: 0;
display: flex;
}
nav ul li {
margin: 0 15px;
}
nav ul li a {
text-decoration: none;
color: white;
font-weight: bold;
transition: color 0.3s, transform 0.2s;
}
nav ul li a:hover {
color: #13120c;
transform: scale(1.1);
}
main {
max-width: 1000px;
margin: 30px auto;
padding: 0 20px;
}
h1, h2 {
color: #01579b;
text-align: center;
}
body.dark-mode h1,
body.dark-mode h2 {
color: #4fc3f7;
}
.faq-container {
margin-bottom: 50px;
}
.faq-item {
background: white;
margin-bottom: 15px;
border-radius: 8px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
transition: transform 0.3s;
}
body.dark-mode .faq-item {
background: #333;
}
.faq-item:hover {
transform: translateY(-3px);
}
.faq-item h3 {
margin: 0;
cursor: pointer;
display: flex;
justify-content: space-between;
align-items: center;
}
.faq-item h3::after {
content: "+";
font-size: 1.5rem;
}
.faq-item h3.active::after {
content: "-";
}
.faq-item p {
display: none;
margin-top: 15px;
padding-top: 15px;
border-top: 1px solid #eee;
}
body.dark-mode .faq-item p {
border-top-color: #555;
}
.ask-question {
background: white;
padding: 30px;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
margin-top: 40px;
}
body.dark-mode .ask-question {
background: #333;
}
#questionForm {
display: flex;
flex-direction: column;
max-width: 600px;
margin: 0 auto;
}
#questionForm input,
#questionForm textarea {
margin-bottom: 20px;
padding: 12px;
border: 1px solid #ddd;
border-radius: 6px;
font-family: "Poppins", sans-serif;
}
body.dark-mode #questionForm input,
body.dark-mode #questionForm textarea {
background: #444;
color: #f8f9fa;
border-color: #555;
}
#questionForm textarea {
resize: vertical;
min-height: 100px;
}
#questionForm button {
background: #0277bd;
color: white;
border: none;
padding: 15px;
border-radius: 5px;
font-size: 1.1rem;
font-weight: bold;
cursor: pointer;
transition: background 0.3s;
}
#questionForm button:hover {
background: #01579b;
}
footer {
background: #1b1b1b;
color: white;
text-align: center;
padding: 30px 20px;
font-size: 0.9rem;
margin-top: 50px;
}
.dark-mode-toggle {
position: fixed;
bottom: 20px;
right: 20px;
padding: 10px 15px;
border: none;
cursor: pointer;
font-weight: bold;
background: #333;
color: white;
border-radius: 5px;
transition: background 0.3s;
z-index: 100;
}
.dark-mode-toggle:hover {
background: #555;
}
body.dark-mode .dark-mode-toggle {
background: #555;
color: #f8f9fa;
}
@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 10px;
}
.faq-item {
padding: 15px;
}
.ask-question {
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="donate.html">Donate</a></li>
</ul>
</nav>
</header>
<main>
<section class="faq-container">
<h1>Frequently Asked Questions</h1>
<div class="faq-item">
<h3>1. How can I donate?</h3>
<p>You can donate through our secure payment options listed on the donation page.</p>
</div>
<div class="faq-item">
<h3>2. Can I donate anonymously?</h3>
<p>Absolutely! You can choose to donate anonymously by selecting the checkbox on the donation form. Your personal details will remain confidential.</p>
</div>
<div class="faq-item">
<h3>3. Are donations tax-deductible?</h3>
<p>Yes, all donations are eligible for tax deductions. You will receive a receipt for tax purposes.</p>
</div>
<div class="faq-item">
<h3>4. What payment methods are accepted?</h3>
<p>We accept UPI, credit/debit cards, and net banking.</p>
</div>
<div class="faq-item">
<h3>5. How is my donation used?</h3>
<p>Your donation goes towards various causes, including food, education, and healthcare. We provide regular updates, impact reports, and financial statements. You can also visit our website to see where your contributions are making a difference.</p>
</div>
<div class="faq-item">
<h3>6. Can I choose where my donation goes?</h3>
<p>Yes, you can select a specific fund or choose 'General Donation' to support all causes.</p>
</div>
<div class="faq-item">
<h3>7. Is my donation secure?</h3>
<p>Yes, we use secure encryption for all transactions to ensure your data is safe.</p>
</div>
<div class="faq-item">
<h3>8. How do I get a receipt?</h3>
<p>Receipts are sent to your email after the donation is processed.</p>
</div>
<div class="faq-item">
<h3>9. Can I set up a recurring donation?</h3>
<p>Currently, we only support one-time donations, but we are working on adding this feature.</p>
</div>
<div class="faq-item">
<h3>10. How can I contact support?</h3>
<p>You can reach us through our contact page or email support@charityconnect.com.</p>
</div>
</section>
<section class="ask-question">
<h2>Still have a question?</h2>
<p>Submit your question below, and we'll get back to you!</p>
<form id="questionForm">
<input type="text" id="questionName" name="name" placeholder="Your Name" required>
<input type="email" id="questionEmail" name="email" placeholder="Your Email" required>
<textarea id="questionText" name="question" rows="4" placeholder="Your Question" required></textarea>
<button type="submit">Submit</button>
</form>
</section>
</main>
<footer>
<p>© 2025 CharityConnect | All rights reserved.</p>
</footer>
<button class="dark-mode-toggle" id="darkModeToggle">Dark Mode</button>
<script>
document.addEventListener("DOMContentLoaded", function () {
document.querySelectorAll(".faq-item h3").forEach(function (question) {
question.addEventListener("click", function () {
const answer = this.nextElementSibling;
const isActive = this.classList.contains("active");
document.querySelectorAll(".faq-item h3").forEach(q => {
if (q !== this) {
q.classList.remove("active");
q.nextElementSibling.style.display = "none";
}
});
if (isActive) {
this.classList.remove("active");
answer.style.display = "none";
} else {
this.classList.add("active");
answer.style.display = "block";
}
});
});
document.getElementById("questionForm").addEventListener("submit", function (event) {
event.preventDefault();
alert("Your question has been submitted! We'll get back to you soon.");
this.reset();
});
const darkModeToggle = document.getElementById("darkModeToggle");
darkModeToggle.addEventListener("click", function() {
document.body.classList.toggle("dark-mode");
const isDarkMode = document.body.classList.contains("dark-mode");
localStorage.setItem("darkMode", isDarkMode);
});
if (localStorage.getItem("darkMode") === "true") {
document.body.classList.add("dark-mode");
}
});
</script>
</body>
</html>