From ff25c29c6801b1858ce6cd15a5735dba1fc67e8c Mon Sep 17 00:00:00 2001 From: madelinegr Date: Thu, 14 Feb 2019 00:22:11 -0500 Subject: initial signup / login implementation --- views/layout.pug | 17 +++++++++++++++++ views/signup.pug | 25 +++++++++++++++++++++++++ 2 files changed, 42 insertions(+) create mode 100644 views/layout.pug create mode 100644 views/signup.pug (limited to 'views') 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 -- cgit v1.2.3-70-g09d2