fix: reduce amount of stars

This commit is contained in:
Pihkaal
2024-10-17 23:12:29 +02:00
parent ad1ed2d328
commit 6101db8b4f
2 changed files with 3 additions and 3 deletions

View File

@@ -12,7 +12,7 @@
class="w-full max-w-[50vh] rotate-90" class="w-full max-w-[50vh] rotate-90"
src="https://lilou.cat/api" src="https://lilou.cat/api"
alt="Lilou" alt="Lilou"
> />
<h1 <h1
class="text-4xl md:text-5xl lg:text-6xl font-serif text-white dark:text-white" class="text-4xl md:text-5xl lg:text-6xl font-serif text-white dark:text-white"
> >

View File

@@ -1,5 +1,5 @@
<script setup lang="ts"> <script setup lang="ts">
const STARS = 1000; const STARS = 500;
const MIN_SPARKLE = 2; const MIN_SPARKLE = 2;
const MAX_SPARKLE = 20; const MAX_SPARKLE = 20;
@@ -23,7 +23,7 @@ const createStar = (container: HTMLElement) => {
container.appendChild(star); container.appendChild(star);
}; };
const generateStars = (container: HTMLElement | null) => { const generateStars = (container: HTMLElement) => {
for (let i = 0; i < STARS; i++) { for (let i = 0; i < STARS; i++) {
createStar(container); createStar(container);
} }