blob: 1b48f0686ee7a78c3b0afdab47ed044c001f66e1 (
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
56
57
58
59
60
61
62
63
64
65
66
|
<!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">
<aside class="app-sidebar">
<div class="app-sidebar-inner">
<a class="brand" href="/">Lumière</a>
<p class="sidebar-intro">A private film ledger for what stayed with you.</p>
<a class="button-link sidebar-cta" href="/films/new">Add Film</a>
<nav class="sidebar-nav" aria-label="Primary">
<div class="sidebar-group">
<p class="sidebar-label">Shelves</p>
<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>
</div>
<div class="sidebar-group">
<p class="sidebar-label">Library</p>
<a class="{% if active_page == 'stats' %}is-active{% endif %}" href="/stats">Stats</a>
<a class="{% if active_page == 'about' %}is-active{% endif %}" href="/about">About</a>
<a class="{% if active_page == 'import' %}is-active{% endif %}" href="/import">Import</a>
</div>
</nav>
<form class="sidebar-logout" method="post" action="/logout">
<button type="submit" class="sidebar-logout-button">Logout</button>
</form>
</div>
</aside>
<div class="app-main">
<header class="topbar">
<a class="brand" href="/">Lumière</a>
<button id="menu-toggle" class="menu-toggle" aria-label="Menu" aria-expanded="false"></button>
<nav class="nav-actions" id="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 == 'about' %}is-active{% endif %}" href="/about">About</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" class="nav-logout">
<button type="submit" class="nav-logout-button">Logout</button>
</form>
</nav>
</header>
<main class="app-content">
{% block content %}{% endblock %}
</main>
</div>
</div>
{% block scripts %}{% endblock %}
</body>
</html>
|