mirror of
https://github.com/sussy-code/smov.git
synced 2024-12-20 14:37:43 +01:00
Add start lightbar easter egg
This commit is contained in:
parent
7f2b343216
commit
c8c932ccce
3 changed files with 12 additions and 1 deletions
BIN
public/lightbar-images/star.png
Normal file
BIN
public/lightbar-images/star.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 11 KiB |
|
@ -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;
|
||||
|
|
|
@ -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}>
|
||||
|
|
Loading…
Reference in a new issue