Skip to content

Commit

Permalink
Updated color to current board
Browse files Browse the repository at this point in the history
  • Loading branch information
Mstiekema committed Oct 26, 2021
1 parent a0b4f05 commit b81c2a2
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 10 deletions.
1 change: 0 additions & 1 deletion main.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ function createWindow() {
});

win.removeMenu();
// win.webContents.openDevTools();
win.loadFile('src/views/idle/idle.html');

// Switch back to idle if register finished
Expand Down
8 changes: 4 additions & 4 deletions modules/handle_state.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,19 +4,19 @@ module.exports.CardOn = async (win, uuid) => {
await Request('GET', `api/checkout/card?uuid=${uuid}`, null, (err, data, statusCode) => {
if (statusCode == 200) {
// Load the dashboard
win.loadFile(`src/views/base/base.html`, {query: {"uuid": JSON.stringify(uuid)}});
win.loadFile(`src/views/base/base.html`, { query: { "uuid": JSON.stringify(uuid) } });
} else if (statusCode == 404) {
// Show register page if card not found
win.loadFile(`src/views/register/register.html`);
} else if (statusCode == 401) {
// Blocked card
win.loadFile(`src/views/idle/idle.html`, {query: {error: "This card has been blocked. Please add a new card."}});
win.loadFile(`src/views/idle/idle.html`, { query: { error: "This card has been blocked. Please add a new card." } });
} else if (statusCode == 403) {
// Card not yet activitated
win.loadFile(`src/views/idle/idle.html`, {query: {error: "This card has not been activated yet. Please confirm or contact a board member."}});
win.loadFile(`src/views/idle/idle.html`, { query: { error: "This card has not been activated yet. Please confirm or contact a board member." } });
} else {
// Show message that something went wrong
win.loadFile(`src/views/idle/idle.html`, {query: {error: "Something went wrong while reading your card. Please try again later."}});
win.loadFile(`src/views/idle/idle.html`, { query: { error: "Something went wrong while reading your card. Please try again later." } });
}
});
}
Expand Down
4 changes: 2 additions & 2 deletions src/views/base/base.css
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ body {
.menu {
height: 100px;
margin-bottom: 0 !important;
background-color: #fe7215 !important;
background-color: #800816 !important;
}

.menu > span {
Expand Down Expand Up @@ -45,4 +45,4 @@ footer {
width: 100%;
text-align: center;
height: 20px;
}
}
2 changes: 1 addition & 1 deletion src/views/idle/idle.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
background-color: #fe7215;
background-color: #800816;
}

#logo {
Expand Down
4 changes: 2 additions & 2 deletions src/views/register/register.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
body {
background-color: #fe7215;
background-color: #800816;
}
#title {
position: relative;
Expand Down Expand Up @@ -33,4 +33,4 @@ input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
-webkit-appearance: none;
margin: 0;
}
}

0 comments on commit b81c2a2

Please sign in to comment.