-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathevents.html
More file actions
340 lines (295 loc) · 10.6 KB
/
events.html
File metadata and controls
340 lines (295 loc) · 10.6 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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>CharityConnect - Events</title>
<style>
body {
font-family: "Poppins", sans-serif;
margin: 0;
padding: 0;
background: #b9d1f6;
color: #333;
transition: background-color 0.5s, color 0.5s;
line-height: 1.6;
}
body.dark-mode {
background: #121212;
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;
}
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);
}
.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;
}
main {
max-width: 1200px;
margin: 0 auto;
padding: 30px 20px;
}
.event-section {
margin-bottom: 60px;
}
.event-section h2 {
font-size: 2.2rem;
color: #0277bd;
margin-bottom: 30px;
text-align: center;
position: relative;
padding-bottom: 15px;
}
.event-section h2::after {
content: "";
position: absolute;
bottom: 0;
left: 50%;
transform: translateX(-50%);
width: 100px;
height: 4px;
background: #0277bd;
border-radius: 2px;
}
body.dark-mode .event-section h2 {
color: #4fc3f7;
}
body.dark-mode .event-section h2::after {
background: #4fc3f7;
}
.event-grid {
display: grid;
grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
gap: 30px;
}
.event-card {
background: white;
border-radius: 10px;
overflow: hidden;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
transition: transform 0.3s, box-shadow 0.3s;
}
.event-card:hover {
transform: translateY(-5px);
box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}
.event-card img {
width: 100%;
height: 250px;
object-fit: cover;
border-bottom: 4px solid #0277bd;
}
.event-card-content {
padding: 20px;
}
.event-card h3 {
margin: 0 0 10px;
color: #01579b;
font-size: 1.4rem;
}
.event-card p {
margin: 8px 0;
color: #555;
}
.event-card p b {
color: #333;
}
body.dark-mode .event-card {
background: #1e1e1e;
}
body.dark-mode .event-card h3 {
color: #4fc3f7;
}
body.dark-mode .event-card p {
color: #b0b0b0;
}
body.dark-mode .event-card p b {
color: #e0e0e0;
}
body.dark-mode .event-card img {
border-bottom-color: #4fc3f7;
}
footer {
background: #1b1b1b;
color: white;
text-align: center;
padding: 25px 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;
}
.event-grid {
grid-template-columns: 1fr;
}
.event-section h2 {
font-size: 1.8rem;
}
}
</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">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="event-section">
<h2>Past Events</h2>
<div class="event-grid">
<div class="event-card">
<img src="event1.jpg" alt="Food Distribution Drive">
<div class="event-card-content">
<h3>Food Distribution Drive</h3>
<p><b>Date:</b> March 10, 2025 | <b>Location:</b> Mumbai</p>
<p>We provided over 10,000 meals to underprivileged families.</p>
</div>
</div>
<div class="event-card">
<img src="event2.jpeg" alt="Healthcare Camp">
<div class="event-card-content">
<h3>Healthcare Camp</h3>
<p><b>Date:</b> February 20, 2025 | <b>Location:</b> Delhi</p>
<p>Free medical check-ups for 1,500 senior citizens.</p>
</div>
</div>
<div class="event-card">
<img src="event3.jpeg" alt="Winter Clothing Drive">
<div class="event-card-content">
<h3>Winter Clothing Drive</h3>
<p><b>Date:</b> January 5, 2025 | <b>Location:</b> Kolkata</p>
<p>Distributed warm clothing to 2,000 homeless individuals.</p>
</div>
</div>
</div>
</section>
<section class="event-section">
<h2>Ongoing Events</h2>
<div class="event-grid">
<div class="event-card">
<img src="event4.jpeg" alt="School Kit Distribution">
<div class="event-card-content">
<h3>School Kit Distribution</h3>
<p><b>Date:</b> Ongoing | <b>Location:</b> Chennai</p>
<p>Providing books and uniforms to 1,000+ children.</p>
</div>
</div>
<div class="event-card">
<img src="event5.jpeg" alt="Women Empowerment Workshop">
<div class="event-card-content">
<h3>Women Empowerment Workshop</h3>
<p><b>Date:</b> Ongoing | <b>Location:</b> Bangalore</p>
<p>Training 500 women in skill development programs.</p>
</div>
</div>
</div>
</section>
<section class="event-section">
<h2>Upcoming Events</h2>
<div class="event-grid">
<div class="event-card">
<img src="event6.jpg" alt="Tree Plantation Drive">
<div class="event-card-content">
<h3>Tree Plantation Drive</h3>
<p><b>Date:</b> April 10, 2025 | <b>Location:</b> Pune</p>
<p>Join us in planting 5,000 trees for a greener tomorrow.</p>
</div>
</div>
<div class="event-card">
<img src="event7.jpg" alt="Blood Donation Camp">
<div class="event-card-content">
<h3>Blood Donation Camp</h3>
<p><b>Date:</b> April 20, 2025 | <b>Location:</b> Hyderabad</p>
<p>Donate blood and save lives at our upcoming drive.</p>
</div>
</div>
</div>
</section>
</main>
<footer>
<p>© 2025 CharityConnect | All rights reserved.</p>
</footer>
<script>
function toggleDarkMode() {
document.body.classList.toggle("dark-mode");
const darkModeBtn = document.querySelector(".dark-mode-toggle");
const isDarkMode = document.body.classList.contains("dark-mode");
localStorage.setItem("darkMode", isDarkMode ? "enabled" : "disabled");
darkModeBtn.textContent = isDarkMode ? "Light Mode" : "Dark Mode";
}
if (localStorage.getItem("darkMode") === "enabled") {
document.body.classList.add("dark-mode");
document.querySelector(".dark-mode-toggle").textContent = "Light Mode";
}
</script>
</body>
</html>