1
0
Fork 0
mirror of https://github.com/sussy-code/smov.git synced 2024-12-29 16:07:40 +01:00

Add start lightbar easter egg

This commit is contained in:
Cooper Ransom 2024-03-15 00:12:16 -04:00
parent 7f2b343216
commit c8c932ccce
3 changed files with 12 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

View file

@ -363,6 +363,18 @@ function ParticlesCanvas() {
imageParticleCount = particleCount / 11.6;
}
// Star easter egg
const shouldShowStars = Math.random() < 0.9; // 20%
if (shouldShowStars) {
imageOverride = [
{
image: "/lightbar-images/star.png",
sizeRange: [18, 28] as [number, number],
},
];
imageParticleCount = particleCount / 6.6;
}
// HOIST THE SAIL (of particles)!
for (let i = 0; i < particleCount; i += 1) {
const isImageParticle = imageOverride && i <= imageParticleCount;

View file

@ -132,7 +132,6 @@ export function TopFlix() {
<div className="mt-8 w-full max-w-none">
<Divider marginClass="my-3" />
{getItemsForCurrentPage().map((item) => {
const successText = item.success ? "Yes" : "No"; // Convert bool to "Yes" or "No"
const coverUrl = getMediaPoster(item.tmdbFullId);
return (
<ConfigValue key={item.tmdbFullId} name={item.title}>