fixed (i think)

This commit is contained in:
2025-12-19 15:52:44 -05:00
parent 004ab5407f
commit bc90adf839
4 changed files with 101 additions and 92 deletions

View File

@@ -6,18 +6,18 @@ const spinnerChars = ["⠋", "⠙", "⠹", "⠸", "⠼", "⠴", "⠦", "⠧", "
export function TerminalSplash() {
const [showing, setShowing] = createSignal(0);
// Only run animation on client
if (!isServer) {
onMount(() => {
const interval = setInterval(() => {
setShowing((prev) => (prev + 1) % spinnerChars.length);
}, 50);
onMount(() => {
// Only run animation on client
if (isServer) return;
onCleanup(() => {
clearInterval(interval);
});
const interval = setInterval(() => {
setShowing((prev) => (prev + 1) % spinnerChars.length);
}, 50);
onCleanup(() => {
clearInterval(interval);
});
}
});
return (
<div class="bg-base flex min-h-screen w-full flex-col items-center justify-center overflow-hidden">