Added 69 day

only in en ._.
This commit is contained in:
Ivan Evans 2024-06-09 18:33:41 -06:00
parent 81d37e8b71
commit d56abd2f5e
4 changed files with 24 additions and 1 deletions

View File

@ -0,0 +1,4 @@
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M2 9.1371C2 14 6.01943 16.5914 8.96173 18.9109C10 19.7294 11 20.5 12 20.5C13 20.5 14 19.7294 15.0383 18.9109C17.9806 16.5914 22 14 22 9.1371C22 4.27416 16.4998 0.825464 12 5.50063C7.50016 0.825464 2 4.27416 2 9.1371Z" fill="#FFFFFF"/>
</svg>

After

Width:  |  Height:  |  Size: 472 B

View File

@ -181,6 +181,10 @@
"420": { "420": {
"default": "What would you like to watch this 4/20?", "default": "What would you like to watch this 4/20?",
"extra": ["Happy 4/20 🥳!"] "extra": ["Happy 4/20 🥳!"]
},
"69": {
"default": "Up for something spicy?",
"extra": ["Happy 69 day 😘!"]
} }
} }
}, },

View File

@ -205,6 +205,20 @@ function ParticlesCanvas() {
imageParticleCount = particleCount / 6.25; imageParticleCount = particleCount / 6.25;
break; 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: case Math.random() < 0.2:
imageOverride = [ imageOverride = [
{ {

View File

@ -15,10 +15,11 @@ export interface HeroPartProps {
searchParams: ReturnType<typeof useSearchQuery>; 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 month = date.getMonth() + 1;
const day = date.getDate(); const day = date.getDate();
if (month === 4 && day === 20) return "420"; if (month === 4 && day === 20) return "420";
if (month === 6 && day === 9) return "69";
const hour = date.getHours(); const hour = date.getHours();
if (hour < 5) return "night"; if (hour < 5) return "night";
if (hour < 12) return "morning"; if (hour < 12) return "morning";