A Pen by Jayanika Chandrapriya on CodePen.
Created
September 6, 2024 13:35
-
-
Save jayc971/55b503a290e1771ce050b6dd0593044c to your computer and use it in GitHub Desktop.
Serendip Login Portal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div class="wrapper"> | |
<div class="sign-panels"> | |
<div class="login"> | |
<div class="title"> | |
<img width="50%" src="https://goserendip.com/wp-content/uploads/2024/05/Serendip-Information-Architecture-07.webp"/> | |
<span>Sign In</span> | |
<p>Login With:</p> | |
</div> | |
<div> | |
<a href="#" class="btn-face"><i class="fa fa-facebook" aria-hidden="true"></i> Facebook</a> | |
<a href="#" class="btn-google"><i class="fa fa-google" aria-hidden="true"></i> Google</a> | |
</div> | |
<div class="or"><span>OR</span></div> | |
<form action=""> | |
<input type="text" placeholder="Username"> | |
<input type="password" placeholder="Password"> | |
<input type="checkbox" id="remember"> | |
<label for="remember">Keep me sign in</label> | |
<a href="#" class="btn-signin">Sign In</a> | |
<a href="javascript:void(0)" class="btn-reset btn-fade">Recover your password <i class="fa fa-long-arrow-right" | |
aria-hidden="true"></i></a> | |
<a href="javascript:void(0)" class="btn-member btn-fade">Not a member yet? <i class="fa fa-long-arrow-right" | |
aria-hidden="true"></i></a> | |
</form> | |
</div> | |
<div class="signup"> | |
<div class="title"> | |
<span>Sign Up</span> | |
<p>Login With:</p> | |
</div> | |
<div> | |
<a href="#" class="btn-face"><i class="fa fa-facebook" aria-hidden="true"></i> Facebook</a> | |
<a href="#" class="btn-google"><i class="fa fa-google" aria-hidden="true"></i> Google</a> | |
</div> | |
<div class="or"><span>OR</span></div> | |
<form action=""> | |
<input type="text" placeholder="Username"> | |
<input type="text" placeholder="Email Address"> | |
<input type="password" placeholder="Password"> | |
<input type="password" placeholder="Repeat Password"> | |
<a href="#" class="btn-signin">Sign Up</a> | |
<a href="javascript:void(0)" class="btn-login btn-fade">Already have an account, Sign In <i | |
class="fa fa-long-arrow-right" aria-hidden="true"></i></a> | |
</form> | |
</div> | |
<div class="recover-password"> | |
<div class="title"> | |
<span>Recover Password</span> | |
<p>Enter in the username or email associated with your account</p> | |
</div> | |
<form action=""> | |
<input type="email" placeholder="Username/Email Address" id="resetPassword" required> | |
<span class="error"></span> | |
<a href="javascript:void(0)" class="btn-signin btn-password">Submit Reset</a> | |
<a href="javascript:void(0)" class="btn-login btn-fade"><i class="fa fa-long-arrow-left" aria-hidden="true"></i> Cancel | |
and go back to Login page </a> | |
</form> | |
<div class="notification"> | |
<p>Good job. An email containing information on how to reset your passworld was sent to | |
<span class="reset-mail"></span>. Please follow the instruction in that email to | |
reset your password. Thanks!</p> | |
</div> | |
</div> | |
</div> | |
</div> | |
<!-- | |
* Created by Muhammed Erdem on 10.10.2017. | |
*--> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$('.signup').hide(); | |
$('.recover-password').hide(); | |
$('.btn-reset').click(function () { | |
$('.login').hide(); | |
$('.recover-password').fadeIn(300); | |
}); | |
$('.btn-member').click(function () { | |
$('.login').hide(); | |
$('.signup').fadeIn(300); | |
}); | |
$('.btn-login').click(function () { | |
$('.signup').hide(); | |
$('.recover-password').hide(); | |
$('.login').fadeIn(300); | |
}); | |
$('.notification').hide(); | |
$('.btn-password').click(function () { | |
if($('#resetPassword').val()==0) { | |
// $('#resetPassword').after('<span class="error">Email not valid.</span>') | |
$('.error').text('Email not valid.') | |
} | |
else { | |
$('.reset-mail').text($('#resetPassword').val()); | |
$('.recover-password form').hide(); | |
$('.notification').fadeIn(300); | |
} | |
}); | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.2.1/jquery.min.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Created by Muhammed Erdem on 10.10.2017. | |
*/ | |
@import url('https://fonts.googleapis.com/css2?family=Pacifico&display=swap'); | |
* { | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
} | |
:root{ | |
--theme-bkground: #ffbf00; | |
--theme-dark-bkground: #343a40; | |
--theme-txtcolor: #343a40; | |
} | |
body { | |
margin: 0; | |
} | |
.wrapper { | |
width: 1%; | |
height: 100vh; | |
background: var(--theme-dark-bkground); | |
display: table-cell; | |
vertical-align: middle; | |
font-family: 'Pacifico', sans-serif; | |
} | |
.sign-panels { | |
width: 650px; | |
background: var(--theme-bkground); | |
padding: 40px 80px; | |
margin: 40px auto; | |
border-radius: 20px; | |
text-align: center; | |
} | |
.login,.signup { | |
position: relative; | |
} | |
.title { | |
color: var(--theme-txtcolor); | |
} | |
.title span { | |
display: block; | |
font-size: 46px; | |
font-weight: bold; | |
} | |
.title p { | |
font-size: 20px; | |
font-weight: 500; | |
} | |
.btn-face,.btn-google { | |
color: var(--theme-txtcolor); | |
display: inline-block; | |
width: 200px; | |
font-size: 20px; | |
height: 50px; | |
border-radius: 50px; | |
text-decoration: none; | |
padding: 11px 0; | |
font-weight: 500; | |
} | |
.btn-face .fa,.btn-google .fa { | |
margin-right: 5px; | |
} | |
.btn-face { | |
background: #5397d7; | |
margin-right: 25px; | |
} | |
.btn-google { | |
background: #EA4335; | |
} | |
.or { | |
margin: 35px 0; | |
font-weight: 600; | |
color: var(--theme-txtcolor); | |
} | |
.or:after { | |
content: ''; | |
display: block; | |
width: 100%; | |
height: 1px; | |
background: var(--theme-txtcolor); | |
position: absolute; | |
margin-top: -10px; | |
z-index: 0; | |
} | |
.or span { | |
display: block; | |
background: var(--theme-bkground); | |
width: 50px; | |
margin: auto; | |
position: relative; | |
z-index: 2; | |
} | |
.sign-panels input { | |
width: 100%; | |
display: block; | |
margin-bottom: 15px; | |
height: 50px; | |
border-radius: 50px; | |
border: none; | |
background: #ededed; | |
text-align: center; | |
padding: 10px; | |
font-size: 15px; | |
color: #7c7c7c; | |
font-weight: 500; | |
} | |
.sign-panels input:focus { | |
outline:none; | |
} | |
.sign-panels input[type="checkbox"] { | |
display: none; | |
} | |
.sign-panels input[type="checkbox"] + label { | |
display: block; | |
width: 50%; | |
text-align: left; | |
padding-left: 60px; | |
cursor: pointer; | |
color: var(--theme-txtcolor); | |
font-weight: 500; | |
margin-top: 10px; | |
float: left; | |
height: 50px; | |
padding-top: 15px; | |
} | |
.sign-panels input[type="checkbox"] + label:before { | |
content: ''; | |
display: block; | |
width: 15px; | |
height: 15px; | |
background: #dbdbdb; | |
position: absolute; | |
left: 30px; | |
border-radius: 50%; | |
border: 2px solid white; | |
box-shadow: 0 0 0 5px #ededed; | |
-webkit-transition: all .3s ease; | |
transition: all .3s ease; | |
} | |
.sign-panels input[type="checkbox"]:checked + label:before { | |
background: var(--theme-txtcolor); | |
box-shadow: 0 0 0 5px var(--theme-txtcolor); | |
-webkit-transition: all .3s ease; | |
transition: all .3s ease; | |
} | |
.btn-signin { | |
display: inline-block; | |
width: 50%; | |
margin-top: 10px; | |
height: 50px; | |
background: #ec581e; | |
border-radius: 50px; | |
padding: 11px; | |
font-size: 20px; | |
color: var(--theme-txtcolor); | |
text-decoration: none; | |
font-weight: 500; | |
border: none; | |
box-shadow: none; | |
cursor: pointer; | |
} | |
.btn-reset,.btn-member,.btn-fade { | |
font-size: 19px; | |
font-weight: 500; | |
color: var(--theme-txtcolor); | |
display: block; | |
/*width: 210px;*/ | |
margin: 30px auto 0; | |
text-decoration: none; | |
} | |
.btn-member { | |
margin-top: 15px; | |
} | |
.btn-reset .fa,.btn-member .fa { | |
margin-left: 6px; | |
} | |
.notification p { | |
font-size: 20px; | |
font-weight: 600; | |
color: var(--theme-txtcolor); | |
} | |
.notification span { | |
color: var(--theme-txtcolor); | |
} | |
.error { | |
display: block; | |
color: #ec581e; | |
font-size: 20px; | |
font-weight: 600; | |
margin: 15px 0; | |
} | |
@media screen and (max-width: 768px) { | |
.sign-panels { | |
width: 90%; | |
padding: 40px; | |
} | |
} | |
@media screen and (max-width: 570px) { | |
.sign-panels { | |
padding: 40px 20px; | |
} | |
.btn-face, .btn-twitter { | |
width: 100%; | |
} | |
.btn-face { | |
margin-right: 0; | |
margin-bottom: 25px; | |
} | |
} | |
@media screen and (max-width: 480px) { | |
.sign-panels input[type="checkbox"] + label { | |
width: 100%; | |
} | |
.btn-signin { | |
width: 80%; | |
} | |
.title span { | |
font-size: 36px; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment