From 192e20cce09acb596c131830830740dfacce402a Mon Sep 17 00:00:00 2001
From: Dorian Lesbre <dorian.lesbre@gmail.com>
Date: Sun, 7 Mar 2021 17:10:09 +0100
Subject: [PATCH] Added create account button + footer styling

---
 accounts/templates/login.html | 6 ++++++
 home/static/css/style.css     | 6 ++++--
 2 files changed, 10 insertions(+), 2 deletions(-)

diff --git a/accounts/templates/login.html b/accounts/templates/login.html
index 6f6134a..249ac46 100644
--- a/accounts/templates/login.html
+++ b/accounts/templates/login.html
@@ -5,6 +5,7 @@
 {% block "content" %}
 <div id="content-area">
 	<h2>Connexion</h2>
+
 	{% if form.errors %}
 	<ul class="messagelist">
 		<li class="error">Login ou mot de passe incorrect</li>
@@ -34,7 +35,12 @@
 		</table>
 		<br>
 
+		<div class="flex">
 		<input type="submit" value="Connexion">
+			{% if settings.registrations_open %}
+			<a class="button" href="{% url 'accounts:create' %}">Créer un compte</a>
+			{% endif %}
+		</div>
 		<input type="hidden" name="next" value="{{ next }}">
 	</form>
 </div>
diff --git a/home/static/css/style.css b/home/static/css/style.css
index bd20b34..e0ef347 100644
--- a/home/static/css/style.css
+++ b/home/static/css/style.css
@@ -251,14 +251,16 @@ ul.messagelist li.info:before {
 footer {
 	position: absolute;
 	bottom: 0;
-	width: calc(100% - 80px); /* viewport width - padding */
-	padding: 10px 40px;
+	width: 100%;
+	text-align: center;
+	padding: 10px 0;
 	height: 50px;
 	color: white;
 	display: flex;
 	background-color: var(--color_bg_1);
 	border-top: 5px solid var(--color_bg_2);
 	align-items: center;
+	justify-content: space-around;
 }
 
 footer #sponsors img {
-- 
GitLab