diff --git a/app/static/css/register.css b/app/static/css/register.css index 41e48b3..4508d37 100644 --- a/app/static/css/register.css +++ b/app/static/css/register.css @@ -7,18 +7,4 @@ @media(min-width: 576px) { width: 200px; } -} - -.register__header-logo { - background-image: url('./../img/paw.png'); - background-position: center; - background-repeat: no-repeat; - background-size: contain; -} - -.register__header-title { - margin-bottom: 0px; - @media(min-width: 576px) { - margin-bottom: .5rem; - } } \ No newline at end of file diff --git a/app/static/css/styles.css b/app/static/css/styles.css index bdcbf56..5d77220 100644 --- a/app/static/css/styles.css +++ b/app/static/css/styles.css @@ -11,4 +11,18 @@ body { .content { flex-grow: 1; +} + +.inner-header-logo { + background-image: url('./../img/paw.png'); + background-position: center; + background-repeat: no-repeat; + background-size: contain; +} + +.inner-header-title { + margin-bottom: 0px; + @media(min-width: 576px) { + margin-bottom: .5rem; + } } \ No newline at end of file diff --git a/app/templates/layout/inner_header.html b/app/templates/layout/inner_header.html new file mode 100644 index 0000000..c480516 --- /dev/null +++ b/app/templates/layout/inner_header.html @@ -0,0 +1,10 @@ +{% macro inner_header(title) %} +
+ {% include 'message.html' %} + +
+

{{title}}

+
+
+{% endmacro %} \ No newline at end of file diff --git a/app/templates/users/register.html b/app/templates/users/register.html index b5eca1a..15e3135 100644 --- a/app/templates/users/register.html +++ b/app/templates/users/register.html @@ -1,5 +1,6 @@ {% extends "layout/layout.html" %} -{% from "forms/validation-block.html" import form_field_validation %} +{% from "forms/validation-block.html" import form_field_validation %} +{% from "layout/inner_header.html" import inner_header%} {% block title %} register {% endblock %} {% block head %} {{ super() }} @@ -7,15 +8,9 @@ {% endblock %} {% block content %}
-
-
- {% include 'message.html' %} - -
-

Register

-
+
+ {{ inner_header("Register") }}