aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--docs/configuration.md3
-rw-r--r--src/components/Service.vue15
2 files changed, 15 insertions, 3 deletions
diff --git a/docs/configuration.md b/docs/configuration.md
index edcf1ed..a8c0619 100644
--- a/docs/configuration.md
+++ b/docs/configuration.md
@@ -111,6 +111,9 @@ services:
111 tag: "other" 111 tag: "other"
112 url: "https://www.reddit.com/r/selfhosted/" 112 url: "https://www.reddit.com/r/selfhosted/"
113 target: "_blank" # optionnal html a tag target attribute 113 target: "_blank" # optionnal html a tag target attribute
114 # colors: # optional custom colors for card
115 # background: #66a5e2
116 # text: #000000
114``` 117```
115 118
116If you choose to fetch message information from an endpoint, the output format should be: 119If you choose to fetch message information from an endpoint, the output format should be:
diff --git a/src/components/Service.vue b/src/components/Service.vue
index 88e6e69..1766af6 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.colors && item.colors.background) ? {backgroundColor: item.colors.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.colors && item.colors.text) ? {color: item.colors.text} : null"
24 >{{ item.name }}</p>
25 <p
26 class="subtitle is-6"
27 :style="(item.colors && item.colors.text) ? {color: item.colors.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">