diff options
author | Bastien Wirtz <bastien.wirtz@gmail.com> | 2020-10-23 18:29:14 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-10-23 18:29:14 -0700 |
commit | 13071ae3d1457bd677665769e83535a3d1f94b14 (patch) | |
tree | d4137914a4bf76bd60ff4af940dc0fd33fee04f1 /src/components/services/Generic.vue | |
parent | 37dfd2a132d883482b330b22a7c19d86948a391c (diff) | |
parent | 5b727eee020b9d734f60fd37f840ea47f83fb23e (diff) | |
download | homer-13071ae3d1457bd677665769e83535a3d1f94b14.tar.gz homer-13071ae3d1457bd677665769e83535a3d1f94b14.tar.zst homer-13071ae3d1457bd677665769e83535a3d1f94b14.zip |
Merge pull request #140 from Genymobile/dynamic-services
Custom service components
Diffstat (limited to 'src/components/services/Generic.vue')
-rw-r--r-- | src/components/services/Generic.vue | 56 |
1 files changed, 56 insertions, 0 deletions
diff --git a/src/components/services/Generic.vue b/src/components/services/Generic.vue new file mode 100644 index 0000000..f19ee18 --- /dev/null +++ b/src/components/services/Generic.vue | |||
@@ -0,0 +1,56 @@ | |||
1 | <script> | ||
2 | export default {}; | ||
3 | </script> | ||
4 | |||
5 | <style></style> */ | ||
6 | |||
7 | <script> | ||
8 | export default {}; | ||
9 | </script> | ||
10 | |||
11 | <style></style> | ||
12 | |||
13 | <template> | ||
14 | <div> | ||
15 | <div class="card" :class="item.class"> | ||
16 | <a :href="item.url" :target="item.target" rel="noreferrer"> | ||
17 | <div class="card-content"> | ||
18 | <div class="media"> | ||
19 | <div v-if="item.logo" class="media-left"> | ||
20 | <figure class="image is-48x48"> | ||
21 | <img :src="item.logo" :alt="`${item.name} logo`" /> | ||
22 | </figure> | ||
23 | </div> | ||
24 | <div v-if="item.icon" class="media-left"> | ||
25 | <figure class="image is-48x48"> | ||
26 | <i style="font-size: 35px;" :class="['fa-fw', item.icon]"></i> | ||
27 | </figure> | ||
28 | </div> | ||
29 | <div class="media-content"> | ||
30 | <p class="title is-4">{{ item.name }}</p> | ||
31 | <p class="subtitle is-6">{{ item.subtitle }}</p> | ||
32 | </div> | ||
33 | </div> | ||
34 | <div class="tag" :class="item.tagstyle" v-if="item.tag"> | ||
35 | <strong class="tag-text">#{{ item.tag }}</strong> | ||
36 | </div> | ||
37 | </div> | ||
38 | </a> | ||
39 | </div> | ||
40 | </div> | ||
41 | </template> | ||
42 | |||
43 | <script> | ||
44 | export default { | ||
45 | name: "Generic", | ||
46 | props: { | ||
47 | item: Object, | ||
48 | }, | ||
49 | }; | ||
50 | </script> | ||
51 | |||
52 | <style scoped lang="scss"> | ||
53 | .media-left img { | ||
54 | max-height: 100%; | ||
55 | } | ||
56 | </style> | ||