jimmy/events (#6)
Co-authored-by: Jimmy Vargo <james@ayo.tokyo> Reviewed-on: ayo/website#6
This commit is contained in:
parent
83a0903155
commit
e3ddda951f
76 changed files with 564 additions and 1 deletions
200
events/static/app.css
Normal file
200
events/static/app.css
Normal file
|
|
@ -0,0 +1,200 @@
|
|||
* {
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
html {
|
||||
background: #222;
|
||||
color: #fff;
|
||||
font-family: 'Avenir', sans-serif;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
body {
|
||||
margin: 0;
|
||||
margin-bottom: 4rem;
|
||||
}
|
||||
|
||||
p, span, label {
|
||||
margin: 0;
|
||||
font-size: 0.9rem;
|
||||
}
|
||||
|
||||
input[type="text"], input[type="email"] {
|
||||
outline: none;
|
||||
width: 100%;
|
||||
padding: 0.5rem 0.75rem;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
background-color: #ccc;
|
||||
font-family: 'Avenir', sans-serif;
|
||||
}
|
||||
|
||||
input[type="text"]:focus, input[type="email"]:focus {
|
||||
background-color: #fff;
|
||||
}
|
||||
|
||||
select {
|
||||
outline: none;
|
||||
appearance: none;
|
||||
width: 100%;
|
||||
padding: 0.5rem 0.65rem;
|
||||
padding-right: 2rem;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
background: url('caret.svg') calc(100% - 0.65rem) calc(50% - 1px) / 8px no-repeat, #ccc;
|
||||
font-family: 'Avenir', sans-serif;
|
||||
}
|
||||
|
||||
select:focus {
|
||||
background: url('caret.svg') calc(100% - 0.65rem) calc(50% - 1px) / 8px no-repeat, #fff;
|
||||
}
|
||||
|
||||
button {
|
||||
outline: none;
|
||||
padding: 0.5rem 1.25rem;
|
||||
border: 0;
|
||||
border-radius: 4px;
|
||||
color: #fff;
|
||||
background-color: #3663a2;
|
||||
font-family: 'Avenir', sans-serif;
|
||||
font-size: 0.9rem;
|
||||
font-weight: 500;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
||||
button:hover {
|
||||
background-color: #497ec8;
|
||||
}
|
||||
|
||||
.header {
|
||||
width: 100%;
|
||||
height: 200px;
|
||||
margin-bottom: 1rem;
|
||||
object-fit: cover;
|
||||
object-position: 50% 30%;
|
||||
}
|
||||
|
||||
.instructions {
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.questionnaire-content {
|
||||
width: 100%;
|
||||
max-width: 400px;
|
||||
margin: 2rem auto;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
.info {
|
||||
margin: 1.5rem 0;
|
||||
}
|
||||
.info p {
|
||||
margin-bottom: 0.5rem;
|
||||
}
|
||||
|
||||
.question {
|
||||
margin: 3rem 0;
|
||||
}
|
||||
.question p {
|
||||
margin-bottom: 0.5rem;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.row {
|
||||
display: flex;
|
||||
align-items: flex-start;
|
||||
color: #ccc;
|
||||
margin: 0.25rem 0;
|
||||
user-select: none;
|
||||
}
|
||||
.row label {
|
||||
padding-left: 0.25rem;
|
||||
}
|
||||
.row, .row * {
|
||||
cursor: pointer;
|
||||
}
|
||||
.row:hover {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
#other-text {
|
||||
display: none;
|
||||
}
|
||||
|
||||
.required::after {
|
||||
content: '*';
|
||||
color: rgb(245, 84, 84);
|
||||
margin-left: 0.25rem;
|
||||
}
|
||||
|
||||
#error {
|
||||
display: none;
|
||||
width: 100%;
|
||||
padding: 0.75rem 1.25rem;
|
||||
border-radius: 6px;
|
||||
color: #ff6262;
|
||||
background-color: #3d2525;
|
||||
white-space: pre-line;
|
||||
}
|
||||
|
||||
.stats-table {
|
||||
display: grid;
|
||||
grid-template-columns: 1fr 1fr;
|
||||
border-spacing: 1rem;
|
||||
margin: auto;
|
||||
max-width: 720px;
|
||||
}
|
||||
|
||||
.stats-header {
|
||||
margin-top: 2rem;
|
||||
margin-bottom: 1rem;
|
||||
grid-column: 1 / -1;
|
||||
font-size: 1.1rem;
|
||||
}
|
||||
|
||||
.stat-item {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
margin: 1rem;
|
||||
}
|
||||
|
||||
.stat-label {
|
||||
text-align: left;
|
||||
font-size: 0.85rem;
|
||||
font-weight: 300;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
|
||||
.stat-chart {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
margin-right: 1rem;
|
||||
}
|
||||
|
||||
.stat-percent {
|
||||
padding-top: 0.5rem;
|
||||
font-size: 0.75rem;
|
||||
color: #aaa;
|
||||
}
|
||||
|
||||
.stat-other-topics {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
grid-column: 1 / -1;
|
||||
}
|
||||
|
||||
.stat-other-topics p {
|
||||
margin: 0.25rem 0;
|
||||
}
|
||||
|
||||
.pie-chart {
|
||||
--color: #2a74c2;
|
||||
--bg: #3c4452;
|
||||
|
||||
width: 48px;
|
||||
height: 48px;
|
||||
background-color: #555;
|
||||
border-radius: 100%;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue