-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
0 parents
commit f20235c
Showing
39 changed files
with
7,529 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
root = true | ||
|
||
[*] | ||
indent_style = space | ||
indent_size = 2 | ||
end_of_line = lf | ||
charset = utf-8 | ||
trim_trailing_whitespace = true | ||
insert_final_newline = true | ||
|
||
[*.md] | ||
trim_trailing_whitespace = false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# See https://help.github.com/ignore-files/ for more about ignoring files. | ||
|
||
# dependencies | ||
/node_modules | ||
|
||
# testing | ||
/coverage | ||
|
||
# production | ||
/build | ||
|
||
# misc | ||
.DS_Store | ||
.env | ||
npm-debug.log* | ||
yarn-debug.log* | ||
yarn-error.log* | ||
|
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{ | ||
"name": "frontend", | ||
"version": "0.1.0", | ||
"private": true, | ||
"devDependencies": { | ||
"react-scripts": "0.9.3" | ||
}, | ||
"dependencies": { | ||
"react": "^15.4.2", | ||
"react-dom": "^15.4.2" | ||
}, | ||
"scripts": { | ||
"start": "react-scripts start", | ||
"build": "react-scripts build", | ||
"test": "react-scripts test --env=jsdom", | ||
"eject": "react-scripts eject" | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig> |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<link rel="apple-touch-icon" sizes="57x57" href="/apple-icon-57x57.png"> | ||
<link rel="apple-touch-icon" sizes="60x60" href="/apple-icon-60x60.png"> | ||
<link rel="apple-touch-icon" sizes="72x72" href="/apple-icon-72x72.png"> | ||
<link rel="apple-touch-icon" sizes="76x76" href="/apple-icon-76x76.png"> | ||
<link rel="apple-touch-icon" sizes="114x114" href="/apple-icon-114x114.png"> | ||
<link rel="apple-touch-icon" sizes="120x120" href="/apple-icon-120x120.png"> | ||
<link rel="apple-touch-icon" sizes="144x144" href="/apple-icon-144x144.png"> | ||
<link rel="apple-touch-icon" sizes="152x152" href="/apple-icon-152x152.png"> | ||
<link rel="apple-touch-icon" sizes="180x180" href="/apple-icon-180x180.png"> | ||
<link rel="icon" type="image/png" sizes="192x192" href="/android-icon-192x192.png"> | ||
<link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png"> | ||
<link rel="icon" type="image/png" sizes="96x96" href="/favicon-96x96.png"> | ||
<link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png"> | ||
<link rel="manifest" href="/manifest.json"> | ||
<meta name="msapplication-TileColor" content="#ffffff"> | ||
<meta name="msapplication-TileImage" content="/ms-icon-144x144.png"> | ||
<meta name="theme-color" content="#ffffff"> | ||
<!-- | ||
Notice the use of %PUBLIC_URL% in the tag above. | ||
It will be replaced with the URL of the `public` folder during the build. | ||
Only files inside the `public` folder can be referenced from the HTML. | ||
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will | ||
work correctly both with client-side routing and a non-root public URL. | ||
Learn how to configure a non-root public URL by running `npm run build`. | ||
--> | ||
<title>coalitiemaker</title> | ||
<link href="https://fonts.googleapis.com/css?family=Roboto+Condensed" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div id="root"></div> | ||
<!-- | ||
This HTML file is a template. | ||
If you open it directly in the browser, you will see an empty page. | ||
You can add webfonts, meta tags, or analytics to this file. | ||
The build step will place the bundled scripts into the <body> tag. | ||
To begin the development, run `npm start`. | ||
To create a production bundle, use `npm run build`. | ||
--> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
{ | ||
"name": "App", | ||
"icons": [ | ||
{ | ||
"src": "\/android-icon-36x36.png", | ||
"sizes": "36x36", | ||
"type": "image\/png", | ||
"density": "0.75" | ||
}, | ||
{ | ||
"src": "\/android-icon-48x48.png", | ||
"sizes": "48x48", | ||
"type": "image\/png", | ||
"density": "1.0" | ||
}, | ||
{ | ||
"src": "\/android-icon-72x72.png", | ||
"sizes": "72x72", | ||
"type": "image\/png", | ||
"density": "1.5" | ||
}, | ||
{ | ||
"src": "\/android-icon-96x96.png", | ||
"sizes": "96x96", | ||
"type": "image\/png", | ||
"density": "2.0" | ||
}, | ||
{ | ||
"src": "\/android-icon-144x144.png", | ||
"sizes": "144x144", | ||
"type": "image\/png", | ||
"density": "3.0" | ||
}, | ||
{ | ||
"src": "\/android-icon-192x192.png", | ||
"sizes": "192x192", | ||
"type": "image\/png", | ||
"density": "4.0" | ||
} | ||
] | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,193 @@ | ||
.App { | ||
padding: 2em; | ||
} | ||
|
||
h1 { | ||
padding: 1em; | ||
} | ||
|
||
.parties, | ||
.seats { | ||
display: flex; | ||
align-items: flex-start; | ||
max-width: 1024px; | ||
margin: 0 auto; | ||
} | ||
|
||
.seats { | ||
border: 1px solid #eee; | ||
padding-bottom: 1em; | ||
} | ||
|
||
.seats-group { | ||
display: flex; | ||
flex-wrap: wrap; | ||
justify-content: flex-end; | ||
width: 50%; | ||
padding: 2em 2em; | ||
} | ||
|
||
.seats-group + .seats-group { | ||
justify-content: flex-start; | ||
} | ||
|
||
.seat { | ||
display: block; | ||
width: 20px; | ||
height: 20px; | ||
cursor: pointer; | ||
animation: plop .2s; | ||
animation-fill-mode: backwards; | ||
position: relative; | ||
padding: 0; | ||
border: none; | ||
background: transparent; | ||
} | ||
|
||
.seat-color { | ||
display: block; | ||
width: 15px; | ||
height: 15px; | ||
box-sizing: border-box; | ||
position: absolute; | ||
margin-top: -10px; | ||
margin-left: -10px; | ||
top: 50%; | ||
left: 50%; | ||
border-radius: 10%; | ||
} | ||
|
||
.seat.hovered .seat-color { | ||
transform: scale(0.7); | ||
} | ||
|
||
.seat:focus { | ||
outline: none; | ||
} | ||
|
||
.seat:disabled { | ||
cursor: default; | ||
animation: none; | ||
} | ||
|
||
.party-group { | ||
display: flex; | ||
width: 50%; | ||
flex-direction: column; | ||
justify-content: center; | ||
align-items: center; | ||
border: 1px solid #eee; | ||
padding: 2em; | ||
margin: -2em 1em 2em; | ||
background: #fff; | ||
} | ||
|
||
.party-group-empty { | ||
opacity: 0.2; | ||
} | ||
|
||
.party { | ||
display: block; | ||
line-height: 2em; | ||
border: 1px solid transparent; | ||
white-space: nowrap; | ||
padding: .25em 0; | ||
} | ||
|
||
.party.hovered, | ||
.party:hover { | ||
cursor: pointer; | ||
border: 1px solid #eee; | ||
border-radius: 3px; | ||
box-shadow: 0 10px 10px #fafafa; | ||
} | ||
|
||
.party-color { | ||
display: inline-block; | ||
width: 15px; | ||
height: 15px; | ||
vertical-align: middle; | ||
margin: -2px 10px 0; | ||
border-radius: 10%; | ||
position: relative; | ||
} | ||
|
||
.party.hovered .party-color:after, | ||
.party:hover .party-color:after { | ||
content: "+"; | ||
display: block; | ||
width: 15px; | ||
position: absolute; | ||
left: 0; | ||
top: 0; | ||
color: #fff; | ||
text-align: center; | ||
line-height: 15.5px; | ||
text-indent: 2px; | ||
} | ||
|
||
.party-group-active .party.hovered .party-color:after, | ||
.party-group-active .party:hover .party-color:after { | ||
content: "×"; | ||
} | ||
|
||
.party-seats { | ||
opacity: 0.5; | ||
font-size: .8em; | ||
margin: 0 10px; | ||
} | ||
|
||
.party-total { | ||
display: block; | ||
width: 100%; | ||
text-align: center; | ||
font-size: 1.5em; | ||
padding-top: .5em; | ||
margin-top: .5em; | ||
border-top: 1px solid #ddd; | ||
font-weight: bold; | ||
color: #666; | ||
} | ||
|
||
@keyframes plop { | ||
0% { | ||
transform: scale(0); | ||
} | ||
100% { | ||
transform: scale(1); | ||
} | ||
} | ||
|
||
@media (max-width: 700px) { | ||
h1 { | ||
text-align: center; | ||
} | ||
.App { | ||
padding: 0; | ||
} | ||
.seats { | ||
padding: 0; | ||
border: none; | ||
box-shadow: none; | ||
flex-direction: column; | ||
} | ||
.seats-group { | ||
width: auto; | ||
padding: .5em; | ||
justify-content: center; | ||
} | ||
.seats-group + .seats-group { | ||
justify-content: center; | ||
} | ||
.parties { | ||
flex-direction: column-reverse; | ||
align-items: center; | ||
} | ||
.party-group { | ||
width: auto; | ||
margin: 0; | ||
padding: 20px 0; | ||
border: none; | ||
box-shadow: none; | ||
} | ||
} |
Oops, something went wrong.