Skip to content

Commit

Permalink
Merge pull request #278 from wmde/uof-content-colours
Browse files Browse the repository at this point in the history
Set UoF colours using fun content
  • Loading branch information
Abban authored Jan 23, 2024
2 parents b143b24 + 038adee commit 616d279
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 229 deletions.
13 changes: 8 additions & 5 deletions src/components/pages/use_of_funds/FundsDistributionAccordion.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,15 @@
<div v-for="fundsItem in applicationOfFundsData"
:key="fundsItem.id"
:class="[
'funds_distribution_info_item',
'funds_distribution_info_item--' + fundsItem.id,
activeInfo[fundsItem.id] ? 'active' : ''
]"
'funds_distribution_info_item',
activeInfo[fundsItem.id] ? 'active' : ''
]"
>
<div class="funds_distribution_info_item__title" @click="setActive( fundsItem.id )">
<div
class="funds_distribution_info_item__title"
@click="setActive( fundsItem.id )"
:style="{color: fundsItem.colour}"
>
{{ fundsItem.title }} {{ fundsItem.percentage }}%
</div>
<div class="funds_distribution_info_item__text">
Expand Down
56 changes: 0 additions & 56 deletions src/components/pages/use_of_funds/FundsDistributionInfo.vue

This file was deleted.

37 changes: 0 additions & 37 deletions src/scss/use_of_funds/FundsDistributionAccordion.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,43 +50,6 @@
&.active .funds_distribution_info_item__text {
display: block;
}

&--software,
&--infrastructure {
.funds_distribution_info_item__title {
color: #808080;
}
}
&--international {
.funds_distribution_info_item__title {
color: #0ea789;
}
}
&--diversity {
.funds_distribution_info_item__title {
color: #e61eb8;
}
}
&--access {
.funds_distribution_info_item__title {
color: #de8500;
}
}
&--communities {
.funds_distribution_info_item__title {
color: #f24825;
}
}
&--society {
.funds_distribution_info_item__title {
color: #9410ac;
}
}
&--operative {
.funds_distribution_info_item__title {
color: #8ed14f;
}
}
}
}

130 changes: 0 additions & 130 deletions src/scss/use_of_funds/FundsDistributionInfo.scss

This file was deleted.

2 changes: 1 addition & 1 deletion src/view_models/useOfFunds.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
export interface FundsItem {
id: string,
percentage: number,
colour: string,
title: string,
text: string,
}

0 comments on commit 616d279

Please sign in to comment.