From 2cef14d2d87f8511cd08646d0eb6696a8f366a69 Mon Sep 17 00:00:00 2001 From: ArtemB Date: Mon, 6 Nov 2023 13:00:41 +0300 Subject: [PATCH] 0.0.202 --- static/css/styles.css | 4 ++++ static/js/authorization.js | 3 +-- templates/blocks/b_header.html | 23 +++++++++++++---------- 3 files changed, 18 insertions(+), 12 deletions(-) diff --git a/static/css/styles.css b/static/css/styles.css index 384c4fa..514dd0b 100644 --- a/static/css/styles.css +++ b/static/css/styles.css @@ -627,6 +627,10 @@ header .header-second { display: inline-block; vertical-align: middle; } +.header_buttons { + display: inline-block; + margin-top: 16px; +} span.btn_profile_name { display: block; diff --git a/static/js/authorization.js b/static/js/authorization.js index 58f1332..be6f8c9 100644 --- a/static/js/authorization.js +++ b/static/js/authorization.js @@ -3,7 +3,6 @@ function SendLoginForm(el){ event.preventDefault() let form = el.form; let formData = new FormData(form); - let addMarginHeader = document.getElementsByClassName("header-first") @@ -21,7 +20,7 @@ function SendLoginForm(el){ location.href = '/profile' - // addMarginHeader + diff --git a/templates/blocks/b_header.html b/templates/blocks/b_header.html index ef16021..3a0b22b 100644 --- a/templates/blocks/b_header.html +++ b/templates/blocks/b_header.html @@ -89,18 +89,21 @@ {% endif %} {% if not user.is_authenticated %} +
+ + Регистрация + - - Регистрация - + + Войти + + +
- - Войти -