Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added learn about donation section #31

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Project/bloodbank/user/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.3 on 2020-12-12 01:55
# Generated by Django 3.1.3 on 2020-12-12 06:40

from django.db import migrations, models
import user.models
Expand Down
2 changes: 1 addition & 1 deletion Project/bloodbank/website_pages/migrations/0001_initial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Generated by Django 3.1.3 on 2020-12-12 01:55
# Generated by Django 3.1.3 on 2020-12-12 06:40

from django.conf import settings
from django.db import migrations, models
Expand Down

This file was deleted.

26 changes: 0 additions & 26 deletions Project/bloodbank/website_pages/migrations/0013_order.py

This file was deleted.

25 changes: 0 additions & 25 deletions Project/bloodbank/website_pages/migrations/0014_donation.py

This file was deleted.

Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,8 @@

.table-content{
height: 8vh;
border: 0.5px solid black;
border: 1.5px black;
border-style: groove;
justify-content: center;
text-align: center;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -283,4 +283,28 @@ body {
border-radius: 10px;
margin-top: 15px;
margin-bottom: 13px
}
}



/* for learn about donation */
.learnAbout {
text-align: center;
text-transform: uppercase;
box-sizing: border-box;
padding: 0;
border: none;
outline: 0;
color: inherit;
font-size: 36px;
position: relative;
font-weight: 400;
margin: 0;
background: 0 0;
line-height: 1.4em;
font-family: oswald, Montserrat, sans-serif;
}




75 changes: 75 additions & 0 deletions Project/bloodbank/website_pages/templates/website_pages/home.html
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,81 @@ <h4 id="join-us-tag">Sign up or contact us</h4>
class="btn btn-primary" id="sign-up-btn" type="button">Signup</button><button class="btn btn-primary"
id="contact-btn" type="button">Contact Us</button></div>
</section>
<section class="d-flex flex-column justify-content-center align-items-center" id="table_data">
<div class="col-md-12 typeHeading">
<h1 class="learnAbout">Learn About Donation</h1>
</div>

<div class="col-sm-6 text-center">
<picture>
<img src="../../static/website_pages/images/donationFact.webp"
alt="One Donation Can save upto three lives">
</picture>
<blockquote>
<p style="font-family:oswald">After donating blood, the body works to replenish the blood loss. This
stimulates the production of new blood cells and in turn, helps in maintaining good health.</p>
<p>
</p>
</blockquote>
</div>

<div >
<table class="table table-responsive table-bordered ">
<tbody>
<tr>
<th colspan="3" style="color:white;background-color:red;">Compatible Blood Type Donors</th>
</tr>
<tr>
<td><b>Blood Type</b></td>
<td><b>Donate Blood To</b></td>
<td><b>Receive Blood From</b></td>
</tr>
<tr>
<td><span style="color: #961e1b;"><b>A+</b></span></td>
<td>A+ AB+</td>
<td>A+ A- O+ O-</td>
</tr>
<tr>
<td><span style="color: #961e1b;"><b>O+</b></span></td>
<td>O+ A+ B+ AB+</td>
<td>O+ O-</td>
</tr>
<tr>
<td><span style="color: #961e1b;"><b>B+</b></span></td>
<td>B+ AB+</td>
<td>B+ B- O+ O-</td>
</tr>
<tr>
<td><span style="color: #961e1b;"><b>AB+</b></span></td>
<td>AB+</td>
<td>Everyone</td>
</tr>
<tr>
<td><span style="color: #961e1b;"><b>A-</b></span></td>
<td>A+ A- AB+ AB-</td>
<td>A- O-</td>
</tr>
<tr>
<td><span style="color: #961e1b;"><b>O-</b></span></td>
<td>Everyone</td>
<td>O-</td>
</tr>
<tr>
<td><span style="color: #961e1b;"><b>B-</b></span></td>
<td>B+ B- AB+ AB-</td>
<td>B- O-</td>
</tr>
<tr>
<td><span style="color: #961e1b;"><b>AB-</b></span></td>
<td>AB+ AB-</td>
<td>AB- A- B- O-</td>
</tr>
</tbody>
</table>
</div>
</section>


<section class="d-flex flex-column justify-content-center align-items-center" id="aero">
<h1 id="video-title">Your donated blood is safe!</h1>
<iframe allowfullscreen="" frameborder="0"
Expand Down