feat(contact): notifications system + action

This commit is contained in:
2025-11-17 21:22:26 +01:00
parent de8940c103
commit 8c8af8bac8
12 changed files with 146 additions and 36 deletions

View File

@@ -14,6 +14,9 @@ export const useContactStore = defineStore("contact", {
},
isIntro: true,
notifications: [] as string[],
notificationsYOffset: 0,
}),
actions: {
@@ -70,5 +73,15 @@ export const useContactStore = defineStore("contact", {
},
);
},
pushNotification(content: string) {
this.notifications.push(content);
gsap.fromTo(
this,
{ notificationsYOffset: 20 },
{ notificationsYOffset: 0, duration: 0.075 },
);
},
},
});