Explorar el Código

:recycle: another pass with w-toolbar enabled

tags/0.0.1^2
J hace 3 años
padre
commit
7809b0a46a
Se han modificado 3 ficheros con 22 adiciones y 24 borrados
  1. 11
    17
      frontend/src/components/MainNav.vue
  2. 9
    7
      frontend/src/views/HomeView.vue
  3. 2
    0
      frontend/src/wave.js

+ 11
- 17
frontend/src/components/MainNav.vue Ver fichero

@@ -1,25 +1,25 @@
1 1
 <template lang="pug">
2
-nav#main-header.w-flex.row.xs12
2
+w-toolbar.mt6.py1.no-grow(bottom)
3 3
     router-link.w-flex.column(:to='`/chats`')
4
-        w-button.pa8.bdrsr.bd1.sh1(bg-color='primary' disabled)
4
+        w-button.pa5.bdrsr.bd1.sh1(bg-color='primary' disabled)
5 5
             w-icon.mr1(xl) mdi mdi-forum
6
-            h3.text-upper chats
6
+            p.text-upper chats
7 7
     router-link.w-flex.column(:to='`/matches`')
8
-        w-button.pa8.bdrsr.bd1.sh1(bg-color='primary')
8
+        w-button.pa5.bdrsr.bd1.sh1(bg-color='primary')
9 9
             w-icon.mr1(xl) mdi mdi-tooltip-account
10
-            h3.text-upper matches
10
+            p.text-upper matches
11 11
     router-link.w-flex.column(:to='`/`')
12
-        w-button.pa8.bdrsr.bd1.sh1(bg-color='primary')
12
+        w-button.pa5.bdrsr.bd1.sh1(bg-color='primary')
13 13
             w-icon.mr1(xl) mdi mdi-home
14
-            h3.text-upper home
14
+            p.text-upper home
15 15
     router-link.w-flex.column(:to='`/survey`')
16
-        w-button.pa8.bdrsr.bd1.sh1(bg-color='primary')
16
+        w-button.pa5.bdrsr.bd1.sh1(bg-color='primary')
17 17
             w-icon.mr1(xl) mdi mdi-account-check
18
-            h3.text-upper survey
18
+            p.text-upper survey
19 19
     router-link.w-flex.column(:to='`/settings`')
20
-        w-button.pa8.bdrsr.bd1.sh1(bg-color='primary' disabled)
20
+        w-button.pa5.bdrsr.bd1.sh1(bg-color='primary' disabled)
21 21
             w-icon.mr1(xl) mdi mdi-cog
22
-            h3.text-upper settings
22
+            p.text-upper settings
23 23
 </template>
24 24
 
25 25
 <script>
@@ -29,9 +29,3 @@ export default {
29 29
     name: 'MainNav',
30 30
 }
31 31
 </script>
32
-
33
-<style lang="sass">
34
-nav#main-header
35
-    position: absolute
36
-    bottom: 15vh
37
-</style>

+ 9
- 7
frontend/src/views/HomeView.vue Ver fichero

@@ -1,16 +1,18 @@
1 1
 <template lang="pug">
2
-main.view--home(style="display:flex; flex-direction:column; gap: 40px; margin-top: 1em;")
2
+main.view--home(
3
+    style='display: flex; flex-direction: column; gap: 40px; margin-top: 1em'
4
+)
3 5
     h2 Match Queue
4
-    article(v-if="cards.length && !loading")
5
-        ProfileCardList(:profiles="cards" :pid="pid" @reload="getCards")
6
+    article(v-if='cards.length && !loading')
7
+        ProfileCardList(:pid='pid' :profiles='cards' @reload='getCards')
6 8
 
7 9
     p(v-else) Loading...
8 10
 
9 11
     h2 Matches
10
-    article(v-if="matches.length && !loading")
11
-        ProfileCardList(:profiles="matches" :pid="pid" @reload="getCards")
12
-    
13
-    p(v-else-if="matches.length===0") No matches.
12
+    article(v-if='matches.length && !loading')
13
+        ProfileCardList(:pid='pid' :profiles='matches' @reload='getCards')
14
+
15
+    p(v-else-if='matches.length === 0') No matches.
14 16
     p(v-else) Loading...
15 17
 
16 18
     MainNav

+ 2
- 0
frontend/src/wave.js Ver fichero

@@ -19,6 +19,7 @@ import {
19 19
     WSlider,
20 20
     WSpinner,
21 21
     WSteps,
22
+    WToolbar,
22 23
 } from '../node_modules/wave-ui/src/wave-ui/components'
23 24
 
24 25
 export default {
@@ -39,4 +40,5 @@ export default {
39 40
     WSlider,
40 41
     WSpinner,
41 42
     WSteps,
43
+    WToolbar,
42 44
 }

Loading…
Cancelar
Guardar