Skip to content

Commit

Permalink
fix mobile login styling
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew Hill authored and Andrew Hill committed Feb 1, 2018
1 parent 8a8e401 commit 0b4b8a3
Show file tree
Hide file tree
Showing 5 changed files with 11 additions and 6 deletions.
2 changes: 1 addition & 1 deletion client/proxy-config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/api/*": {
"target":"http://localhost:3000",
"target":"http://localhost:3008",
"secure":false,
"logLevel":"debug"
}
Expand Down
2 changes: 1 addition & 1 deletion client/src/app/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ <h2>Create an Account</h2>
</div>
<div class="input-group">
<label>Confirm Password: </label>
<input id="confirmPassword" [(ngModel)]="confirmPassword" name="confirmPassword" type="password" required />
<input id="confirmPassword" [(ngModel)]="confirmPassword" name="confirmPassword" type="password" required />
</div>
<div>
<button type="submit">Create account</button>
Expand Down
8 changes: 6 additions & 2 deletions client/src/app/login/login.component.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import '../../variables';
#login {
text-align: center;
button {
margin: 0 $single-space;
cursor: pointer;
Expand All @@ -18,11 +19,14 @@
}

@media only screen and (max-width: 1223px) and (min-width: 320px) {
#login {
h1 {
margin-top: $single-space * 8;
}
#login {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
padding: $double-space;
label {
margin-bottom: -$single-space;
Expand All @@ -41,7 +45,7 @@
color: white;
margin: 4em auto;
width: 100%;
text-align: center;

.input-group {
margin: $quad-space;
label {
Expand Down
2 changes: 1 addition & 1 deletion server/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,4 +95,4 @@ app.use((err, req, res, next) => {



server.listen(process.env.PORT || 3000);
server.listen(process.env.PORT || 3008);
3 changes: 2 additions & 1 deletion server/variables.env
Original file line number Diff line number Diff line change
@@ -1,2 +1,3 @@
NODE_ENV=development
DATABASE=mongodb://localhost/socrates
DATABASE=mongodb://localhost/socrates
PORT=3012

0 comments on commit 0b4b8a3

Please sign in to comment.