{% load static %}
<!DOCTYPE html>
<html lang="en">
<head>
    <title>CNA Charting</title>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="chrome=1">
    <link rel="shortcut icon" type="image/png" href="{% static 'favicon.ico' %}"/>

    <link rel="preconnect" href="https://fonts.googleapis.com">
    <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
    <link href="https://fonts.googleapis.com/css2?family=Lato:ital,wght@0,400;0,700;1,400;1,700&display=swap" rel="stylesheet">

    <link rel="stylesheet" href="{% static "styles/main.css" %}">
    <link rel="stylesheet" href="{% static "fontawesome/css/all.css" %}">
    <script src="{% static "scripts/index.js" %}" defer></script>

    {% block head %}
    {% endblock %}
</head>
<body>
    <header>
        <nav>
            <strong>CNA Charting</strong>
            <a href="{% url 'chart-list' %}">Charts</a>
        </nav>
    </header>

    <aside>
        {% if messages %}
            <div class="messages panel">
            {% for message in messages %}
                <span {% if message.tags %} class="{{ message.tags }} messages__message"{% endif %}>{{ message }}</span>
                {% endfor %}
            </div>
        {% endif %}
        {% block aside %}
        {% endblock %}
    </aside>

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

    <footer>
    </footer>
</body>
</html>
