This repository has been archived by the owner on Jun 13, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 197
/
Subscribe.vue
85 lines (78 loc) · 2.45 KB
/
Subscribe.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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
<template>
<div
id="subscribe"
class="p-8 mb-4 rounded leading-tight relative text-center w-full">
<div class="text-xl font-semibold mb-2">{{ text[$i18n.locale].title }}</div>
<div class="text-lg mb-4">{{ text[$i18n.locale].subtitle }}</div>
<form
id="mc-embedded-subscribe-form"
action="`https://bazzite.us11.list-manage.com/subscribe/post?u=34b09d915eae6d2857425420f&id=095eb8d814`"
method="post"
name="mc-embedded-subscribe-form"
class="validate"
target="_blank"
novalidate>
<input
type="text"
name="b_34b09d915eae6d2857425420f_095eb8d814"
tabindex="-1"
value=""
class="hidden">
<div class="flex flex-col sm:flex-row items-center flex-no-wrap">
<div class="flex-grow mb-4">
<input
id="mce-EMAIL"
:placeholder="text[$i18n.locale].placeholder"
type="email"
value=""
name="EMAIL"
class="appearance-none border rounded w-full py-3 px-3 text-grey-darker leading-tight focus:outline-none focus:shadow-outline leading-none"
required>
</div>
<div class="flex-none mb-4">
<input
id="mc-embedded-subscribe"
:value="text[$i18n.locale].button"
type="submit"
name="subscribe"
class="btn btn-blue sm:ml-4">
</div>
</div>
</form>
<div class="text-sm">
<a
:href="text[$i18n.locale].privacyLink"
target="_blank"
rel="noopener"
class="text-grey-dark">
{{ text[$i18n.locale].privacyText }}
</a>
</div>
</div>
</template>
<script>
export default {
data() {
return {
text: {
en: {
title: 'Want to keep up with the latest news, tips and tricks from Statusfy?',
subtitle: 'Subscribe to our Newsletter!',
placeholder: 'your@email.com',
button: 'Subscribe',
privacyText: 'Privacy Policy',
privacyLink: 'https://www.bazzite.com/legal/privacy'
},
es: {
title: '¿Deseas mantenerte al día con las últimas noticias, consejos y trucos de Statusfy?',
subtitle: '¡Suscríbete a nuestro boletín!',
placeholder: 'tu@email.com',
button: 'Suscribirse',
privacyText: 'Política de Privacidad',
privacyLink: 'https://www.bazzite.com/es/legal/privacy'
}
}
}
}
}
</script>