Last active
November 15, 2016 08:07
-
-
Save hariadi/e83926363f4d02816317828a34c627a6 to your computer and use it in GitHub Desktop.
Simple login template with Bootstrap
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
<!DOCTYPE html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<meta http-equiv="X-UA-Compatible" content="IE=edge"> | |
<meta name="viewport" content="width=device-width, initial-scale=1"> | |
<title>Login Page</title> | |
<!-- Bootstrap core CSS --> | |
<link href="http://netdna.bootstrapcdn.com/bootstrap/3.1.0/css/bootstrap.min.css" rel="stylesheet"> | |
<style> | |
body { | |
padding-top: 40px; | |
padding-bottom: 40px; | |
background-color: #eee; | |
} | |
.form-signin { | |
max-width: 330px; | |
padding: 15px; | |
margin: 0 auto; | |
} | |
.form-signin .form-signin-heading, | |
.form-signin .checkbox { | |
margin-bottom: 10px; | |
} | |
.form-signin .checkbox { | |
font-weight: normal; | |
} | |
.form-signin .form-control { | |
position: relative; | |
height: auto; | |
-webkit-box-sizing: border-box; | |
-moz-box-sizing: border-box; | |
box-sizing: border-box; | |
padding: 10px; | |
font-size: 16px; | |
} | |
.form-signin .form-control:focus { | |
z-index: 2; | |
} | |
.form-signin input[type="email"] { | |
margin-bottom: -1px; | |
border-bottom-right-radius: 0; | |
border-bottom-left-radius: 0; | |
} | |
.form-signin input[type="password"] { | |
margin-bottom: 10px; | |
border-top-left-radius: 0; | |
border-top-right-radius: 0; | |
} | |
</style> | |
<!-- Custom styles for this template --> | |
<link href="signin.css" rel="stylesheet"> | |
<!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries --> | |
<!--[if lt IE 9]> | |
<script src="https://oss.maxcdn.com/html5shiv/3.7.3/html5shiv.min.js"></script> | |
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script> | |
<![endif]--> | |
</head> | |
<body> | |
<div class="container"> | |
<form class="form-signin"> | |
<h2 class="form-signin-heading">Daftar Masuk</h2> | |
<label for="inputEmail" class="sr-only">E-mel</label> | |
<input type="email" name="email" id="inputEmail" class="form-control" placeholder="Email address" required autofocus> | |
<label for="inputPassword" class="sr-only">Katalaluan</label> | |
<input type="password" name="password" id="inputPassword" class="form-control" placeholder="Katalaluan" required> | |
<div class="checkbox"> | |
<label> | |
<input type="checkbox" value="remember-me"> Ingatkan saya | |
</label> | |
</div> | |
<button class="btn btn-lg btn-primary btn-block" type="submit">Masuk</button> | |
</form> | |
</div> <!-- /container --> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment