4
4
<btn inverse @click.prevent =" create" >Add a skill</btn >
5
5
</pagebar >
6
6
7
+ <list-item class =" skills__list" >
8
+ <card
9
+ v-for =" skill in skills"
10
+ :key =" skill.id"
11
+ class =" skills__item"
12
+ :to =" { name: 'skill', params: { id: skill.id } }"
13
+ :title =" skill.name"
14
+ :subtitle =" skill.description"
15
+ >
16
+ {{skill.intents.length}} intent{{skill.intents.length > 1 ? 's' : ''}}
17
+ </card >
18
+ </list-item >
19
+
7
20
<blankslate v-if =" skills.length === 0" title =" No skill yet!" >
8
21
Looks like you do not have any skill yet! Go ahead and create one!
9
22
</blankslate >
22
35
<script >
23
36
import { mapGetters } from ' vuex' ;
24
37
38
+ import ListItem from ' ./../animations/ListItem.vue' ;
39
+
25
40
import Pagebar from ' ./../components/Pagebar.vue' ;
41
+ import Card from ' ./../components/Card.vue' ;
26
42
import Blankslate from ' ./../components/Blankslate.vue' ;
27
43
import Textinput from ' ./../components/Textinput.vue' ;
28
44
import Btn from ' ./../components/Btn.vue' ;
@@ -31,7 +47,7 @@ import { actions } from './../store/agents';
31
47
32
48
export default {
33
49
name: ' Skills' ,
34
- components: { Pagebar, Btn, Blankslate, Modal, Textinput },
50
+ components: { Pagebar, Btn, Blankslate, Modal, Textinput, Card, ListItem },
35
51
data () {
36
52
return {
37
53
skillModal: false ,
@@ -60,5 +76,21 @@ export default {
60
76
.skills {
61
77
@include col ($x : stretch , $y : flex-start );
62
78
flex : 1 ;
79
+
80
+ & __list {
81
+ @include row ($gap : 27px );
82
+ }
83
+
84
+ & __item {
85
+ @include cell (1 , $grow : 0 );
86
+
87
+ @include on (tablet) {
88
+ @include cell (1 / 3 , $grow : 0 );
89
+ }
90
+
91
+ @include on (desktop) {
92
+ @include cell (1 / 4 , $grow : 0 );
93
+ }
94
+ }
63
95
}
64
96
</style >
0 commit comments