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"
src="https://lilou.cat/api"
alt="Lilou"
>
/>
<h1
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">
const STARS = 1000;
const STARS = 500;
const MIN_SPARKLE = 2;
const MAX_SPARKLE = 20;
@@ -23,7 +23,7 @@ const createStar = (container: HTMLElement) => {
container.appendChild(star);
};
const generateStars = (container: HTMLElement | null) => {
const generateStars = (container: HTMLElement) => {
for (let i = 0; i < STARS; i++) {
createStar(container);
}