Skip to content

Commit 0a9fb41

Browse files
changing notification on index page
1 parent 732142b commit 0a9fb41

File tree

1 file changed

+28
-4
lines changed

1 file changed

+28
-4
lines changed

app/pages/index.vue

Lines changed: 28 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,32 @@
11
<script lang="ts" setup>
2-
const data = ref({
3-
notificationTitle: 'Parents signup is now open!',
4-
notificationDescription:
5-
'Once you have signed up, we will inform you via email when you have been allocated a family!'
2+
const { currentState } = useAppState();
3+
4+
const data = computed(() => {
5+
switch (currentState.value) {
6+
case 'parents_open':
7+
return {
8+
notificationTitle: 'Parents signup is now open!',
9+
notificationDescription:
10+
'Sign up to be a parent and help freshers settle into university life!'
11+
};
12+
case 'parents_close':
13+
return {
14+
notificationTitle: 'Parents signup is now closed!',
15+
notificationDescription:
16+
'If you have signed up, look out for an email soon! Fresher signup will open soon.'
17+
};
18+
case 'freshers_open':
19+
return {
20+
notificationTitle: 'Freshers signup is now open!',
21+
notificationDescription: 'Sign up to be adopted by a DoCSoc family'
22+
};
23+
case 'closed':
24+
return {
25+
notificationTitle: 'Mums and Dads is now closed!',
26+
notificationDescription:
27+
'Thank you for signing up! Look out for any emails for more information.'
28+
};
29+
}
630
});
731
</script>
832

0 commit comments

Comments
 (0)