Skip to content

Commit

Permalink
grays out 8 sites that are not open for special election
Browse files Browse the repository at this point in the history
  • Loading branch information
ajrothwell committed Aug 21, 2024
1 parent 387fd3e commit 4f78102
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/dev_push_to_s3.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ name: dev Push to S3
on:
push:
branches:
- main
- dev/gray-out-sites

jobs:
build:
Expand Down
9 changes: 9 additions & 0 deletions src/general/legendControls.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,15 @@ export default {
'font-size': '10px',
'background-color': '#4F6D0A',
},
'Mail-in ballot drop box (not open for special election)': {
'border-color': 'black',
'border-style': 'solid',
'border-weight': '0px',
'width': '15px',
'height': '15px',
'font-size': '10px',
'background-color': '#a1a1a1',
},
'Official mobile mail-in ballot return': {
'border-color': 'black',
'border-style': 'solid',
Expand Down
9 changes: 8 additions & 1 deletion src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,8 @@ import pinboard from '@phila/pinboard/src/main.js';
import legendControls from './general/legendControls';

// data-sources
import votingSites from './data-sources/voting-sites';
// import votingSites from './data-sources/voting-sites';
import votingSites from './data-sources/voting-sites-dev';

import expandCollapseContent from './components/ExpandCollapseContent.vue';
import customGreeting from './components/customGreeting.vue';
Expand Down Expand Up @@ -105,6 +106,11 @@ pinboard({
},
},
customComps,
hiddenRefine: {
Type: function(item) {
return item.site_type !== 'Official mobile mail-in ballot return';
},
},
refine: {
type: 'categoryField_value',
value: function(item) {
Expand Down Expand Up @@ -140,6 +146,7 @@ pinboard({
'Election office': '#a86518',
'Official mobile mail-in ballot return': '#721817',
'Official mail-in ballot drop box': '#4F6D0A',
'Mail-in ballot drop box (not open for special election)': '#a1a1a1',
},
borderColor: 'white',
weight: 1,
Expand Down

0 comments on commit 4f78102

Please sign in to comment.