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

4
package-lock.json generated
View file

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

View file

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

View file

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

View file

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

View file

@ -45,6 +45,9 @@ schema: movie
{%- if movie.tattoo -%} {%- if movie.tattoo -%}
<p class="sub-meta tattoo">{% tablericon "needle" "Tattoo" %} I have a tattoo inspired by this movie!</p> <p class="sub-meta tattoo">{% tablericon "needle" "Tattoo" %} I have a tattoo inspired by this movie!</p>
{%- endif -%} {%- 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 -%} {%- if movie.lastWatched -%}<p class="sub-meta">Last watched on {{ movie.lastWatched | date: "%B %e, %Y" }}.</p>{%- endif -%}
</div> </div>
{% if movie.review %} {% if movie.review %}

View file

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