Selaa lähdekoodia

:recycle: changing over to pug template syntax

tags/0.0.1
J 4 vuotta sitten
vanhempi
commit
a87da0c774

+ 40
- 40
frontend/src/components/Messages.vue Näytä tiedosto

@@ -48,44 +48,44 @@ export default {
48 48
 };
49 49
 </script>
50 50
 
51
-<style scoped>
52
-.sidebar__messages {
53
-  padding: 20px 10px;
54
-  height: calc(100vh - 300px);
55
-  overflow-y: scroll;
56
-}
57
-.sidebar__messages a {
58
-  color: black;
59
-  text-decoration: none;
60
-}
61
-.sidebar__messages a:hover {
62
-  background: #f9f9ff;
63
-  transition: 0.5s;
64
-}
65
-.active {
66
-  background: #ececff;
67
-  transition: 0.5s;
68
-}
69
-.message__title {
70
-  color: #fd5068;
71
-  margin-bottom: 10px;
72
-}
73
-.sidebar__message {
74
-  display: flex;
75
-  align-items: center;
76
-  margin: 20px 0;
77
-}
78
-.message__left {
79
-  width: 70px;
80
-  height: 70px;
81
-}
82
-.message__left img {
83
-  object-fit: cover;
84
-}
85
-.message__right {
86
-  margin-left: 10px;
87
-}
88
-.message__name {
89
-  margin-bottom: 10px;
90
-}
51
+<style lang="postcss">
52
+.sidebar__messages
53
+  padding: 20px 10px
54
+  height: calc(100vh - 300px)
55
+  overflow-y: scroll
56
+
57
+.sidebar__messages a
58
+  color: black
59
+  text-decoration: none
60
+
61
+.sidebar__messages a:hover
62
+  background: #f9f9ff
63
+  transition: 0.5s
64
+
65
+.active
66
+  background: #ececff
67
+  transition: 0.5s
68
+
69
+.message__title
70
+  color: #fd5068
71
+  margin-bottom: 10px
72
+
73
+.sidebar__message
74
+  display: flex
75
+  align-items: center
76
+  margin: 20px 0
77
+
78
+.message__left
79
+  width: 70px
80
+  height: 70px
81
+
82
+.message__left img
83
+  object-fit: cover
84
+
85
+.message__right
86
+  margin-left: 10px
87
+
88
+.message__name
89
+  margin-bottom: 10px
90
+
91 91
 </style>

+ 245
- 320
frontend/src/views/Chats.vue
File diff suppressed because it is too large
Näytä tiedosto


+ 4
- 5
frontend/src/views/EditProfile.vue Näytä tiedosto

@@ -1,6 +1,5 @@
1
-<template>
2
-    <div class="EditProfile">
3
-        <h1>Edit Profile</h1>
4
-        <p>Edit Photos</p>
5
-    </div>
1
+<template lang="pug">
2
+.EditProfile
3
+    h1 Edit Profile
4
+    p Edit Photos
6 5
 </template>

+ 3
- 4
frontend/src/views/EditSurvey.vue Näytä tiedosto

@@ -1,5 +1,4 @@
1
-<template>
2
-    <div class="EditSurvey">
3
-        <h1>Edit Survey</h1>
4
-    </div>
1
+<template lang="pug">
2
+.EditSurvey
3
+  h1 Edit Survey
5 4
 </template>

+ 183
- 205
frontend/src/views/Login.vue Näytä tiedosto

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

+ 25
- 38
frontend/src/views/Match.vue Näytä tiedosto

@@ -1,41 +1,28 @@
1
-<template>
2
-    <div class="match">
3
-        <div class="matches">
4
-            <h1>Matches</h1>
5
-            <div class="row">
6
-                <card />
7
-                <card />
8
-                <card />
9
-            </div>
10
-        </div>
11
-
12
-        <div class="messages">
13
-            <h2>Messages</h2>
14
-            <div class="matched active">
15
-                <icon />
16
-                <div class="messagecontent">
17
-                    <h3>NSE Tropical</h3>
18
-                    Recently active, match now!
19
-                </div>
20
-            </div>
21
-
22
-            <div class="matched">
23
-                <icon />
24
-                <div class="messagecontent">
25
-                    <h3>Golden Communications</h3>
26
-                    Click to match now!
27
-                </div>
28
-            </div>
29
-
30
-            <div class="matched">
31
-                <icon />
32
-                <div class="messagecontent">
33
-                    <h3>Mojo Solutions</h3>
34
-                    Click to match now!
35
-                </div>
36
-            </div>
37
-        </div>
38
-    </div>
1
+<template lang="pug">
2
+.match
3
+  .matches
4
+    h1 Matches
5
+    .row
6
+      card
7
+        card
8
+          card
9
+  .messages
10
+    h2 Messages
11
+    .matched.active
12
+      icon
13
+        .messagecontent
14
+          h3 NSE Tropical
15
+          |                     Recently active, match now!
16
+    .matched
17
+      icon
18
+        .messagecontent
19
+          h3 Golden Communications
20
+          |                     Click to match now!
21
+    .matched
22
+      icon
23
+        .messagecontent
24
+          h3 Mojo Solutions
25
+          |                     Click to match now!
39 26
 </template>
40 27
 
41 28
 <script>

+ 182
- 208
frontend/src/views/Register.vue Näytä tiedosto

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

+ 6
- 7
frontend/src/views/SearchSettings.vue Näytä tiedosto

@@ -1,8 +1,7 @@
1
-<template>
2
-    <div class="SearchSettings">
3
-        <h1>Search Settings</h1>
4
-        <p>Max-Distance | Remote</p>
5
-        <p>Part-time | Full-time</p>
6
-        <p>Current Location</p>
7
-    </div>
1
+<template lang="pug">
2
+.SearchSettings
3
+  h1 Search Settings
4
+  p Max-Distance | Remote
5
+  p Part-time | Full-time
6
+  p Current Location
8 7
 </template>

+ 7
- 10
frontend/src/views/home.vue Näytä tiedosto

@@ -1,13 +1,10 @@
1
-<template>
2
-  <div id="home">
3
-    <div class="content-wrapper">
4
-      <div class="content">
5
-        <main-header />
6
-        <profile-cards :uid="uid" :users="swipables" />
7
-      </div>
8
-    </div>
9
-    <sidebar />
10
-  </div>
1
+<template lang="pug">
2
+#home
3
+  .content-wrapper
4
+    .content
5
+      main-header
6
+      profile-cards(:uid="uid" :users="swipables")
7
+  sidebar
11 8
 </template>
12 9
 
13 10
 <script>

Loading…
Peruuta
Tallenna