diff options
| author | Jan Friedli | 2020-04-13 22:09:14 +0200 |
|---|---|---|
| committer | Jan Friedli | 2020-04-13 22:09:14 +0200 |
| commit | 8a45eb2f5399aaa2a022389086a4afde22b00477 (patch) | |
| tree | 666052a800275a2a497dcf949ec5e24d8208aa0a /templates/base.html | |
| parent | 5723f889e1a8d5cf0dbdbdd317b356073ed50a0b (diff) | |
full redesign
Diffstat (limited to '')
| -rw-r--r-- | templates/base.html | 84 |
1 files changed, 45 insertions, 39 deletions
diff --git a/templates/base.html b/templates/base.html index 66b60d8..6f0f57a 100644 --- a/templates/base.html +++ b/templates/base.html | |||
| @@ -1,48 +1,54 @@ | |||
| 1 | <!doctype html> | 1 | <!doctype html> |
| 2 | <html> | 2 | <html> |
| 3 | <head> | 3 | <head> |
| 4 | <title>mat2 - web edition</title> | 4 | <title>MAT2</title> |
| 5 | <link href="{{url_for('static', filename='raleway.woff2') }}" as="font" type="font/woff2" rel="preload"> | 5 | <link href="{{ url_for('static', filename='raleway.woff2') }}" as="font" type="font/woff2" rel="preload"> |
| 6 | <link rel="stylesheet" href="{{ url_for('static', filename='normalize.css') }}" type="text/css" /> | 6 | <link rel="stylesheet" href="{{ url_for('static', filename='normalize.css') }}" type="text/css"/> |
| 7 | <link rel="stylesheet" href="{{ url_for('static', filename='uikit.min.css') }}" type="text/css" /> | 7 | <link rel="stylesheet" href="{{ url_for('static', filename='uikit.min.css') }}" type="text/css"/> |
| 8 | <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" type="text/css" /> | 8 | <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}" type="text/css"/> |
| 9 | <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}"> | 9 | <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}"> |
| 10 | <script defer src="{{url_for('static', filename='script.js') }}"></script> | 10 | <script defer src="{{ url_for('static', filename='script.js') }}"></script> |
| 11 | </head> | 11 | </head> |
| 12 | <body> | 12 | <body> |
| 13 | <header class="main-header"> | 13 | <header class="main-header"> |
| 14 | <div class="uk-container"> | 14 | <div class="uk-container"> |
| 15 | <div class="row"> | 15 | <div class="row"> |
| 16 | <div class="two-half column"> | 16 | <div class="two-half column"> |
| 17 | <a href='.' class="u-center-block"> | 17 | <a href='.' class="u-center-block"> |
| 18 | <img class='logo' src="{{ url_for('static', filename='logo.png') }}" alt="mat2 logo"/> | 18 | <img class='logo' src="{{ url_for('static', filename='logo.png') }}" alt="mat2 logo"/> |
| 19 | </a> | 19 | </a> |
| 20 | </div> | ||
| 20 | </div> | 21 | </div> |
| 21 | </div> | ||
| 22 | </div> | 22 | </div> |
| 23 | </header> | 23 | </header> |
| 24 | <div class="uk-container uk-flex uk-flex-center"> | ||
| 25 | <div class="row uk-flex uk-flex-center"> | ||
| 26 | {% with messages = get_flashed_messages() %} | ||
| 27 | {% if messages %} | ||
| 28 | <ul class=flashes> | ||
| 29 | {% for message in messages %} | ||
| 30 | <li>{{ message }}</li> | ||
| 31 | {% endfor %} | ||
| 32 | </ul> | ||
| 33 | {% endif %} | ||
| 34 | {% endwith %} | ||
| 35 | </div> | ||
| 36 | 24 | ||
| 37 | <section> | 25 | <div class="uk-flex uk-flex-center"> |
| 38 | <div class="row uk-flex uk-flex-center"> | 26 | <div> |
| 39 | {% block content %}{% endblock %} | 27 | {% with messages = get_flashed_messages() %} |
| 40 | </div> | 28 | {% if messages %} |
| 41 | </section> | 29 | {% for message in messages %} |
| 30 | <div class="uk-alert uk-alert-danger"> | ||
| 31 | <p> | ||
| 32 | {{ message }} | ||
| 33 | </p> | ||
| 34 | </div> | ||
| 35 | {% endfor %} | ||
| 36 | {% endif %} | ||
| 37 | {% endwith %} | ||
| 38 | </div> | ||
| 39 | </div> | ||
| 40 | |||
| 41 | <div class="uk-container uk-flex uk-flex-center"> | ||
| 42 | <section> | ||
| 43 | <div class="row uk-flex uk-flex-center"> | ||
| 44 | {% block content %}{% endblock %} | ||
| 45 | </div> | ||
| 46 | </section> | ||
| 47 | </div> | ||
| 42 | 48 | ||
| 43 | <footer> | 49 | <footer> |
| 44 | © <a href='https://dustri.org'>jvoisin</a> - | 50 | © <a href='https://dustri.org'>jvoisin</a> - |
| 45 | <a href='https://0xacab.org/jvoisin/mat2-web'>source</a> - | 51 | <a href='https://0xacab.org/jvoisin/mat2-web'>source</a> - |
| 46 | ♥ | 52 | ♥ |
| 47 | </footer> | 53 | </footer> |
| 48 | </body> | 54 | </body> |
