Explorar el Código

:recycle: incorporated Wave Card and Drawer components to home screen

tags/0.0.1^2
juancarbajal98 hace 3 años
padre
commit
e8d9dd5fb3

+ 1
- 1
frontend/src/App.vue Ver fichero

1
 <template lang="pug">
1
 <template lang="pug">
2
-w-app(style="display:flex; flex-direction:row-reverse; gap: 40px; justify-content: flex-end;")
2
+w-app(style="margin:12px;")
3
     //- w-drawer(v-model="openDrawer")
3
     //- w-drawer(v-model="openDrawer")
4
     //- w-flex.my12(:gap="3" align-center wrap)
4
     //- w-flex.my12(:gap="3" align-center wrap)
5
     //-     w-button.ma1(@click="$waveui.notify('Information.')" bg-color="info") Notify info
5
     //-     w-button.ma1(@click="$waveui.notify('Information.')" bg-color="info") Notify info

+ 8
- 3
frontend/src/components/ProfileCardList.vue Ver fichero

1
 <template lang="pug">
1
 <template lang="pug">
2
-section.profile-card-list
2
+section.profile-card-list(:style="{'display': 'flex'}")
3
     .swipe(
3
     .swipe(
4
         v-if="!isGrid"
4
         v-if="!isGrid"
5
         :config="config"
5
         :config="config"
8
         v-for="(profile, i) in loadedProfiles"
8
         v-for="(profile, i) in loadedProfiles"
9
         :style="{ 'z-index': 1000-i }"
9
         :style="{ 'z-index': 1000-i }"
10
     )
10
     )
11
-        .card.randomize(
12
-            :style="{ 'background-image': `url(${profile.avatar})`, 'top': `${randomize(10)}px`, 'right': `${randomize(20)}px`, 'transform': `rotate(${randomize(7)}deg)` }"
11
+
12
+        //- .card.randomize(
13
+        //-     :style="{ 'background-image': `url(${profile.avatar})`, 'top': `${randomize(10)}px`, 'right': `${randomize(20)}px`, 'transform': `rotate(${randomize(7)}deg)` }"
14
+        //- )
15
+        w-card.card.randomize(
16
+            :image="`${profile.avatar}`"
17
+            :style="{'top': `${randomize(10)}px`, 'right': `${randomize(20)}px`, 'transform': `rotate(${randomize(7)}deg)`}"
13
         )
18
         )
14
             .card--content
19
             .card--content
15
                 p(style="color: magenta;") profile: {{ profile.pid }}
20
                 p(style="color: magenta;") profile: {{ profile.pid }}

+ 2
- 2
frontend/src/main.js Ver fichero

28
 
28
 
29
 const run = entry => {
29
 const run = entry => {
30
     const siimee = createApp(App)
30
     const siimee = createApp(App)
31
-    // siimee.use(WaveUI, { components })
32
-    // new WaveUI(siimee)
31
+    siimee.use(WaveUI, { components })
32
+    new WaveUI(siimee)
33
 
33
 
34
     siimee.use(router)
34
     siimee.use(router)
35
     siimee.component('MainNav', MainNav)
35
     siimee.component('MainNav', MainNav)

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

1
 <template lang="pug">
1
 <template lang="pug">
2
-main(class="view--home"  style="display:flex; flex-direction:row; gap: 40px")
3
-    div
2
+main.view--home(style="display:flex; flex-direction:column; gap: 40px")
3
+    div.view--nav(style="display: flex; justify-content: space-between;")
4
         header
4
         header
5
             h2 home - profile: {{ pid }}
5
             h2 home - profile: {{ pid }}
6
+        w-drawer(v-model="openDrawer")
7
+        w-button(@click="openDrawer = true" outline="")
8
+            | Active Chats
6
   
9
   
7
-        article(v-if="cards.length && !loading")
8
-            ProfileCardList(:profiles="cards" :pid="pid" @reload="getCards")
9
-  
10
-        p(v-else) Loading...
10
+    h2 Match Queue
11
+    article(v-if="cards.length && !loading")
12
+        ProfileCardList(:profiles="cards" :pid="pid" @reload="getCards")
11
 
13
 
12
-    MainNav(@show-sidebar="$emit('show-sidebar')")
14
+    p(v-else) Loading...
13
 
15
 
16
+    h2 Matches
14
     article(v-if="matches.length && !loading")
17
     article(v-if="matches.length && !loading")
15
         ProfileCardList(:profiles="matches" :pid="pid" @reload="getCards")
18
         ProfileCardList(:profiles="matches" :pid="pid" @reload="getCards")
16
     
19
     
59
     name: 'HomeView',
62
     name: 'HomeView',
60
     components: { ProfileCardList },
63
     components: { ProfileCardList },
61
     mixins: [mixins.pidMixin, mixins.cardMixin],
64
     mixins: [mixins.pidMixin, mixins.cardMixin],
65
+    data: () => ({
66
+        openDrawer: false,
67
+    }),
62
     methods: {
68
     methods: {
63
         /** Gets called from cardMixin */
69
         /** Gets called from cardMixin */
64
         async getCards() {
70
         async getCards() {

Loading…
Cancelar
Guardar