Skip to content

Commit

Permalink
move label above inputs
Browse files Browse the repository at this point in the history
  • Loading branch information
tannerkrewson committed Apr 14, 2020
1 parent f6c9545 commit a1955ef
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 6 deletions.
4 changes: 4 additions & 0 deletions public/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -68,3 +68,7 @@ input[type="text"] {
.alert {
text-align: left;
}

.input-container {
text-align: left;
}
17 changes: 11 additions & 6 deletions views/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -35,18 +35,23 @@ block content
div#joinmenu.hidden
h4 Join a game
form
.form-group
input#joinincode.form-control(type='text', placeholder='Enter the game code', autocomplete='off')
.form-group
input#joininname.form-control(type='text', placeholder='Enter your name', maxlength=16)
.input-container
label Game Code:
.form-group
input#joinincode.form-control(type='text', placeholder='abcd', autocomplete='off')
label Name:
.form-group
input#joininname.form-control(type='text', placeholder='Use your real name!', maxlength=16)
.btn-toolbar
button#joinmenu-back.btn.btn-default.btn-lg(type='button') Back
button#joinmenu-go.btn.btn-default.btn-lg(type='submit') Join
div#newmenu.hidden
h4 Start a game
form
.form-group
input#newinname.form-control(type='text', placeholder='Enter your name', maxlength=16)
.input-container
label Name:
.form-group
input#newinname.form-control(type='text', placeholder='Use your real name!', maxlength=16)
.btn-toolbar
button#newmenu-back.btn.btn-default.btn-lg(type='button') Back
button#newmenu-go.btn.btn-default.btn-lg(type='submit') Start
Expand Down

0 comments on commit a1955ef

Please sign in to comment.