From c276e97deabef70daff74bbccac60ff468b5f772 Mon Sep 17 00:00:00 2001
From: Joris
Date: Sun, 21 Aug 2022 12:19:08 +0200
Subject: Show app title above form during connection
---
README.md | 4 ++--
assets/main.css | 10 +++++++++-
templates/base.html | 19 ++++++++++---------
templates/login.html | 8 ++++++--
4 files changed, 27 insertions(+), 14 deletions(-)
diff --git a/README.md b/README.md
index c4b243b..3905ef2 100644
--- a/README.md
+++ b/README.md
@@ -9,9 +9,9 @@
1. Use `nix develop` to download dependencies.
-2. Initialize the database with `bin/db init`.
+2. Initialize the database with `bin/db init` if required.
-3. Start the application with `bin/watch run`.
+3. Start the application with `bin/dev-server`.
4. Connect with either:
diff --git a/assets/main.css b/assets/main.css
index 6eb3018..52dc3f0 100644
--- a/assets/main.css
+++ b/assets/main.css
@@ -327,7 +327,15 @@ body {
/* Login */
.g-Login {
- margin-top: var(--size-elephant);
+ display: flex;
+ width: 100%;
+ align-items: center;
+ margin-top: 20vh;
+ flex-direction: column;
+}
+
+.g-Login__Title {
+ margin-bottom: var(--size-lion);
}
.g-Login__Button {
diff --git a/templates/base.html b/templates/base.html
index 4787ae7..c7dc9f0 100644
--- a/templates/base.html
+++ b/templates/base.html
@@ -7,15 +7,16 @@
-
+{% if connected_user %}
+
+{% endif %}
{% if connected_user %}