diff options
| author | Jfriedli | 2021-03-18 11:35:04 +0100 |
|---|---|---|
| committer | Jfriedli | 2021-03-18 11:35:04 +0100 |
| commit | 81780062aea2f9de8dd704de1da7743937b79c38 (patch) | |
| tree | a7266d5ded29e8f5cae1ee5b96cf244c7c3ae6dd /templates/base.html | |
| parent | 7f253f71866a35a4c681a9ac37109d0ea4ab3d0e (diff) | |
started refactoring index and download page
Diffstat (limited to 'templates/base.html')
| -rw-r--r-- | templates/base.html | 60 |
1 files changed, 33 insertions, 27 deletions
diff --git a/templates/base.html b/templates/base.html index 17c28f2..576f264 100644 --- a/templates/base.html +++ b/templates/base.html | |||
| @@ -1,39 +1,45 @@ | |||
| 1 | <!doctype html> | 1 | <!doctype html> |
| 2 | <html lang="en"> | 2 | <html lang="en"> |
| 3 | <head> | 3 | |
| 4 | <title>MAT2</title> | 4 | <head> |
| 5 | <meta charset="UTF-8"> | 5 | <title>MAT2</title> |
| 6 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> | 6 | <meta charset="UTF-8"> |
| 7 | <link href="{{ url_for('static', filename='raleway.woff2') }}" as="font" type="font/woff2" rel="preload"> | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| 8 | <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}"> | 8 | <link href="{{ url_for('static', filename='raleway.woff2') }}" as="font" type="font/woff2" rel="preload"> |
| 9 | {% assets 'css' %} | 9 | <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}"> |
| 10 | <link rel="stylesheet" href="{{ ASSET_URL }}"> | 10 | {% assets 'css' %} |
| 11 | {% endassets %} | 11 | <link rel="stylesheet" href="{{ ASSET_URL }}"> |
| 12 | </head> | 12 | {% endassets %} |
| 13 | </head> | ||
| 14 | |||
| 13 | <body class="flex flex-col h-screen justify-between"> | 15 | <body class="flex flex-col h-screen justify-between"> |
| 14 | <header class="h-20 w-full bg-blue-100 my-0 flex justify-center"> | 16 | <header class="h-20 w-full bg-blue-100 my-0 flex justify-center"> |
| 15 | <a href='.' class="mt-8"> | 17 | <a href='.' class="mt-8"> |
| 16 | <img class='max-h-28' src="{{ url_for('static', filename='logo.png') }}" alt="mat2 logo"/> | 18 | <img class='max-h-28' src="{{ url_for('static', filename='logo.png') }}" alt="mat2 logo" /> |
| 17 | </a> | 19 | </a> |
| 18 | </header> | 20 | </header> |
| 19 | 21 | ||
| 20 | <div class="container h-10 mt-8"> | 22 | |
| 21 | <div> | 23 | |
| 22 | {% with messages = get_flashed_messages() %} | 24 | <section class="mb-auto mt-8 pt-8"> |
| 23 | {% if messages %} | 25 | {% with messages = get_flashed_messages() %} |
| 24 | {% for message in messages %} | 26 | {% if messages %} |
| 25 | <div> | 27 | {% for message in messages %} |
| 26 | <p> | 28 | <div class="text-white px-6 py-4 border-0 rounded relative mb-4 bg-red-500"> |
| 27 | {{ message }} | 29 | <span class="text-xl inline-block mr-5 align-middle"> |
| 28 | </p> | 30 | <svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor"> |
| 29 | </div> | 31 | <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" |
| 30 | {% endfor %} | 32 | d="M12 8v4m0 4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" /> |
| 31 | {% endif %} | 33 | </svg> |
| 32 | {% endwith %} | 34 | </span> |
| 35 | <span class="inline-block align-middle mr-8"> | ||
| 36 | {{ message }} | ||
| 37 | </span> | ||
| 33 | </div> | 38 | </div> |
| 34 | </div> | 39 | {% endfor %} |
| 40 | {% endif %} | ||
| 41 | {% endwith %} | ||
| 35 | 42 | ||
| 36 | <section class="container mb-auto mx-auto mt-8"> | ||
| 37 | {% block content %}{% endblock %} | 43 | {% block content %}{% endblock %} |
| 38 | </section> | 44 | </section> |
| 39 | 45 | ||
| @@ -42,4 +48,4 @@ | |||
| 42 | <a href='https://0xacab.org/jvoisin/mat2-web'>source</a> - | 48 | <a href='https://0xacab.org/jvoisin/mat2-web'>source</a> - |
| 43 | ♥ | 49 | ♥ |
| 44 | </footer> | 50 | </footer> |
| 45 | </body> | 51 | </body> \ No newline at end of file |
