Kaynağa Gözat

simplify App.vue, clean up excess css

tags/0.0.1
diaseu 4 yıl önce
ebeveyn
işleme
dc9d4cece3

+ 13
- 1
frontend/src/App.vue Dosyayı Görüntüle

@@ -1,14 +1,16 @@
1 1
 <template lang="pug">
2
+sidebar
2 3
 main.f-col
3 4
     router-view
4 5
 </template>
5 6
 
6 7
 <script>
7 8
 import * as sss from '@/sss/import.css'
9
+import sidebar from './components/Sidebar.vue'
8 10
 
9 11
 export default {
10 12
     name: 'app',
11
-    components: {},
13
+    components: { sidebar,  },
12 14
 }
13 15
 </script>
14 16
 
@@ -16,10 +18,20 @@ export default {
16 18
 // prettier-ignore
17 19
 @import './sss/theme.sss'
18 20
 
21
+html
22
+    background-color: #e90d77
23
+
19 24
 #app
25
+    display: flex
26
+    flex-direction: row
20 27
     text-align: center
21 28
     color: $primary
22 29
     font-family: $sans
23 30
     background-color: $secondary
24 31
     overflow-x: hidden
32
+
33
+    > aside
34
+        background-color: yellow
35
+
36
+
25 37
 </style>

+ 1
- 9
frontend/src/components/ProfileCardList.vue Dosyayı Görüntüle

@@ -13,10 +13,6 @@ section.profile_card_list.w-full
13 13
                 .card__content
14 14
                     h3.p-1.mv-0.b-solid.rounded {{ user.name }}
15 15
 
16
-        nav.swipe_icons.w-full.f-row.between
17
-            h2 A
18
-            h2 H
19
-            h2 P
20 16
 </template>
21 17
 
22 18
 <script>
@@ -84,7 +80,7 @@ export default {
84 80
     margin: 5vh 0 0 0
85 81
 
86 82
 .swipe
87
-    position: absolute
83
+    
88 84
 
89 85
 .card
90 86
     position: relative
@@ -100,8 +96,4 @@ export default {
100 96
         position: absolute
101 97
         bottom: 0
102 98
 
103
-.swipe_icons
104
-    position: fixed
105
-    bottom: 5vh
106
-    width: 250px
107 99
 </style>

+ 0
- 163
frontend/src/views/Login.vue Dosyayı Görüntüle

@@ -44,168 +44,5 @@ export default {
44 44
 </script>
45 45
 
46 46
 <style lang="postcss">
47
-html
48
-  background-color: #e90d77
49 47
 
50
-.content
51
-  background: none
52
-
53
-.wrapper
54
-  position: unset
55
-
56
-.login__box
57
-  position: absolute
58
-  top: 50%
59
-  left: 50%
60
-  width: 300px
61
-  padding: 40px
62
-  transform: translate(-50%, -50%)
63
-  background: rgba(0, 0, 0, 0.5)
64
-  box-sizing: border-box
65
-  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6)
66
-  border-radius: 10px
67
-
68
-.login__box h2
69
-  margin: 0 0 30px
70
-  padding: 0
71
-  color: #fff
72
-  text-align: center
73
-
74
-.login__box .user__box
75
-  position: relative
76
-
77
-.login__box .user__box input
78
-  width: 100%
79
-  padding: 10px 0
80
-  font-size: 16px
81
-  color: #fff
82
-  margin-bottom: 30px
83
-  border: none
84
-  border-bottom: 1px solid #fff
85
-  outline: none
86
-  background: transparent
87
-
88
-.login__box .user__box label
89
-  position: absolute
90
-  top: 0
91
-  left: 0
92
-  padding: 10px 0
93
-  font-size: 16px
94
-  color: #fff
95
-  pointer-events: none
96
-  transition: 0.5s
97
-
98
-.login__box .user__box input:focus ~ label,
99
-.login__box .user__box input:valid ~ label
100
-  top: -20px
101
-  left: 0
102
-  color: #e90d77
103
-  font-size: 12px
104
-
105
-.login__box form button
106
-  position: relative
107
-  display: inline-block
108
-  padding: 10px 20px
109
-  color: #e90d77
110
-  font-size: 16px
111
-  text-decoration: none
112
-  text-transform: uppercase
113
-  overflow: hidden
114
-  transition: 0.5s
115
-  margin-top: 40px
116
-  letter-spacing: 4px
117
-  background: none
118
-  border: none
119
-
120
-.login__box button:hover
121
-  background: #e90d77
122
-  color: #fff
123
-  border-radius: 5px
124
-  box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77,
125
-    0 0 100px #e90d77
126
-
127
-.login__box button span
128
-  position: absolute
129
-  display: block
130
-
131
-.login__box button span:nth-child(1)
132
-  top: 0
133
-  left: -100%
134
-  width: 100%
135
-  height: 2px
136
-  background: linear-gradient(90deg, transparent, #e90d77)
137
-  animation: btn-anim1 1s linear infinite
138
-
139
-.login__box form .forget__link
140
-  color: white
141
-  text-decoration: none
142
-
143
-.login__box form .forget__link:hover
144
-  color: #e90d77
145
-
146
-.login__box form .links
147
-  color: white
148
-  text-decoration: none
149
-  margin-left: 5px
150
-  padding: 10px
151
-
152
-.login__box form .links:hover
153
-  background: #e90d77
154
-  color: #fff
155
-  border-radius: 5px
156
-  box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77,
157
-    0 0 100px #e90d77
158
-
159
-@keyframes btn-anim1
160
-  0%
161
-    left: -100%
162
-  50%, 100%
163
-    left: 100%
164
-
165
-.login__box button span:nth-child(2)
166
-  top: -100%
167
-  right: 0
168
-  width: 2px
169
-  height: 100%
170
-  background: linear-gradient(180deg, transparent, #e90d77)
171
-  animation: btn-anim2 1s linear infinite
172
-  animation-delay: 0.25s
173
-
174
-@keyframes btn-anim2
175
-  0%
176
-    top: -100%
177
-  50%, 100%
178
-    top: 100%
179
-
180
-
181
-.login__box button span:nth-child(3)
182
-  bottom: 0
183
-  right: -100%
184
-  width: 100%
185
-  height: 2px
186
-  background: linear-gradient(270deg, transparent, #e90d77)
187
-  animation: btn-anim3 1s linear infinite
188
-  animation-delay: 0.5s
189
-
190
-@keyframes btn-anim3
191
-  0%
192
-    right: -100%
193
-  50%, 100%
194
-    right: 100%
195
-
196
-
197
-.login__box a span:nth-child(4)
198
-  bottom: -100%
199
-  left: 0
200
-  width: 2px
201
-  height: 100%
202
-  background: linear-gradient(360deg, transparent, #e90d77)
203
-  animation: btn-anim4 1s linear infinite
204
-  animation-delay: 0.75s
205
-
206
-@keyframes btn-anim4
207
-  0%
208
-    bottom: -100%
209
-  50%, 100%
210
-    bottom: 100%
211 48
 </style>

+ 0
- 160
frontend/src/views/Profile.vue Dosyayı Görüntüle

@@ -79,166 +79,6 @@ export default {
79 79
 </script>
80 80
 
81 81
 <style lang="postcss">
82
-html
83
-  background-color: #e90d77
84 82
 
85
-.content
86
-  background: none
87 83
 
88
-.wrapper
89
-  position: unset
90
-
91
-.login__box
92
-  position: absolute
93
-  top: 50%
94
-  left: 50%
95
-  width: 300px
96
-  padding: 40px
97
-  transform: translate(-50%, -50%)
98
-  background: rgba(0, 0, 0, 0.5)
99
-  box-sizing: border-box
100
-  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6)
101
-  border-radius: 10px
102
-
103
-.login__box h2
104
-  margin: 0 0 30px
105
-  padding: 0
106
-  color: #fff
107
-  text-align: center
108
-
109
-.login__box .user__box
110
-  position: relative
111
-
112
-.login__box .user__box input
113
-  width: 100%
114
-  padding: 10px 0
115
-  font-size: 16px
116
-  color: #fff
117
-  margin-bottom: 30px
118
-  border: none
119
-  border-bottom: 1px solid #fff
120
-  outline: none
121
-  background: transparent
122
-
123
-.login__box .user__box label
124
-  position: absolute
125
-  top: 0
126
-  left: 0
127
-  padding: 10px 0
128
-  font-size: 16px
129
-  color: #fff
130
-  pointer-events: none
131
-  transition: 0.5s
132
-
133
-.login__box .user__box input:focus ~ label,
134
-.login__box .user__box input:valid ~ label
135
-  top: -20px
136
-  left: 0
137
-  color: #e90d77
138
-  font-size: 12px
139
-
140
-.login__box form button
141
-  position: relative
142
-  display: inline-block
143
-  padding: 10px 20px
144
-  color: #e90d77
145
-  font-size: 16px
146
-  text-decoration: none
147
-  text-transform: uppercase
148
-  overflow: hidden
149
-  transition: 0.5s
150
-  margin-top: 40px
151
-  letter-spacing: 4px
152
-  background: none
153
-  border: none
154
-
155
-.login__box button:hover
156
-  background: #e90d77
157
-  color: #fff
158
-  border-radius: 5px
159
-  box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77,
160
-    0 0 100px #e90d77
161
-
162
-.login__box button span
163
-  position: absolute
164
-  display: block
165
-
166
-.login__box button span:nth-child(1)
167
-  top: 0
168
-  left: -100%
169
-  width: 100%
170
-  height: 2px
171
-  background: linear-gradient(90deg, transparent, #e90d77)
172
-  animation: btn-anim1 1s linear infinite
173
-
174
-.login__box form .forget__link
175
-  color: white
176
-  text-decoration: none
177
-
178
-.login__box form .forget__link:hover
179
-  color: #e90d77
180
-
181
-.login__box form .links
182
-  color: white
183
-  text-decoration: none
184
-  margin-left: 5px
185
-  padding: 10px
186
-
187
-.login__box form .links:hover
188
-  background: #e90d77
189
-  color: #fff
190
-  border-radius: 5px
191
-  box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77,
192
-    0 0 100px #e90d77
193
-
194
-@keyframes btn-anim1
195
-  0%
196
-    left: -100%
197
-  50%, 100%
198
-    left: 100%
199
-
200
-.login__box button span:nth-child(2)
201
-  top: -100%
202
-  right: 0
203
-  width: 2px
204
-  height: 100%
205
-  background: linear-gradient(180deg, transparent, #e90d77)
206
-  animation: btn-anim2 1s linear infinite
207
-  animation-delay: 0.25s
208
-
209
-@keyframes btn-anim2
210
-  0%
211
-    top: -100%
212
-  50%, 100%
213
-    top: 100%
214
-
215
-.login__box button span:nth-child(3)
216
-  bottom: 0
217
-  right: -100%
218
-  width: 100%
219
-  height: 2px
220
-  background: linear-gradient(270deg, transparent, #e90d77)
221
-  animation: btn-anim3 1s linear infinite
222
-  animation-delay: 0.5s
223
-
224
-@keyframes btn-anim3
225
-  0%
226
-    right: -100%
227
-  50%, 100%
228
-    right: 100%
229
-
230
-.login__box a span:nth-child(4)
231
-  bottom: -100%
232
-  left: 0
233
-  width: 2px
234
-  height: 100%
235
-  background: linear-gradient(360deg, transparent, #e90d77)
236
-  animation: btn-anim4 1s linear infinite
237
-  animation-delay: 0.75s
238
-
239
-@keyframes btn-anim4
240
-  0%
241
-    bottom: -100%
242
-  50%, 100%
243
-    bottom: 100%
244 84
 </style>

+ 0
- 161
frontend/src/views/Register.vue Dosyayı Görüntüle

@@ -52,166 +52,5 @@ export default {
52 52
 </script>
53 53
 
54 54
 <style lang="postcss">
55
-html
56
-  background-color: #e90d77
57 55
 
58
-.content
59
-  background: none
60
-
61
-.wrapper
62
-  position: unset
63
-
64
-.register__box
65
-  position: absolute
66
-  top: 50%
67
-  left: 50%
68
-  width: 300px
69
-  padding: 40px
70
-  transform: translate(-50%, -50%)
71
-  background: rgba(0, 0, 0, 0.5)
72
-  box-sizing: border-box
73
-  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.6)
74
-  border-radius: 10px
75
-
76
-.register__box h2
77
-  margin: 0 0 30px
78
-  padding: 0
79
-  color: #fff
80
-  text-align: center
81
-
82
-.register__box .user__box
83
-  position: relative
84
-
85
-.register__box .user__box input
86
-  width: 100%
87
-  padding: 10px 0
88
-  font-size: 16px
89
-  color: #fff
90
-  margin-bottom: 30px
91
-  border: none
92
-  border-bottom: 1px solid #fff
93
-  outline: none
94
-  background: transparent
95
-
96
-.register__box .user__box label
97
-  position: absolute
98
-  top: 0
99
-  left: 0
100
-  padding: 10px 0
101
-  font-size: 16px
102
-  color: #fff
103
-  pointer-events: none
104
-  transition: 0.5s
105
-
106
-.register__box .user__box input:focus ~ label,
107
-.register__box .user__box input:valid ~ label
108
-  top: -20px
109
-  left: 0
110
-  color: #e90d77
111
-  font-size: 12px
112
-
113
-.register__box form button
114
-  position: relative
115
-  display: inline-block
116
-  padding: 10px 20px
117
-  color: #e90d77
118
-  font-size: 16px
119
-  text-decoration: none
120
-  text-transform: uppercase
121
-  overflow: hidden
122
-  transition: 0.5s
123
-  margin-top: 40px
124
-  letter-spacing: 4px
125
-  background: none
126
-  border: none
127
-
128
-.register__box button:hover
129
-  background: #e90d77
130
-  color: #fff
131
-  border-radius: 5px
132
-  box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77,
133
-    0 0 100px #e90d77
134
-
135
-.register__box button span
136
-  position: absolute
137
-  display: block
138
-
139
-.register__box button span:nth-child(1)
140
-  top: 0
141
-  left: -100%
142
-  width: 100%
143
-  height: 2px
144
-  background: linear-gradient(90deg, transparent, #e90d77)
145
-  animation: btn-anim1 1s linear infinite
146
-
147
-.register__box form .forget__link
148
-  color: white
149
-  text-decoration: none
150
-
151
-.register__box form .forget__link:hover
152
-  color: #e90d77
153
-
154
-.register__box form .links
155
-  color: white
156
-  text-decoration: none
157
-  margin-left: 5px
158
-  padding: 10px
159
-
160
-.register__box form .links:hover
161
-  background: #e90d77
162
-  color: #fff
163
-  border-radius: 5px
164
-  box-shadow: 0 0 5px #e90d77, 0 0 25px #e90d77, 0 0 50px #e90d77, 0 0 100px #e90d77
165
-
166
-@keyframes btn-anim1
167
-  0%
168
-    left: -100%
169
-  50%, 100%
170
-    left: 100%
171
-
172
-.register__box button span:nth-child(2)
173
-  top: -100%
174
-  right: 0
175
-  width: 2px
176
-  height: 100%
177
-  background: linear-gradient(180deg, transparent, #e90d77)
178
-  animation: btn-anim2 1s linear infinite
179
-  animation-delay: 0.25s
180
-
181
-@keyframes btn-anim2
182
-  0%
183
-    top: -100%
184
-  50%, 100%
185
-    top: 100%
186
-
187
-.register__box button span:nth-child(3)
188
-  bottom: 0
189
-  right: -100%
190
-  width: 100%
191
-  height: 2px
192
-  background: linear-gradient(270deg, transparent, #e90d77)
193
-  animation: btn-anim3 1s linear infinite
194
-  animation-delay: 0.5s
195
-
196
-@keyframes btn-anim3
197
-  0%
198
-    right: -100%
199
-  50%, 100%
200
-    right: 100%
201
-
202
-.register__box a span:nth-child(4)
203
-  bottom: -100%
204
-  left: 0
205
-  width: 2px
206
-  height: 100%
207
-  background: linear-gradient(360deg, transparent, #e90d77)
208
-  animation: btn-anim4 1s linear infinite
209
-  animation-delay: 0.75s
210
-
211
-@keyframes btn-anim4
212
-  0%
213
-    bottom: -100%
214
-  50%,
215
-  100%
216
-    bottom: 100%
217 56
 </style>

+ 2
- 3
frontend/src/views/home.vue Dosyayı Görüntüle

@@ -5,17 +5,15 @@ article#home.w-full.f-row.reverse
5 5
             main-nav
6 6
 
7 7
         profile-card-list(:uid='uid' :users='swipables')
8
-    sidebar
9 8
 </template>
10 9
 
11 10
 <script>
12 11
 import mainNav from '../components/MainNav.vue'
13
-import sidebar from '../components/Sidebar.vue'
14 12
 import profileCardList from '../components/ProfileCardList.vue'
15 13
 
16 14
 export default {
17 15
     name: 'HomeView',
18
-    components: { mainNav, profileCardList, sidebar },
16
+    components: { mainNav, profileCardList },
19 17
     data: () => ({
20 18
         swipables: [],
21 19
         uid: null,
@@ -44,3 +42,4 @@ export default {
44 42
     },
45 43
 }
46 44
 </script>
45
+

Loading…
İptal
Kaydet