From 4770654b4e15a960d5622c959137f46f3f550588 Mon Sep 17 00:00:00 2001 From: Cory Dransfeldt Date: Sun, 15 Sep 2024 14:24:18 -0700 Subject: [PATCH] feat: show + movie collected status --- package-lock.json | 4 ++-- package.json | 2 +- src/assets/styles/base/index.css | 2 ++ src/assets/styles/defaults/vars.css | 1 + src/pages/dynamic/watching/movie.html | 3 +++ src/pages/dynamic/watching/show.html | 3 +++ 6 files changed, 12 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 091b0c14..4ebec743 100644 --- a/package-lock.json +++ b/package-lock.json @@ -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", diff --git a/package.json b/package.json index 4e35ef9a..aa9d234f 100644 --- a/package.json +++ b/package.json @@ -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": { diff --git a/src/assets/styles/base/index.css b/src/assets/styles/base/index.css index 150e8df2..4b4e26aa 100644 --- a/src/assets/styles/base/index.css +++ b/src/assets/styles/base/index.css @@ -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); } diff --git a/src/assets/styles/defaults/vars.css b/src/assets/styles/defaults/vars.css index 742989a6..a69bfe90 100644 --- a/src/assets/styles/defaults/vars.css +++ b/src/assets/styles/defaults/vars.css @@ -54,6 +54,7 @@ --about: #ff6347; --books: #32cd32; + --collected: #b5651d; --concerts: #e75480; --country: #20b2aa; --error: #d92525; diff --git a/src/pages/dynamic/watching/movie.html b/src/pages/dynamic/watching/movie.html index 963d3835..fdcd43e6 100644 --- a/src/pages/dynamic/watching/movie.html +++ b/src/pages/dynamic/watching/movie.html @@ -45,6 +45,9 @@ schema: movie {%- if movie.tattoo -%}

{% tablericon "needle" "Tattoo" %} I have a tattoo inspired by this movie!

{%- endif -%} + {%- if movie.collected -%} +

{% tablericon "circle-check" "Collection" %} This movie is in my collection!

+ {%- endif -%} {%- if movie.lastWatched -%}

Last watched on {{ movie.lastWatched | date: "%B %e, %Y" }}.

{%- endif -%} {% if movie.review %} diff --git a/src/pages/dynamic/watching/show.html b/src/pages/dynamic/watching/show.html index 453fd005..5798cb02 100644 --- a/src/pages/dynamic/watching/show.html +++ b/src/pages/dynamic/watching/show.html @@ -38,6 +38,9 @@ schema: show {%- if show.tattoo -%}

{% tablericon "needle" "Tattoo" %} I have a tattoo inspired by this show!

{%- endif -%} + {%- if show.collected -%} +

{% tablericon "circle-check" "Collection" %} This show is in my collection!

+ {%- endif -%} {%- if lastWatched -%} {%- capture lastWatchedText -%} {%- if show.episodes -%}