Skip to content

Commit 8f38ec9

Browse files
author
Programming-Sai
committed
Added some modifications to the login page for mobile devices and the authlinks component.
1 parent a83653b commit 8f38ec9

File tree

2 files changed

+60
-48
lines changed

2 files changed

+60
-48
lines changed

src/app/login/login.module.css

+55-48
Original file line numberDiff line numberDiff line change
@@ -1,67 +1,74 @@
1-
.container{
2-
position: relative;
3-
z-index: 1;
4-
margin-block: 5%;
1+
.container {
2+
position: relative;
3+
z-index: 1;
4+
margin-block: 5%;
55
}
66

7-
.back{
8-
margin-block: 7.5%;
7+
.back {
8+
margin-block: 7.5%;
99
}
1010

11-
12-
.overlay, .loginContainer, .links{
13-
display: flex;
14-
justify-content: center;
15-
align-items: center;
11+
.overlay,
12+
.loginContainer,
13+
.links {
14+
display: flex;
15+
justify-content: center;
16+
align-items: center;
1617
}
1718

18-
1919
.overlay {
20-
position: fixed;
21-
top: 0;
22-
left: 0;
23-
background-color: var(--bg);
24-
width: 100vw;
25-
height: 100vh;
26-
backdrop-filter: blur(10px);
27-
z-index: 100 !important;
28-
pointer-events: auto;
20+
position: fixed;
21+
top: 0;
22+
left: 0;
23+
background-color: var(--bg);
24+
width: 100vw;
25+
height: 100vh;
26+
backdrop-filter: blur(10px);
27+
z-index: 100 !important;
28+
pointer-events: auto;
2929
}
3030

31-
.loginContainer{
32-
background-color: var(--soft-bg);
33-
border: 5px solid var(--border-color);
34-
width: 50%;
35-
height: 70%;
36-
border-radius: 20px;
37-
padding: 1rem;
38-
flex-direction: column;
31+
.loginContainer {
32+
background-color: var(--soft-bg);
33+
border: 5px solid var(--border-color);
34+
width: 50%;
35+
height: 70%;
36+
border-radius: 20px;
37+
padding: 1rem;
38+
flex-direction: column;
3939
}
4040

41-
.links{
42-
flex-wrap: wrap;
43-
width: 100%;
44-
gap: 5%;
45-
margin-block: 10%;
41+
.links {
42+
flex-wrap: wrap;
43+
width: 100%;
44+
gap: 5%;
45+
margin-block: 10%;
4646
}
4747

48-
.img{
49-
object-fit: contain;
50-
width: 100%;
51-
background-color: var(--soft-bg);
52-
border-radius: 100px;
53-
padding: 10px;
54-
margin-block: 5%;
48+
.img {
49+
object-fit: contain;
50+
width: 100%;
51+
background-color: var(--soft-bg);
52+
border-radius: 100px;
53+
padding: 10px;
54+
margin-block: 5%;
5555
}
5656

57-
.links, .img{
58-
transition: 0.5s ease;
57+
.links,
58+
.img {
59+
transition: 0.5s ease;
5960
}
6061

61-
.links:hover .img:not(:hover){
62-
filter: grayscale(1);
62+
.links:hover .img:not(:hover) {
63+
filter: grayscale(1);
6364
}
6465

65-
.img:hover{
66-
transform: scale(1.2);
67-
}
66+
.img:hover {
67+
transform: scale(1.2);
68+
}
69+
70+
@media screen and (max-width: 580px) {
71+
.loginContainer {
72+
width: 80%;
73+
}
74+
}

src/components/authlinks/authlinks.module.css

+5
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@
4343
.icon {
4444
display: inline;
4545
margin-left: -10px;
46+
margin-right: 6px;
47+
font-size: 1.4rem;
4648
}
4749
.authlink:hover {
4850
--color: transparent;
@@ -53,4 +55,7 @@
5355
align-items: center;
5456
width: 100%;
5557
}
58+
.authlink .anchor span {
59+
font-size: 1.1rem !important;
60+
}
5661
}

0 commit comments

Comments
 (0)