-
Notifications
You must be signed in to change notification settings - Fork 9
/
authView.html
217 lines (211 loc) · 13.9 KB
/
authView.html
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
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
<div class="auth-container">
<div class="auth-form-container">
<div v-if="error" class="error-container">
<div class="error-message">{{ errorMessage }}</div>
</div>
<div class="auth-form-content-container">
<div class="form-title" v-if="isSignIn">Sign In</div>
<div class="form-title" v-else>Sign Up</div>
<div class="sign-in-up-text-container">
<span v-if="isSignIn"
>Not yet registered? <span class="clickable-text" v-on:click="goToSignUp">Sign Up</span></span
>
<span v-else
>Already have an account? <span class="clickable-text" v-on:click="goToSignIn">Sign In</span></span
>
</div>
<div class="divider-container">
<div class="divider" />
</div>
<div class="providerContainer">
<span>
<button class="providerButton providerGithub" @click="onGithubPressed">
<div class="providerButtonLeft">
<div class="providerButtonLogo">
<div class="providerButtonLogoCenter">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18"
height="17.556"
viewBox="0 0 18 17.556"
>
<path
fill="#fff"
fill-rule="evenodd"
d="M145.319 107.44a9 9 0 0 0-2.844 17.54c.45.082.614-.2.614-.434 0-.214-.008-.78-.012-1.531-2.5.544-3.032-1.206-3.032-1.206a2.384 2.384 0 0 0-1-1.317c-.817-.559.062-.547.062-.547a1.89 1.89 0 0 1 1.378.927 1.916 1.916 0 0 0 2.619.748 1.924 1.924 0 0 1 .571-1.2c-2-.227-4.1-1-4.1-4.448a3.479 3.479 0 0 1 .927-2.415 3.233 3.233 0 0 1 .088-2.382s.755-.242 2.475.923a8.535 8.535 0 0 1 4.506 0c1.718-1.165 2.472-.923 2.472-.923a3.234 3.234 0 0 1 .09 2.382 3.473 3.473 0 0 1 .925 2.415c0 3.458-2.1 4.218-4.11 4.441a2.149 2.149 0 0 1 .611 1.667c0 1.2-.011 2.174-.011 2.469 0 .24.162.52.619.433a9 9 0 0 0-2.851-17.539z"
transform="translate(-136.32 -107.44)"
></path>
</svg>
</div>
</div>
</div>
<div class="providerButtonText">Continue with Github</div>
</button>
</span>
</div>
<div class="providerContainer">
<span>
<button class="providerButton providerGoogle" @click="onGooglePressed">
<div class="providerButtonLeft">
<div class="providerButtonLogo">
<div class="providerButtonLogoCenter">
<svg
xmlns="http://www.w3.org/2000/svg"
width="18.001"
height="18"
viewBox="0 0 18.001 18"
>
<g id="Group_9292" transform="translate(-534 -389)">
<path
id="Path_85803"
d="M3.989 144.285l-.627 2.339-2.29.048a9.016 9.016 0 0 1-.066-8.4l2.039.374.893 2.027a5.371 5.371 0 0 0 .05 3.616z"
transform="translate(534 255.593)"
style="fill: rgb(255, 255, 255)"
></path>
<path
id="Path_85804"
d="M270.273 208.176a9 9 0 0 1-3.208 8.7l-2.568-.131-.363-2.269a5.364 5.364 0 0 0 2.308-2.739h-4.813v-3.56h8.645z"
transform="translate(281.57 188.143)"
style="fill: rgb(255, 255, 255)"
></path>
<path
id="Path_85805"
d="M44.07 314.549a9 9 0 0 1-13.561-2.749l2.917-2.387a5.353 5.353 0 0 0 7.713 2.741z"
transform="translate(504.564 90.469)"
style="fill: rgb(255, 255, 255)"
></path>
<path
id="Path_85806"
d="M42.362 2.072l-2.915 2.387a5.352 5.352 0 0 0-7.89 2.8l-2.932-2.4a9 9 0 0 1 13.737-2.787z"
transform="translate(506.383 389)"
style="fill: rgb(255, 255, 255)"
></path>
</g>
</svg>
</div>
</div>
</div>
<div class="providerButtonText">Continue with Google</div>
</button>
</span>
</div>
<div class="providerContainer">
<span>
<button class="providerButton providerApple" @click="onApplePressed">
<div class="providerButtonLeft">
<div class="providerButtonLogo">
<div class="providerButtonLogoCenter">
<svg
xmlns="http://www.w3.org/2000/svg"
width="15.614"
height="18.737"
viewBox="0 0 15.614 18.737"
>
<g
id="iconfinder_logo_brand_brands_logos_apple_ios_2993701"
transform="translate(-2)"
>
<path
id="Path_91415"
d="M14.494 11.075a4.29 4.29 0 0 1 2.372-3.836A4.888 4.888 0 0 0 13.713 6a4.783 4.783 0 0 0-1.83.406 4.357 4.357 0 0 1-1.684.375 4.357 4.357 0 0 1-1.684-.375A4.783 4.783 0 0 0 6.685 6C6.206 6 2 6.153 2 11.465c0 4.344 2.964 8.587 4.685 8.587a5.18 5.18 0 0 0 2.194-.464 3.2 3.2 0 0 1 1.32-.316 3.2 3.2 0 0 1 1.32.317 5.187 5.187 0 0 0 2.194.463c1.206 0 2.922-2.085 3.9-4.826a4.209 4.209 0 0 1-3.119-4.151z"
transform="translate(0 -1.316)"
style="fill: rgb(255, 255, 255)"
></path>
<path
id="XMLID_1339_"
d="M12 4.684A4.734 4.734 0 0 0 15.906 0 4.734 4.734 0 0 0 12 4.684z"
transform="translate(-2.193)"
style="fill: rgb(255, 255, 255)"
></path>
<path
id="Path_91416"
d="M6.685 6.2a4.783 4.783 0 0 1 1.83.406 4.357 4.357 0 0 0 1.684.375 4.357 4.357 0 0 0 1.684-.381 4.783 4.783 0 0 1 1.83-.406 4.953 4.953 0 0 1 3.014 1.126c.047-.026.091-.058.14-.082A4.888 4.888 0 0 0 13.713 6a4.783 4.783 0 0 0-1.83.406 4.357 4.357 0 0 1-1.684.375 4.357 4.357 0 0 1-1.684-.375A4.783 4.783 0 0 0 6.685 6C6.206 6 2 6.153 2 11.465v.107C2.053 6.352 6.208 6.2 6.685 6.2z"
transform="translate(0 -1.316)"
style="fill: rgb(255, 255, 255); opacity: 0.1"
></path>
<path
id="Path_91417"
d="M13.713 21.368a5.187 5.187 0 0 1-2.194-.463 3.2 3.2 0 0 0-1.32-.317 3.2 3.2 0 0 0-1.32.316 5.18 5.18 0 0 1-2.194.464c-1.707 0-4.633-4.174-4.681-8.48v.088c0 4.344 2.964 8.587 4.685 8.587a5.18 5.18 0 0 0 2.19-.463 3.2 3.2 0 0 1 1.32-.316 3.2 3.2 0 0 1 1.32.317 5.187 5.187 0 0 0 2.194.463c1.206 0 2.922-2.085 3.9-4.826-.023-.006-.043-.017-.066-.023-.991 2.654-2.655 4.653-3.834 4.653z"
transform="translate(0 -2.826)"
style="fill: rgb(255, 255, 255); opacity: 0.2"
></path>
<path
id="Path_91418"
d="M15.888.4A4.621 4.621 0 0 1 12 4.544v.2A4.745 4.745 0 0 0 15.9.261c0 .039 0 .098-.012.139z"
transform="translate(-2.193 -.057)"
style="fill: rgb(255, 255, 255); opacity: 0.2"
></path>
<path
id="Path_91419"
d="M12.005 4.477c.009-.051.02-.192.032-.278q.012-.161.035-.317A4.491 4.491 0 0 1 15.9.2V0a4.738 4.738 0 0 0-3.895 4.477z"
transform="translate(-2.194)"
style="fill: rgb(255, 255, 255); opacity: 0.1"
></path>
<path
id="Path_91420"
d="M14.494 9.759a4.29 4.29 0 0 1 2.372-3.836 4.888 4.888 0 0 0-3.153-1.239 4.783 4.783 0 0 0-1.83.406 4.357 4.357 0 0 1-1.684.375 4.357 4.357 0 0 1-1.684-.375 4.783 4.783 0 0 0-1.83-.406C6.206 4.684 2 4.838 2 10.15c0 4.344 2.964 8.587 4.685 8.587a5.18 5.18 0 0 0 2.194-.464 3.2 3.2 0 0 1 1.32-.316 3.2 3.2 0 0 1 1.32.317 5.187 5.187 0 0 0 2.194.463c1.206 0 2.922-2.085 3.9-4.826a4.209 4.209 0 0 1-3.119-4.152zM13.713 0a4.734 4.734 0 0 0-3.9 4.684A4.734 4.734 0 0 0 13.713 0z"
style="fill: rgb(255, 255, 255)"
></path>
</g>
</svg>
</div>
</div>
</div>
<div class="providerButtonText">Continue with Apple</div>
</button>
</span>
</div>
<div class="divider-container">
<div class="divider" />
<div class="divider-text">or</div>
<div class="divider" />
</div>
<form v-on:submit="onSubmitPressed" autocomplete="on" novalidate>
<div class="input-section-container" v-bind:class="emailError ? 'error' : ''">
<div class="input-label">Email</div>
<div class="input-container">
<div class="input-wrapper" v-bind:class="emailError ? 'error' : ''">
<input
autocomplete="email"
class="input"
type="email"
name="email"
placeholder="Email address"
v-model="email"
/>
</div>
</div>
<div v-if="emailError" class="input-error">{{ `${emailError}` }}</div>
</div>
<div class="input-section-container" v-bind:class="passwordError ? 'error' : ''">
<div class="input-label">Password</div>
<div class="input-container">
<div class="input-wrapper" v-bind:class="passwordError ? 'error' : ''">
<input
autocomplete="current-password"
class="input"
type="password"
name="password"
placeholder="Password"
v-model="password"
/>
</div>
</div>
<div v-if="passwordError" class="input-error">{{ `${passwordError}` }}</div>
</div>
<div class="input-section-container">
<div v-if="isSignIn">
<button type="submit" class="button">SIGN IN</button>
</div>
<div v-else>
<button type="submit" class="button">SIGN UP</button>
</div>
</div>
</form>
</div>
<div v-if="isSignIn">
<router-link :to="{ path: `/auth/reset-password` }"> Forgot Password? </router-link>
</div>
<div style="margin-bottom: 10px" />
</div>
</div>