Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new login form 34 #161

Open
wants to merge 8 commits into
base: main
Choose a base branch
from
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
267 changes: 267 additions & 0 deletions login-form-34/css/style.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,267 @@
@charset "UTF-8";
body {
margin: 0;
height: 100%;
overflow: hidden;
width: 100% !important;
box-sizing: border-box;
font-family: "Roboto", sans-serif;
}

.backRight {
position: absolute;
right: 0;
width: 50%;
height: 100%;
background: aquamarine;
}

.backLeft {
position: absolute;
left: 0;
width: 50%;
height: 100%;
background: #421590;
}

#back {
width: 100%;
height: 100%;
position: absolute;
z-index: -999;
}

.canvas-back {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
z-index: 10;
}

#slideBox {
width: 50%;
max-height: 100%;
height: 100%;
overflow: hidden;
margin-left: 50%;
position: absolute;
box-shadow: 0 14px 28px rgba(0, 0, 0, 0.25), 0 10px 10px rgba(0, 0, 0, 0.22);
}

.topLayer {
width: 200%;
height: 100%;
position: relative;
left: 0;
left: -100%;
}

label {
font-size: 0.8em;
text-transform: uppercase;
}

input {
background-color: transparent;
border: 0;
outline: 0;
font-size: 1em;
padding: 8px 1px;
margin-top: 0.1em;
}

.left {
width: 50%;
height: 100%;
overflow: scroll;
background: #2C3034;
left: 0;
position: absolute;
}
.left label {
color: #e3e3e3;
}
.left input {
border-bottom: 1px solid #e3e3e3;
color: #e3e3e3;
}
.left input:focus, .left input:active {
border-color:aquamarine;
color:white;
}
.left input:-webkit-autofill {
-webkit-box-shadow: 0 0 0 30px #2C3034 inset;
-webkit-text-fill-color: #e3e3e3;
}
.left a {
color: aquamarine;
}

.right {
width: 50%;
height: 100%;
overflow: scroll;
background: #f9f9f9;
right: 0;
position: absolute;
}
.right label {
color: #212121;
}
.right input {
border-bottom: 1px solid #212121;
}
.right input:focus, .right input:active {
border-color: #673AB7;
}
.right input:-webkit-autofill {
-webkit-box-shadow: 0 0 0 30px #f9f9f9 inset;
-webkit-text-fill-color: #212121;
}

.content {
display: flex;
flex-direction: column;
justify-content: center;
min-height: 100%;
width: 80%;
margin: 0 auto;
position: relative;
}

.content h2 {
font-weight: 300;
font-size: 2.6em;
margin: 0.2em 0 0.1em;
}

.left .content h2 {
color: aquamarine;
}

.right .content h2 {
color: #673AB7;
}

.form-element {
margin: 1.6em 0;
}
.form-element.form-submit {
margin: 1.6em 0 0;
}

.form-stack {
display: flex;
flex-direction: column;
}

.checkbox {
-webkit-appearance: none;
outline: none;
background-color: #e3e3e3;
border: 1px solid #e3e3e3;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05);
padding: 12px;
border-radius: 4px;
display: inline-block;
position: relative;
}

.checkbox:focus, .checkbox:checked:focus,
.checkbox:active, .checkbox:checked:active {
border-color: aquamarine;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px 1px 3px rgba(0, 0, 0, 0.1);
}

.checkbox:checked {
outline: none;
box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05), inset 0px -15px 10px -12px rgba(0, 0, 0, 0.05), inset 15px 10px -12px rgba(255, 255, 255, 0.1);
}

.checkbox:checked:after {
outline: none;
content: "✓";
color: #03A9F4;
font-size: 1.4em;
font-weight: 900;
position: absolute;
top: -4px;
left: 4px;
}

.form-checkbox {
display: flex;
align-items: center;
}
.form-checkbox label {
margin: 0 6px 0;
font-size: 0.72em;
}

