Skip to content

Commit

Permalink
Added 69 day
Browse files Browse the repository at this point in the history
only in en ._.
  • Loading branch information
Pasithea0 committed Jun 10, 2024
1 parent 81d37e8 commit d56abd2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 1 deletion.
4 changes: 4 additions & 0 deletions public/lightbar-images/heart.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
4 changes: 4 additions & 0 deletions src/assets/locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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 😘!"]
}
}
},
Expand Down
14 changes: 14 additions & 0 deletions src/components/utils/Lightbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 = [
{
Expand Down
3 changes: 2 additions & 1 deletion src/pages/parts/home/HeroPart.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,11 @@ export interface HeroPartProps {
searchParams: ReturnType<typeof useSearchQuery>;
}

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";
Expand Down

0 comments on commit d56abd2

Please sign in to comment.