diff --git a/Project/bloodbank/user/migrations/0001_initial.py b/Project/bloodbank/user/migrations/0001_initial.py index 299a527..552ccf5 100644 --- a/Project/bloodbank/user/migrations/0001_initial.py +++ b/Project/bloodbank/user/migrations/0001_initial.py @@ -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 diff --git a/Project/bloodbank/website_pages/migrations/0001_initial.py b/Project/bloodbank/website_pages/migrations/0001_initial.py index 76145f8..69b1539 100644 --- a/Project/bloodbank/website_pages/migrations/0001_initial.py +++ b/Project/bloodbank/website_pages/migrations/0001_initial.py @@ -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 diff --git a/Project/bloodbank/website_pages/migrations/0012_bloodpacket_price.py b/Project/bloodbank/website_pages/migrations/0012_bloodpacket_price.py deleted file mode 100644 index fa4159b..0000000 --- a/Project/bloodbank/website_pages/migrations/0012_bloodpacket_price.py +++ /dev/null @@ -1,18 +0,0 @@ -# Generated by Django 3.1.3 on 2020-11-14 18:53 - -from django.db import migrations, models - - -class Migration(migrations.Migration): - - dependencies = [ - ('website_pages', '0011_auto_20201109_1952'), - ] - - operations = [ - migrations.AddField( - model_name='bloodpacket', - name='price', - field=models.FloatField(default=500.0), - ), - ] diff --git a/Project/bloodbank/website_pages/migrations/0013_order.py b/Project/bloodbank/website_pages/migrations/0013_order.py deleted file mode 100644 index 7eefa65..0000000 --- a/Project/bloodbank/website_pages/migrations/0013_order.py +++ /dev/null @@ -1,26 +0,0 @@ -# Generated by Django 3.1.3 on 2020-11-16 06:16 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('website_pages', '0012_bloodpacket_price'), - ] - - operations = [ - migrations.CreateModel( - name='Order', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('packetID', models.CharField(max_length=25)), - ('amount', models.FloatField()), - ('bloodBank', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website_pages.bloodbank')), - ('boughtBy', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), - ], - ), - ] diff --git a/Project/bloodbank/website_pages/migrations/0014_donation.py b/Project/bloodbank/website_pages/migrations/0014_donation.py deleted file mode 100644 index 6f3215a..0000000 --- a/Project/bloodbank/website_pages/migrations/0014_donation.py +++ /dev/null @@ -1,25 +0,0 @@ -# Generated by Django 3.1.3 on 2020-11-16 10:16 - -from django.conf import settings -from django.db import migrations, models -import django.db.models.deletion - - -class Migration(migrations.Migration): - - dependencies = [ - migrations.swappable_dependency(settings.AUTH_USER_MODEL), - ('website_pages', '0013_order'), - ] - - operations = [ - migrations.CreateModel( - name='Donation', - fields=[ - ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), - ('date', models.DateField()), - ('bloodBank', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to='website_pages.bloodbank')), - ('donor', models.ForeignKey(on_delete=django.db.models.deletion.CASCADE, to=settings.AUTH_USER_MODEL)), - ], - ), - ] diff --git a/Project/bloodbank/website_pages/static/website_pages/images/donationFact.webp b/Project/bloodbank/website_pages/static/website_pages/images/donationFact.webp new file mode 100644 index 0000000..f8da668 Binary files /dev/null and b/Project/bloodbank/website_pages/static/website_pages/images/donationFact.webp differ diff --git a/Project/bloodbank/website_pages/static/website_pages/styles/bloodbankdetails.css b/Project/bloodbank/website_pages/static/website_pages/styles/bloodbankdetails.css index 8306a7d..b142f18 100644 --- a/Project/bloodbank/website_pages/static/website_pages/styles/bloodbankdetails.css +++ b/Project/bloodbank/website_pages/static/website_pages/styles/bloodbankdetails.css @@ -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; } diff --git a/Project/bloodbank/website_pages/static/website_pages/styles/home.css b/Project/bloodbank/website_pages/static/website_pages/styles/home.css index 013230c..80e817e 100644 --- a/Project/bloodbank/website_pages/static/website_pages/styles/home.css +++ b/Project/bloodbank/website_pages/static/website_pages/styles/home.css @@ -283,4 +283,28 @@ body { border-radius: 10px; margin-top: 15px; margin-bottom: 13px -} \ No newline at end of file +} + + + +/* 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; +} + + + + diff --git a/Project/bloodbank/website_pages/templates/website_pages/home.html b/Project/bloodbank/website_pages/templates/website_pages/home.html index e7d06a7..0be40eb 100644 --- a/Project/bloodbank/website_pages/templates/website_pages/home.html +++ b/Project/bloodbank/website_pages/templates/website_pages/home.html @@ -47,6 +47,81 @@

Sign up or contact us

class="btn btn-primary" id="sign-up-btn" type="button">Signup +
+
+

Learn About Donation

+
+ +
+ + One Donation Can save upto three lives + +
+

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.

+

+

+
+
+ +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
Compatible Blood Type Donors
Blood TypeDonate Blood ToReceive Blood From
A+A+ AB+A+ A- O+ O-
O+O+ A+ B+ AB+O+ O-
B+B+ AB+B+ B- O+ O-
AB+AB+Everyone
A-A+ A- AB+ AB-A- O-
O-EveryoneO-
B-B+ B- AB+ AB-B- O-
AB-AB+ AB-AB- A- B- O-
+
+
+ +

Your donated blood is safe!