From 43069cec88def1d3feaf0c1036e44823212b52d7 Mon Sep 17 00:00:00 2001 From: S Stewart Date: Sun, 18 Nov 2018 18:23:38 -0600 Subject: [PATCH 1/3] rewrite invite_register.html --- static/invite_register.html | 23 +++++++++++++---------- 1 file changed, 13 insertions(+), 10 deletions(-) diff --git a/static/invite_register.html b/static/invite_register.html index 59d7854..36734b8 100644 --- a/static/invite_register.html +++ b/static/invite_register.html @@ -1,23 +1,26 @@ + litecord: register + -

register

- +
+
+

register

-

your username

- -

your email

- -

your password

- -

invite code

- + +
+ +
+ +
+

+
From b18188cdeb53445da52c274480ddf10c11ce9b1d Mon Sep 17 00:00:00 2001 From: S Stewart Date: Sun, 18 Nov 2018 18:23:46 -0600 Subject: [PATCH 2/3] add css --- static/css/invite_register.css | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 static/css/invite_register.css diff --git a/static/css/invite_register.css b/static/css/invite_register.css new file mode 100644 index 0000000..f7c757d --- /dev/null +++ b/static/css/invite_register.css @@ -0,0 +1,31 @@ +html, body { + background-color: #23272a; + color: white; + font-family: sans-serif; + display: flex; + justify-content: center; + align-items: center; + flex-flow: column nowrap; + margin: 0; +} +@media (max-width: 500px) { + html, + body { + display: inherit !important; + padding: 1em; + } + + main { + width: 100%; + } +} + +* { box-sizing: border-box; } +.rounded-thing { + border-radius: 5px; + background-color: #2c2f33; + padding: 10px; +} +input { padding: 5px; } +input[type=submit] { padding: 5px; } +input[type=submit]:hover { background-color: #7298da; padding: 5px; } From ef2a1480ed7c33e0feaeaabd7c3a9d5d3f0471d7 Mon Sep 17 00:00:00 2001 From: S Stewart Date: Sun, 18 Nov 2018 19:58:06 -0600 Subject: [PATCH 3/3] add static bp --- litecord/blueprints/__init__.py | 4 ++-- litecord/blueprints/static.py | 9 +++++++++ 2 files changed, 11 insertions(+), 2 deletions(-) create mode 100644 litecord/blueprints/static.py diff --git a/litecord/blueprints/__init__.py b/litecord/blueprints/__init__.py index b64b431..6f9c699 100644 --- a/litecord/blueprints/__init__.py +++ b/litecord/blueprints/__init__.py @@ -11,7 +11,7 @@ from .relationships import bp as relationships from .dms import bp as dms from .icons import bp as icons from .nodeinfo import bp as nodeinfo - +from .static import bp as static __all__ = ['gateway', 'auth', 'users', 'guilds', 'channels', 'webhooks', 'science', 'voice', 'invites', 'relationships', - 'dms', 'icons', 'nodeinfo'] + 'dms', 'icons', 'nodeinfo', 'static'] diff --git a/litecord/blueprints/static.py b/litecord/blueprints/static.py new file mode 100644 index 0000000..3b9f703 --- /dev/null +++ b/litecord/blueprints/static.py @@ -0,0 +1,9 @@ +from quart import Blueprint, current_app as app +from pathlib import Path + +bp = Blueprint('static', __name__) + + +@bp.route('/') +async def static_pages(path): + return app.send_static_file(str(Path(f'./static/{path}')))