From d56abd2f5e53d78dd72c0b70d12cf00570b25c46 Mon Sep 17 00:00:00 2001
From: Ivan Evans <74743263+Pasithea0@users.noreply.github.com>
Date: Sun, 9 Jun 2024 18:33:41 -0600
Subject: [PATCH] Added 69 day
only in en ._.
---
public/lightbar-images/heart.svg | 4 ++++
src/assets/locales/en.json | 4 ++++
src/components/utils/Lightbar.tsx | 14 ++++++++++++++
src/pages/parts/home/HeroPart.tsx | 3 ++-
4 files changed, 24 insertions(+), 1 deletion(-)
create mode 100644 public/lightbar-images/heart.svg
diff --git a/public/lightbar-images/heart.svg b/public/lightbar-images/heart.svg
new file mode 100644
index 00000000..92e55b49
--- /dev/null
+++ b/public/lightbar-images/heart.svg
@@ -0,0 +1,4 @@
+
+
diff --git a/src/assets/locales/en.json b/src/assets/locales/en.json
index 0b3fe254..9d23168e 100644
--- a/src/assets/locales/en.json
+++ b/src/assets/locales/en.json
@@ -181,6 +181,10 @@
"420": {
"default": "What would you like to watch this 4/20?",
"extra": ["Happy 4/20 🥳!"]
+ },
+ "69": {
+ "default": "Up for something spicy?",
+ "extra": ["Happy 69 day 😘!"]
}
}
},
diff --git a/src/components/utils/Lightbar.tsx b/src/components/utils/Lightbar.tsx
index 5ff0eb6e..92fc9ed9 100644
--- a/src/components/utils/Lightbar.tsx
+++ b/src/components/utils/Lightbar.tsx
@@ -205,6 +205,20 @@ function ParticlesCanvas() {
imageParticleCount = particleCount / 6.25;
break;
+ case month + 1 === 6 && day === 9:
+ imageOverride = [
+ {
+ image: "/lightbar-images/heart.svg",
+ sizeRange: [32, 14] as [number, number],
+ },
+ {
+ image: "/lightbar-images/wine.png",
+ sizeRange: [15, 35] as [number, number],
+ },
+ ];
+ imageParticleCount = particleCount / 6.25;
+ break;
+
case Math.random() < 0.2:
imageOverride = [
{
diff --git a/src/pages/parts/home/HeroPart.tsx b/src/pages/parts/home/HeroPart.tsx
index ef885338..5c2a0c12 100644
--- a/src/pages/parts/home/HeroPart.tsx
+++ b/src/pages/parts/home/HeroPart.tsx
@@ -15,10 +15,11 @@ export interface HeroPartProps {
searchParams: ReturnType;
}
-function getTimeOfDay(date: Date): "night" | "morning" | "day" | "420" {
+function getTimeOfDay(date: Date): "night" | "morning" | "day" | "420" | "69" {
const month = date.getMonth() + 1;
const day = date.getDate();
if (month === 4 && day === 20) return "420";
+ if (month === 6 && day === 9) return "69";
const hour = date.getHours();
if (hour < 5) return "night";
if (hour < 12) return "morning";