From 8c26c844e199557137d647d820699686242bf214 Mon Sep 17 00:00:00 2001
From: Helen Chong <119173961+helenclx@users.noreply.github.com>
Date: Tue, 23 Apr 2024 16:13:01 +0800
Subject: [PATCH] Display anniversary year count of Cassette Beasts releases on
tht hero top bar
---
_site/assets/css/cassettebeasts.css | 4 ++++
_site/feed.xml | 2 +-
.../index.html | 12 +++++++++---
_site/shrines/cassettebeasts/articles/index.html | 12 +++++++++---
_site/shrines/cassettebeasts/featured/index.html | 12 +++++++++---
_site/shrines/cassettebeasts/gamelog/index.html | 12 +++++++++---
_site/shrines/cassettebeasts/index.html | 12 +++++++++---
_site/shrines/cassettebeasts/resources/index.html | 12 +++++++++---
_site/shrines/cassettebeasts/trivia/index.html | 12 +++++++++---
src/_includes/cassettebeasts/hero.njk | 12 +++++++++---
src/assets/css/cassettebeasts.css | 4 ++++
11 files changed, 81 insertions(+), 25 deletions(-)
diff --git a/_site/assets/css/cassettebeasts.css b/_site/assets/css/cassettebeasts.css
index dc27851e..bce1064b 100644
--- a/_site/assets/css/cassettebeasts.css
+++ b/_site/assets/css/cassettebeasts.css
@@ -30,6 +30,10 @@
--clr-main-footer-bg: #9b59b6;
}
+.hero__top-bar {
+ color: var(--clr-navbar-link);
+}
+
.footer {
color: var(--clr-navbar-link);
}
diff --git a/_site/feed.xml b/_site/feed.xml
index 209da7f3..18386d7b 100644
--- a/_site/feed.xml
+++ b/_site/feed.xml
@@ -4,7 +4,7 @@
Leilukin's personal website.
- 2024-04-23T07:56:04Z
+ 2024-04-23T08:12:34Zhttps://leilukin.neocities.orgLeilukin
diff --git a/_site/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone/index.html b/_site/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone/index.html
index 60331bc1..6f99b7ab 100644
--- a/_site/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone/index.html
+++ b/_site/shrines/cassettebeasts/articles/cassette-beasts-more-than-a-pokemon-clone/index.html
@@ -114,22 +114,28 @@
if (month == 4 && day == 26)
return "CB Anniversary";
- else if (month == 9 && day == 12)
+ else if (month == 10 && day == 4)
return "Pier Anniversary";
else
return "No event";
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const cbReleaseDate = new Date("2023-04-26").getFullYear();
+ const pierReleaseDate = new Date("2023-10-04").getFullYear();
+ const cbAnniversary = currentYear - cbReleaseDate;
+ const pierAnniversary = currentYear - pierReleaseDate;
+
switch (day) {
case "CB Anniversary":
return `
- Today is the anniversary of the release of Cassette Beasts!
+ Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts!
`;
break;
case "Pier Anniversary":
return `
- Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
+ Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
`;
break;
default:
diff --git a/_site/shrines/cassettebeasts/articles/index.html b/_site/shrines/cassettebeasts/articles/index.html
index ec5c1682..9a241482 100644
--- a/_site/shrines/cassettebeasts/articles/index.html
+++ b/_site/shrines/cassettebeasts/articles/index.html
@@ -114,22 +114,28 @@
if (month == 4 && day == 26)
return "CB Anniversary";
- else if (month == 9 && day == 12)
+ else if (month == 10 && day == 4)
return "Pier Anniversary";
else
return "No event";
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const cbReleaseDate = new Date("2023-04-26").getFullYear();
+ const pierReleaseDate = new Date("2023-10-04").getFullYear();
+ const cbAnniversary = currentYear - cbReleaseDate;
+ const pierAnniversary = currentYear - pierReleaseDate;
+
switch (day) {
case "CB Anniversary":
return `
- Today is the anniversary of the release of Cassette Beasts!
+ Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts!
`;
break;
case "Pier Anniversary":
return `
- Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
+ Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
`;
break;
default:
diff --git a/_site/shrines/cassettebeasts/featured/index.html b/_site/shrines/cassettebeasts/featured/index.html
index 32821b1d..f966406a 100644
--- a/_site/shrines/cassettebeasts/featured/index.html
+++ b/_site/shrines/cassettebeasts/featured/index.html
@@ -114,22 +114,28 @@
if (month == 4 && day == 26)
return "CB Anniversary";
- else if (month == 9 && day == 12)
+ else if (month == 10 && day == 4)
return "Pier Anniversary";
else
return "No event";
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const cbReleaseDate = new Date("2023-04-26").getFullYear();
+ const pierReleaseDate = new Date("2023-10-04").getFullYear();
+ const cbAnniversary = currentYear - cbReleaseDate;
+ const pierAnniversary = currentYear - pierReleaseDate;
+
switch (day) {
case "CB Anniversary":
return `
- Today is the anniversary of the release of Cassette Beasts!
+ Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts!
`;
break;
case "Pier Anniversary":
return `
- Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
+ Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
`;
break;
default:
diff --git a/_site/shrines/cassettebeasts/gamelog/index.html b/_site/shrines/cassettebeasts/gamelog/index.html
index 536c51f9..9e41d900 100644
--- a/_site/shrines/cassettebeasts/gamelog/index.html
+++ b/_site/shrines/cassettebeasts/gamelog/index.html
@@ -114,22 +114,28 @@
if (month == 4 && day == 26)
return "CB Anniversary";
- else if (month == 9 && day == 12)
+ else if (month == 10 && day == 4)
return "Pier Anniversary";
else
return "No event";
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const cbReleaseDate = new Date("2023-04-26").getFullYear();
+ const pierReleaseDate = new Date("2023-10-04").getFullYear();
+ const cbAnniversary = currentYear - cbReleaseDate;
+ const pierAnniversary = currentYear - pierReleaseDate;
+
switch (day) {
case "CB Anniversary":
return `
- Today is the anniversary of the release of Cassette Beasts!
+ Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts!
`;
break;
case "Pier Anniversary":
return `
- Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
+ Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
`;
break;
default:
diff --git a/_site/shrines/cassettebeasts/index.html b/_site/shrines/cassettebeasts/index.html
index f5c49f7d..8c8b3940 100644
--- a/_site/shrines/cassettebeasts/index.html
+++ b/_site/shrines/cassettebeasts/index.html
@@ -114,22 +114,28 @@
if (month == 4 && day == 26)
return "CB Anniversary";
- else if (month == 9 && day == 12)
+ else if (month == 10 && day == 4)
return "Pier Anniversary";
else
return "No event";
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const cbReleaseDate = new Date("2023-04-26").getFullYear();
+ const pierReleaseDate = new Date("2023-10-04").getFullYear();
+ const cbAnniversary = currentYear - cbReleaseDate;
+ const pierAnniversary = currentYear - pierReleaseDate;
+
switch (day) {
case "CB Anniversary":
return `
- Today is the anniversary of the release of Cassette Beasts!
+ Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts!
`;
break;
case "Pier Anniversary":
return `
- Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
+ Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
`;
break;
default:
diff --git a/_site/shrines/cassettebeasts/resources/index.html b/_site/shrines/cassettebeasts/resources/index.html
index add6837f..c7606292 100644
--- a/_site/shrines/cassettebeasts/resources/index.html
+++ b/_site/shrines/cassettebeasts/resources/index.html
@@ -114,22 +114,28 @@
if (month == 4 && day == 26)
return "CB Anniversary";
- else if (month == 9 && day == 12)
+ else if (month == 10 && day == 4)
return "Pier Anniversary";
else
return "No event";
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const cbReleaseDate = new Date("2023-04-26").getFullYear();
+ const pierReleaseDate = new Date("2023-10-04").getFullYear();
+ const cbAnniversary = currentYear - cbReleaseDate;
+ const pierAnniversary = currentYear - pierReleaseDate;
+
switch (day) {
case "CB Anniversary":
return `
- Today is the anniversary of the release of Cassette Beasts!
+ Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts!
`;
break;
case "Pier Anniversary":
return `
- Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
+ Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
`;
break;
default:
diff --git a/_site/shrines/cassettebeasts/trivia/index.html b/_site/shrines/cassettebeasts/trivia/index.html
index ebf29abd..9ecc350f 100644
--- a/_site/shrines/cassettebeasts/trivia/index.html
+++ b/_site/shrines/cassettebeasts/trivia/index.html
@@ -114,22 +114,28 @@
if (month == 4 && day == 26)
return "CB Anniversary";
- else if (month == 9 && day == 12)
+ else if (month == 10 && day == 4)
return "Pier Anniversary";
else
return "No event";
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const cbReleaseDate = new Date("2023-04-26").getFullYear();
+ const pierReleaseDate = new Date("2023-10-04").getFullYear();
+ const cbAnniversary = currentYear - cbReleaseDate;
+ const pierAnniversary = currentYear - pierReleaseDate;
+
switch (day) {
case "CB Anniversary":
return `
- Today is the anniversary of the release of Cassette Beasts!
+ Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts!
`;
break;
case "Pier Anniversary":
return `
- Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
+ Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
`;
break;
default:
diff --git a/src/_includes/cassettebeasts/hero.njk b/src/_includes/cassettebeasts/hero.njk
index 103c6a94..b739de59 100644
--- a/src/_includes/cassettebeasts/hero.njk
+++ b/src/_includes/cassettebeasts/hero.njk
@@ -20,22 +20,28 @@
if (month == 4 && day == 26)
return "CB Anniversary";
- else if (month == 9 && day == 12)
+ else if (month == 10 && day == 4)
return "Pier Anniversary";
else
return "No event";
}
function getBlurbHtml(day) {
+ const currentYear = new Date().getFullYear();
+ const cbReleaseDate = new Date("2023-04-26").getFullYear();
+ const pierReleaseDate = new Date("2023-10-04").getFullYear();
+ const cbAnniversary = currentYear - cbReleaseDate;
+ const pierAnniversary = currentYear - pierReleaseDate;
+
switch (day) {
case "CB Anniversary":
return `
- Today is the anniversary of the release of Cassette Beasts!
+ Today is the ${cbAnniversary}-year anniversary of the release of Cassette Beasts!
`;
break;
case "Pier Anniversary":
return `
- Today is the anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
+ Today is the ${pierAnniversary}-year anniversary of the release of Pier of the Unknown, the first DLC expansion of Cassette Beasts!
`;
break;
default:
diff --git a/src/assets/css/cassettebeasts.css b/src/assets/css/cassettebeasts.css
index dc27851e..bce1064b 100644
--- a/src/assets/css/cassettebeasts.css
+++ b/src/assets/css/cassettebeasts.css
@@ -30,6 +30,10 @@
--clr-main-footer-bg: #9b59b6;
}
+.hero__top-bar {
+ color: var(--clr-navbar-link);
+}
+
.footer {
color: var(--clr-navbar-link);
}