From ac1c61c50bbd7c4bc53393f98ba170751684ba57 Mon Sep 17 00:00:00 2001 From: Devin Haska <2636402+wonderfulfrog@users.noreply.github.com> Date: Fri, 17 Jan 2025 10:23:54 -0800 Subject: [PATCH] fix: movie data structure --- src/_includes/layouts/book.html | 2 +- src/_includes/layouts/movie.html | 12 +++++------ src/css/blocks/media-display.css | 9 ++++++++- src/movies/2022-01-25-coraline.md | 5 ++--- src/movies/2024-09-28-megalopolis.md | 5 +++-- src/movies/2024-09-30-sugarcane.md | 5 +++-- src/movies/2024-10-30-your-monster.md | 5 +++-- src/movies/2024-10-31-dracula-a-d-1972.md | 5 +++-- src/movies/2024-10-31-dracula.md | 5 +++-- src/movies/2024-11-08-woman-of-the-hour.md | 5 +++-- src/movies/2024-11-09-tetris.md | 5 +++-- src/movies/2024-11-20-flow.md | 5 +++-- src/movies/2025-01-06-conclave.md | 23 ++++++++++++++++++++++ 13 files changed, 64 insertions(+), 27 deletions(-) create mode 100644 src/movies/2025-01-06-conclave.md diff --git a/src/_includes/layouts/book.html b/src/_includes/layouts/book.html index 0917592..cb4eb16 100644 --- a/src/_includes/layouts/book.html +++ b/src/_includes/layouts/book.html @@ -8,7 +8,7 @@ layout: "layouts/base" {% include "svgs/arrow-left.svg" %} Back to books
-
+
diff --git a/src/_includes/layouts/movie.html b/src/_includes/layouts/movie.html index 37f752d..26ceb60 100644 --- a/src/_includes/layouts/movie.html +++ b/src/_includes/layouts/movie.html @@ -8,7 +8,7 @@ layout: "layouts/base" {% include "svgs/arrow-left.svg" %} Back to watching
-
+
@@ -21,7 +21,7 @@ Back to watching Directed by{{ director }}

{% endif %} - {% if watched %}

{{ format(watched) }}

{% endif %} + {% if watchHistory %}

{{ format(watchHistory | last) }}

{% endif %} {% if rating %}{{ stars(rating) }}{% endif %}
    {% if year %} @@ -34,18 +34,18 @@ Back to watching Runtime{{ runtime }} mins {% endif %} - {% if genres %} + {% if tags %}
  • - Genres{{ genres | join(", ") }} + Genres{{ tags | filter("movie") | join(", ") }}
  • {% endif %}
-{% if watch_history.length > 1 %} +{% if watchHistory.length > 1 %}

{% include "svgs/circle-info.svg" %} - I've seen this movie {{ watch_history.length }} {{ "time" | pluralize(watch_history) }}! + I've seen this movie {{ watchHistory.length }} {{ "time" | pluralize(watchHistory) }}!

