feat(home): don't fade from white if nds was already booted

This commit is contained in:
2025-11-17 23:23:26 +01:00
parent 98d5dd1ea0
commit 4e5c196ba8
4 changed files with 12 additions and 3 deletions

5
app/stores/app.ts Normal file
View File

@@ -0,0 +1,5 @@
export const useAppStore = defineStore("app", {
state: () => ({
booted: false,
}),
});

View File

@@ -19,6 +19,8 @@ export const useHomeStore = defineStore("home", {
actions: {
animateIntro() {
const appStore = useAppStore();
this.isIntro = true;
const start = 0.5;
@@ -35,6 +37,7 @@ export const useHomeStore = defineStore("home", {
ease: "none",
onComplete: () => {
this.isIntro = false;
if (!appStore.booted) appStore.booted = true;
},
},
);