diff options
author | madelinegr <laura_wilson@brown.edu> | 2019-02-14 00:22:11 -0500 |
---|---|---|
committer | madelinegr <laura_wilson@brown.edu> | 2019-02-14 00:22:11 -0500 |
commit | ff25c29c6801b1858ce6cd15a5735dba1fc67e8c (patch) | |
tree | 12f31374536e4bb79351341191abff6e8a49082b /views | |
parent | bb3ebfa2e3176fdfb648cb7da052e07989fee050 (diff) |
initial signup / login implementation
Diffstat (limited to 'views')
-rw-r--r-- | views/layout.pug | 17 | ||||
-rw-r--r-- | views/signup.pug | 25 |
2 files changed, 42 insertions, 0 deletions
diff --git a/views/layout.pug b/views/layout.pug new file mode 100644 index 000000000..b45a6bd59 --- /dev/null +++ b/views/layout.pug @@ -0,0 +1,17 @@ +doctype html +html(lang='') + head + meta(charset='utf-8') + meta(http-equiv='X-UA-Compatible', content='IE=edge') + meta(name='viewport', content='width=device-width, initial-scale=1.0') + title #{title} - Hackathon Starter + meta(name='description', content='') + meta(name='theme-color' content='#4DA5F4') + meta(name='csrf-token', content=_csrf) + link(rel='shortcut icon', href='/images/favicon.png') + link(rel='stylesheet', href='/css/main.css') + + body + + .container + block content
\ No newline at end of file diff --git a/views/signup.pug b/views/signup.pug new file mode 100644 index 000000000..a23f334af --- /dev/null +++ b/views/signup.pug @@ -0,0 +1,25 @@ + +extends ./layout + +block content + .page-header + h3 Sign up + form.form-horizontal(id='signup-form', method='POST') + input(type='hidden', name='_csrf', value=_csrf) + .form-group + label.col-sm-3.control-label(for='email') Email + .col-sm-7 + input.form-control(type='email', name='email', id='email', placeholder='Email', autofocus, required) + .form-group + label.col-sm-3.control-label(for='password') Password + .col-sm-7 + input.form-control(type='password', name='password', id='password', placeholder='Password', required) + .form-group + label.col-sm-3.control-label(for='confirmPassword') Confirm Password + .col-sm-7 + input.form-control(type='password', name='confirmPassword', id='confirmPassword', placeholder='Confirm Password', required) + .form-group + .col-sm-offset-3.col-sm-7 + button.btn.btn-success(type='submit') + i.fa.fa-user-plus + | Signup
\ No newline at end of file |