Skip to content

Commit 2339f42

Browse files
Replace mat-chip Sign in button with Sign in with Google button (#2413)
Co-authored-by: Roberto Fontanarosa <robertofontanarosa@gmail.com>
1 parent a7cde6d commit 2339f42

File tree

3 files changed

+53
-8
lines changed

3 files changed

+53
-8
lines changed

web/src/app/components/shared/sign-in-page/sign-in-page.component.html

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -30,16 +30,13 @@
3030
</p>
3131

3232
<div class="buttons">
33-
<button
34-
mat-flat-button
35-
color="primary"
33+
<button
34+
class="google-signin-btn"
3635
(click)="onGoogleSignIn()"
37-
i18n-aria-label="@@app.login.signInWithGoogle"
38-
aria-label="Sign in with Google"
36+
type="button"
3937
>
40-
<ng-container i18n="@@app.login.signInWithGoogle"
41-
>Sign in with Google</ng-container
42-
>
38+
<img src="assets/img/web_light_rd_na.svg" alt="" class="google-logo" />
39+
<span i18n="@@app.login.signInWithGoogle">Sign in with Google</span>
4340
</button>
4441
</div>
4542
</mat-card-content>

web/src/app/components/shared/sign-in-page/sign-in-page.component.scss

Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,46 @@
4242

4343
.buttons {
4444
margin-top: 48px;
45+
display: flex;
46+
justify-content: center;
47+
}
48+
49+
.google-signin-btn {
50+
display: flex;
51+
align-items: center;
52+
justify-content: center;
53+
gap: 12px;
54+
padding: 0 0 12px 0;
55+
border: 1px solid #dadce0;
56+
border-radius: 4px;
57+
background-color: #fff;
58+
color: #3c4043;
59+
font-family: 'Google Sans', Roboto, Arial, sans-serif;
60+
font-size: 14px;
61+
font-weight: 500;
62+
cursor: pointer;
63+
transition: all 0.2s ease;
64+
min-height: 40px;
65+
66+
&:hover {
67+
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
68+
background-color: #f8f9fa;
69+
}
70+
71+
&:active {
72+
background-color: #f1f3f4;
73+
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 2px 6px 2px rgba(60, 64, 67, 0.15);
74+
}
75+
76+
&:focus {
77+
outline: none;
78+
box-shadow: 0 1px 2px 0 rgba(60, 64, 67, 0.3), 0 1px 3px 1px rgba(60, 64, 67, 0.15);
79+
}
80+
81+
&:disabled {
82+
background-color: #f1f3f4;
83+
color: #9aa0a6;
84+
cursor: not-allowed;
85+
border-color: #f1f3f4;
86+
}
4587
}
Lines changed: 6 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)