/
groupPlans.vue
70 lines (60 loc) · 1.86 KB
/
groupPlans.vue
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
<template lang="pug">
div
.container-fluid
.row
.col-6.offset-3
button.btn.btn-primary.btn-lg.btn-block(@click="goToNewGroupPage()") {{ $t('getAGroupPlanToday') }}
.row
.col-6.offset-3
br
.text-center {{ $t('groupSubscriptionPrice') }}
hr
.col-6.offset-3.text-center
.row.row-margin(style="font-size: 2rem;")
span {{ $t('enterprisePlansDescription') }}
.row.row-margin
// TODO
a.btn.btn-primary.btn-lg.btn-block(:href="'mailto:vicky@habitica.com?subject=' + $t('enterprisePlansEmailSubject')") {{ $t('enterprisePlansButton') }}
br
.row.row-margin(style="font-size: 2rem;")
span {{ $t('familyPlansDescription') }}
.row.row-margin
a.btn.btn-primary.btn-lg.btn-block(href="https://docs.google.com/forms/d/e/1FAIpQLSerMKkaCg3UcgpcMvBJtlNgnF9DNY8sxCebpAT-GHeDAQASPQ/viewform?usp=sf_link") {{ $t('familyPlansButton') }}
</template>
<style lang='scss' scoped>
.main {
margin-top: 6em;
}
</style>
<script>
import StaticHeader from './header.vue';
import * as Analytics from 'client/libs/analytics';
export default {
components: {
StaticHeader,
},
methods: {
goToNewGroupPage () {
if (!this.$store.state.isUserLoggedIn) {
this.$router.push({
name: 'register',
query: {
redirectTo: '/group-plans',
},
});
return;
}
this.$router.push('/group-plans');
},
contactUs () {
Analytics.track({
hitType: 'event',
eventCategory: 'button',
eventAction: 'click',
eventLabel: 'Contact Us (Plans)',
});
window.location.href = `mailto:vicky@habitica.com?subject=${this.$t('enterprisePlansEmailSubject')}`;
},
},
};
</script>