]> 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 185d2a7723b099661a378c63b53832ff95b3e66b..4e35b7dc7b9024078fe9f5c84267aef0c4cc6091 100644 (file)
@@ -4,7 +4,7 @@
       <a :href="item.url" :target="item.target" rel="noreferrer">
         <div
           class="card-content"
-          :style="(item.color && item.color.background) ? {backgroundColor: item.color.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.color && item.color.text) ? {color: item.color.text} : null"
+                :class="item.class"
               >{{ item.name }}</p>
               <p
                 class="subtitle is-6"
-                :style="(item.color && item.color.text) ? {color: item.color.text} : null"
+                :class="item.class"
               >{{ item.subtitle }}</p>
             </div>
           </div>