diff --git a/static/css/style.css b/static/css/style.css index 6a3c306..661baa0 100644 --- a/static/css/style.css +++ b/static/css/style.css @@ -2,6 +2,8 @@ body { --text-color: #111; --brand-color: #231765; + --bkg-color-blue: #0066e3; + --bkg-color: #fff; --bkg-color2: #ccc; --bkg-color3: #aaa; @@ -12,6 +14,8 @@ body { body { --text-color: #eee; --brand-color: #654dea; + --bkg-color-blue: #003aac; + --bkg-color: #121212; --bkg-color2: #202020; --bkg-color3: #353435; diff --git a/static/images/intro.png b/static/images/intro.png index 591504e..7e279df 100644 Binary files a/static/images/intro.png and b/static/images/intro.png differ diff --git a/templates/account/profile.html b/templates/account/profile.html index 7731fae..a9a660a 100644 --- a/templates/account/profile.html +++ b/templates/account/profile.html @@ -1,5 +1,5 @@ {% extends 'base.html' %} -{% block title %} Аккаунт | вход {% endblock %} +{% block title %} Аккаунт | профиль {% endblock %} {% block content %}

Ваш аккаунт

diff --git a/templates/index.html b/templates/index.html index 5f398ec..11654a3 100644 --- a/templates/index.html +++ b/templates/index.html @@ -92,7 +92,7 @@ line-height: 27px; align-items: center; - color: #231765; + color: var(--brand-color); } diff --git a/templates/registration/login.html b/templates/registration/login.html index 4a2cec6..5cc7474 100644 --- a/templates/registration/login.html +++ b/templates/registration/login.html @@ -3,22 +3,82 @@ {% block styles %} {% endblock %} {% block content %} -

Ваш аккаунт

-

Вход

-
+
+

{% block page-title %} Войти {% endblock %}

+ {% csrf_token %} - - - {{ form.as_table }} - -
- + + {% block form-pre-fields %} +
+ Впервые на сайте? Зарегистрироваться +
+ {% endblock %} + + {% for field in form %} +
+ {{ field.errors }} + {{ field.label_tag }} {{ field }} +
+ {% endfor %} + + {% block form-pre-submit %}{% endblock %} + +
+ +
+
{% endblock %} diff --git a/templates/registration/register.html b/templates/registration/register.html index a7c06f9..fd37d32 100644 --- a/templates/registration/register.html +++ b/templates/registration/register.html @@ -1,20 +1,23 @@ -{% extends 'base.html' %} +{% extends 'registration/login.html' %} {% block title %} Аккаунт | регистрация {% endblock %} -{% block content %} -

Ваш аккаунт

-

Регистрация

-
- {% csrf_token %} - - - {{ form.as_table }} - -
- -
+{% block page-title %} Регистрация {% endblock %} +{% block form-action-url %}{% url 'register' %}{% endblock %} +{# пустой блок #} +{% block form-pre-fields %} +
+ Уже зарегистрированы? Войти +
+{% endblock %} + +{% block form-pre-submit %}
- Уже зарегистрированы? Вход + +
{% endblock %} + +{% block submit-button-text %}Отправить{% endblock %}