diff --git a/divent/bot.py b/divent/bot.py index 951ea24..7b6c333 100644 --- a/divent/bot.py +++ b/divent/bot.py @@ -84,7 +84,7 @@ def guild_icon_ext(icon_hash: str): @app.route("/") async def index(): - return redirect(url_for(".login")) + return await render_template("index.html.j2") @app.route("/login") diff --git a/divent/static/css/global.css b/divent/static/css/global.css index e69de29..dea1fea 100644 --- a/divent/static/css/global.css +++ b/divent/static/css/global.css @@ -0,0 +1,23 @@ +body { + background-color: #202225; + margin: 0; +} + +#logo { + position: relative; + left: 24px; + top: 24px; +} + +#content { + position: absolute; + top: 50%; + left: 50%; + transform: translate(-50%, -50%); + min-width: 280px; + max-width: 400px; + min-height: 400px; + background-color: #18191c; + border-radius: 5px; + box-shadow: 0 8px 16px rgba(0,0,0, 0.24); +} diff --git a/divent/static/img/Discord-Logo+Wordmark-White.svg b/divent/static/img/Discord-Logo+Wordmark-White.svg new file mode 100644 index 0000000..2cef077 --- /dev/null +++ b/divent/static/img/Discord-Logo+Wordmark-White.svg @@ -0,0 +1,23 @@ + diff --git a/divent/templates/base.html.j2 b/divent/templates/base.html.j2 index a519d74..f870049 100644 --- a/divent/templates/base.html.j2 +++ b/divent/templates/base.html.j2 @@ -16,12 +16,14 @@ href="{{ url_for('static', filename='css/global.css') }}"/>
+