Skip to content

Commit

Permalink
updated styles to reflect most up to date wireframes
Browse files Browse the repository at this point in the history
  • Loading branch information
egauzens committed May 13, 2024
1 parent dea9b5e commit 66be772
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions mixins/consortia/index.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { isEmpty, propOr } from 'ramda'
import { propOr } from 'ramda'
export default {
data() {
return {
Expand All @@ -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}` }
},
}
Expand Down
6 changes: 3 additions & 3 deletions pages/about/consortia/[id].vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
<div class="row mt-32">
<paper class="row-item" :text="parseMarkdown(whoWeAre)" :button-text="whoWeAreButtonText"
:button-link="whoWeAreButtonLink" />
<paper class="row-item" :text="parseMarkdown(whatWeDo)" :button-text="whatWeDoButtonText"
:button-link="whatWeDoButtonLink" />
<!--<paper class="row-item" :text="parseMarkdown(whatWeDo)" :button-text="whatWeDoButtonText"
:button-link="whatWeDoButtonLink" />-->
<paper class="row-item" :text="parseMarkdown(ourResearch)" :button-text="ourResearchButtonText"
:button-link="ourResearchButtonLink" />
</div>
Expand Down Expand Up @@ -190,7 +190,7 @@ export default {
}
.row-item {
width: 30%;
width: 49%;
display: flex;
@media screen and (max-width: 767px) {
Expand Down

0 comments on commit 66be772

Please sign in to comment.