From 687a9e4086ea57e2e614e453ef959263f89ba0a7 Mon Sep 17 00:00:00 2001
From: Tom Pansino <2768420+tpansino@users.noreply.github.com>
Date: Sun, 9 Aug 2020 23:03:00 -0700
Subject: Add support for custom card colors

---
 src/components/Service.vue | 15 ++++++++++++---
 1 file changed, 12 insertions(+), 3 deletions(-)

(limited to 'src/components/Service.vue')

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 @@
   <div>
     <div class="card">
       <a :href="item.url" :target="item.target" rel="noreferrer">
-        <div class="card-content">
+        <div
+          class="card-content"
+          :style="(item.color && item.color.background) ? {backgroundColor: item.color.background} : null"
+        >
           <div class="media">
             <div v-if="item.logo" class="media-left">
               <figure class="image is-48x48">
@@ -15,8 +18,14 @@
               </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.color && item.color.text) ? {color: item.color.text} : null"
+              >{{ item.name }}</p>
+              <p
+                class="subtitle is-6"
+                :style="(item.color && item.color.text) ? {color: item.color.text} : null"
+              >{{ item.subtitle }}</p>
             </div>
           </div>
           <div class="tag" :class="item.tagstyle" v-if="item.tag">
-- 
cgit v1.2.3


From 118d3e5ac0077edcf114fe1a052eb8e8e800fb81 Mon Sep 17 00:00:00 2001
From: Tom Pansino <2768420+tpansino@users.noreply.github.com>
Date: Mon, 10 Aug 2020 17:25:43 -0700
Subject: Rename color: to colors:

---
 src/components/Service.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/Service.vue')

diff --git a/src/components/Service.vue b/src/components/Service.vue
index 185d2a7..1766af6 100644
--- a/src/components/Service.vue
+++ b/src/components/Service.vue
@@ -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"
+          :style="(item.colors && item.colors.background) ? {backgroundColor: item.colors.background} : null"
         >
           <div class="media">
             <div v-if="item.logo" class="media-left">
@@ -20,11 +20,11 @@
             <div class="media-content">
               <p
                 class="title is-4"
-                :style="(item.color && item.color.text) ? {color: item.color.text} : null"
+                :style="(item.colors && item.colors.text) ? {color: item.colors.text} : null"
               >{{ item.name }}</p>
               <p
                 class="subtitle is-6"
-                :style="(item.color && item.color.text) ? {color: item.color.text} : null"
+                :style="(item.colors && item.colors.text) ? {color: item.colors.text} : null"
               >{{ item.subtitle }}</p>
             </div>
           </div>
-- 
cgit v1.2.3


From e9afa4d7dd68e43bafcc4fd75c01bbaf0e6401ce Mon Sep 17 00:00:00 2001
From: Tom Pansino <2768420+tpansino@users.noreply.github.com>
Date: Wed, 2 Sep 2020 00:34:37 -0700
Subject: Rewrite custom card colors to use custom CSS classes instead of
 styles

---
 src/components/Service.vue | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

(limited to 'src/components/Service.vue')

diff --git a/src/components/Service.vue b/src/components/Service.vue
index 1766af6..4e35b7d 100644
--- a/src/components/Service.vue
+++ b/src/components/Service.vue
@@ -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">
@@ -20,11 +20,11 @@
             <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>
-- 
cgit v1.2.3

