Skip to content

Commit

Permalink
Updated Home, Register, Login, rerouted from login to marketplace
Browse files Browse the repository at this point in the history
  • Loading branch information
DSRoden committed Sep 2, 2014
2 parents 4fa387d + 8cc1d62 commit c469639
Show file tree
Hide file tree
Showing 6 changed files with 82 additions and 5 deletions.
2 changes: 1 addition & 1 deletion app/controllers/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ exports.authenticate = function(req, res){
req.session.regenerate(function(){
req.session.userId = user._id;
req.session.save(function(){
res.redirect('/');
res.redirect('/marketplace');
});
});
}else{
Expand Down
2 changes: 1 addition & 1 deletion app/static/css/style.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

75 changes: 73 additions & 2 deletions app/static/css/style.less
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,19 @@
@bidButton: #ebebeb;
@themeBlue: #0f1c3c;
@themeRed: #711a1a;
@themeGray: #ECECEC;

#brand:hover{
color: #711a1a;
}

#bs-navbar-collapse a:hover{
background-color: #711a1a;
color: white;
}
body{
color: @themeBlue;
background-color: @themeGray;
}

#brand{
Expand Down Expand Up @@ -39,6 +49,10 @@ body{
border: 3px solid @themeBlue;
}

.panel-body{
background-color: @themeGray;
}

.profile-photo {
height: 200px;
width: 150px;
Expand Down Expand Up @@ -271,7 +285,13 @@ body{
background-image: url("/img/wine_cellar_bg.png");
background-size: cover;
background-repeat: no-repeat;

}
.cheers {
position: relative;
right: 635px;
top: 75px;
font-size: 100px;
font-family: 'Berkshire Swash', cursive;
}
}

Expand All @@ -285,9 +305,60 @@ body{
.homePage {
background-image: url("/img/wine_cellar_home.png");
background-size: cover;
height: 1080px;
height: 975px;
position: relative;
margin: 0px auto;
}

#goRegister a {
color: @themeRed;
text-align: center;
font-size: 20px;
position: absolute;
left: 930px;
top: 500px;
/*font-family: 'Berkshire Swash', cursive;*/
font-size: 50px;
padding: 30px;
}


#goLogin a {
color: @themeRed;
text-align: center;
font-size: 20px;
position: absolute;
left: 530px;
top: 500px;
/*font-family: 'Berkshire Swash', cursive;*/
font-size: 50px;
padding: 30px;
}

#goLogin a:hover {
border: 1px solid @themeRed;
border-radius: 15%;
}

#goRegister a:hover {
border: 1px solid @themeRed;
border-radius: 15%;
}

.slogan {
position: absolute;
left: 540px;
top: 150px;
font-family: 'Berkshire Swash', cursive;
font-size: 45px;
color: @themeGray;

}








Expand Down
5 changes: 5 additions & 0 deletions app/views/home/index.jade
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,11 @@ extends ../shared/template
block content
body
.homePage
#goRegister: a(href= '/register') Register
#goLogin: a(href='/login') Login
.slogan . <br/> Bid.<br/> &nbsp &nbsp &nbsp Trade.<br/> &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp &nbsp Drink...


block scripts
script(src='/js/user/home.js')

1 change: 1 addition & 0 deletions app/views/users/login.jade
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ block content
label(for='password')
input.form-control.input-bar#password(type='password', name='password', placeholder= 'Password')
button.btn(type='submit') Submit
.cheers Cheers!
.row
.col-xs-12.col-md-3

Expand Down
2 changes: 1 addition & 1 deletion test/acceptance/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ describe('users', function(){
.send('email=nodeapptest%2Bbob%40gmail.com&password=1234')
.end(function(err, res){
expect(res.status).to.equal(302);
expect(res.headers.location).to.equal('/');
expect(res.headers.location).to.equal('/marketplace');
done();
});
});
Expand Down

0 comments on commit c469639

Please sign in to comment.