From c65cce45458671c932eb481c91d1e3bbde019913 Mon Sep 17 00:00:00 2001 From: Bryan Bailey Date: Thu, 7 Nov 2019 18:45:48 -0500 Subject: [PATCH] interface clean up --- app/main/views.py | 4 +- app/panelrip/zipper.py | 3 +- app/static/css/site.css | 28 +++++++++ app/static/dp-bg.png | Bin 0 -> 984549 bytes app/templates/index.html | 90 +++++++++++++++++++++++++---- app/templates/success.html | 115 +++++++++++++++++++++++++++++++++++-- 6 files changed, 223 insertions(+), 17 deletions(-) create mode 100644 app/static/css/site.css create mode 100644 app/static/dp-bg.png diff --git a/app/main/views.py b/app/main/views.py index af29893..657fe70 100644 --- a/app/main/views.py +++ b/app/main/views.py @@ -48,6 +48,8 @@ def index(): if form.validate_on_submit(): soup = ripper.get_soup_obj(form.search.data, headers) download_comic_files(soup) - return render_template('success.html', title=ripper.get_title(soup)) + title = ripper.get_title(soup) + cover = title + ' 000.jpg' + return render_template('success.html', title=title, cover=cover) return render_template('index.html', form=form) \ No newline at end of file diff --git a/app/panelrip/zipper.py b/app/panelrip/zipper.py index 230c0c8..117b4fb 100644 --- a/app/panelrip/zipper.py +++ b/app/panelrip/zipper.py @@ -10,6 +10,7 @@ def create_comic_archive(title, folder): output = shutil.make_archive(title, 'zip', folder) os.rename(output, os.path.join(folder, title +'.cbr')) print('Performing folder cleanup...') + ignore = ('.cbr', '000.jpg') for img in os.listdir(folder): - if not img.endswith('.cbr'): + if not img.endswith(ignore): os.remove(os.path.join(folder, img)) \ No newline at end of file diff --git a/app/static/css/site.css b/app/static/css/site.css new file mode 100644 index 0000000..8e19db7 --- /dev/null +++ b/app/static/css/site.css @@ -0,0 +1,28 @@ +input::-webkit-input-placeholder, input::-moz-placeholder, :input-moz-placeholder, input:-ms-input-placeholder { + text-align: center; +} + +.jumbotron { + position: relative; + background: url(../esm-bg.jpg); + background-size: cover; + background-repeat: no-repeat; + height: 350px; +} + +.jumbo-info { + position: absolute; + top: 180px; + left: 0; + color: white; +} + + +.jumbo-info h1 { + font-weight: 900; +} + + +.cover { + height: 300px; +} \ No newline at end of file diff --git a/app/static/dp-bg.png b/app/static/dp-bg.png new file mode 100644 index 0000000000000000000000000000000000000000..374b9820e62051ce29482acf78e61821be1a0574 GIT binary patch literal 984549 zcmV)6K*+y|P)004R= z004l4008;_004mL004C`008P>0026e000+nl3&F}00009a7bBm000XU000XU0RWnu z7ytl(07*naRCwCVy?2--Rn-YW+!&nJ?Hnw4Rx!!XBPGSKF@FDS*LrdtE+C^ zaPB#uKo4AX0l^Rv03uQdDFH^+Dgyv1h)4-U1Q0|308mx`5mf-9{(SVINWR6ZDgiRbaHp-My@zal+@Kvk7N z>G{+1l&_20->F`SszA|psSN7av5PYZKn#-feI=+W)Dn!q#%EDnK-*(=A0Z$-M~