From 66be772dd19452d762f4c98a3d3f84884e05b7b3 Mon Sep 17 00:00:00 2001 From: Eric Gauzens Date: Mon, 13 May 2024 11:43:24 -0400 Subject: [PATCH] updated styles to reflect most up to date wireframes --- mixins/consortia/index.js | 7 ++++--- pages/about/consortia/[id].vue | 6 +++--- 2 files changed, 7 insertions(+), 6 deletions(-) diff --git a/mixins/consortia/index.js b/mixins/consortia/index.js index 4209fd13..dfc2edf2 100644 --- a/mixins/consortia/index.js +++ b/mixins/consortia/index.js @@ -1,4 +1,4 @@ -import { isEmpty, propOr } from 'ramda' +import { propOr } from 'ramda' export default { data() { return { @@ -18,8 +18,9 @@ export default { return propOr([], 'items', response)[0] }).catch(() => { }) const { firstColor, secondColor, thirdColor } = propOr('', 'fields', consortiaItem) - this.consortiaStyle = isEmpty(thirdColor) ? - { backgroundImage: `linear-gradient(#${firstColor}, #${secondColor}` } : + this.consortiaStyle = thirdColor == undefined && secondColor == undefined ? + { backgroundColor: `#${firstColor}` } : thirdColor == undefined ? + { backgroundImage: `linear-gradient(#${firstColor}, #${secondColor}` } : { backgroundImage: `linear-gradient(#${firstColor}, #${secondColor}, #${thirdColor}` } }, } diff --git a/pages/about/consortia/[id].vue b/pages/about/consortia/[id].vue index 6785116c..2c3070a8 100644 --- a/pages/about/consortia/[id].vue +++ b/pages/about/consortia/[id].vue @@ -6,8 +6,8 @@
- +
@@ -190,7 +190,7 @@ export default { } .row-item { - width: 30%; + width: 49%; display: flex; @media screen and (max-width: 767px) {