From 7e4be4a233becc2d32e36c425232b21d1be72b72 Mon Sep 17 00:00:00 2001 From: j Date: Mon, 21 Aug 2023 12:18:23 +0200 Subject: [PATCH] login/register ui, add register to menu --- app/static/css/site.scss | 28 ++++++++++++++++++++++++++++ app/templates/base.html | 2 ++ app/templates/login.html | 3 ++- app/user/views.py | 16 +++++++++++++++- 4 files changed, 47 insertions(+), 2 deletions(-) diff --git a/app/static/css/site.scss b/app/static/css/site.scss index dd1d666..9714140 100644 --- a/app/static/css/site.scss +++ b/app/static/css/site.scss @@ -142,3 +142,31 @@ nav.overlay { opacity: 0.8; } + +.login, .register { + margin-top: 16px; + margin-left: 24px; + textarea, + input { + padding: 4px; + margin-left: 0; + margin-top: 4px; + margin-bottom: 4px; + margin-right: 4px; + background: none; + color: white; + border: 1px solid green; + } + button { + margin-top: 4px; + background: black; + color: white; + border: solid 1px green; + padding: 8px; + } + button:hover, + button:active { + border: solid 1px lightgreen; + cursor: pointer; + } +} diff --git a/app/templates/base.html b/app/templates/base.html index 771aa3b..5147345 100644 --- a/app/templates/base.html +++ b/app/templates/base.html @@ -53,6 +53,8 @@ logout {% else %} login +
+ register {% endif %} diff --git a/app/templates/login.html b/app/templates/login.html index 9380368..7a8f8fe 100644 --- a/app/templates/login.html +++ b/app/templates/login.html @@ -7,8 +7,9 @@
{% csrf_token %} +
-