<!doctype html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Fasting Tracker</title>
    <link rel="stylesheet" href="{{ url_for('static', filename='style.css') }}">
</head>
<body>
    <div class="page">
        <div class="topbar">
            <div class="brand">Fasting Tracker</div>
            <div class="topbar-actions">
                {% if session.get('auth') %}
                <a class="link" href="{{ url_for('logout') }}">Sign out</a>
                {% endif %}
            </div>
        </div>
        {% block body %}{% endblock %}
    </div>
    <script>
        window.initialState = {{ {
            "active": active,
            "stats": stats,
            "history": history,
            "tz": tz_name,
        } | tojson }};
    </script>
    <script src="{{ url_for('static', filename='app.js') }}"></script>
</body>
</html>
