diff --git a/src/interface/migrations/0001_initial.py b/src/interface/migrations/0001_initial.py new file mode 100644 index 0000000..f9155d6 --- /dev/null +++ b/src/interface/migrations/0001_initial.py @@ -0,0 +1,30 @@ +# Generated by Django 2.2.7 on 2019-11-28 19:24 + +from django.db import migrations, models + + +class Migration(migrations.Migration): + + initial = True + + dependencies = [ + ] + + operations = [ + migrations.CreateModel( + name='Books', + fields=[ + ('id', models.AutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')), + ('title', models.CharField(max_length=255)), + ('author', models.CharField(max_length=255, null=True)), + ('categories', models.CharField(max_length=255, null=True)), + ('cover', models.BinaryField(editable=True, null=True)), + ('pages', models.IntegerField(null=True)), + ('progress', models.IntegerField(null=True)), + ('file_name', models.CharField(max_length=255)), + ], + options={ + 'db_table': 'books', + }, + ), + ] diff --git a/src/interface/static/css/main.css b/src/interface/static/css/main.css index 7f5356f..01cce68 100755 --- a/src/interface/static/css/main.css +++ b/src/interface/static/css/main.css @@ -10,9 +10,8 @@ body{ grid-template-areas: "app_header" "app_body" "app_footer"; - grid-template-rows: auto 90vh 5vh; + grid-template-rows: auto 84vh auto; max-height: 100%; - position: relative; } .clear{ clear: both; @@ -65,7 +64,7 @@ body{ .app_slogan{ grid-area: slogan; margin: 0; - fontsize: 18px; + font-size: 18px; font-family: 'Gruppo', cursive; text-align: center; } @@ -75,12 +74,11 @@ body{ grid-template-rows: auto; grid-template-areas: "shelf"; justify-items: center; - overflow: scroll; + overflow-y: scroll; background-color: dimgray; } .app_footer{ - position: fixed; - bottom: 0px; + grid-area: app_footer; min-width: 100%; background-color: #2b2b2b; margin: 0px; diff --git a/src/interface/templates/index.html b/src/interface/templates/index.html index db4e3cc..2365091 100755 --- a/src/interface/templates/index.html +++ b/src/interface/templates/index.html @@ -11,6 +11,8 @@ + +