Skip to content

Commit

Permalink
fixed cookies and updated styles
Browse files Browse the repository at this point in the history
  • Loading branch information
clhilgert committed Jul 31, 2023
1 parent 63187e5 commit d9ba544
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/controllers/userController.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ userController.createUser = (req, res, next) => {
goal,
})
.then((user) => {
res.locals.user = user.id;
res.locals._id = user._id;
return next();
})
.catch((err) => {
Expand Down
6 changes: 3 additions & 3 deletions src/styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ body {
width: 400px;
border-radius: 20px;
background: rgb(0,36,11);
background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(122,244,122,1) 0%, rgba(227,254,208,1) 100%, rgba(103,242,2,1) 100%);
background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgb(171, 245, 171) 0%, rgba(227,254,208,1) 100%, rgba(103,242,2,1) 100%);
}

.login-text {
Expand All @@ -45,7 +45,7 @@ body {
border-radius: 8px;
box-shadow: 1px 1px 3px rgb(223, 208, 208);
background: rgb(0,36,11);
background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(215,252,214,1) 0%, rgba(247,176,176,1) 95%);
background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(220,246,220,1) 0%, rgba(255,255,255,1) 91%);
}

.login-button-container {
Expand Down Expand Up @@ -118,7 +118,7 @@ background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(171,255,170,1) 0%, r
border-width: 1px;
box-shadow: 1px 1px 3px rgb(0, 0, 0);
background: rgb(0,36,11);
background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(220,246,220,1) 0%, rgba(255,255,255,1) 91%);
background: linear-gradient(90deg, rgba(0,36,11,1) 0%, rgba(220,246,220,1) 0%, rgba(255,255,255,1) 91%);
}

.stats-outer-container {
Expand Down
3 changes: 2 additions & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,8 @@ module.exports = {
'/login': 'http://localhost:3000',
'/stats': 'http://localhost:3000',
'/main': 'http://localhost:3000',
'/signup': 'http://localhost:3000'
'/signup': 'http://localhost:3000',
'/logout': 'http://localhost:3000'
// add more as we add more endpoints
}
}
Expand Down

0 comments on commit d9ba544

Please sign in to comment.