{% endif %} {% if favourite %} diff --git a/src/css/blocks/media-display.css b/src/css/blocks/media-display.css index f9a4265..f3bf2f3 100644 --- a/src/css/blocks/media-display.css +++ b/src/css/blocks/media-display.css @@ -1,12 +1,19 @@ .media-image { + --aspect-ratio: 0.8; + + source, img { - aspect-ratio: 0.8; + aspect-ratio: var(--aspect-ratio); border: 1px solid var(--color-shadow); height: auto; object-fit: cover; } } +.media-image--tall { + --aspect-ratio: 0.67; +} + .media-meta-grid { display: grid; grid-template-columns: 225px 1fr; diff --git a/src/movies/2022-01-25-coraline.md b/src/movies/2022-01-25-coraline.md index 90002aa..3b599f7 100644 --- a/src/movies/2022-01-25-coraline.md +++ b/src/movies/2022-01-25-coraline.md @@ -1,8 +1,7 @@ --- title: "Coraline" year: 2009 -watched: 2022-01-25 -watch_history: +watchHistory: - 2022-01-25 - 2024-08-17 image: https://cdn.wonderfulfrog.com/images/movies/coraline-poster.jpg @@ -13,7 +12,7 @@ director: Henry Selick runtime: 100 favourite: true rating: 5 -genres: +tags: - animation - horror - fantasy diff --git a/src/movies/2024-09-28-megalopolis.md b/src/movies/2024-09-28-megalopolis.md index e5c3b77..6798d5e 100644 --- a/src/movies/2024-09-28-megalopolis.md +++ b/src/movies/2024-09-28-megalopolis.md @@ -1,12 +1,13 @@ --- title: "Megalopolis" year: 2024 -watched: 2024-09-30 +watchHistory: + - 2024-09-30 image: https://cdn.wonderfulfrog.com/images/movies/megalopolis-poster.jpg letterboxd: https://letterboxd.com/wonderfulfrog/film/megalopolis-2024/ director: Francis Ford Coppola runtime: 138 -genres: +tags: - drama - science fiction --- diff --git a/src/movies/2024-09-30-sugarcane.md b/src/movies/2024-09-30-sugarcane.md index 6a7442e..7b12c2e 100644 --- a/src/movies/2024-09-30-sugarcane.md +++ b/src/movies/2024-09-30-sugarcane.md @@ -1,12 +1,13 @@ --- title: "Sugarcane" year: 2024 -watched: 2024-09-30 +watchHistory: + - 2024-09-30 image: https://cdn.wonderfulfrog.com/images/movies/sugarcane-poster.jpg letterboxd: https://letterboxd.com/wonderfulfrog/film/sugarcane/ director: Emily Kassie, Julian Brave NoiseCat runtime: 107 favourite: true -genres: +tags: - documentary --- diff --git a/src/movies/2024-10-30-your-monster.md b/src/movies/2024-10-30-your-monster.md index a3885ad..25f7b4c 100644 --- a/src/movies/2024-10-30-your-monster.md +++ b/src/movies/2024-10-30-your-monster.md @@ -1,12 +1,13 @@ --- title: "Your Monster" year: 2024 -watched: 2024-10-30 +watchHistory: + - 2024-10-30 image: https://cdn.wonderfulfrog.com/images/movies/your-monster-poster.jpg letterboxd: https://letterboxd.com/wonderfulfrog/film/your-monster-2024/ director: Caroline Lindy runtime: 104 -genres: +tags: - music - comedy - horror diff --git a/src/movies/2024-10-31-dracula-a-d-1972.md b/src/movies/2024-10-31-dracula-a-d-1972.md index 1dc78d1..4270452 100644 --- a/src/movies/2024-10-31-dracula-a-d-1972.md +++ b/src/movies/2024-10-31-dracula-a-d-1972.md @@ -1,11 +1,12 @@ --- title: "Dracula A.D. 1972" year: 1972 -watched: 2023-10-31 +watchHistory: + - 2023-10-31 image: https://cdn.wonderfulfrog.com/images/movies/dracula-a-d-1972-poster.jpg letterboxd: https://letterboxd.com/wonderfulfrog/film/dracula-ad-1972/ director: Alan Gibson runtime: 96 -genres: +tags: - horror --- diff --git a/src/movies/2024-10-31-dracula.md b/src/movies/2024-10-31-dracula.md index f1eb83a..3271522 100644 --- a/src/movies/2024-10-31-dracula.md +++ b/src/movies/2024-10-31-dracula.md @@ -1,11 +1,12 @@ --- title: "Dracula" year: 1931 -watched: 2023-10-31 +watchHistory: + - 2023-10-31 image: https://cdn.wonderfulfrog.com/images/movies/dracula-poster.jpg letterboxd: https://letterboxd.com/wonderfulfrog/film/dracula/ director: Tod Browning runtime: 74 -genres: +tags: - horror --- diff --git a/src/movies/2024-11-08-woman-of-the-hour.md b/src/movies/2024-11-08-woman-of-the-hour.md index 458ed2d..edb9ed7 100644 --- a/src/movies/2024-11-08-woman-of-the-hour.md +++ b/src/movies/2024-11-08-woman-of-the-hour.md @@ -1,12 +1,13 @@ --- title: "Woman of the Hour" year: 2023 -watched: 2024-11-09 +watchHistory: + - 2024-11-09 image: https://cdn.wonderfulfrog.com/images/movies/woman-of-the-hour-poster.jpg letterboxd: https://letterboxd.com/wonderfulfrog/film/woman-of-the-hour/ director: Anna Kendrick runtime: 94 -genres: +tags: - drama - thriller - crime diff --git a/src/movies/2024-11-09-tetris.md b/src/movies/2024-11-09-tetris.md index c64a3b9..480de7f 100644 --- a/src/movies/2024-11-09-tetris.md +++ b/src/movies/2024-11-09-tetris.md @@ -1,12 +1,13 @@ --- title: "Tetris" year: 2023 -watched: 2024-11-09 +watchHistory: + - 2024-11-09 image: https://cdn.wonderfulfrog.com/images/movies/tetris-poster.jpg letterboxd: https://letterboxd.com/wonderfulfrog/film/tetris/ director: Jon S. Baird runtime: 118 -genres: +tags: - thriller - history - drama diff --git a/src/movies/2024-11-20-flow.md b/src/movies/2024-11-20-flow.md index 8f6b57a..916c4cb 100644 --- a/src/movies/2024-11-20-flow.md +++ b/src/movies/2024-11-20-flow.md @@ -1,14 +1,15 @@ --- title: "Flow" year: 2024 -watched: 2024-11-20 +watchHistory: + - 2024-11-20 image: https://cdn.wonderfulfrog.com/images/movies/flow-poster.jpg letterboxd: https://letterboxd.com/wonderfulfrog/film/flow-2024/ director: Gints Zilbalodis runtime: 85 favourite: true rating: 4 -genres: +tags: - adventure - fantasy - animation diff --git a/src/movies/2025-01-06-conclave.md b/src/movies/2025-01-06-conclave.md new file mode 100644 index 0000000..d50d190 --- /dev/null +++ b/src/movies/2025-01-06-conclave.md @@ -0,0 +1,23 @@ +--- +date: 2025-01-06 +title: Conclave +director: Edward Berger +releaseYear: 2024 +runtime: 120 +tags: + - drama +image: https://cdn.wonderfulfrog.com/images/movies/conclave-poster.jpg +letterboxd: https://letterboxd.com/wonderfulfrog/film/conclave/ +pullquote: Voting turned into a gripping drama +watchHistory: + - 2025-01-06 +rating: 5 +isFavourite: false +hasSpoilers: false +--- + +Stunning cinematography. There were many scenes with an emphasis on white and neutral colour schemes, which caused the cardinal robes to really stand out with their bright red colour. + +The scoring was sublime, perfectly timed to each moment without wasting a second. I particularly enjoyed the reliance on string instruments, which provided a powerful element of tension in key moments. + +There was an emphasis on hearing the actors breathing - it was an audible window into how someone was feeling without needing to see any facial expressions. There were pivotal scenes where the only thing we can hear is breathing.