summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: b337df54d7a87296be179021e65fce91b2d03f76 (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
46
47
48
49
50
51
52
53
54
55
<!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 href="{{ url_for('static', filename='raleway.woff2') }}" as="font" type="font/woff2" rel="preload">
        <link rel="shortcut icon" href="{{ url_for('static', filename='favicon.png') }}">
        {% assets 'css' %}
            <link rel="stylesheet" href="{{ ASSET_URL }}">
        {% endassets %}
    </head>
<body>
    <header class="">
        <div class="container">
            <div>
                <div>
                    <a href='.'>
                        <img class='logo' src="{{ url_for('static', filename='logo.png') }}" alt="mat2 logo"/>
                    </a>
                </div>
            </div>
        </div>
    </header>

    <div class="container mx-auto">
        <div>
            {% with messages = get_flashed_messages() %}
                {% if messages %}
                    {% for message in messages %}
                        <div>
                            <p>
                                {{ message }}
                            </p>
                        </div>
                    {% endfor %}
                {% endif %}
            {% endwith %}
        </div>
    </div>

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

    <footer>
        © <a href='https://dustri.org'>jvoisin</a> -
        <a href='https://0xacab.org/jvoisin/mat2-web'>source</a> -
        ♥
    </footer>
</body>