summaryrefslogtreecommitdiff
path: root/templates/base.html
blob: a3b54efcd89a274b9ed97cc95cbdb66fd41bd9d1 (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
<!doctype html>
<html lang="en">
  <head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>{% block title %}Lumière{% endblock %}</title>
    <link rel="icon" href="/static/favicon.svg" type="image/svg+xml">
    <link rel="stylesheet" href="/static/styles.css" />
    <script src="{{ url_for('static', path='/app.js') }}" defer></script>
  </head>
  <body>
    <div class="shell">
      <header class="topbar">
        <a class="brand" href="/">Lumière</a>
        <nav class="nav-actions" aria-label="Primary">
          <a class="{% if active_shelf == 'diary' %}is-active{% endif %}" href="/diary">Diary</a>
          <a class="{% if active_shelf == 'queue' %}is-active{% endif %}" href="/queue">Queue</a>
          <a class="{% if active_shelf == 'abandoned' %}is-active{% endif %}" href="/abandoned">Abandoned</a>
          <a class="{% if active_page == 'stats' %}is-active{% endif %}" href="/stats">Stats</a>
          <a class="{% if active_page == 'import' %}is-active{% endif %}" href="/import">Import</a>
          <a class="button-link" href="/films/new">Add Film</a>
          <form method="post" action="/logout" style="display: contents;">
            <button type="submit" style="background: none; border: none; color: var(--muted); cursor: pointer; font-size: inherit; padding: 0;">Logout</button>
          </form>
        </nav>
      </header>

      <main>
        {% block content %}{% endblock %}
      </main>
    </div>
    {% block scripts %}{% endblock %}
  </body>
</html>