This repository has been archived by the owner on Oct 1, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* put up a login page * build a navigation bar
- Loading branch information
1 parent
c6a770c
commit 8ac31f1
Showing
2 changed files
with
227 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,51 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<!-- Required meta tags --> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
<!-- Bootstrap CSS --> | ||
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous"> | ||
|
||
</head> | ||
<body data-spy="scroll" data-target="#navScrollspy"> | ||
<nav class="navbar bg-primary navbar-dark navbar-expand-md fixed-top"> | ||
<a href="#" class="navbar-brand">Cameo</a> | ||
<button type="button" class="navbar-toggler navbar-toggler-right" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation"> | ||
<span class="navbar-toggler-icon"></span> | ||
</button> | ||
<div class="collapse navbar-collapse" id="navbarNav"> | ||
<ul class="navbar-nav" id="navScrollspy"> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#top">To the top</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#description">Description</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#trailer">Trailer</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#showcase">Showcase</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#features">Features</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#pricing">Pricing</a> | ||
</li> | ||
<li class="nav-item"> | ||
<a class="nav-link" href="#reviews">Reviews</a> | ||
</li> | ||
</ul> | ||
</div> | ||
</nav> | ||
|
||
<!-- jQuery first, then Popper.js, then Bootstrap JS. --> | ||
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous"></script> | ||
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous"></script> | ||
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous"></script> | ||
|
||
</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,176 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<meta name="viewport" content="width=device-width, initial-scale=1"> | ||
<style> | ||
body {font-family: Arial, Helvetica, sans-serif;} | ||
|
||
/* Full-width input fields */ | ||
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; | ||
} | ||
|
||
/* Set a style for all buttons */ | ||
button { | ||
background-color: #4CAF50; | ||
color: white; | ||
padding: 14px 20px; | ||
margin: 8px 0; | ||
border: none; | ||
cursor: pointer; | ||
width: 100%; | ||
} | ||
|
||
button:hover { | ||
opacity: 0.8; | ||
} | ||
|
||
/* Extra styles for the cancel button */ | ||
.cancelbtn { | ||
width: auto; | ||
padding: 10px 18px; | ||
background-color: #f44336; | ||
} | ||
|
||
/* Center the image and position the close button */ | ||
.imgcontainer { | ||
text-align: center; | ||
margin: 24px 0 12px 0; | ||
position: relative; | ||
} | ||
|
||
img.avatar { | ||
width: 40%; | ||
border-radius: 50%; | ||
} | ||
|
||
.container { | ||
padding: 16px; | ||
} | ||
|
||
span.psw { | ||
float: right; | ||
padding-top: 16px; | ||
} | ||
|
||
/* The Modal (background) */ | ||
.modal { | ||
display: none; /* Hidden by default */ | ||
position: fixed; /* Stay in place */ | ||
z-index: 1; /* Sit on top */ | ||
left: 0; | ||
top: 0; | ||
width: 100%; /* Full width */ | ||
height: 100%; /* Full height */ | ||
overflow: auto; /* Enable scroll if needed */ | ||
background-color: rgb(0,0,0); /* Fallback color */ | ||
background-color: rgba(0,0,0,0.4); /* Black w/ opacity */ | ||
padding-top: 60px; | ||
} | ||
|
||
/* Modal Content/Box */ | ||
.modal-content { | ||
background-color: #fefefe; | ||
margin: 5% auto 15% auto; /* 5% from the top, 15% from the bottom and centered */ | ||
border: 1px solid #888; | ||
width: 80%; /* Could be more or less, depending on screen size */ | ||
} | ||
|
||
/* The Close Button (x) */ | ||
.close { | ||
position: absolute; | ||
right: 25px; | ||
top: 0; | ||
color: #000; | ||
font-size: 35px; | ||
font-weight: bold; | ||
} | ||
|
||
.close:hover, | ||
.close:focus { | ||
color: red; | ||
cursor: pointer; | ||
} | ||
|
||
/* Add Zoom Animation */ | ||
.animate { | ||
-webkit-animation: animatezoom 0.6s; | ||
animation: animatezoom 0.6s | ||
} | ||
|
||
@-webkit-keyframes animatezoom { | ||
from {-webkit-transform: scale(0)} | ||
to {-webkit-transform: scale(1)} | ||
} | ||
|
||
@keyframes animatezoom { | ||
from {transform: scale(0)} | ||
to {transform: scale(1)} | ||
} | ||
|
||
/* Change styles for span and cancel button on extra small screens */ | ||
@media screen and (max-width: 300px) { | ||
span.psw { | ||
display: block; | ||
float: none; | ||
} | ||
.cancelbtn { | ||
width: 100%; | ||
} | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
|
||
<h1>Welcome to my Login page..</h1><br> | ||
<h3>If you are an already registered user the directly login through clicking to this "login" button</h3> | ||
|
||
<button onclick="document.getElementById('id01').style.display='block'" style="width:auto;">Login</button> | ||
|
||
<div id="id01" class="modal"> | ||
|
||
<form class="modal-content animate" action="/action_page.php"> | ||
<div class="imgcontainer"> | ||
<span onclick="document.getElementById('id01').style.display='none'" class="close" title="Close Modal">×</span> | ||
<img src="pic.jpg" 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" onclick="document.getElementById('id01').style.display='none'" class="cancelbtn">Cancel</button> | ||
<span class="psw">Forgot <a href="#">password?</a></span> | ||
</div> | ||
</form> | ||
</div> | ||
|
||
<script> | ||
// Get the modal | ||
var modal = document.getElementById('id01'); | ||
|
||
// When the user clicks anywhere outside of the modal, close it | ||
window.onclick = function(event) { | ||
if (event.target == modal) { | ||
modal.style.display = "none"; | ||
} | ||
} | ||
</script> | ||
|
||
</body> | ||
</html> |
8ac31f1
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Successfully aliased the URL https://lingonsaft-hacktober-otebkzntxb.now.sh to the following alias.