]> git.immae.eu Git - github/bastienwirtz/homer.git/blobdiff - src/components/Service.vue
Rewrite custom card colors to use custom CSS classes instead of styles
[github/bastienwirtz/homer.git] / src / components / Service.vue
index 1766af648c7bdbf25c99cdf4febc341a531459ff..4e35b7dc7b9024078fe9f5c84267aef0c4cc6091 100644 (file)
@@ -4,7 +4,7 @@
       <a :href="item.url" :target="item.target" rel="noreferrer">
         <div
           class="card-content"
-          :style="(item.colors && item.colors.background) ? {backgroundColor: item.colors.background} : null"
+          :class="item.class"
         >
           <div class="media">
             <div v-if="item.logo" class="media-left">
             <div class="media-content">
               <p
                 class="title is-4"
-                :style="(item.colors && item.colors.text) ? {color: item.colors.text} : null"
+                :class="item.class"
               >{{ item.name }}</p>
               <p
                 class="subtitle is-6"
-                :style="(item.colors && item.colors.text) ? {color: item.colors.text} : null"
+                :class="item.class"
               >{{ item.subtitle }}</p>
             </div>
           </div>