summaryrefslogtreecommitdiff
path: root/templates/index.html
diff options
context:
space:
mode:
authorTyler Hoang <tyler@tylerhoang.xyz>2026-05-06 12:21:26 -0700
committerTyler Hoang <tyler@tylerhoang.xyz>2026-05-06 12:21:26 -0700
commite708bec6cd76c2686de4158dde4d04f72a3c300d (patch)
tree04b0bc4738e090dd7834d47478c7e652da010f92 /templates/index.html
init: lumiere film diary
Diffstat (limited to 'templates/index.html')
-rw-r--r--templates/index.html64
1 files changed, 64 insertions, 0 deletions
diff --git a/templates/index.html b/templates/index.html
new file mode 100644
index 0000000..52c633f
--- /dev/null
+++ b/templates/index.html
@@ -0,0 +1,64 @@
+{% extends "base.html" %}
+
+{% block title %}{{ shelf_meta.title }} · Lumière{% endblock %}
+
+{% block content %}
+ <section class="page-heading">
+ <p class="eyebrow">{{ shelf_meta.eyebrow }}</p>
+ <div class="page-heading-row">
+ <h1>{{ shelf_meta.title }}</h1>
+ {% if active_shelf == 'queue' %}
+ <a class="button-link" href="/queue/random">Surprise me</a>
+ {% endif %}
+ </div>
+ </section>
+
+ {% if imported is not none %}
+ <div class="notice">{{ imported }} entries imported.</div>
+ {% endif %}
+
+ {% if skipped is not none and skipped %}
+ <div class="notice">{{ skipped }} duplicate entries skipped.</div>
+ {% endif %}
+
+ {% if cleared is not none %}
+ <div class="notice">{{ cleared }} entries cleared.</div>
+ {% endif %}
+
+ {% if deduped is not none %}
+ <div class="notice">{{ deduped }} duplicate entries removed.</div>
+ {% endif %}
+
+ {% if empty_queue is not none %}
+ <div class="notice">The queue is empty. Add a film to get a random pick.</div>
+ {% endif %}
+
+ {% if enriched is not none %}
+ <div class="notice">{{ enriched }} entries enriched from TMDB.</div>
+ {% endif %}
+
+ {% if films %}
+ <section class="diary-feed" aria-label="Diary entries">
+ {% if active_shelf == 'diary' and grouped_films %}
+ {% for group in grouped_films %}
+ <div class="month-group">
+ <p class="month-label">{{ group.month }}</p>
+ {% for film in group.films %}
+ {% include "_film_card.html" %}
+ {% endfor %}
+ </div>
+ {% endfor %}
+ {% else %}
+ {% for film in films %}
+ {% include "_film_card.html" %}
+ {% endfor %}
+ {% endif %}
+ </section>
+ {% else %}
+ <section class="empty-state">
+ <h2>{{ shelf_meta.empty_title }}</h2>
+ <p>{{ shelf_meta.empty_text }}</p>
+ <a class="button-link" href="/films/new">Add Film</a>
+ </section>
+ {% endif %}
+{% endblock %}