From 1bdf4ca8c0f51718124ffe5247ac133973d4f251 Mon Sep 17 00:00:00 2001 From: Tyler Hoang Date: Wed, 6 May 2026 15:25:36 -0700 Subject: Add authentication, public profile, and infinite scroll MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Implement session-based auth with argon2 password hashing - Add login form and logout button in nav - Create public /tyler profile page with curated stats - Implement infinite scroll for film lists (load 20 at a time) - Add lazy loading for poster images - Fix profile page CSS to use dark theme variables - Use consistent star character (✦) across all pages - Add /films/partial endpoint for pagination Co-Authored-By: Claude Haiku 4.5 --- templates/_feed_partial.html | 14 +++++ templates/_film_card.html | 2 +- templates/base.html | 3 ++ templates/detail.html | 2 +- templates/index.html | 7 ++- templates/login.html | 60 +++++++++++++++++++++ templates/profile.html | 124 +++++++++++++++++++++++++++++++++++++++++++ templates/year_review.html | 8 +-- 8 files changed, 212 insertions(+), 8 deletions(-) create mode 100644 templates/_feed_partial.html create mode 100644 templates/login.html create mode 100644 templates/profile.html (limited to 'templates') diff --git a/templates/_feed_partial.html b/templates/_feed_partial.html new file mode 100644 index 0000000..e22cdde --- /dev/null +++ b/templates/_feed_partial.html @@ -0,0 +1,14 @@ +{% if active_shelf == 'diary' and grouped_films %} + {% for group in grouped_films %} +
+

{{ group.month }}

+ {% for film in group.films %} + {% include "_film_card.html" %} + {% endfor %} +
+ {% endfor %} +{% else %} + {% for film in films %} + {% include "_film_card.html" %} + {% endfor %} +{% endif %} diff --git a/templates/_film_card.html b/templates/_film_card.html index 7147a1e..5e8e6e4 100644 --- a/templates/_film_card.html +++ b/templates/_film_card.html @@ -1,7 +1,7 @@
{% if film.poster_url %} - {{ film.title }} poster + {{ film.title }} poster {% else %} {{ film.title[:1] }} {% endif %} diff --git a/templates/base.html b/templates/base.html index 168efde..1041c25 100644 --- a/templates/base.html +++ b/templates/base.html @@ -18,6 +18,9 @@ Stats Import Add Film +
+ +
diff --git a/templates/detail.html b/templates/detail.html index df3f96a..59779d8 100644 --- a/templates/detail.html +++ b/templates/detail.html @@ -7,7 +7,7 @@