feat: show + movie collected status

This commit is contained in:
Cory Dransfeldt 2024-09-15 14:24:18 -07:00
parent c5edb32972
commit 4770654b4e
No known key found for this signature in database
6 changed files with 12 additions and 3 deletions
package-lock.jsonpackage.json
src
assets/styles
base
defaults
pages/dynamic/watching

4
package-lock.json generated
View file

@ -1,12 +1,12 @@
{
"name": "coryd.dev",
"version": "24.9.1",
"version": "24.10.0",
"lockfileVersion": 3,
"requires": true,
"packages": {
"": {
"name": "coryd.dev",
"version": "24.9.1",
"version": "24.10.0",
"license": "MIT",
"dependencies": {
"@cdransf/api-text": "^1.5.0",

View file

@ -1,6 +1,6 @@
{
"name": "coryd.dev",
"version": "24.9.1",
"version": "24.10.0",
"description": "The source for my personal site. Built using 11ty (and other tools).",
"type": "module",
"scripts": {

View file

@ -52,6 +52,7 @@ p {
margin: var(--margin-vertical-base-horizontal-zero);
&.books,
&.collected,
&.concerts,
&.country,
&.favorite,
@ -61,6 +62,7 @@ p {
&.posts,
&.tattoo {
&.books { --section-color: var(--books); }
&.collected { --section-color: var(--collected); }
&.concerts { --section-color: var(--concerts); }
&.country { --section-color: var(--country); }
&.favorite { --section-color: var(--favorite); }

View file

@ -54,6 +54,7 @@
--about: #ff6347;
--books: #32cd32;
--collected: #b5651d;
--concerts: #e75480;
--country: #20b2aa;
--error: #d92525;

View file

@ -45,6 +45,9 @@ schema: movie
{%- if movie.tattoo -%}
<p class="sub-meta tattoo">{% tablericon "needle" "Tattoo" %} I have a tattoo inspired by this movie!</p>
{%- endif -%}
{%- if movie.collected -%}
<p class="sub-meta collected">{% tablericon "circle-check" "Collection" %} This movie is in my collection!</p>
{%- endif -%}
{%- if movie.lastWatched -%}<p class="sub-meta">Last watched on {{ movie.lastWatched | date: "%B %e, %Y" }}.</p>{%- endif -%}
</div>
{% if movie.review %}

View file

@ -38,6 +38,9 @@ schema: show
{%- if show.tattoo -%}
<p class="sub-meta tattoo">{% tablericon "needle" "Tattoo" %} I have a tattoo inspired by this show!</p>
{%- endif -%}
{%- if show.collected -%}
<p class="sub-meta collected">{% tablericon "circle-check" "Collection" %} This show is in my collection!</p>
{%- endif -%}
{%- if lastWatched -%}
{%- capture lastWatchedText -%}
{%- if show.episodes -%}