<!DOCTYPE html>
<head>
<meta charset="utf-8" />
<link rel="stylesheet" href="style.css" />
<link rel="stylesheet" href="hamburger.css" />
<script data-require="angular.js@1.0.x" src="https://code.angularjs.org/1.0.8/angular.js" data-semver="1.0.8"></script>
<script src='http://cdnjs.cloudflare.com/ajax/libs/jquery/2.1.3/jquery.min.js'></script>
<script src="app.js"></script>
<script>
function FormHide() {
document.getElementById("mainFrameOne").style.display="none";
document.getElementById("mainFrameTwo").style.display="block";
}
</script>
</head>
<nav role="navigation">
<div id="menuToggle">
<!-- hidden checkbox is used as click reciever,
for use of the :checked selector -->
<input type="checkbox"/>
<!--spans to act as a hamburger-->
<span></span>
<span></span>
<span></span>
<ul id="menu">
<a href="#"><li>These</li></a>
<a href="#"><li>Are</li></a>
<a href="#"><li>Our</li></a>
<a href="#"><li>Menu</li></a>
<a href="#"><li>Options</li></a>
</ul>
</div>
</nav>
<body>
<div class="login-page">
<div class="form" id="mainFrameOne">
<!-- <div class="head-box">
<p>best t3am</p>
</div> -->
<div id="staff-login">
<form class="staff-form">
<fieldset>
<input type="user" placeholder="username" />
<input type="password" placeholder="password" />
<button type="submit" onClick="FormHide()">login</button>
<button id="cancel">Cancel</button>
</fieldset>
<p class="message">Not Staff? <a href="#">Student Login</a></p>
</form>
</div>
<div id="student-login">
<form class="student-form">
<fieldset>
<input type="user" placeholder="username" />
<input type="password" placeholder="password" />
<button type="submit" onClick="FormHide()">login</button>
<button id="cancel">Cancel</button>
<p class="message">Not a student? <a href="#">Staff login</a></p>
</fieldset>
</form>
</div>
</div>
</div>
<script>
$(document).on("submit", "input#send", function(event) {
event.stopPropagation();
$.ajax({
type: 'POST',
url: add.php,
data: data,
success: success,
dataType: dataType
});
return false; });
</script>
<script>
$('.message a').on('click', function(){
$('form').animate({height: "toggle", opacity: "toggle"}, "slow");
});
</script>
<!-- mainframe two is hidden when the login popup is visable (display:none) -->
<div id="mainFrameTwo" style="display:none;"</div>
<div class="content" id="student">
<p> special student stuff </p>
</div>
<div class="content" id="staff">
<p> special staff stuff </p>
</div>
</div>
</div>
</body>
</html>
@import url('https://fonts.googleapis.com/css?family=Montserrat|Noto+Sans|Noto+Serif|Open+Sans|Roboto|Source+Sans+Pro|Ubuntu');
body {
background: #f5f4f7;
font-family: "Open Sans", sans-serif;
margin: 0;
padding: 0;
color: #665f62;
width: 100%;
}
.login-page {
width: 470px;
padding: 8% 0 0;
margin: auto;
}
.head-box {
background:#a4bc8b;
font-family: "Open Sans", sans-serif;
text-transform: uppercase;
outline: 0;
width: 85%;
border: 0;
margin: 0 auto 90px;
padding: 15px;
color: #FFFFFF;
box-sizing: border-box;
border-radius: 22px;
font-size: 24px;
}
fieldset {
display: block;
margin: 0;
padding: 0;
border: none;
}
.form {
position: fixed;
z-index: 1;
background: #c1bfc1;
width: 80%;
max-width: 380px;
margin: 20vh auto;
border-radius: 25px;
padding: 45px;
text-align: center;
box-shadow: 0 0 15px 0 rgba(0, 0, 0, 0.1), 0 10px 10px 0 rgba(0, 0, 0, 0.1);
}
.form input {
font-family: "Open Sans", sans-serif;
outline: 0;
background: #f5f4f7;
width: 100%;
border: 0;
margin: 0 0 15px;
padding: 10px;
padding-left: 20px;
color: #c1bfc1;
box-sizing: border-box;
border-radius: 30px;
font-size: 14px;
}
.form button {
font-family: "Open Sans", sans-serif;
text-transform: uppercase;
outline: 0;
background: #5498a9;
width: 51%;
border: 0;
padding: 10px;
color: #FFFFFF;
border-radius: 30px;
font-size: 14px;
margin: 0 0 10px;
-webkit-transition: all 0.3 ease;
transition: all 0.3 ease;
cursor: pointer;
}
.form button:hover,
.form button:active,
.form button:focus {
background: #3e7887;
color: #FFFFFF;
}
#cancel {
background: #f5f4f7;
color: #665f62;
}
#cancel:hover {
background: #d9d8da;
color: #FFFFFF;
}
.form .message {
margin: 15px 0 0;
color: #665f62;
font-size: 12px;
}
.form .message a {
color: #FFFFFF;
text-decoration: none;
}
.form .staff-form {
display: none;
}
.container {
position: relative;
z-index: 1;
max-width: 300px;
margin: 0 auto;
}
.container:before,
.container:after {
content: "";
display: block;
clear: both;
}
.container .info {
margin: 50px auto;
text-align: center;
}
.container .info h1 {
margin: 0 0 15px;
padding: 0;
font-size: 36px;
font-weight: 300;
color: #1a1a1a;
}
.container .info span {
color: #4d4d4d;
font-size: 12px;
}
.container .info span a {
color: #000000;
text-decoration: none;
}
.container .info span .fa {
color: #EF3B3A;
}
.content {
position: static;
margin: 33px;
margin-bottom: 25px;
padding: 5px 25px;
width: auto;
border-radius: 12px;
z-index: -1;
}
#student, #staff {
background: #ffffff;
height: 600px;
}
#staff {
}
#student {
}
a
{
text-decoration: none;
color: #665f62;
transition: color 0.3s ease;
}
a:hover
{
color: #5498a9;
}
#menuToggle
{
display: block;
position: relative;
top: 50px;
left: 50px;
z-index: 3;
-webkit-user-select: none;
user-select: none;
}
#menuToggle input
{
display: block;
width: 40px;
height: 32px;
position: absolute;
top: -7px;
left: -5px;
cursor: pointer;
opacity: 0; /* hide this */
z-index: 4; /* and place it over the hamburger */
-webkit-touch-callout: none;
}
/*
* Just a quick hamburger
*/
#menuToggle span
{
display: block;
width: 33px;
height: 4px;
margin-bottom: 5px;
position: relative;
background: #5498a9;
border-radius: 3px;
z-index: 3;
transform-origin: 4px 0px;
transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
background 0.5s cubic-bezier(0.77,0.2,0.05,1.0),
opacity 0.55s ease;
}
#menuToggle span:first-child
{
transform-origin: 0% 0%;
}
#menuToggle span:nth-last-child(2)
{
transform-origin: 0% 100%;
}
/*
* Transform all the slices of hamburger
* into a crossmark.
*/
#menuToggle input:checked ~ span
{
opacity: 1;
transform: rotate(45deg) translate(-2px, -1px);
background: #c1bfc1;
}
/*
* But let's hide the middle one.
*/
#menuToggle input:checked ~ span:nth-last-child(3)
{
opacity: 0;
transform: rotate(0deg) scale(0.2, 0.2);
}
/*
* Ohyeah and the last one should go the other direction
*/
#menuToggle input:checked ~ span:nth-last-child(2)
{
opacity: 1;
transform: rotate(-45deg) translate(0, -1px);
}
/*
* Make this absolute positioned
* at the top left of the screen
*/
#menu
{
position: absolute;
width: 250px;
margin: -100px 0 0 -50px;
padding: 50px;
padding-top: 125px;
background: #eeedef;
list-style-type: none;
-webkit-font-smoothing: antialiased;
/* to stop flickering of text in safari */
transform-origin: 0% 0%;
//transform: translate(-100%, 0);
transition: transform 0.5s cubic-bezier(0.77,0.2,0.05,1.0);
}
#menu li
{
padding: 10px 0;
font-size: 22px;
}
/*
* And let's fade it in from the left
*/
#menuToggle input:checked ~ ul
{
transform: translate(-100%, 0);
opacity: 1;
}
#menuToggle{
position:fixed;
left: calc(100vw - 70px);
top:calc(100vh - 50px);
}
#menu{
top: calc(-100vh + 50px);
left: 70px;
margin: 0;
margin-top: -100px;
height: 100vh;
z-index: 2;
}
html{
max-width: 100vw;
overflow-x: hidden;
}