Add simple styling to submit page

main
sudoer777 2021-10-04 13:31:22 -06:00
parent 5a39c4983b
commit 6b9841bf82
4 changed files with 66 additions and 23 deletions

View File

@ -1,5 +1,5 @@
body { body {
padding: 50px; padding: 1em;
font: 14px "Lucida Grande", Helvetica, Arial, sans-serif; font: 14px "Lucida Grande", Helvetica, Arial, sans-serif;
} }

View File

@ -1,4 +1,41 @@
h1 {
text-align: center;
}
form { form {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
max-width: 20em;
margin-left: auto;
margin-right: auto;
}
span {
display: flex;
flex-direction: column;
}
#sport-dropdown {
width: 100%;
}
.form-section {
margin-bottom: 0.75em;
}
.form-section-input {
flex-direction: row;
}
input {
width: 100%;
}
.score-input{
width: 35%;
}
button {
margin-top: 1.5em;
} }

View File

@ -6,29 +6,35 @@ block stylesheets
block content block content
h1 Submit Score h1 Submit Score
form(action='/submit', method='POST') form(action='/submit', method='POST')
span span(class='form-section')
label Sport label Sport
select(name="sport") span(class='form-section-input')
select#sport-dropdown(name="sport")
option(value="Football" selected) Football option(value="Football" selected) Football
select(name="gender") select#gender-dropdown(name="gender")
option(value="Male" selected) Male option(value="Male" selected) Male
option(value="Female") Female option(value="Female") Female
select(name="division") select#division-dropdown(name="division")
option(value="Varsity") Varsity option(value="Varsity") Varsity
option(value="JV-A") JV-A option(value="JV-A") JV-A
option(value="JV-B") JV-B option(value="JV-B") JV-B
span span(class='form-section')
label Home Team label Home Team
span(class='form-section-input')
input(type="text", name="home-team") input(type="text", name="home-team")
input(type="number", name="home-team-score", value="0") input(class="score-input", type="number", name="home-team-score", value="0")
span span(class='form-section')
label Visiting Team label Visiting Team
span(class='form-section-input')
input(type="text", name="visiting-team") input(type="text", name="visiting-team")
input(type="number", name="visiting-team-score", value="0") input(class="score-input", type="number", name="visiting-team-score", value="0")
span span(class='form-section')
label Submitter label Submitter
span(class='form-section-input')
input(type="text", name="submitter") input(type="text", name="submitter")
span span(class='form-section')
label Send info to label Send info to
span(class='form-section-input')
input(type="email", name="email", placeholder="email@example.com") input(type="email", name="email", placeholder="email@example.com")
span(class='form-section')
button(type="submit") Submit button(type="submit") Submit

View File

@ -2,7 +2,7 @@ doctype html
html html
head head
title= title title= title
block stylesheets
link(rel='stylesheet', href='/stylesheets/style.css') link(rel='stylesheet', href='/stylesheets/style.css')
block stylesheets
body body
block content block content