🎬 Add watchlist
Some checks failed
Deploy website / build-and-deploy (push) Has been cancelled

Signed-off-by: SindreKjelsrud <sindre@kjelsrud.dev>
This commit is contained in:
Sid 2025-03-15 23:23:41 +01:00
parent 9bd53aac28
commit a962329dcf
Signed by: sidski
GPG key ID: D2BBDF3EDE6BA9A6
2 changed files with 244 additions and 0 deletions

View file

@ -4,6 +4,7 @@ import tv from '../../data/watchlist.json'
let watched = [];
let currently = [];
let to_watch = [];
tv.lists.forEach(list => {
switch (list.name) {
@ -13,6 +14,9 @@ tv.lists.forEach(list => {
case "Currently watching":
currently = list.tv;
break;
case "Watchlist":
to_watch = list.tv;
break;
}
});
@ -54,5 +58,14 @@ const sortedYears = Object.keys(tvByYear).sort((a: any, b: any) => b - a);
</ul>
</details>
))}
<details>
<summary class="text-xl font-semibold cursor-pointer">watchlist</summary>
<ul>
{to_watch.map((tv) => (
<li class="borderbottom">{tv.title}</li>
))}
</ul>
</details>
</main>
</SectionContainer>