Skip to content

Commit 24c8c81

Browse files
login and registration: update forms layout
1 parent d7b357d commit 24c8c81

4 files changed

Lines changed: 26 additions & 13 deletions

File tree

frontend/src/app/components/login/login.component.css

Lines changed: 22 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@
99
justify-content: center;
1010
height: 100%;
1111
margin: 0 auto;
12-
max-width: 460px;
13-
min-width: 300px;
14-
width: 90%;
12+
width: 464px;
13+
}
14+
15+
@media screen and (max-width: 600px) {
16+
.login-page {
17+
width: 98%;
18+
}
1519
}
1620

1721
.login-form {
@@ -24,17 +28,26 @@
2428
}
2529

2630
.soc-buttons {
27-
display: grid;
28-
grid-template-columns: 1fr 1fr;
29-
grid-column-gap: 16px;
31+
display: flex;
3032
margin: 20px 0 40px;
3133
}
3234

3335
@media screen and (max-width: 600px) {
3436
.soc-buttons {
35-
grid-template-columns: 1fr;
36-
grid-column-gap: 0;
37-
grid-row-gap: 16px;
37+
flex-direction: column;
38+
align-items: center;
39+
gap: 20px;
40+
}
41+
}
42+
43+
.fb-button {
44+
margin-left: 16px;
45+
width: 224px;
46+
}
47+
48+
@media screen and (max-width: 600px) {
49+
.fb-button {
50+
margin-left: 0;
3851
}
3952
}
4053

frontend/src/app/components/login/login.component.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ <h1 class="mat-h1">Welcome to Autoadmin</h1>
4545

4646
<div id="google_login_button"></div>
4747

48-
<button type="button" mat-stroked-button class="soc-button"
48+
<button type="button" mat-stroked-button class="fb-button"
4949
angulartics2On="click"
5050
angularticsAction="Login: login with facebook is clicked"
5151
(click)="loginWithFacebook()">

frontend/src/app/components/login/login.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ export class LoginComponent implements OnInit {
3939
//@ts-ignore
4040
google.accounts.id.renderButton(
4141
document.getElementById("google_login_button"),
42-
{ theme: "filled_blue", size: "large", width: "100%" }
42+
{ theme: "filled_blue", size: "large", width: "224px" }
4343
);
4444
//@ts-ignore
4545
google.accounts.id.prompt();

frontend/src/app/components/registration/registration.component.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,12 +22,12 @@
2222
display: flex;
2323
flex-direction: column;
2424
margin: 0 auto;
25-
width: clamp(300px, 29vw, 450px);
25+
width: 400px;
2626
}
2727

2828
@media screen and (max-width: 600px) {
2929
.register-form {
30-
width: 100%;
30+
width: 90%;
3131
}
3232
}
3333

0 commit comments

Comments
 (0)