fix: reduce amount of stars
This commit is contained in:
@@ -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"
|
||||
>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user