Skip to content

Commit

Permalink
Add halloween easter egg and fix manifest
Browse files Browse the repository at this point in the history
  • Loading branch information
itzCozi committed Feb 29, 2024
1 parent ffb6aa2 commit 3aea58a
Show file tree
Hide file tree
Showing 6 changed files with 101 additions and 43 deletions.
107 changes: 71 additions & 36 deletions manifest.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,32 +16,38 @@
{
"src": "public/android-chrome-512x512.png",
"sizes": "512x512",
"type": "image/png"
"type": "image/png",
"purpose": "maskable"
},
{
"src": "public/apple-touch-icon.png",
"sizes": "180x180",
"type": "image/png"
"type": "image/png",
"purpose": "maskable"
},
{
"src": "public/favicon-16x16.png",
"sizes": "16x16",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/favicon-32x32.png",
"sizes": "32x32",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/favicon.ico",
"sizes": "32x32",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/mstile-150x150.png",
"sizes": "150x150",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/icon.png",
Expand All @@ -53,77 +59,91 @@
"src": "public/splash_screens/icon144x144.png",
"sizes": "144x144",
"type": "image/png",
"purpose": "unset"
"purpose": "any"
},
{
"src": "public/splash_screens/4__iPhone_SE__iPod_touch_5th_generation_and_later_landscape.png",
"sizes": "1136x640",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/4__iPhone_SE__iPod_touch_5th_generation_and_later_portrait.png",
"sizes": "640x1136",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/8.3__iPad_Mini_landscape.png",
"sizes": "2266x1488",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/9.7__iPad_Pro__7.9__iPad_mini__9.7__iPad_Air__9.7__iPad_landscape.png",
"sizes": "1536x2048",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/9.7__iPad_Pro__7.9__iPad_mini__9.7__iPad_Air__9.7__iPad_portrait.png",
"sizes": "2048x1536",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens8/10.2__iPad_landscape.png",
"sizes": "2160x1620",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens8/10.5__iPad_Air_landscape.png",
"sizes": "2224x1668",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens8/10.5__iPad_Air_portrait.png",
"sizes": "1668x2224",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens8/10.9__iPad_Air_landscape.png",
"sizes": "2360x1640",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens8/11__iPad_Pro__10.5__iPad_Pro_landscape.png",
"sizes": "2388x1668",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens8/12.9__iPad_Pro_landscape.png",
"sizes": "2732x2048",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens8/12.9__iPad_Pro_portrait.png",
"sizes": "2048x2732",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens8/12.iPhone_8__iPhone_7__iPhone_6s__iPhone_6__4.7__iPhone_SE_landscape.png",
"sizes": "1334x750",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/8iPhone_8__iPhone_7__iPhone_6s__iPhone_6__4.7__iPhone_SE_portrait.png",
"sizes": "750x1334",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/8iPhone_8_Plus__iPhone_7_Plus__iPhone_6s_Plus__iPhone_6_Plus_landscape.png",
Expand All @@ -133,77 +153,92 @@
{
"src": "public/splash_screens/8iPhone_8_Plus__iPhone_7_Plus__iPhone_6s_Plus__iPhone_6_Plus_portrait.png",
"sizes": "1242x2208",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_11__iPhone_XR_landscape.png",
"sizes": "1792x828",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_11__iPhone_XR_portrait.png",
"sizes": "828x1792",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_11_Pro_Max__iPhone_XS_Max_landscape.png",
"sizes": "2688x1242",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_11_Pro_Max__iPhone_XS_Max_portrait.png",
"sizes": "1242x2688",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_13_mini__iPhone_12_mini__iPhone_11_Pro__iPhone_XS__iPhone_X_landscape.png",
"sizes": "2436x1125",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_13_mini__iPhone_12_mini__iPhone_11_Pro__iPhone_XS__iPhone_X_portrait.png",
"sizes": "1125x2436",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_14__iPhone_13_Pro__iPhone_13__iPhone_12_Pro__iPhone_12_landscape.png",
"sizes": "2532x1170",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_14__iPhone_13_Pro__iPhone_13__iPhone_12_Pro__iPhone_12_portrait.png",
"sizes": "1170x2532",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_14_Plus__iPhone_13_Pro_Max__iPhone_12_Pro_Max_landscape.png",
"sizes": "2778x1284",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_14_Plus__iPhone_13_Pro_Max__iPhone_12_Pro_Max_portrait.png",
"sizes": "1284x2778",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_15_Pro__iPhone_15__iPhone_14_Pro_landscape.png",
"sizes": "2556x1179",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_15_Pro__iPhone_15__iPhone_14_Pro_portrait.png",
"sizes": "1179x2556",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_15_Pro_Max__iPhone_15_Plus__iPhone_14_Pro_Max_landscape.png",
"sizes": "2796x1290",
"type": "image/png"
"type": "image/png",
"purpose": "any"
},
{
"src": "public/splash_screens/iPhone_15_Pro_Max__iPhone_15_Plus__iPhone_14_Pro_Max_portrait.png",
"sizes": "1290x2796",
"type": "image/png"
"type": "image/png",
"purpose": "any"
}
]
}
Expand Down
2 changes: 1 addition & 1 deletion public/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ window.__CONFIG__ = {
VITE_NORMAL_ROUTER: false,

// The backend URL to communicate with, defaults to the movie-web hosted one at backend.movie-web.app
VITE_BACKEND_URL: "https://sudo-flix-backend.lol",
VITE_BACKEND_URL: "https://sudo-flix-backend.lol", // "https://mw-backend.lonelil.com",

// A comma separated list of disallowed IDs in the case of a DMCA claim - in the format "series-<id>" and "movie-<id>"
VITE_DISALLOWED_IDS: ""
Expand Down
Binary file added public/lightbar-images/ghost.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/lightbar-images/pumpkin.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified public/lightbar-images/santa.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
35 changes: 29 additions & 6 deletions src/components/utils/Lightbar.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -152,20 +152,43 @@ function ParticlesCanvas() {
const date = new Date();
const month = date.getMonth();
const day = date.getDate();
if (month === 11 && day >= 24 && day <= 26) {
if (
(month === 11 && day >= 24 && day <= 26) ||
Math.floor(Math.random() * 380) > 40
) {
imageOverride = [
{
image: "/lightbar-images/snowflake.svg",
sizeRange: [4, 15] as [number, number],
sizeRange: [12, 20] as [number, number],
},
{
image: "/lightbar-images/santa.png",
sizeRange: [15, 30] as [number, number],
sizeRange: [25, 35] as [number, number],
},
];
imageParticleCount = particleCount * 0.1;
}

// Halloween overrides
const month2 = date.getMonth();
const day2 = date.getDate();
if (
(month2 === 9 && day2 >= 29 && day2 <= 31) ||
Math.floor(Math.random() * 50) > 48
) {
imageOverride = [
{
image: "/lightbar-images/ghost.png",
sizeRange: [28, 31] as [number, number],
},
{
image: "/lightbar-images/pumpkin.png",
sizeRange: [28, 31] as [number, number],
},
];
imageParticleCount = particleCount * 0.09;
}

// Fish easter egg
const shouldShowFishie = Math.floor(Math.random() * 73) > 69;
if (shouldShowFishie) {
Expand All @@ -183,10 +206,10 @@ function ParticlesCanvas() {
}

// Weed easter egg
const month2 = date.getMonth() + 1;
const day2 = date.getDate();
const month3 = date.getMonth() + 1;
const day3 = date.getDate();
const shouldShowZa =
(month2 === 4 && day2 === 20) || Math.floor(Math.random() * 435) > 420;
(month3 === 4 && day3 === 20) || Math.floor(Math.random() * 435) > 420;
if (shouldShowZa) {
imageOverride = [
{
Expand Down

0 comments on commit 3aea58a

Please sign in to comment.