Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Design #2

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions src/App.css
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
body {
padding: 0;
/* color: black;
background-color: white; */

}

.App {
Expand Down
7 changes: 7 additions & 0 deletions src/components/About.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,13 @@
border-bottom: 3px dashed #000000;
}

@media (prefers-color-scheme: dark) {
.aboutSection {
border-top: 3px dashed #ffffff;
border-bottom: 3px dashed #ffffff;
}
}

.aboutContainer {
width: 50%;
margin: auto;
Expand Down
6 changes: 6 additions & 0 deletions src/components/Header.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,12 @@ header {
border-bottom: 3px solid #000000;
}

@media (prefers-color-scheme: dark) {
header {
border-bottom: 3px solid #ffffff;
}
}

header.showLinks {
background: rgba(185, 71, 167, 0.5);
}
Expand Down
18 changes: 18 additions & 0 deletions src/components/LocationCard.css
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,24 @@
color: #FFFFFF;
}

@media (prefers-color-scheme: dark) {
.locationCard {
background-color: #B947A7;
;
border-color: #ffffff;
}

.locationCard.grey {
background-color: #541445;
;
}

.locationCard.black {
background-color: #332A32;
color: #FFFFFF;
}
}

.locationCard.hideCard {
height: 0;
visibility: hidden;
Expand Down
13 changes: 13 additions & 0 deletions src/components/SearchBar.css
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,17 @@
}
}

@media (prefers-color-scheme: dark) {
.searchBar {
border: 3px solid #ffffff;
}
.searchInputContainer input {
border: none;
background-color: #000000;
color: #ffffff;
}
}

.searchIconContainer {
padding: 1em;
}
Expand All @@ -26,6 +37,8 @@

.searchInputContainer input {
border: none;
height: 2.7em;
width: 20em;
}
.searchInputContainer input:focus {
outline: none;
Expand Down
2 changes: 1 addition & 1 deletion src/components/WaitTimes.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ class WaitTimes extends React.Component {
}
);
}

let locationCards = [];
locationTimeMap.forEach((value, key) => {
locationCards.push(<LocationCard key={key} location={key} time={value['waitTime']} lastReported={value['reportedTime']} backgroundColor={value['backgroundColor']}/>)
Expand Down