Skip to content

Commit

Permalink
Merge pull request #612 from Utkarsh3128/main
Browse files Browse the repository at this point in the history
Fixed the Issue with Mobile Responsiveness
  • Loading branch information
Susmita-Dey authored Oct 20, 2023
2 parents 5adb1d2 + 2d918df commit 6037442
Show file tree
Hide file tree
Showing 2 changed files with 97 additions and 67 deletions.
163 changes: 96 additions & 67 deletions html/css/login.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
@import url("https://fonts.googleapis.com/css2?family=Poppins:wght@100;200;300;400;500;600;700;800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Prompt:wght@600&display=swap");

:root {
--main-icon-color: #5328af;
--main-bg-color: #f3f3fb;
Expand All @@ -8,13 +9,29 @@
body {
overflow: hidden;
background-color: var(--main-bg-color);
}
.login {
padding: 8em 10em;
padding-right: 0em;
margin: 0;
padding: 0;
box-sizing: border-box;
display: inline-block;
}

img {
height: 400px;
}

.login,
.register {
max-width: 35rem;
width: 100%;
}

.container {
height: 100vh;
width: 100%;
display: flex;
align-items: center;
justify-content: center;
}

#load {
margin: auto;
width: 100%;
Expand All @@ -24,19 +41,13 @@ body {
z-index: 9999999;
}

.register {
padding: 8em 10em;
padding-right: 0em;
box-sizing: border-box;
display: inline-block;
}

.welcome h1 {
font-family: "Prompt", sans-serif;
font-weight: 500;
margin: 0% 0%;
font-size: 1.8em;
}

.welcome span {
font-family: "Poppins";
color: #8e8d8d;
Expand All @@ -47,6 +58,7 @@ body {
margin: 2.2em 0em;
margin-bottom: 0em;
}

.inputs span {
font-family: "Poppins";
font-weight: 600;
Expand All @@ -70,13 +82,18 @@ body {
text-overflow: clip;
}

.forgotpass {
display: flex;
justify-content: space-between;
width: 350px;
align-items: center;
}

.forgotpass span {
font-family: "Poppins";
font-weight: 650;
font-size: small;
color: var(--main-icon-color);
display: flex;
padding: 1em 17.6em;
cursor: pointer;
}

Expand All @@ -98,35 +115,35 @@ body {
-o-text-overflow: clip;
text-overflow: clip;
background: var(--main-icon-color);
background: linear-gradient(
0deg,
rgba(96, 9, 240, 1) 0%,
var(--main-icon-color) 100%
);
background: linear-gradient(0deg,
rgba(96, 9, 240, 1) 0%,
var(--main-icon-color) 100%);
border: none;
}

.signin:before {
height: 0%;
width: 2px;
}

.signin:hover {
box-shadow: 4px 4px 6px 0 rgba(255, 255, 255, 0.5),
-4px -4px 6px 0 rgba(116, 125, 136, 0.5),
inset -4px -4px 6px 0 rgba(255, 255, 255, 0.2),
inset 4px 4px 6px 0 rgba(0, 0, 0, 0.4);
}
.back{
margin-top: -3.5%;
}
.back-1{

.back-1 {
margin-top: -0.6%;
}

.signupline {
font-family: "Poppins";
color: #8e8d8d;
font-size: small;
padding: 1em 5em;
}

.signupbutton,
.signinbutton {
font-family: "Poppins";
Expand All @@ -136,64 +153,76 @@ body {
cursor: pointer;
}

img {
position: absolute;
margin: 6em 32em;
padding: 0em 10em;
width: 55%;
float: right;
box-sizing: border-box;
}
.register {
display: none;
}

@media screen and (max-width: 1096px) {
img {
margin-top: 12%;
height: 50%;
.container {
flex-direction: column;
width: 100%;
justify-items: center;
}
}
@media screen and (max-width: 970px) {
img {
margin: 6em 25em;
width: 70%;

.login,
.register {
order: 2;
width: 400px;
padding: 0 2rem;
}

.welcome {
text-align: center;
}
}
@media screen and (max-width: 720px) {
img {
margin: 0em 0em;
width: 80%;
height: 40%;
padding-bottom: 12%;

@media screen and (max-width: 484px) {
.container {
flex-direction: column;
width: auto;
height: 100%;
justify-items: center;
align-items: center;
}
.login {
margin-top: 8%;

.welcome {
text-align: center;
}
}
@media screen and (max-width: 575px) {
img {
width: 100%;
height: 42%;
padding-bottom: 20%;

.login>* {
padding: 0 2rem;
}
}
@media screen and (max-width: 484px) {
img {
width: 140%;
margin-top: 15%;

.register>* {
padding: 0 2rem;
}

.image {
margin: 0 2px;
}
.login {
margin-top: 45%;

img {
width: auto;
height: 350px;
}

}

@media screen and (max-width: 380px) {
img {
width: 150%;
height: 55%;
margin-top: 20%;
.container {
flex-direction: column;
width: auto;
height: 100%;
justify-items: center;
}
.login {
margin-top: 60%;

.welcome {
text-align: center;
}
}

img {
max-width: 100%;
height: auto;
}

}
1 change: 1 addition & 0 deletions html/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@
top: -70px;
"></div>
</div>

<div class="alert" id="emptyFieldsAlert" style="display: none">
Please fill in all fields!
</div>
Expand Down

0 comments on commit 6037442

Please sign in to comment.