Skip to content

Commit 224f44b

Browse files
committed
style(arc-saas): responsive screen of login page
responsive screen of login page GH-34
1 parent 9cad259 commit 224f44b

File tree

3 files changed

+40
-9
lines changed

3 files changed

+40
-9
lines changed

projects/saas-ui/src/app/shared/auth/auth.component.html

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<nb-layout>
2-
<nb-layout-column>
3-
<div class="login-img">
4-
<img
5-
width="100%"
6-
height="100%"
7-
src="../../../assets/images/auth/loginimg.png"
8-
alt="loginImg"
9-
/>
10-
</div>
2+
<nb-layout-column class="login-img-wrapper">
3+
<div
4+
class="login-img"
5+
style="
6+
background-image: url(../../../assets/images/auth/loginimg.png);
7+
background-repeat: no-repeat;
8+
background-size: 100% 100%;
9+
"
10+
></div>
1111
</nb-layout-column>
1212
<nb-layout-column class="p-0 card-row">
1313
<nb-auth-block class="h-100 m-0">

projects/saas-ui/src/app/shared/auth/auth.component.scss

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,16 @@
3030
flex-shrink: 0 !important;
3131
flex-basis: 35% !important;
3232
}
33+
34+
@media(max-width:991px){
35+
.card-row {
36+
flex-grow: 0 !important;
37+
flex-shrink: 0 !important;
38+
flex-basis: 100% !important;
39+
}
40+
41+
.login-img-wrapper{
42+
display: none !important;
43+
}
44+
45+
}

projects/saas-ui/src/app/shared/auth/login/login.component.scss

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,4 +37,22 @@
3737
padding-top: 5px;
3838
height: 19px;
3939
width: 25px;
40+
41+
}
42+
43+
@media(max-width:991px){
44+
45+
.login-content-wrapper{
46+
padding: 50px;
47+
max-width: 420px;
48+
margin: 0 auto;
49+
border: 1px solid #d9d9d9;
50+
margin-bottom: 10px;
51+
}
52+
}
53+
@media(max-width:575px){
54+
55+
.btn{
56+
margin-bottom: 10px;
57+
}
4058
}

0 commit comments

Comments
 (0)