-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
410 lines (360 loc) · 23 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
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
<!doctype html>
<html lang="en">
<head>
<!-- Required meta tags -->
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<!-- Icon image here -->
<link rel="shortcut icon" href="icon/icons8-drop-of-blood-48.png">
<!-- Bootstrap CSS -->
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/css/bootstrap.min.css"
integrity="sha384-ggOyR0iXCbMQv3Xipma34MD+dH/1fQ784/j6cY/iJTQUOhcWr7x9JvoRxT2MZw1T" crossorigin="anonymous">
<!-- Custom Css here -->
<link rel="stylesheet" href="css/style.css">
<!-- Google fonts here -->
<link href="https://fonts.googleapis.com/css?family=Josefin+Sans:600&display=swap" rel="stylesheet">
<title>Blood Bank App</title>
</head>
<body>
<!-- ======================================starting from here====================================== -->
<div class="wrapper text-white ">
<!-- ============================Navbar Here========================================================-->
<nav class="navbar navbar-light bg-danger">
<a class="navbar-brand text-white">
<h3>Blood Bank<img src="https://img.icons8.com/doodle/48/000000/drop-of-blood.png"></h3>
</a>
<!-- Login and SignUp here -->
<div id="authButtons">
<button class="btn btn-success lggout" data-toggle="modal" data-target="#LoginModal"
id="lgin">LogIn</button>
<button class="btn btn-success lggout" data-toggle="modal" data-target="#SignUpModal"
id="sngup">SignUp</button>
<button class="btn btn-success lginn" id="logOut">LogOut</button>
</div>
<!-- ======================================MODALS BELOW====================================== -->
<!-- ========================================LoginModal======================================== -->
<div class="modal fade text-dark" id="LoginModal">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">LogIn Donar<img
src="https://img.icons8.com/color/48/000000/login-rounded-right.png"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body ">
<div id="alertMessage"></div>
<h1 class="text-center heading display-5">Hey there Donar!</h1>
<form id="LoginForm">
<div class="input-group my-4">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><img
src="https://img.icons8.com/flat_round/50/000000/secured-letter.png"></span>
</div>
<input type="email" class="form-control" placeholder="Enter Email"
aria-label="Username" aria-describedby="basic-addon1" id="loginEmail">
</div>
<div class="input-group my-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><img
src="https://img.icons8.com/color/48/000000/lock-2.png"></span>
</div>
<input type="password" class="form-control" placeholder="Enter Password"
aria-label="Username" aria-describedby="basic-addon1" id="loginPass">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<input type="submit" class="btn btn-primary" value="LogIn">
</div>
</form>
</div>
</div>
</div>
</div>
<!-- ========================================SignUpModal======================================== -->
<div class="modal fade text-dark " id="SignUpModal">
<div class="modal-dialog modal-dialog-centered" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title">SignUp Donar<img
src="https://img.icons8.com/plasticine/48/000000/login-rounded-right.png"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="alertMessage2"></div>
<h1 class="text-center heading display-5">Wanna Donate? SignUp!</h1>
<form id="signupForm">
<div class="input-group my-4">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><img
src="https://img.icons8.com/flat_round/50/000000/secured-letter.png"></span>
</div>
<input type="email" class="form-control" placeholder="Enter Email"
aria-label="Username" aria-describedby="basic-addon1" id="signupEmail">
</div>
<div class="input-group my-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><img
src="https://img.icons8.com/color/48/000000/lock-2.png"></span>
</div>
<input type="password" class="form-control" placeholder="Enter Password"
aria-label="Username" aria-describedby="basic-addon1" id="signupPass">
</div>
<div class="modal-footer">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<input type="submit" class="btn btn-primary" value="Create Account">
</div>
</form>
</div>
</div>
</div>
</div>
</nav>
<!-- ======================================Content Material Here====================================== -->
<div class="container text-center mt-5 p-3 introSection lggout">
<div class="row ">
<div class="col-lg-12 col-md-6 col-sm-12">
<h1 class=" mt-4 display-4 font-weight-bold heading">Facts About Blood and Blood Types</h1>
<p class="mt-5 para">Blood types are determined by the presence or absence of certain
antigens – substances that can
trigger an immune response if they are foreign to the body. Since some antigens can trigger a
patient's immune system to attack the transfused blood, safe blood transfusions depend on
careful blood typing and cross-matching.There are four major blood groups determined by the
presence or absence of two antigens – A and B – on the surface of red blood cells. In addition
to the A and B antigens, there is a protein called the Rh factor, which can be either present
(+) or absent (–), creating the 8 most common blood types (A+, A-, B+, B-, O+, O-, AB+, AB-).
</p>
</div>
<div class="col-lg-12 col-md-6 col-sm-12">
<h1 class="mt-5 display-4 font-weight-bold heading">Blood Groups</h1>
<p class="para mt-5 font-weight-bold">The giving of blood and its subsequent safe transfusion into a
patient is now commonplace. Successful transfusion would not, however, be possible without the
realization that the cells and tissues of individuals are distinct and that introduction of
blood of one individual into another may cause an adverse reaction with subsequent destruction
of the donated cells. Such reactions come about because there are substances — so-called blood
group antigens — on the surface of the cells of the blood, especially on the red cells, or
erythrocytes, which may interact with antibodies in another person's blood, leading to red cell
destruction.There are four main blood groups (types of blood) – A, B, AB
and O.</p>
</div>
<div class="col-lg-12 col-md-12 col-sm-12">
<h1 class="mt-4 display-4 font-weight-bold heading">The ABO system</h1>
<p class="para mt-5">In the ABO system, the surface antigens of the red cells are determined by
three genes, A, B, and O.All red cells have on their surface a glycolipid substance called H
substance. The A gene and the B gene convert H substance into substance A and B, giving rise to
cells of the A and B groups respectively. The O gene has no effect on H substance and thus group
O cells have only H substance on their surface. These three genes combine in pairs to give six
possible genotypes, AA, AO, BB, BO, AB, and OO. Since A and B are dominant over O, this results
in four phenotypes: A, B, AB and O .There are four main blood groups defined by the ABO system:
</p>
</div>
<!-- <div class="col-lg-12 col-sm-12 col-md-12">
<ul class="list-group text-dark p-3">
<li
class="list-group-item d-flex justify-content-between align-items-center list-group-item-danger">
Blood Group A
<span class="badge badge-primary badge-pill">A</span>
</li>
<li
class="list-group-item d-flex justify-content-between align-items-center list-group-item-danger">
Blood Group B
<span class="badge badge-primary badge-pill">B</span>
</li>
<li
class="list-group-item d-flex justify-content-between align-items-center list-group-item-danger">
Blood Group O
<span class="badge badge-primary badge-pill">O</span>
</li>
<li
class="list-group-item d-flex justify-content-between align-items-center list-group-item-danger">
Blood Group AB
<span class="badge badge-primary badge-pill">AB</span>
</li>
</ul>
</div> -->
<div class="col-lg-3 col-md-6 col-sm-6 mb-3 text-dark mt-5">
<div class="card">
<img src="/img/A.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5>
<p class="card-text">Blood Group A</p>
</h5>
<a href="#" class="btn btn-primary">Details</a>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6 mb-3 text-dark mt-5">
<div class="card">
<img src="/img/B.png" class="card-img-top" alt="...">
<div class="card-body">
<h5>
<p class="card-text">Blood Group B</p>
</h5>
<a href="#" class="btn btn-primary">Details</a>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6 mb-3 text-dark mt-5">
<div class="card">
<img src="/img/O.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5>
<p class="card-text">Blood Group O</p>
</h5>
<a href="#" class="btn btn-primary">Details</a>
</div>
</div>
</div>
<div class="col-lg-3 col-md-6 col-sm-6 mb-3 text-dark mt-5">
<div class="card text-center">
<img src="/img/AB.jpg" class="card-img-top" alt="...">
<div class="card-body">
<h5>
<p class="card-text">Blood Group AB</p>
</h5>
<a href="#" class="btn btn-primary">Details</a>
</div>
</div>
</div>
</div>
</div>
<!-- ======================================Table Section====================================== -->
<div class="container px-4 mt-5">
<div class="row">
<div class="col-lg-12 col-sm-12 col-md-12">
<div class="d-flex justify-content-center">
<button class="btn btn-success" data-toggle="modal" data-target="#addDonar">Add Donar</button>
</div>
<table class="table table-sm donor-table table-hover bg-white mt-3">
<thead class="bg-success">
<tr>
<th>Id</th>
<th>Name</th>
<th>Address</th>
<th>Phone</th>
<th>Blood Group</th>
<th>History</th>
</tr>
</thead>
<tbody id="results">
<!-- ====================================Show Details Modal================================================== -->
<div class="modal fade text-dark" id="donarDetails">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="donarDetailsLabel">Donor Details Here<img
src="https://img.icons8.com/color/48/000000/details-pane.png"></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<ul class="list-group">
<li class="list-group-item">Name:
<h4 class="d-flex justify-content-end">user1</h4>
</li>
<li class="list-group-item">Address:<h4
class="d-flex justify-content-end">abcdeg</h4>
</li>
<li class="list-group-item">Phone:<h4
class="d-flex justify-content-end">1234567</h4>
</li>
<li class="list-group-item">Blood:<h4
class="d-flex justify-content-end">B+</h4>
</li>
</ul>
</div>
<div class="modal-footer d-flex justify-content-center">
<button type="button" class="btn btn-secondary"
data-dismiss="modal">Close</button>
<button type="button" class="btn btn-primary">Contact Donor</button>
</div>
</div>
</div>
</div>
</tbody>
</table>
</div>
</div>
</div>
<!-- ====================================Add Donor Modal================================================== -->
<div class="modal fade text-dark" id="addDonar">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="addDonarLabel">Add Donor<i class="fas fa-hand-holding-usd"></i></h5>
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div id="donorAlert"></div>
<form id="addingDonors">
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><img
src="https://img.icons8.com/color/48/000000/user-male.png"></span>
</div>
<input type="text" class="form-control" placeholder="Enter Name" aria-label="Username"
aria-describedby="basic-addon1" id="name">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><img
src="https://img.icons8.com/office/16/000000/worldwide-location.png"></span>
</div>
<input type="text" class="form-control" placeholder="Address" aria-label="Username"
aria-describedby="basic-addon1" id="add">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><img
src="https://img.icons8.com/ultraviolet/40/000000/phone.png"></span>
</div>
<input type="number " class="form-control" placeholder="Enter Phone Number"
aria-label="Username" aria-describedby="basic-addon1" id="num">
</div>
<div class="input-group mb-3">
<div class="input-group-prepend">
<span class="input-group-text" id="basic-addon1"><img
src="https://img.icons8.com/dusk/64/000000/groups.png"></span>
</div>
<input type="text" class="form-control" placeholder="Enter Blood Group"
aria-label="Username" aria-describedby="basic-addon1" id="blood">
</div>
<div class="modal-footer d-flex justify-content-center">
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
<button type="submit" class="btn btn-primary">Add Donor</button>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
<!-- =========================Firebase Here================================== -->
<script src="https://www.gstatic.com/firebasejs/6.1.0/firebase-app.js"></script>
<!-- =====================Firebase Auth Here================================= -->
<script src="https://www.gstatic.com/firebasejs/6.1.0/firebase-auth.js"></script>
<!-- ==================Firebase Firestore Here=============================== -->
<script src="https://www.gstatic.com/firebasejs/6.1.0/firebase-firestore.js"></script>
<!-- Font Awesome here -->
<script src="https://kit.fontawesome.com/ec2f5d14f1.js"></script>
<!-- Optional JavaScript -->
<!-- jQuery first, then Popper.js, then Bootstrap JS -->
<script src="https://code.jquery.com/jquery-3.3.1.slim.min.js"
integrity="sha384-q8i/X+965DzO0rT7abK41JStQIAqVgRVzpbzo5smXKp4YfRvH+8abtTE1Pi6jizo"
crossorigin="anonymous"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.14.7/umd/popper.min.js"
integrity="sha384-UO2eT0CpHqdSJQ6hJty5KVphtPhzWj9WO1clHTMGa3JDZwrnQq4sF86dIHNDz0W1"
crossorigin="anonymous"></script>
<script src="https://stackpath.bootstrapcdn.com/bootstrap/4.3.1/js/bootstrap.min.js"
integrity="sha384-JjSmVgyd0p3pXB1rRibZUAYoIIy6OrQ6VrjIEaFf/nJGzIxFDsf4x0xIM+B07jRM"
crossorigin="anonymous"></script>
</body>
<script src="scripts/auth.js"></script>
<script src="scripts/app.js"></script>
</html>