Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- body {
- font-family: "Lato", sans-serif;
- margin:0px;
- }
- .sidenav {
- height: 100%;
- width: 0;
- position: fixed;
- z-index: 1;
- top: 0;
- left: 0;
- background-color: #15a0f2;
- overflow-x: hidden;
- transition: 0.5s;
- padding-top: 60px;
- }
- .sidenav a {
- padding: 8px 8px 8px 32px;
- text-decoration: none;
- font-size: 25px;
- color: white;
- display: block;
- transition: 0.3s;
- }
- .sidenav a:hover {
- color: #555;
- }
- .sidenav .closebtn {
- position: absolute;
- top: 0;
- right: 25px;
- font-size: 36px;
- margin-left: 50px;
- }
- #navbar {
- position: sticky;
- top: 0;
- overflow: hidden;
- color: white;
- background-color: #20a5f7;
- }
- @media screen and (max-height: 450px) {
- .sidenav {padding-top: 15px;}
- .sidenav a {font-size: 18px;}
- }
- .center {
- text-align: center;
- margin: auto;
- padding: 10px;
- }
- form {
- border: 3px solid #f1f1f1;
- }
- input[type=text],
- input[type=password] {
- width: 100%;
- padding: 12px 20px;
- margin: 8px 0;
- display: inline-block;
- border: 1px solid #ccc;
- box-sizing: border-box;
- }
- button {
- background-color: #20a5f7;
- color: white;
- padding: 14px 20px;
- margin: 8px 0;
- border: none;
- cursor: pointer;
- width: 100%;
- }
- button:hover {
- opacity: 0.8;
- }
- .cancelbtn {
- width: auto;
- padding: 10px 18px;
- background-color: #f44336;
- }
- #menubtn{
- margin-left:8px;
- }
- .imgcontainer {
- text-align: center;
- margin: 24px 0 12px 0;
- }
- img.avatar {
- width: 40%;
- border-radius: 50%;
- }
- .container {
- padding: 16px;
- }
- span.psw {
- float: right;
- padding-top: 16px;
- }
- .cancelbtn {
- width: 100%;
- }
- }
- </style>
- </head>
- <body>
- <div id="mySidenav" class="sidenav">
- <a href="javascript:void(0)" class="closebtn" onclick="closeNav()">×</a>
- <a href="#">About</a>
- <a href="#">Services</a>
- <a href="#">Clients</a>
- <a href="#">Contact</a>
- </div>
- <div id="navbar">
- <span id="menubtn" style="font-size:30px;cursor:pointer" onclick="openNav()">☰ <div class="center">Welcome</div></span>
- </div>
- <div class="center">
- <!DOCTYPE html>
- <html>
- <head>
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <style>
- </style>
- </head>
- <body>
- <h2>Login Form</h2>
- <form action="" method="post">
- <!-- <div class="imgcontainer"> -->
- <!-- <img src="" alt="Avatar" class="avatar"> -->
- <!-- </div> -->
- <div class="container">
- <label for="uname"><b>Username</b></label>
- <input type="text" placeholder="Enter Username" name="uname" required>
- <label for="psw"><b>Password</b></label>
- <input type="password" placeholder="Enter Password" name="psw" required>
- <button type="submit">Login</button>
- <!--
- <label>
- <input type="checkbox" checked="checked" name="remember"> Remember me
- </label>
- </div>
- <div class="container" style="background-color:#f1f1f1">
- <button type="button" class="cancelbtn">Cancel</button>
- <span class="psw">Forgot <a href="#">password?</a></span>
- </div>
- -->
- </form>
- </body>
- </html>
- </div>
- <script>
- function openNav() {
- document.getElementById("mySidenav").style.width = "250px";
- }
- function closeNav() {
- document.getElementById("mySidenav").style.width = "0";
- }
- </script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement