aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components
diff options
context:
space:
mode:
authorTom Pansino <2768420+tpansino@users.noreply.github.com>2020-08-09 23:03:00 -0700
committerTom Pansino <2768420+tpansino@users.noreply.github.com>2020-08-09 23:03:00 -0700
commit687a9e4086ea57e2e614e453ef959263f89ba0a7 (patch)
tree9645ed83810cdba49dabb9c935638fc299544a15 /src/components
parent154e6efe8036dca91b1bfe9c4fb22ef227df5858 (diff)
downloadhomer-687a9e4086ea57e2e614e453ef959263f89ba0a7.tar.gz
homer-687a9e4086ea57e2e614e453ef959263f89ba0a7.tar.zst
homer-687a9e4086ea57e2e614e453ef959263f89ba0a7.zip
Add support for custom card colors
Diffstat (limited to 'src/components')
-rw-r--r--src/components/Service.vue15
1 files changed, 12 insertions, 3 deletions
diff --git a/src/components/Service.vue b/src/components/Service.vue
index 88e6e69..185d2a7 100644
--- a/src/components/Service.vue
+++ b/src/components/Service.vue
@@ -2,7 +2,10 @@
2 <div> 2 <div>
3 <div class="card"> 3 <div class="card">
4 <a :href="item.url" :target="item.target" rel="noreferrer"> 4 <a :href="item.url" :target="item.target" rel="noreferrer">
5 <div class="card-content"> 5 <div
6 class="card-content"
7 :style="(item.color && item.color.background) ? {backgroundColor: item.color.background} : null"
8 >
6 <div class="media"> 9 <div class="media">
7 <div v-if="item.logo" class="media-left"> 10 <div v-if="item.logo" class="media-left">
8 <figure class="image is-48x48"> 11 <figure class="image is-48x48">
@@ -15,8 +18,14 @@
15 </figure> 18 </figure>
16 </div> 19 </div>
17 <div class="media-content"> 20 <div class="media-content">
18 <p class="title is-4">{{ item.name }}</p> 21 <p
19 <p class="subtitle is-6">{{ item.subtitle }}</p> 22 class="title is-4"
23 :style="(item.color && item.color.text) ? {color: item.color.text} : null"
24 >{{ item.name }}</p>
25 <p
26 class="subtitle is-6"
27 :style="(item.color && item.color.text) ? {color: item.color.text} : null"
28 >{{ item.subtitle }}</p>
20 </div> 29 </div>
21 </div> 30 </div>
22 <div class="tag" :class="item.tagstyle" v-if="item.tag"> 31 <div class="tag" :class="item.tagstyle" v-if="item.tag">