-
Notifications
You must be signed in to change notification settings - Fork 54
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #72 from pandeyankur1324/bootstrap_form
add#69: Form added
- Loading branch information
Showing
2 changed files
with
74 additions
and
0 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
|
||
<head> | ||
<meta charset="UTF-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Form</title> | ||
<link rel="stylesheet" href="style.css"> | ||
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bootstrap/5.3.2/css/bootstrap.min.css" | ||
integrity="sha512-b2QcS5SsA8tZodcDtGRELiGv5SaKSk1vDHDaQRda0htPYWZ6046lr3kJ5bAAQdpV2mmA/4v0wQF9MyU6/pDIAg==" | ||
crossorigin="anonymous" referrerpolicy="no-referrer" /> | ||
</head> | ||
|
||
<body> | ||
<div class="wrapper"> | ||
<form class="form-signin"> | ||
<h2 class="form-signin-heading">Please login</h2> | ||
<input type="text" class="form-control" name="username" placeholder="Email Address" required="" | ||
autofocus="" /> | ||
<input type="password" class="form-control" name="password" placeholder="Password" required="" /> | ||
<label class="checkbox"> | ||
<input type="checkbox" value="remember-me" id="rememberMe" name="rememberMe"> Remember me | ||
</label> | ||
<button class="btn btn-lg btn-primary btn-block" type="submit">Login</button> | ||
</form> | ||
</div> | ||
</body> | ||
|
||
</html> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
body { | ||
background: #eee !important; | ||
} | ||
|
||
.wrapper { | ||
margin-top: 80px; | ||
margin-bottom: 80px; | ||
} | ||
|
||
.form-signin { | ||
max-width: 380px; | ||
padding: 15px 35px 45px; | ||
margin: 0 auto; | ||
background-color: #fff; | ||
border: 1px solid rgba(0, 0, 0, 0.1); | ||
} | ||
.form-signin .form-signin-heading, | ||
.form-signin .checkbox { | ||
margin-bottom: 30px; | ||
} | ||
.form-signin .checkbox { | ||
font-weight: normal; | ||
} | ||
.form-signin .form-control { | ||
position: relative; | ||
font-size: 16px; | ||
height: auto; | ||
padding: 10px; | ||
-webkit-box-sizing: border-box; | ||
-moz-box-sizing: border-box; | ||
box-sizing: border-box; | ||
} | ||
.form-signin .form-control:focus { | ||
z-index: 2; | ||
} | ||
.form-signin input[type="text"] { | ||
margin-bottom: -1px; | ||
border-bottom-left-radius: 0; | ||
border-bottom-right-radius: 0; | ||
} | ||
.form-signin input[type="password"] { | ||
margin-bottom: 20px; | ||
border-top-left-radius: 0; | ||
border-top-right-radius: 0; | ||
} |