-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
385 lines (350 loc) · 21.3 KB
/
index.html
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
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>LIFE FLOW</title>
<link rel="icon" href="assets/Blood_Bank_Favicon.webp" type="image/webp">
<!-- <link href="Home.css" rel="stylesheet"> -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.0.0-beta3/css/all.min.css">
<link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/css/bootstrap.min.css" rel="stylesheet"
integrity="sha384-QWTKZyjpPEjISv5WaRU9OFeRpok6YctnYmDr5pNlyT2bRjXh0JMhjY6hW+ALEwIH" crossorigin="anonymous">
</head>
<body>
<nav class="flex justify-between items-center bg-red-600 p-4">
<!-- Logo and Title Section -->
<div class="flex items-center space-x-3">
<i class="fas fa-tint text-white text-4xl"></i>
<p class="text-3xl font-semibold text-white">Life Flow</p>
</div>
<!-- Navigation Links Section -->
<ul class="flex space-x-6">
<li class="flex items-center space-x-2">
<i class="fas fa-home text-white"></i>
<a href="index.html" class="text-white text-lg font-medium hover:text-red-200 transition-colors">Home</a>
</li>
<li class="flex items-center space-x-2">
<i class="fas fa-info-circle text-white"></i>
<a href="AboutUs.html" class="text-white text-lg font-medium hover:text-red-200 transition-colors">About
Us</a>
</li>
<li class="flex items-center space-x-2">
<i class="fas fa-search text-white"></i>
<a href="/Blood_Availability_Search.html" class="text-white text-lg font-medium hover:text-red-200 transition-colors">Looking For
Blood</a>
</li>
<div id=" userSection" class="flex items-center space-x-3">
<a href="DonorLogin.html" id="userLink"
class="flex items-center space-x-2 text-white hover:text-red-200 transition-colors">
<img src="assets/user_default.jpeg" alt="User Icon"
class="user-logo w-8 h-8 rounded-full border-2 border-white">
<span id="userName">Guest</span>
</a>
</div>
</nav>
<div class="relative">
<div id="carouselExampleCaptions" class="carousel slide carousel-fade" data-bs-ride="carousel">
<div class="carousel-indicators">
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="0" class="active"
aria-current="true" aria-label="Slide 1"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="1"
aria-label="Slide 2"></button>
<button type="button" data-bs-target="#carouselExampleCaptions" data-bs-slide-to="2"
aria-label="Slide 3"></button>
</div>
<div class="carousel-inner">
<div class="carousel-item active">
<img src="assets/home_corusel.jpg" class="d-block w-full h-[600px] object-cover"
alt="blood_donation">
<div class="carousel-caption text-white bg-black bg-opacity-50 p-4 rounded-md">
<h5 class="text-3xl font-semibold">Welcome to Life Flow</h5>
<p class="text-lg">Join us in our mission to save lives through blood donation. Your
contribution can make a difference!</p>
</div>
</div>
<div class="carousel-item">
<img src="assets/home_corusel2.jpg" class="d-block w-full h-[600px] object-cover" alt="donor">
<div class="carousel-caption text-white bg-black bg-opacity-50 p-4 rounded-md">
<h5 class="text-3xl font-semibold">Become a Donor</h5>
<p class="text-lg">Your donation can help save lives. Find out how easy it is to become a blood
donor today.</p>
</div>
</div>
<div class="carousel-item">
<img src="assets/home_corusel3.jpg" class="d-block w-full h-[600px] object-cover"
alt="helping_others">
<div class="carousel-caption text-white bg-black bg-opacity-50 p-4 rounded-md">
<h5 class="text-3xl font-semibold">Helping Those in Need</h5>
<p class="text-lg">Every drop of blood donated helps those in critical need. Be a lifesaver by
contributing today.</p>
</div>
</div>
</div>
<button class="carousel-control-prev absolute top-1/2 left-0 transform -translate-y-1/2" type="button"
data-bs-target="#carouselExampleCaptions" data-bs-slide="prev">
<span class="carousel-control-prev-icon bg-gray-800 p-2 rounded-full" aria-hidden="true"></span>
<span class="visually-hidden">Previous</span>
</button>
<button class="carousel-control-next absolute top-1/2 right-0 transform -translate-y-1/2" type="button"
data-bs-target="#carouselExampleCaptions" data-bs-slide="next">
<span class="carousel-control-next-icon bg-gray-800 p-2 rounded-full" aria-hidden="true"></span>
<span class="visually-hidden">Next</span>
</button>
</div>
</div>
<div class="flex justify-center space-x-8 p-8">
<!-- Donors Section -->
<div
class="flex flex-col items-center bg-red-600 text-white p-6 rounded-lg shadow-lg w-100 hover:bg-red-700 hover:translate-y-4 hover:w-56 transition-all duration-300 ease-in-out">
<div class="text-5xl">
<i class="fas fa-users"></i>
</div>
<h3 class="text-xl font-semibold mt-4">Number of Donors</h3>
<p class="text-2xl font-bold mt-2">1,245</p>
</div>
<!-- Blood Units Collected Section -->
<div
class="flex flex-col items-center bg-blue-600 text-white p-6 rounded-lg shadow-lg w-100 hover:bg-blue-700 hover:translate-y-4 hover:w-56 transition-all duration-300 ease-in-out">
<div class="text-5xl">
<i class="fas fa-tint"></i>
</div>
<h3 class="text-xl font-semibold mt-4">Blood Units Collected</h3>
<p class="text-2xl font-bold mt-2">3,500</p>
</div>
</div>
<div class="flex flex-wrap justify-center gap-6 my-6">
<div
class="link-item p-6 bg-red-100 rounded-lg shadow-xl hover:bg-red-200 transform transition-all duration-300 flex justify-center items-center w-full sm:w-1/2 md:w-1/3 lg:w-1/5 h-48">
<a href="Blood_Availability_Search.html" class="text-lg font-semibold text-red-800 text-center">Blood
Availability Search</a>
</div>
<div
class="link-item p-6 bg-red-100 rounded-lg shadow-xl hover:bg-red-200 transform transition-all duration-300 flex justify-center items-center w-full sm:w-1/2 md:w-1/3 lg:w-1/5 h-48">
<a href="Blood_Bank_Directory.html" class="text-lg font-semibold text-red-800 text-center">Blood Bank
Directory</a>
</div>
<div
class="link-item p-6 bg-red-100 rounded-lg shadow-xl hover:bg-red-200 transform transition-all duration-300 flex justify-center items-center w-full sm:w-1/2 md:w-1/3 lg:w-1/5 h-48">
<a href="Blood_Donation_Camps.html" class="text-lg font-semibold text-red-800 text-center">Blood Donation Camps</a>
</div>
<div
class="link-item p-6 bg-red-100 rounded-lg shadow-xl hover:bg-red-200 transform transition-all duration-300 flex justify-center items-center w-full sm:w-1/2 md:w-1/3 lg:w-1/5 h-48">
<a href="Register_for_Donation.html" class="text-lg font-semibold text-red-800 text-center">Register for Donation</a>
</div>
</div>
<div class="blood_donation">
<!-- Flex Container to Display Items Side by Side -->
<div class="flex space-x-8 p-8">
<!-- Learn About Donation Section (Occupying More Width) -->
<div class="donation-info Learn_About_Donation flex-1 animate-on-scroll p-6 bg-white rounded-lg shadow-lg">
<h2 class="text-2xl font-semibold text-center mb-6">Learn About Donation</h2>
<div class="Donation-info-box h-[490px]">
<img src="assets/Learn_About_Donation.jpeg" alt="Blood donation"
class="Learn_About_Donation w-full h-auto max-h-[320px] object-contain rounded-md mb-4">
<p id="typewriter-text" class="text-lg text-gray-700"></p>
</div>
</div>
<!-- Compatible Blood Type Donors Section (Occupying Less Width) -->
<div class="donation-info flex-1 animate-on-scroll p-6 bg-white rounded-lg shadow-lg">
<h2 class="text-2xl font-semibold text-center mb-6">Compatible Blood Type Donors</h2>
<table class="min-w-full table-auto border-collapse">
<thead>
<tr h-[]>
<th class="py-3 px-4 border-b text-left">Blood Type</th>
<th class="py-3 px-4 border-b text-left">Donate Blood to</th>
<th class="py-3 px-4 border-b text-left">Receive Blood From</th>
</tr>
</thead>
<tbody>
<tr class="hover:bg-gray-100">
<td class="py-3 px-4 border-b">A+</td>
<td class="py-3 px-4 border-b">A+, AB+</td>
<td class="py-3 px-4 border-b">A+, A-, O+, O-</td>
</tr>
<tr class="hover:bg-gray-100">
<td class="py-3 px-4 border-b">O+</td>
<td class="py-3 px-4 border-b">O+, A+, B+, AB+</td>
<td class="py-3 px-4 border-b">O+, O-</td>
</tr>
<tr class="hover:bg-gray-100">
<td class="py-3 px-4 border-b">B+</td>
<td class="py-3 px-4 border-b">B+, AB+</td>
<td class="py-3 px-4 border-b">B+, B-, O+, O-</td>
</tr>
<tr class="hover:bg-gray-100">
<td class="py-3 px-4 border-b">AB+</td>
<td class="py-3 px-4 border-b">AB+</td>
<td class="py-3 px-4 border-b">All blood types</td>
</tr>
<tr class="hover:bg-gray-100">
<td class="py-3 px-4 border-b">A-</td>
<td class="py-3 px-4 border-b">A+, A-, AB+, AB-</td>
<td class="py-3 px-4 border-b">A-, O-</td>
</tr>
<tr class="hover:bg-gray-100">
<td class="py-3 px-4 border-b">O-</td>
<td class="py-3 px-4 border-b">All blood types</td>
<td class="py-3 px-4 border-b">O-</td>
</tr>
<tr class="hover:bg-gray-100">
<td class="py-3 px-4 border-b">B-</td>
<td class="py-3 px-4 border-b">B+, B-, AB+, AB-</td>
<td class="py-3 px-4 border-b">B-, O-</td>
</tr>
<tr class="hover:bg-gray-100">
<td class="py-3 px-4 border-b">AB-</td>
<td class="py-3 px-4 border-b">AB+, AB-</td>
<td class="py-3 px-4 border-b">All blood types except AB+</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<div
class="donation-info info-box types_of_donation animate-on-scroll p-6 bg-white rounded-lg shadow-lg space-y-6 border border-gray-300">
<!-- Section Header -->
<div class="section-header text-center mb-4">
<p class="text-2xl font-semibold uppercase text-gray-800 bg-blue-100 px-4 py-2 rounded-lg inline-block">
Types of Donation</p>
</div>
<!-- Section Description -->
<div class="section-description text-lg text-gray-600 mb-6 space-y-4">
<p class="bg-gray-50 p-4 rounded-lg shadow-sm text-gray-800">The average human body contains about five
liters of blood, which is made of several cellular and non-cellular components such as <strong>blood
cells, Platelets, and Plasma.</strong></p>
<p class="bg-gray-50 p-4 rounded-lg shadow-sm text-gray-800">Each type of component has its unique
properties and can be used for different indications. The donated blood is separated into these
components by the blood centre, and one donated unit can save up to four lives depending on the number
of components separated from your blood.</p>
</div>
<!-- Donation List -->
<div class="donation-list flex justify-center space-x-4 mb-6">
<ul id="donationList" class="list-none p-0 flex space-x-4">
<li
class="donation-item bg-blue-500 text-white py-2 px-4 rounded-md cursor-pointer hover:bg-blue-600 transform transition duration-200 ease-in-out">
Packed Red Blood Cells</li>
<li
class="donation-item bg-blue-500 text-white py-2 px-4 rounded-md cursor-pointer hover:bg-blue-600 transform transition duration-200 ease-in-out">
Plasma</li>
<li
class="donation-item bg-blue-500 text-white py-2 px-4 rounded-md cursor-pointer hover:bg-blue-600 transform transition duration-200 ease-in-out">
Platelets</li>
</ul>
</div>
<!-- Donation Details -->
<fieldset class="donation-details space-y-4">
<!-- Flex container for donation detail items -->
<div class="flex flex-wrap gap-4 justify-center">
<!-- What Is It Section -->
<div
class="donation-detail-item bg-gray-50 p-6 rounded-lg shadow-md border border-gray-200 flex-1 min-w-[590px] WhatIsIt">
<div class="info-name font-semibold text-lg text-gray-800">What Is It?</div>
<div class="info-description text-gray-600">Information about what it is...</div>
</div>
<!-- Who Can Donate Section -->
<div
class="donation-detail-item bg-gray-50 p-6 rounded-lg shadow-md border border-gray-200 flex-1 min-w-[590px] WhoCanDonate">
<div class="info-name font-semibold text-lg text-gray-800">Who Can Donate?</div>
<div class="info-description text-gray-600">Information about who can donate...</div>
</div>
<!-- User For Section -->
<div
class="donation-detail-item bg-gray-50 p-6 rounded-lg shadow-md border border-gray-200 flex-1 min-w-[590px] UserFor">
<div class="info-name font-semibold text-lg text-gray-800">User For</div>
<div class="info-description text-gray-600">Information about who uses it...</div>
</div>
<!-- Lasts For Section -->
<div
class="donation-detail-item bg-gray-50 p-6 rounded-lg shadow-md border border-gray-200 flex-1 min-w-[590px] LastsFor">
<div class="info-name font-semibold text-lg text-gray-800">Lasts For</div>
<div class="info-description text-gray-600">Information about how long it lasts...</div>
</div>
<!-- How Long Does It Take To Donate Section -->
<div
class="donation-detail-item bg-gray-50 p-6 rounded-lg shadow-md border border-gray-200 flex-1 min-w-[590px] HowLongDoesItTakeToDonate">
<div class="info-name font-semibold text-lg text-gray-800">How Long Does It Take To Donate?</div>
<div class="info-description text-gray-600">Information about how long the donation process takes...
</div>
</div>
<!-- How Often Can I Donate Section -->
<div
class="donation-detail-item bg-gray-50 p-6 rounded-lg shadow-md border border-gray-200 flex-1 min-w-[590px] HowOftenCanIDonate">
<div class="info-name font-semibold text-lg text-gray-800">How Often Can I Donate?</div>
<div class="info-description text-gray-600">Information about donation frequency...</div>
</div>
</div>
</fieldset>
</div>
<footer class="bg-gray-800 text-white py-12 w-full">
<div class="px-6 sm:px-12">
<!-- Footer Main Sections -->
<div class="grid grid-cols-1 md:grid-cols-3 lg:grid-cols-4 gap-8">
<!-- Quick Links -->
<div>
<h3 class="text-lg font-semibold mb-4">Quick Links</h3>
<ul class="space-y-2">
<li><a href="index.html" class="text-blue-400 hover:text-blue-600">Home</a></li>
<li><a href="Blood_Availability_Search.html" class="text-blue-400 hover:text-blue-600">Blood Availability</a></li>
<li><a href="Blood_Bank_Directory.html" class="text-blue-400 hover:text-blue-600">Blood Bank Directory</a></li>
<li><a href="Blood_Donation_Camps.html" class="text-blue-400 hover:text-blue-600">Donate Now</a></li>
<li><a href="contactUs.html" class="text-blue-400 hover:text-blue-600">Contact Us</a></li>
</ul>
</div>
<!-- Contact Info -->
<div>
<h3 class="text-lg font-semibold mb-4">Contact Info</h3>
<ul>
<li class="text-sm">Email: <a href="mailto:support@example.com"
class="text-blue-400 hover:text-blue-600">support@example.com</a></li>
<li class="text-sm">Phone: <a href="tel:+1234567890"
class="text-blue-400 hover:text-blue-600">+1 (234) 567-890</a></li>
<li class="text-sm">Address: 123 Street, City, Country</li>
</ul>
</div>
<!-- Follow Us -->
<div>
<h3 class="text-lg font-semibold mb-4">Follow Us</h3>
<div class="flex space-x-4">
<a href="#" class="text-blue-400 hover:text-blue-600" target="_blank" aria-label="Facebook">
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="text-blue-400 hover:text-blue-600" target="_blank" aria-label="Twitter">
<i class="fab fa-twitter"></i>
</a>
<a href="#" class="text-blue-400 hover:text-blue-600" target="_blank" aria-label="Instagram">
<i class="fab fa-instagram"></i>
</a>
<a href="#" class="text-blue-400 hover:text-blue-600" target="_blank" aria-label="LinkedIn">
<i class="fab fa-linkedin-in"></i>
</a>
</div>
</div>
<!-- Legal Information -->
<div>
<h3 class="text-lg font-semibold mb-4">Legal</h3>
<ul class="space-y-2">
<li><a href="#" class="text-blue-400 hover:text-blue-600">Privacy Policy</a></li>
<li><a href="#" class="text-blue-400 hover:text-blue-600">Terms & Conditions</a></li>
<li><a href="#" class="text-blue-400 hover:text-blue-600">Accessibility</a></li>
<li><a href="#" class="text-blue-400 hover:text-blue-600">Cookie Policy</a></li>
</ul>
</div>
</div>
<!-- Footer Bottom Section -->
<div class="mt-8 border-t border-gray-600 pt-6 text-center text-sm">
<p>© 2025 LIFE FLOW Pvt Ltd. All rights reserved.</p>
<p class="text-gray-400">Last Updated: Jan 6, 2025</p>
</div>
</div>
</footer>
<script src="https://cdn.jsdelivr.net/npm/@popperjs/core@2.11.8/dist/umd/popper.min.js"
integrity="sha384-I7E8VVD/ismYTF4hNIPjVp/Zjvgyol6VFvRkX/vR+Vc4jQkC+hVqc2pM8ODewa9r"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/bootstrap@5.3.3/dist/js/bootstrap.min.js"
integrity="sha384-0pUGZvbkm6XF6gxjEnlmuGrJXVbNuzT9qBBavbLwCsOGabYfZo0T0to5eqruptLy"
crossorigin="anonymous"></script>
<script src="https://cdn.tailwindcss.com"></script>
<script src="script.js"></script>
</body>
</html>