button {
padding: 0.8em 1.2em;
margin: 0 10px 0 0;
width: auto;
font-weight: 600;
text-transform: uppercase;
font-size: 1em;
color: #fff;
line-height: 1em;
letter-spacing: 0.6px;
border-radius: 3px;
box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
border: 0;
outline: 0;
transition: all 0.25s;
}
button.signup {
background: #03A9F4;
}
button.login {
background: #673AB7;
}
button.off {
background: none;
box-shadow: none;
margin: 0;
}
button.off.signup {
color: #03A9F4;
}
button.off.login {
color: #673AB7;
}

button:focus, button:active, button:hover {
box-shadow: 0 4px 7px rgba(0, 0, 0, 0.1), 0 3px 6px rgba(0, 0, 0, 0.1);
}
button:focus.signup, button:active.signup, button:hover.signup {
background: #0288D1;
}
button:focus.login, button:active.login, button:hover.login {
background: #512DA8;
}
button:focus.off, button:active.off, button:hover.off {
box-shadow: none;
}
button:focus.off.signup, button:active.off.signup, button:hover.off.signup {
color: #03A9F4;
background: #212121;
}
button:focus.off.login, button:active.off.login, button:hover.off.login {
color: #512DA8;
background: #e3e3e3;
}

@media only screen and (max-width: 768px) {
#slideBox {
width: 80%;
margin-left: 20%;
}

.signup-info, .login-info {
display: none;
}
}
76 changes: 76 additions & 0 deletions login-form-34/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,76 @@
<!DOCTYPE html>
<html lang="en" >
<head>
<meta charset="UTF-8">
<title>Login or Sign Up</title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<link href='https://fonts.googleapis.com/css?family=Roboto:300,400,600' rel='stylesheet' type='text/css'><link rel="stylesheet" href="./style.css">

</head>
<body>

<div id="back">
<canvas id="canvas" class="canvas-back"></canvas>
<div class="backRight">
</div>
<div class="backLeft">
</div>
</div>

<div id="slideBox">
<div class="topLayer">
<div class="left">
<div class="content">
<h2>Sign Up</h2>
<form id="form-signup" method="post" onsubmit="return false;">
<div class="form-element form-stack">
<label for="email" class="form-label">Email</label>
<input id="email" type="email" name="email">
</div>
<div class="form-element form-stack">
<label for="username-signup" class="form-label">Username</label>
<input id="username-signup" type="text" name="username">
</div>
<div class="form-element form-stack">
<label for="password-signup" class="form-label">Password</label>
<input id="password-signup" type="password" name="password">
</div>
<div class="form-element form-checkbox">
<input id="confirm-terms" type="checkbox" name="confirm" value="yes" class="checkbox">
<label for="confirm-terms">I agree to the <a href="#">Terms of Service</a> and <a href="#">Privacy Policy</a></label>
</div>
<div class="form-element form-submit">
<button id="signUp" class="signup" type="submit" name="signup">Sign up</button>
<button id="goLeft" class="signup off">Log In</button>
</div>
</form>
</div>
</div>
<div class="right">
<div class="content">
<h2>Login</h2>
<form id="form-login" method="post" onsubmit="return false;">
<div class="form-element form-stack">
<label for="username-login" class="form-label">Username</label>
<input id="username-login" type="text" name="username">
</div>
<div class="form-element form-stack">
<label for="password-login" class="form-label">Password</label>
<input id="password-login" type="password" name="password">
</div>
<div class="form-element form-submit">
<button id="logIn" class="login" type="submit" name="login">Log In</button>
<button id="goRight" class="login off" name="signup">Sign Up</button>
</div>
</form>
</div>
</div>
</div>
</div>


<script src='https://cdnjs.cloudflare.com/ajax/libs/jquery/3.3.1/jquery.js'></script>
<script src='https://cdnjs.cloudflare.com/ajax/libs/paper.js/0.11.3/paper-full.min.js'></script><script src="./script.js"></script>

</body>
</html>
Loading