tangled
alpha
login
or
join now
dunkirk.sh
/
pstream-ng
1
fork
atom
pstream is dead; long live pstream
taciturnaxolotl.github.io/pstream-ng/
1
fork
atom
overview
issues
pulls
pipelines
Added 69 day
only in en ._.
Ivan Evans
2 years ago
d56abd2f
81d37e8b
+24
-1
4 changed files
expand all
collapse all
unified
split
public
lightbar-images
heart.svg
src
assets
locales
en.json
components
utils
Lightbar.tsx
pages
parts
home
HeroPart.tsx
+4
public/lightbar-images/heart.svg
···
1
1
+
<?xml version="1.0" encoding="utf-8"?><!-- Uploaded to: SVG Repo, www.svgrepo.com, Generator: SVG Repo Mixer Tools -->
2
2
+
<svg width="800px" height="800px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
3
3
+
<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"/>
4
4
+
</svg>
+4
src/assets/locales/en.json
···
181
181
"420": {
182
182
"default": "What would you like to watch this 4/20?",
183
183
"extra": ["Happy 4/20 🥳!"]
184
184
+
},
185
185
+
"69": {
186
186
+
"default": "Up for something spicy?",
187
187
+
"extra": ["Happy 69 day 😘!"]
184
188
}
185
189
}
186
190
},
+14
src/components/utils/Lightbar.tsx
···
205
205
imageParticleCount = particleCount / 6.25;
206
206
break;
207
207
208
208
+
case month + 1 === 6 && day === 9:
209
209
+
imageOverride = [
210
210
+
{
211
211
+
image: "/lightbar-images/heart.svg",
212
212
+
sizeRange: [32, 14] as [number, number],
213
213
+
},
214
214
+
{
215
215
+
image: "/lightbar-images/wine.png",
216
216
+
sizeRange: [15, 35] as [number, number],
217
217
+
},
218
218
+
];
219
219
+
imageParticleCount = particleCount / 6.25;
220
220
+
break;
221
221
+
208
222
case Math.random() < 0.2:
209
223
imageOverride = [
210
224
{
+2
-1
src/pages/parts/home/HeroPart.tsx
···
15
15
searchParams: ReturnType<typeof useSearchQuery>;
16
16
}
17
17
18
18
-
function getTimeOfDay(date: Date): "night" | "morning" | "day" | "420" {
18
18
+
function getTimeOfDay(date: Date): "night" | "morning" | "day" | "420" | "69" {
19
19
const month = date.getMonth() + 1;
20
20
const day = date.getDate();
21
21
if (month === 4 && day === 20) return "420";
22
22
+
if (month === 6 && day === 9) return "69";
22
23
const hour = date.getHours();
23
24
if (hour < 5) return "night";
24
25
if (hour < 12) return "morning";