Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
163 changes: 149 additions & 14 deletions css/style.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@200;300;400;500;600;700;800&display=swap');

* {
margin: 0;
padding: 0;
Expand Down Expand Up @@ -26,7 +28,7 @@ input {
}


.container::before {
.container:before {
content: '';
position: absolute;
height: 2000px;
Expand All @@ -50,11 +52,12 @@ form {
padding: 0 5rem;
grid-column: 1 / 2;
grid-row: 1 / 2;
transition: 0.2s 0.7s ease-in-out;
}

.title {
font-size: 2.2rem;
columns: #444;
color: #444;
margin-bottom: 10px;
}

Expand All @@ -67,7 +70,7 @@ form {
border-radius: 55px;
display: grid;
grid-template-columns: 15% 85%;
padding: 0 0.4px;
padding: 0 0.4rem;
position: relative;
}

Expand All @@ -80,15 +83,15 @@ form {

.input-field input {
background: none;
border: none;
outline: none;
border: none;
line-height: 1;
font-weight: 600;
font-size: 1.2rem;
font-size: 1.1rem;
color: #333;
}

.input-field input:placeholder-shown {
.input-field input::placeholder {
color: #aaa;
font-weight: 500;
}
Expand All @@ -100,7 +103,7 @@ form {
border: none;
border-radius: 48px;
background-color: #20dbc2;
color: white;
color: #fff;
text-transform: uppercase;
font-weight: 600;
margin: 10px 0;
Expand Down Expand Up @@ -148,6 +151,7 @@ form {
display: grid;
grid-template-columns: 1fr;
z-index: 5;
transition: 1s 0.7s ease-in-out;
}

form.sign-in-form {
Expand Down Expand Up @@ -177,40 +181,42 @@ form.sign-up-form {
.panel {
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
align-items: flex-end;
justify-content: space-around;
text-align: center;
z-index: 7;
}

.left-panel {
padding: 3rem 17% 2rem 12%;
padding: 3rem 12% 2rem 17%;
pointer-events: all;
}

.right-panel {
padding: 3rem 12% 2rem 17%;
pointer-events: none;
}

.panel .content {
color: #fff;
transition: .9s .6s ease-in-out;
}

.panel h3 {
.panel h3{
font-weight: 600;
line-height: 1;
font-size: 1.5rem;
}

.panel p {
font-size: 0.95rem;
font-size: .95rem;
padding: 0.7rem 0;
}

.btn.transparent {
margin: 0;
background: none;
border: 2px solid;
border: 2px solid #fff;
width: 130px;
height: 41px;
font-weight: 600;
Expand Down Expand Up @@ -263,4 +269,133 @@ form.sign-up-form {
.container.sign-up-mode form.sign-up-form {
z-index: 2;
opacity: 1;
}
}

@media (max-width: 870px) {
.container {
min-height: 800px;
height: 100vh;
}
.signin-signup {
width: 100%;
top: 95%;
transform: translate(-50%, -100%);
transition: 1s 0.8s ease-in-out;
}

.signin-signup,
.container.sign-up-mode .signin-signup {
left: 50%;
}

.panels-container {
grid-template-columns: 1fr;
grid-template-rows: 1fr 2fr 1fr;
}

.panel {
flex-direction: row;
justify-content: space-around;
align-items: center;
padding: 2.5rem 8%;
grid-column: 1 / 2;
}

.right-panel {
grid-row: 3 / 4;
}

.left-panel {
grid-row: 1 / 2;
}

.image {
width: 200px;
transition: transform 0.9s ease-in-out;
transition-delay: 0.6s;
}

.panel .content {
padding-right: 15%;
transition: transform 0.9s ease-in-out;
transition-delay: 0.8s;
}

.panel h3 {
font-size: 1.2rem;
}

.panel p {
font-size: 0.7rem;
padding: 0.5rem 0;
}

.btn.transparent {
width: 110px;
height: 35px;
font-size: 0.7rem;
}

.container:before {
width: 1500px;
height: 1500px;
transform: translateX(-50%);
left: 30%;
bottom: 68%;
right: initial;
top: initial;
transition: 2s ease-in-out;
}

.container.sign-up-mode:before {
transform: translate(-50%, 100%);
bottom: 32%;
right: initial;
}

.container.sign-up-mode .left-panel .image,
.container.sign-up-mode .left-panel .content {
transform: translateY(-300px);
}

.container.sign-up-mode .right-panel .image,
.container.sign-up-mode .right-panel .content {
transform: translateY(0px);
}

.right-panel .image,
.right-panel .content {
transform: translateY(300px);
}

.container.sign-up-mode .signin-signup {
top: 5%;
transform: translate(-50%, 0);
}
}

@media (max-width: 570px) {
form {
padding: 0 1.5rem;
}

.image {
display: none;
}
.panel .content {
padding: 0.5rem 1rem;
}
.container {
padding: 1.5rem;
}

.container:before {
bottom: 72%;
left: 50%;
}

.container.sign-up-mode:before {
bottom: 28%;
left: 50%;
}
}
17 changes: 8 additions & 9 deletions html/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@

<link href="https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,600;0,700;1,300&display=swap"
rel="stylesheet" />
<link rel="stylesheet" href="/css/style.css" />
<link rel="stylesheet" href="../css/style.css" />
</head>

<body>
Expand All @@ -30,11 +30,11 @@ <h2 class="title">Sign in</h2>
<input type="password" placeholder="Password" />
</div>

<input type="submit" class="btn solid" value="Login" />
<input class="btn solid" type="submit" value="Login" />
<p class="social-text">Or Sign in with social platforms</p>
<div class="social-media">
<a href="#" class="social-icon">
<i class="fab fa-facebook"></i>
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="social-icon">
<i class="fab fa-google"></i>
Expand All @@ -47,9 +47,9 @@ <h2 class="title">Sign in</h2>
</a>
</div>
</form>
</div>

<div class="signup-signup">

<!-- <div class="signup-signup"> -->
<form action="#" class="sign-up-form">
<h2 class="title">Sign Up</h2>
<div class="input-field">
Expand All @@ -67,11 +67,11 @@ <h2 class="title">Sign Up</h2>
<input type="password" placeholder="Password" />
</div>

<input type="submit" class="btn solid" value="Login" />
<input type="submit" class="btn" value="Sign up" />
<p class="social-text">Or Sign Up with social platforms</p>
<div class="social-media">
<a href="#" class="social-icon">
<i class="fab fa-facebook"></i>
<i class="fab fa-facebook-f"></i>
</a>
<a href="#" class="social-icon">
<i class="fab fa-google"></i>
Expand Down Expand Up @@ -106,7 +106,6 @@ <h3>One of us</h3>
</div>
</div>
</div>
<script src="/js/app.js"></script>
<script src="../js/app.js"></script>
</body>

</html>