Skip to content

Commit

Permalink
Add kopvollur and blackout
Browse files Browse the repository at this point in the history
  • Loading branch information
sindrig committed Oct 21, 2024
1 parent bbc7a89 commit 52c6428
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 2 deletions.
16 changes: 16 additions & 0 deletions admin/scripts/update-locations.ts
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,22 @@ if (!key || !dbName) {
},
],
},
kopavogsvollur: {
label: "Kópavogsvöllur",
pitchIds: [52],
config: {},
screens: [
{
key: "blix1",
fontSize: "180%",
name: "Skjár",
style: {
height: 306,
width: 510,
},
},
],
},
};

await ref.set(locationConfig);
Expand Down
6 changes: 4 additions & 2 deletions clock/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,14 +49,16 @@ class App extends Component {
}

renderAppContents() {
const { view } = this.props;
const { view, background } = this.props;
switch (view) {
case VIEWS.match:
case VIEWS.control:
return <ScoreBoard />;
case VIEWS.idle:
default:
return <Idle />;
if (background !== "Blackout") {
return <Idle />;
}
}
}

Expand Down
3 changes: 3 additions & 0 deletions clock/src/reducers/view.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,9 @@ export const BACKGROUNDS = {
CL: { backgroundImage: `url(${backgroundCLImage})` },
EuropaLeague: { backgroundImage: `url(${backgroundELImage})` },
Ekkert: {},
Blackout: {
backgroundColor: "black",
},
};

export const getBackground = (key) =>
Expand Down

0 comments on commit 52c6428

Please sign in to comment.