Signup page now has a similar design as login page
This commit is contained in:
@@ -20,6 +20,7 @@ passport.deserializeUser(function(id, done) {
|
||||
passport.use(new LocalStrategy({
|
||||
usernameField: 'usernameEmail'
|
||||
},
|
||||
// TODO: findOne by email or username
|
||||
function(email, password, done) {
|
||||
User.findOne({ email: email }, function(err, user) {
|
||||
if (err) return done(err);
|
||||
|
||||
@@ -60,6 +60,11 @@ a {
|
||||
}
|
||||
|
||||
|
||||
// Alerts ======================================================================
|
||||
.alert {
|
||||
border-radius: 0px;
|
||||
}
|
||||
|
||||
// Buttons ====================================================================
|
||||
.btn {
|
||||
font-weight: 300;
|
||||
@@ -330,6 +335,10 @@ input[type="radio"]:checked + span:after {
|
||||
left: 50%;
|
||||
margin: -190px 0 15px -190px;
|
||||
|
||||
&.signup {
|
||||
height: 430px;
|
||||
margin-top: -215px;
|
||||
}
|
||||
.form-group {
|
||||
position: relative;
|
||||
margin-bottom: 0;
|
||||
|
||||
@@ -3,7 +3,7 @@ extends layout
|
||||
block content
|
||||
.panel.panel-default
|
||||
.panel-heading
|
||||
i.fa.fa-envelope
|
||||
i.fa.fa-envelope-o
|
||||
| Contact Form
|
||||
.panel-body
|
||||
form.form-horizontal(role='form', method='POST')
|
||||
@@ -15,12 +15,10 @@ block content
|
||||
label(class='col-sm-2 control-label', for='contactBody') Body
|
||||
.col-sm-10
|
||||
textarea.form-control(type='text', name='contactBody', id='contactBody', rows='7')
|
||||
p.help-block Powered by SendGrid
|
||||
.form-group
|
||||
.col-sm-offset-2.col-sm-10
|
||||
button.btn.btn-primary(type='submit')
|
||||
i.fa.fa-location-arrow
|
||||
| Send
|
||||
button.btn.btn-link(disabled='') Powered by SendGrid
|
||||
button.btn.btn-primary(type='submit') Send
|
||||
|
||||
if error.length
|
||||
.alert.alert-danger
|
||||
|
||||
@@ -1,28 +1,46 @@
|
||||
extends layout
|
||||
|
||||
block content
|
||||
.main
|
||||
h3 Signup Form
|
||||
form(role='form', method='POST')
|
||||
if messages.length
|
||||
.alert.alert-danger
|
||||
strong= messages
|
||||
.login-container.signup
|
||||
h3.text-center
|
||||
span.text-primary PROJECT
|
||||
span.text-muted NAME
|
||||
form(method='POST')
|
||||
.form-group
|
||||
.row
|
||||
.col-xs-6.col-sm-6.col-md-6
|
||||
label.control-label(for='firstName') First Name
|
||||
input.form-control(type='text', name='firstName', id='firstName', placeholder='First Name', autofocus='')
|
||||
.col-xs-6.col-sm-6.col-md-6
|
||||
label.control-label(for='lastName') Last Name
|
||||
input.form-control(type='text', name='lastName', id='lastName', placeholder='Last Name')
|
||||
.form-group
|
||||
label.control-label(for='email') Email
|
||||
input.form-control(type='email', name='email', id='email', placeholder='Email')
|
||||
.form-group
|
||||
label.control-label(for='password') Password
|
||||
input.form-control(type='password', name='password', id='password', placeholder='Password')
|
||||
.form-group
|
||||
label.control-label(for='confirmPassword') Confirm Password
|
||||
input.form-control(type='password', name='confirmPassword', id='confirmPassword', placeholder='Confirm Password')
|
||||
.form-group
|
||||
button.btn.btn.btn-primary(type='submit') Signup
|
||||
button(type='submit')
|
||||
i.fa.fa-chevron-right
|
||||
.form-options.clearfix
|
||||
label.checkbox
|
||||
input(type='checkbox')
|
||||
span I agree to terms and conditions
|
||||
.row
|
||||
.col-xs-6.col-sm-6.col-md-6
|
||||
a.btn.btn-primary.btn-block.facebook(href='/auth/facebook')
|
||||
i.fa.fa-facebook
|
||||
| Facebook
|
||||
.col-xs-6.col-sm-6.col-md-6
|
||||
a.btn.btn-danger.btn-block.google(href='/auth/google')
|
||||
i.fa.fa-google-plus
|
||||
| Google
|
||||
.row
|
||||
.col-xs-6.col-sm-6.col-md-6
|
||||
a.btn.btn-info.btn-block.twitter(href='/auth/twitter')
|
||||
i.fa.fa-twitter
|
||||
| Twitter
|
||||
.col-xs-6.col-sm-6.col-md-6
|
||||
a.btn.btn-default.btn-block.github(href='/auth/github')
|
||||
i.fa.fa-github
|
||||
| GitHub
|
||||
p Already have an account?
|
||||
a(href='/login') Login now
|
||||
|
||||
if messages.length
|
||||
.alert.alert-danger
|
||||
|
||||
Reference in New Issue
Block a user