From f7e5cf114359ac9f6bae2f14969e01a01b5a7951 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?X=C3=A9fir=20Destiny?= Date: Thu, 16 Jun 2022 22:48:16 +0200 Subject: [PATCH] Stash --- .drone.yml | 2 +- divent/__init__.py | 4 ---- divent/static/css/global.css | 20 ++++++++++++++++++++ divent/templates/base.html.j2 | 17 ++++++++++++----- divent/templates/guilds.html.j2 | 12 ++++-------- poetry.lock | 26 +++++++++++++------------- 6 files changed, 50 insertions(+), 31 deletions(-) delete mode 100644 divent/__init__.py diff --git a/.drone.yml b/.drone.yml index d64718d..d40505d 100644 --- a/.drone.yml +++ b/.drone.yml @@ -4,7 +4,7 @@ type: docker steps: - name: lint - image: python:3.10-slim + image: python:3.8-slim commands: - pip install poetry - poetry install diff --git a/divent/__init__.py b/divent/__init__.py deleted file mode 100644 index ed70515..0000000 --- a/divent/__init__.py +++ /dev/null @@ -1,4 +0,0 @@ -from .bot import run - -if __name__ == "__main__": - run() diff --git a/divent/static/css/global.css b/divent/static/css/global.css index 199a837..c2820f2 100644 --- a/divent/static/css/global.css +++ b/divent/static/css/global.css @@ -1,3 +1,23 @@ body { background-color: #202225; + display: flex; + flex-direction: column; + justify-content: center; + height: 100vh; + margin: 0; +} + +#content { + display: flex; + align-items: center; + flex-grow: 2; +} + +#box { + display: flex; + background-color: red; +} + +footer { + display: flex; } diff --git a/divent/templates/base.html.j2 b/divent/templates/base.html.j2 index 2592528..3785d39 100644 --- a/divent/templates/base.html.j2 +++ b/divent/templates/base.html.j2 @@ -7,14 +7,21 @@ - {% block title %}{% endblock title %} + {% block title %} + {% endblock title %} - - + + - {% block content %}{% endblock content %} - +
+
+ {% block content %} + {% endblock content %} +
+
diff --git a/divent/templates/guilds.html.j2 b/divent/templates/guilds.html.j2 index 3877721..cac471a 100644 --- a/divent/templates/guilds.html.j2 +++ b/divent/templates/guilds.html.j2 @@ -1,14 +1,10 @@ {% extends "base.html.j2" %} {% block content %} -