Przeglądaj źródła

profilecard text and pairing buttons started TODO add pairing: Boolean to props to create dynamic class for button color based on pair status

tags/0.0.2
K Rob 3 lat temu
rodzic
commit
3d554d51f8

+ 18
- 2
frontend/src/components/PairingButton.vue Wyświetl plik

1
 <template lang="pug">
1
 <template lang="pug">
2
 .pairing-button.w-flex.row
2
 .pairing-button.w-flex.row
3
-    w-button.xs6.mt4.mb4(@click='pass' bg-color='red' color='white' xl)
3
+    w-button.xs6.mt4.mb4.pending(@click='pass' bg-color='red' color='white' xl)
4
         p.pa4.text-upper pass
4
         p.pa4.text-upper pass
5
-    w-button.xs6.mt4.mb4(@click='pair' bg-color='green' color='mint-green' xl)
5
+    w-button.xs6.mt4.mb4.pending(
6
+        @click='pair'
7
+        bg-color='green'
8
+        color='mint-green'
9
+        xl
10
+    )
6
         p.pa4.text-upper pair
11
         p.pa4.text-upper pair
7
 </template>
12
 </template>
8
 
13
 
21
     },
26
     },
22
 }
27
 }
23
 </script>
28
 </script>
29
+
30
+<style lang="sass">
31
+.w-button
32
+    &.pending
33
+        background-color: #4D9127
34
+        min-width: 350px
35
+        width: 100%
36
+        margin: 11px 0
37
+        padding: 7px
38
+        font-size: 1.6em
39
+</style>

+ 9
- 2
frontend/src/components/ProfileCard.vue Wyświetl plik

32
             v-if='!isPaired || isList'
32
             v-if='!isPaired || isList'
33
         )
33
         )
34
 
34
 
35
-    footer
36
-        .pa12(v-if='!isPaired && !isList')
35
+    footer(v-if='!isList && !isPaired')
36
+        .px3
37
             p {{ card.summary.about.tab }}
37
             p {{ card.summary.about.tab }}
38
         PairingButton(@pair='onPair' @pass='onPass' v-if='!isPaired')
38
         PairingButton(@pair='onPair' @pass='onPass' v-if='!isPaired')
39
         w-button.text-upper.xs12.pa6(v-else-if='currentTab != 0')
39
         w-button.text-upper.xs12.pa6(v-else-if='currentTab != 0')
126
     header > .w-button
126
     header > .w-button
127
         background-color: #116006
127
         background-color: #116006
128
         color: #fff
128
         color: #fff
129
+    footer
130
+        margin-bottom: 22px
131
+        p
132
+            font-family: Century Gothic, CenturyGothic, AppleGothic, sans-serif
133
+            margin: 11px auto
134
+            padding: 0 7px
135
+            line-height: 1.619em
129
 </style>
136
 </style>

Ładowanie…
Anuluj
Zapisz