|
|
@@ -1,21 +1,16 @@
|
|
1
|
|
-<template>
|
|
2
|
|
- <div class="forget__box">
|
|
3
|
|
- <h2>Forget</h2>
|
|
4
|
|
- <form @submit.prevent="onSubmit">
|
|
5
|
|
- <div class="user__box">
|
|
6
|
|
- <input type="email" required v-model="form.email" />
|
|
7
|
|
- <label>Email</label>
|
|
8
|
|
- </div>
|
|
9
|
|
- <button type="submit">
|
|
10
|
|
- <span></span>
|
|
11
|
|
- <span></span>
|
|
12
|
|
- <span></span>
|
|
13
|
|
- <span></span>
|
|
14
|
|
- {{ requesting ? "Log..." : "Send" }}
|
|
15
|
|
- </button>
|
|
16
|
|
- <router-link to="/login">Login</router-link>
|
|
17
|
|
- </form>
|
|
18
|
|
- </div>
|
|
|
1
|
+<template lang="pug">
|
|
|
2
|
+.forget__box
|
|
|
3
|
+ h2 Forget
|
|
|
4
|
+ form(@submit.prevent="onSubmit")
|
|
|
5
|
+ .user__box
|
|
|
6
|
+ input(type="email" required="" v-model="form.email")
|
|
|
7
|
+ label Email
|
|
|
8
|
+ button(type="submit")
|
|
|
9
|
+ span
|
|
|
10
|
+ span
|
|
|
11
|
+ span
|
|
|
12
|
+ span {{ requesting ? "Log..." : "Send" }}
|
|
|
13
|
+ router-link(to="/login") Login
|
|
19
|
14
|
</template>
|
|
20
|
15
|
|
|
21
|
16
|
<script>
|
|
|
@@ -25,188 +20,172 @@ export default {
|
|
25
|
20
|
requesting: false,
|
|
26
|
21
|
form: {
|
|
27
|
22
|
email: "",
|
|
28
|
|
- },
|
|
|
23
|
+ }
|
|
29
|
24
|
}),
|
|
30
|
25
|
methods: {
|
|
31
|
26
|
onSubmit() {
|
|
32
|
|
- this.requesting = true;
|
|
33
|
|
- // auth
|
|
34
|
|
- // .sendPasswordResetEmail(this.form.email)
|
|
35
|
|
- // .then(() => this.$router.push({ name: "login" }))
|
|
36
|
|
- // .catch((error) => console.log(error))
|
|
37
|
|
- // .finally(() => (this.requesting = false));
|
|
38
|
|
- },
|
|
39
|
|
- },
|
|
40
|
|
-};
|
|
|
27
|
+ this.requesting = true
|
|
|
28
|
+ }
|
|
|
29
|
+ }
|
|
|
30
|
+}
|
|
41
|
31
|
</script>
|
|
42
|
32
|
|
|
43
|
|
-<style>
|
|
44
|
|
-html {
|
|
45
|
|
- background-color: #e90d77;
|
|
46
|
|
-}
|
|
47
|
|
-.content {
|
|
48
|
|
- background: none;
|
|
49
|
|
-}
|
|
50
|
|
-.wrapper {
|
|
51
|
|
- position: unset;
|
|
52
|
|
-}
|
|
53
|
|
-.forget__box {
|
|
54
|
|
- position: absolute;
|
|
55
|
|
- top: 50%;
|
|
56
|
|
- left: 50%;
|
|
57
|
|
- width: 300px;
|
|
58
|
|
- padding: 40px;
|
|
59
|
|
- transform: translate(-50%, -50%);
|
|
60
|
|
- background: rgba(0, 0, 0, 0.5);
|
|
61
|
|
- box-sizing: border-box;
|
|
62
|
|
- box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6);
|
|
63
|
|
- border-radius: 10px;
|
|
64
|
|
-}
|
|
65
|
|
-.forget__box h2 {
|
|
66
|
|
- margin: 0 0 30px;
|
|
67
|
|
- padding: 0;
|
|
68
|
|
- color: #fff;
|
|
69
|
|
- text-align: center;
|
|
70
|
|
-}
|
|
71
|
|
-.forget__box .user__box {
|
|
72
|
|
- position: relative;
|
|
73
|
|
-}
|
|
74
|
|
-.forget__box .user__box input {
|
|
75
|
|
- width: 100%;
|
|
76
|
|
- padding: 10px 0;
|
|
77
|
|
- font-size: 16px;
|
|
78
|
|
- color: #fff;
|
|
79
|
|
- margin-bottom: 30px;
|
|
80
|
|
- border: none;
|
|
81
|
|
- border-bottom: 1px solid #fff;
|
|
82
|
|
- outline: none;
|
|
83
|
|
- background: transparent;
|
|
84
|
|
-}
|
|
85
|
|
-.forget__box .user__box label {
|
|
86
|
|
- position: absolute;
|
|
87
|
|
- top: 0;
|
|
88
|
|
- left: 0;
|
|
89
|
|
- padding: 10px 0;
|
|
90
|
|
- font-size: 16px;
|
|
91
|
|
- color: #fff;
|
|
92
|
|
- pointer-events: none;
|
|
93
|
|
- transition: 0.5s;
|
|
94
|
|
-}
|
|
|
33
|
+<style lang="postcss">
|
|
|
34
|
+html
|
|
|
35
|
+ background-color: #e90d77
|
|
|
36
|
+
|
|
|
37
|
+.content
|
|
|
38
|
+ background: none
|
|
|
39
|
+
|
|
|
40
|
+.wrapper
|
|
|
41
|
+ position: unset
|
|
|
42
|
+
|
|
|
43
|
+.forget__box
|
|
|
44
|
+ position: absolute
|
|
|
45
|
+ top: 50%
|
|
|
46
|
+ left: 50%
|
|
|
47
|
+ width: 300px
|
|
|
48
|
+ padding: 40px
|
|
|
49
|
+ transform: translate(-50%, -50%)
|
|
|
50
|
+ background: rgba(0, 0, 0, 0.5)
|
|
|
51
|
+ box-sizing: border-box
|
|
|
52
|
+ box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6)
|
|
|
53
|
+ border-radius: 10px
|
|
|
54
|
+
|
|
|
55
|
+.forget__box h2
|
|
|
56
|
+ margin: 0 0 30px
|
|
|
57
|
+ padding: 0
|
|
|
58
|
+ color: #fff
|
|
|
59
|
+ text-align: center
|
|
|
60
|
+
|
|
|
61
|
+.forget__box .user__box
|
|
|
62
|
+ position: relative
|
|
|
63
|
+
|
|
|
64
|
+.forget__box .user__box input
|
|
|
65
|
+ width: 100%
|
|
|
66
|
+ padding: 10px 0
|
|
|
67
|
+ font-size: 16px
|
|
|
68
|
+ color: #fff
|
|
|
69
|
+ margin-bottom: 30px
|
|
|
70
|
+ border: none
|
|
|
71
|
+ border-bottom: 1px solid #fff
|
|
|
72
|
+ outline: none
|
|
|
73
|
+ background: transparent
|
|
|
74
|
+
|
|
|
75
|
+.forget__box .user__box label
|
|
|
76
|
+ position: absolute
|
|
|
77
|
+ top: 0
|
|
|
78
|
+ left: 0
|
|
|
79
|
+ padding: 10px 0
|
|
|
80
|
+ font-size: 16px
|
|
|
81
|
+ color: #fff
|
|
|
82
|
+ pointer-events: none
|
|
|
83
|
+ transition: 0.5s
|
|
|
84
|
+
|
|
95
|
85
|
.forget__box .user__box input:focus ~ label,
|
|
96
|
|
-.forget__box .user__box input:valid ~ label {
|
|
97
|
|
- top: -20px;
|
|
98
|
|
- left: 0;
|
|
99
|
|
- color: #e90d77;
|
|
100
|
|
- font-size: 12px;
|
|
101
|
|
-}
|
|
102
|
|
-.forget__box form button {
|
|
103
|
|
- position: relative;
|
|
104
|
|
- display: inline-block;
|
|
105
|
|
- padding: 10px 20px;
|
|
106
|
|
- color: #e90d77;
|
|
107
|
|
- font-size: 16px;
|
|
108
|
|
- text-decoration: none;
|
|
109
|
|
- text-transform: uppercase;
|
|
110
|
|
- overflow: hidden;
|
|
111
|
|
- transition: 0.5s;
|
|
112
|
|
- margin-top: 40px;
|
|
113
|
|
- letter-spacing: 4px;
|
|
114
|
|
- background: none;
|
|
115
|
|
- border: none;
|
|
116
|
|
-}
|
|
117
|
|
-.forget__box button:hover {
|
|
118
|
|
- background: #e90d77;
|
|
119
|
|
- color: #fff;
|
|
120
|
|
- border-radius: 5px;
|
|
121
|
|
- box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77,
|
|
122
|
|
- 0 0 100px #e90d77;
|
|
123
|
|
-}
|
|
124
|
|
-.forget__box button span {
|
|
125
|
|
- position: absolute;
|
|
126
|
|
- display: block;
|
|
127
|
|
-}
|
|
128
|
|
-.forget__box button span:nth-child(1) {
|
|
129
|
|
- top: 0;
|
|
130
|
|
- left: -100%;
|
|
131
|
|
- width: 100%;
|
|
132
|
|
- height: 2px;
|
|
133
|
|
- background: linear-gradient(90deg, transparent, #e90d77);
|
|
134
|
|
- animation: btn-anim1 1s linear infinite;
|
|
135
|
|
-}
|
|
136
|
|
-.forget__box form a {
|
|
137
|
|
- color: white;
|
|
138
|
|
- text-decoration: none;
|
|
139
|
|
- margin-left: 5px;
|
|
140
|
|
- padding: 10px;
|
|
141
|
|
-}
|
|
142
|
|
-.forget__box form a:hover {
|
|
143
|
|
- background: #e90d77;
|
|
144
|
|
- color: #fff;
|
|
145
|
|
- border-radius: 5px;
|
|
146
|
|
- box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77,
|
|
147
|
|
- 0 0 100px #e90d77;
|
|
148
|
|
-}
|
|
149
|
|
-@keyframes btn-anim1 {
|
|
150
|
|
- 0% {
|
|
151
|
|
- left: -100%;
|
|
152
|
|
- }
|
|
|
86
|
+.forget__box .user__box input:valid ~ label
|
|
|
87
|
+ top: -20px
|
|
|
88
|
+ left: 0
|
|
|
89
|
+ color: #e90d77
|
|
|
90
|
+ font-size: 12px
|
|
|
91
|
+
|
|
|
92
|
+.forget__box form button
|
|
|
93
|
+ position: relative
|
|
|
94
|
+ display: inline-block
|
|
|
95
|
+ padding: 10px 20px
|
|
|
96
|
+ color: #e90d77
|
|
|
97
|
+ font-size: 16px
|
|
|
98
|
+ text-decoration: none
|
|
|
99
|
+ text-transform: uppercase
|
|
|
100
|
+ overflow: hidden
|
|
|
101
|
+ transition: 0.5s
|
|
|
102
|
+ margin-top: 40px
|
|
|
103
|
+ letter-spacing: 4px
|
|
|
104
|
+ background: none
|
|
|
105
|
+ border: none
|
|
|
106
|
+
|
|
|
107
|
+.forget__box button:hover
|
|
|
108
|
+ background: #e90d77
|
|
|
109
|
+ color: #fff
|
|
|
110
|
+ border-radius: 5px
|
|
|
111
|
+ box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77, 0 0 100px #e90d77
|
|
|
112
|
+
|
|
|
113
|
+.forget__box button span
|
|
|
114
|
+ position: absolute
|
|
|
115
|
+ display: block
|
|
|
116
|
+
|
|
|
117
|
+.forget__box button span:nth-child(1)
|
|
|
118
|
+ top: 0
|
|
|
119
|
+ left: -100%
|
|
|
120
|
+ width: 100%
|
|
|
121
|
+ height: 2px
|
|
|
122
|
+ background: linear-gradient(90deg, transparent, #e90d77)
|
|
|
123
|
+ animation: btn-anim1 1s linear infinite
|
|
|
124
|
+
|
|
|
125
|
+.forget__box form a
|
|
|
126
|
+ color: white
|
|
|
127
|
+ text-decoration: none
|
|
|
128
|
+ margin-left: 5px
|
|
|
129
|
+ padding: 10px
|
|
|
130
|
+
|
|
|
131
|
+.forget__box form a:hover
|
|
|
132
|
+ background: #e90d77
|
|
|
133
|
+ color: #fff
|
|
|
134
|
+ border-radius: 5px
|
|
|
135
|
+ box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77, 0 0 100px #e90d77
|
|
|
136
|
+
|
|
|
137
|
+@keyframes btn-anim1
|
|
|
138
|
+ 0%
|
|
|
139
|
+ left: -100%
|
|
153
|
140
|
50%,
|
|
154
|
|
- 100% {
|
|
155
|
|
- left: 100%;
|
|
156
|
|
- }
|
|
157
|
|
-}
|
|
158
|
|
-.forget__box button span:nth-child(2) {
|
|
159
|
|
- top: -100%;
|
|
160
|
|
- right: 0;
|
|
161
|
|
- width: 2px;
|
|
162
|
|
- height: 100%;
|
|
163
|
|
- background: linear-gradient(180deg, transparent, #e90d77);
|
|
164
|
|
- animation: btn-anim2 1s linear infinite;
|
|
165
|
|
- animation-delay: 0.25s;
|
|
166
|
|
-}
|
|
167
|
|
-@keyframes btn-anim2 {
|
|
168
|
|
- 0% {
|
|
169
|
|
- top: -100%;
|
|
170
|
|
- }
|
|
|
141
|
+ 100%
|
|
|
142
|
+ left: 100%
|
|
|
143
|
+
|
|
|
144
|
+.forget__box button span:nth-child(2)
|
|
|
145
|
+ top: -100%
|
|
|
146
|
+ right: 0
|
|
|
147
|
+ width: 2px
|
|
|
148
|
+ height: 100%
|
|
|
149
|
+ background: linear-gradient(180deg, transparent, #e90d77)
|
|
|
150
|
+ animation: btn-anim2 1s linear infinite
|
|
|
151
|
+ animation-delay: 0.25s
|
|
|
152
|
+
|
|
|
153
|
+@keyframes btn-anim2
|
|
|
154
|
+ 0%
|
|
|
155
|
+ top: -100%
|
|
171
|
156
|
50%,
|
|
172
|
|
- 100% {
|
|
173
|
|
- top: 100%;
|
|
174
|
|
- }
|
|
175
|
|
-}
|
|
176
|
|
-.forget__box button span:nth-child(3) {
|
|
177
|
|
- bottom: 0;
|
|
178
|
|
- right: -100%;
|
|
179
|
|
- width: 100%;
|
|
180
|
|
- height: 2px;
|
|
181
|
|
- background: linear-gradient(270deg, transparent, #e90d77);
|
|
182
|
|
- animation: btn-anim3 1s linear infinite;
|
|
183
|
|
- animation-delay: 0.5s;
|
|
184
|
|
-}
|
|
185
|
|
-@keyframes btn-anim3 {
|
|
186
|
|
- 0% {
|
|
187
|
|
- right: -100%;
|
|
188
|
|
- }
|
|
|
157
|
+ 100%
|
|
|
158
|
+ top: 100%
|
|
|
159
|
+
|
|
|
160
|
+.forget__box button span:nth-child(3)
|
|
|
161
|
+ bottom: 0
|
|
|
162
|
+ right: -100%
|
|
|
163
|
+ width: 100%
|
|
|
164
|
+ height: 2px
|
|
|
165
|
+ background: linear-gradient(270deg, transparent, #e90d77)
|
|
|
166
|
+ animation: btn-anim3 1s linear infinite
|
|
|
167
|
+ animation-delay: 0.5s
|
|
|
168
|
+
|
|
|
169
|
+@keyframes btn-anim3
|
|
|
170
|
+ 0%
|
|
|
171
|
+ right: -100%
|
|
189
|
172
|
50%,
|
|
190
|
|
- 100% {
|
|
191
|
|
- right: 100%;
|
|
192
|
|
- }
|
|
193
|
|
-}
|
|
194
|
|
-.forget__box a span:nth-child(4) {
|
|
195
|
|
- bottom: -100%;
|
|
196
|
|
- left: 0;
|
|
197
|
|
- width: 2px;
|
|
198
|
|
- height: 100%;
|
|
199
|
|
- background: linear-gradient(360deg, transparent, #e90d77);
|
|
200
|
|
- animation: btn-anim4 1s linear infinite;
|
|
201
|
|
- animation-delay: 0.75s;
|
|
202
|
|
-}
|
|
203
|
|
-@keyframes btn-anim4 {
|
|
204
|
|
- 0% {
|
|
205
|
|
- bottom: -100%;
|
|
206
|
|
- }
|
|
|
173
|
+ 100%
|
|
|
174
|
+ right: 100%
|
|
|
175
|
+
|
|
|
176
|
+.forget__box a span:nth-child(4)
|
|
|
177
|
+ bottom: -100%
|
|
|
178
|
+ left: 0
|
|
|
179
|
+ width: 2px
|
|
|
180
|
+ height: 100%
|
|
|
181
|
+ background: linear-gradient(360deg, transparent, #e90d77)
|
|
|
182
|
+ animation: btn-anim4 1s linear infinite
|
|
|
183
|
+ animation-delay: 0.75s
|
|
|
184
|
+
|
|
|
185
|
+@keyframes btn-anim4
|
|
|
186
|
+ 0%
|
|
|
187
|
+ bottom: -100%
|
|
207
|
188
|
50%,
|
|
208
|
|
- 100% {
|
|
209
|
|
- bottom: 100%;
|
|
210
|
|
- }
|
|
211
|
|
-}
|
|
|
189
|
+ 100%
|
|
|
190
|
+ bottom: 100%
|
|
212
|
191
|
</style>
|