feat: remove query based routing

This commit is contained in:
2025-12-29 19:47:01 +01:00
parent e912270d1e
commit 96f8d5093b
14 changed files with 207 additions and 140 deletions

View File

@@ -54,15 +54,15 @@ export const useHomeStore = defineStore("home", {
);
},
animateOutro(to: "contact" | "projects" | "theme" | "settings" | "alarm") {
animateOutro(to: AppScreen) {
this.isOutro = true;
this.outro.animateTop = to !== "settings";
const timeline = gsap.timeline({
onComplete: () => {
this.isOutro = true;
const router = useRouter();
router.push({ query: { screen: to } });
const app = useAppStore();
app.navigateTo(to);
},
});