summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: b259fdc2cec79595f057784ddb3e2a201c146c4e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
<!doctype html>
<html lang="en">

<head>
    <title>MAT2</title>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}">
    {% assets 'css' %}
    <link rel="stylesheet" href="{{ ASSET_URL }}">
    {% endassets %}
</head>

<body class="flex flex-col h-screen justify-between">
    <header class="h-20 w-full bg-blue-light my-0 flex justify-center">
        <a href='.' class="mt-8">
            <img class='max-h-28' src="{{ url_for('static', filename='logo.png') }}" alt="mat2 logo" />
        </a>
    </header>

    <section class="mb-auto mt-12 pt-8">
        {% with messages = get_flashed_messages() %}
        {% if messages %}
        {% for message in messages %}
        <div class="text-white px-6 py-4 border-0 relative mb-4 bg-red-500">
            <span class="inline-block align-middle mr-8">
                {{ message }}
            </span>
        </div>
        {% endfor %}
        {% endif %}
        {% endwith %}

        {% block content %}{% endblock %}
    </section>

    <footer class="h-10 flex justify-center">
        <a class="flex justify-center" target="_blank" rel="noreferrer" href="https://0xacab.org/jvoisin/mat2-web" class="text-blue-dark">
            <svg class="w-4 h-4 mr-2 text-blue-dark self-center" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke="currentColor">
                <path strokeLinecap="round" strokeLinejoin="round" strokeWidth={2} d="M10 20l4-16m4 4l4 4-4 4M6 16l-4-4 4-4" />
              </svg>  
            <span class="self-center text-blue-dark">source</span>
        </a>
    </footer>
</body>