feat(credits): add in both nds and repo

This commit is contained in:
2026-02-24 14:38:15 +01:00
parent 98890f699d
commit 806fd11dd1
16 changed files with 400 additions and 11 deletions

View File

@@ -4,9 +4,9 @@ export type HomeButton =
| "projects"
| "contact"
| "gallery"
| "theme"
| "settings"
| "achievements";
| "achievements"
| "credits";
export const useHomeStore = defineStore("home", {
state: () => ({
@@ -32,7 +32,10 @@ export const useHomeStore = defineStore("home", {
actions: {
reset() {
const app = useAppStore();
if (app.previousScreen === "achievements") {
if (
app.previousScreen === "achievements" ||
app.previousScreen === "credits"
) {
return;
}
@@ -105,6 +108,12 @@ export const useHomeStore = defineStore("home", {
return;
}
if (to === "credits") {
const creditsScreen = useCreditsStore();
creditsScreen.animateFadeToBlackIntro();
return;
}
this.isOutro = true;
this.outro.animateTop = to !== "settings";