Skip to content

Commit

Permalink
Merge pull request #122 from MojtabaZare/master
Browse files Browse the repository at this point in the history
simple, minimal login form
  • Loading branch information
ShravanMeena authored Oct 23, 2019
2 parents 8d62298 + 3d3b9ac commit 7e4aa51
Show file tree
Hide file tree
Showing 3 changed files with 81 additions and 0 deletions.
Empty file.
63 changes: 63 additions & 0 deletions Log In Form Designs/MZ-login-form2/css/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
body{
font-family: 'Space Mono', monospace;
background: #ad5389; /* fallback for old browsers */
background: -webkit-linear-gradient(to right, #3c1053, #ad5389); /* Chrome 10-25, Safari 5.1-6 */
background: linear-gradient(to right, #3c1053, #ad5389); /* W3C, IE 10+/ Edge, Firefox 16+, Chrome 26+, Opera 12+, Safari 7+ */
color: white;
}
*:focus {
outline: none;
}
#login-container{
margin: 5% auto;
width: 35%;
padding: 50px;
box-shadow: 0 0 5px white;
text-align: center;
}
h1{
text-shadow: 1px 1px 2px white;
}
form *{
display: block;
margin: auto;
}
form input{
width: 100%;
height: 40px;
text-align: center;
font-family: inherit;
background-color: unset;
margin-bottom: 10px;
border: none;
color: inherit;
-webkit-transition: 0.5s;
transition: 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}
form input:focus{
box-shadow: 0 0 5px white;
}
form input::placeholder{
color: #ccc;
}
form button{
border: none;
background-color: unset;
font-size: 20px;
font-family: inherit;
cursor: pointer;
color: inherit;
margin-top: 20px;
width: 100%;
padding: 10px 0;
transition: 0.5s;
}
form button:hover{
box-shadow: 0 0 5px white;
}
@media (max-width: 768px){
#login-container{
width: 80%;
padding: 20px;
}
}
18 changes: 18 additions & 0 deletions Log In Form Designs/MZ-login-form2/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html>
<head>
<title>login</title>
<link href="https://fonts.googleapis.com/css?family=Space+Mono&display=swap" rel="stylesheet">
<link rel="stylesheet" href="css/index.css">
</head>
<body>
<div id="login-container">
<h1>Login form</h1>
<form>
<input type="text" placeholder="username">
<input type="password" placeholder="password">
<button>Login</button>
</form>
</div>
</body>
</html>

0 comments on commit 7e4aa51

Please sign in to comment.