mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
commit
c9d81c25be
4 changed files with 24 additions and 1 deletions
4
public/lightbar-images/heart.svg
Normal file
4
public/lightbar-images/heart.svg
Normal 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 |
|
@ -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 😘!"]
|
||||
}
|
||||
}
|
||||
},
|
||||
|
|
|
@ -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 = [
|
||||
{
|
||||
|
|
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue