tag: "other"
url: "https://www.reddit.com/r/selfhosted/"
target: "_blank" # optionnal html a tag target attribute
+ # colors: # optional custom colors for card
+ # background: #66a5e2
+ # text: #000000
```
If you choose to fetch message information from an endpoint, the output format should be:
<div>
<div class="card">
<a :href="item.url" :target="item.target" rel="noreferrer">
- <div class="card-content">
+ <div
+ class="card-content"
+ :style="(item.colors && item.colors.background) ? {backgroundColor: item.colors.background} : null"
+ >
<div class="media">
<div v-if="item.logo" class="media-left">
<figure class="image is-48x48">
</figure>
</div>
<div class="media-content">
- <p class="title is-4">{{ item.name }}</p>
- <p class="subtitle is-6">{{ item.subtitle }}</p>
+ <p
+ class="title is-4"
+ :style="(item.colors && item.colors.text) ? {color: item.colors.text} : null"
+ >{{ item.name }}</p>
+ <p
+ class="subtitle is-6"
+ :style="(item.colors && item.colors.text) ? {color: item.colors.text} : null"
+ >{{ item.subtitle }}</p>
</div>
</div>
<div class="tag" :class="item.tagstyle" v-if="item.tag">