mirror of
https://github.com/th3r00t/pyShelf.git
synced 2026-04-28 01:59:35 -04:00
Interface tweaks
This commit is contained in:
30
src/interface/migrations/0001_initial.py
Normal file
30
src/interface/migrations/0001_initial.py
Normal file
@@ -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',
|
||||||
|
},
|
||||||
|
),
|
||||||
|
]
|
||||||
10
src/interface/static/css/main.css
vendored
10
src/interface/static/css/main.css
vendored
@@ -10,9 +10,8 @@ body{
|
|||||||
grid-template-areas: "app_header"
|
grid-template-areas: "app_header"
|
||||||
"app_body"
|
"app_body"
|
||||||
"app_footer";
|
"app_footer";
|
||||||
grid-template-rows: auto 90vh 5vh;
|
grid-template-rows: auto 84vh auto;
|
||||||
max-height: 100%;
|
max-height: 100%;
|
||||||
position: relative;
|
|
||||||
}
|
}
|
||||||
.clear{
|
.clear{
|
||||||
clear: both;
|
clear: both;
|
||||||
@@ -65,7 +64,7 @@ body{
|
|||||||
.app_slogan{
|
.app_slogan{
|
||||||
grid-area: slogan;
|
grid-area: slogan;
|
||||||
margin: 0;
|
margin: 0;
|
||||||
fontsize: 18px;
|
font-size: 18px;
|
||||||
font-family: 'Gruppo', cursive;
|
font-family: 'Gruppo', cursive;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
@@ -75,12 +74,11 @@ body{
|
|||||||
grid-template-rows: auto;
|
grid-template-rows: auto;
|
||||||
grid-template-areas: "shelf";
|
grid-template-areas: "shelf";
|
||||||
justify-items: center;
|
justify-items: center;
|
||||||
overflow: scroll;
|
overflow-y: scroll;
|
||||||
background-color: dimgray;
|
background-color: dimgray;
|
||||||
}
|
}
|
||||||
.app_footer{
|
.app_footer{
|
||||||
position: fixed;
|
grid-area: app_footer;
|
||||||
bottom: 0px;
|
|
||||||
min-width: 100%;
|
min-width: 100%;
|
||||||
background-color: #2b2b2b;
|
background-color: #2b2b2b;
|
||||||
margin: 0px;
|
margin: 0px;
|
||||||
|
|||||||
5
src/interface/templates/index.html
vendored
5
src/interface/templates/index.html
vendored
@@ -11,6 +11,8 @@
|
|||||||
<link href="https://fonts.googleapis.com/css?family=Gruppo&display=swap" rel="stylesheet">
|
<link href="https://fonts.googleapis.com/css?family=Gruppo&display=swap" rel="stylesheet">
|
||||||
<script src="/static/js/jquery-3.4.1.min.js" type="text/javascript"></script>
|
<script src="/static/js/jquery-3.4.1.min.js" type="text/javascript"></script>
|
||||||
<script src="/static/js/pyshelf_ux.js" type="text/javascript"></script>
|
<script src="/static/js/pyshelf_ux.js" type="text/javascript"></script>
|
||||||
|
<!-- Place this tag in your head or just before your close body tag. -->
|
||||||
|
<script async defer src="https://buttons.github.io/buttons.js"></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
<div id="app">
|
<div id="app">
|
||||||
@@ -22,11 +24,12 @@
|
|||||||
<h3 class="app_slogan shadow">""An elegant tool... for a more civilized age."</h3>
|
<h3 class="app_slogan shadow">""An elegant tool... for a more civilized age."</h3>
|
||||||
</div>
|
</div>
|
||||||
<div class="app_subhdr">
|
<div class="app_subhdr">
|
||||||
|
<!-- Place this tag where you want the button to render. -->
|
||||||
|
<a class="github-button" href="https://github.com/th3r00t/pyShelf/fork" data-color-scheme="no-preference: dark; light: light; dark: dark;" data-icon="octicon-repo-forked" data-size="large" aria-label="Fork th3r00t/pyShelf on GitHub">Fork</a>
|
||||||
<!--
|
<!--
|
||||||
<img src="/static/img/open-source-175x29.png" class="hdr_badge" /><br />
|
<img src="/static/img/open-source-175x29.png" class="hdr_badge" /><br />
|
||||||
<img src="/static/img/gpl-125x28.png" class="hdr_badge" />
|
<img src="/static/img/gpl-125x28.png" class="hdr_badge" />
|
||||||
-->
|
-->
|
||||||
<a href="https://github.com/th3r00t/pyShelf" class="nav_link" alt="Git Hub Link">GitHub.com/th3r00t/pyShelf</a>
|
|
||||||
</div>
|
</div>
|
||||||
<input type="hidden" id="_set" name="_set" value="{{ Set }}" />
|
<input type="hidden" id="_set" name="_set" value="{{ Set }}" />
|
||||||
<div class="nav_left_top">
|
<div class="nav_left_top">
|
||||||
|
|||||||
Reference in New Issue
Block a user