Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- slider_popper.js
- $(document).ready(function(){
- function updateContainers(){
- var currentWidth = window.innerWidth;
- if(currentWidth < 320){
- //code here
- }
- else if(currentWidth > 320 && currentWidth <= 480 ){
- $("#signup").click(function(){
- $("#signup_container").show("slide",{direction:'down'});
- });
- $("#signin").click(function(){
- $("#login_container").show("slide",{direction:'down'});
- });
- }
- else if(currentWidth > 480 && currentWidth <= 768){
- $('#signup_container').hide();
- $('#login_container').hide();
- $("#signup").click(function(){
- $("#signup_container").hide("slide",{direction:'up'});
- });
- $("#signin").click(function(){
- $("#login_container").hide("slide",{direction:'up'});
- });
- }
- else if(currentWidth > 768 && currentWidth <= 1024){
- $('#signup_container').hide();
- $('#login_container').hide();
- $("#signup").click(function(){
- $("#signup_container").hide("slide",{direction:'up'});
- });
- $("#signin").click(function(){
- $("#login_container").hide("slide",{direction:'up'});
- });
- }
- else{
- //width greater than 1024px
- }
- }
- updateContainers();
- $(window).resize(function(){
- updateContainers();
- });
- });
- login.css
- @charset "utf-8";
- /* CSS Document */
- html, body
- {
- width:100%;
- height: 100%;
- }
- body
- {
- background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 1)), url(../images/bg.jpg);
- background-attachment: fixed;
- background-position: center center;
- background-repeat: no-repeat;
- background-size: cover;
- }
- /*---Login Page---*/
- h7
- {
- font-family: 'Roboto', sans-serif;
- font-size:70px;
- color:#DDDDDD;
- }
- #container
- {
- margin-left:25%;
- margin-right:25%;
- }
- #greeting
- {
- width:100%;
- margin-top:15%;
- margin-bottom:15%;
- }
- #first_part, #second_part
- {
- text-align:center;
- }
- #first_part
- {
- font-size:52px;
- line-height:0.8;
- margin-bottom:30px;
- }
- #second_part
- {
- font-size:30px;
- }
- #google
- {
- background-color: #D34836;
- width:70%;
- height:35px;
- margin-bottom:20px;
- margin-left:15%;
- margin-right:15%;
- border:none;
- color:#FFFFFF;
- font-family:'Source Sans Pro', sans serif;
- font-size:15px;
- border-radius:5px;
- -moz-border-radius: 5px;
- -webkit-border-radius:5px;
- }
- #signup, #signin
- {
- font-family:'Source Sans Pro', sans serif;
- font-size:15px;
- background-color:transparent;
- border: solid 1px;
- border-color:#FFFFFF;
- border-radius:5px;
- -moz-border-radius: 5px;
- -webkit-border-radius:5px;
- color:#FFFFFF;
- width:33.6%;
- height:35px;
- }
- #signup
- {
- margin-left: 15%;
- margin-right:1%;
- }
- #signin
- {
- margin-right: 15%;
- margin-left:1%;
- }
- #signup_container, #login_container
- {
- width:50%;
- background-color:#FFFFFF;
- overflow:hidden;
- text-align:center;
- border-top: 1px solid #D1D1D1;
- box-shadow:0px -1px 2px #888888;
- -webkit-box-shadow:0px -1px 2px #888888;
- -moz-box-shadow:0px -1px 2px #888888;
- opacity:0.9;
- display:none;
- }
- @media only screen and (min-width: 320px) and (max-width: 480px) and (orientation: portrait)
- {
- /*---Login Page---*/
- h7
- {
- font-family: 'Roboto', sans-serif;
- font-size:52px;
- color:#DDDDDD;
- }
- #container
- {
- margin-left:8%;
- margin-right:8%;
- }
- #greeting
- {
- width:100%;
- margin-top:28%;
- margin-bottom:32%;
- }
- #first_part
- {
- font-size:38px;
- line-height:0.8;
- margin-bottom:30px;
- }
- #second_part
- {
- font-size:22px;
- }
- #google
- {
- margin:0px;
- width:100%;
- margin-bottom:20px;
- }
- #signup, #signin
- {
- font-family:'Source Sans Pro', sans serif;
- font-size:15px;
- background-color:transparent;
- border: solid 1px;
- border-color:#FFFFFF;
- border-radius:5px;
- -moz-border-radius: 5px;
- -webkit-border-radius:5px;
- color:#FFFFFF;
- width:48%;
- height:35px;
- margin:0px;
- }
- #signin
- {
- margin-left: 3%;
- }
- #signup_container, #login_container
- {
- width:100%;
- overflow:hidden;
- text-align:center;
- border-top: 1px solid #D1D1D1;
- box-shadow:0px -1px 2px #888888;
- -webkit-box-shadow:0px -1px 2px #888888;
- -moz-box-shadow:0px -1px 2px #888888;
- opacity:0.9;
- position:absolute;
- bottom:0px;
- display:none;
- }
- #forgot
- {
- font-size:14px;
- margin-top:4%;
- }
- input[type=text], input[type=email], input[type=password]
- {
- width:100%;
- padding-bottom:20px;
- padding-top:10px;
- padding-left:10px;
- padding-right:10px;
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- border:none;
- border-bottom: 1px solid #D1D1D1;
- color:#2A2929;
- }
- #join, #login
- {
- font-family:'Source Sans Pro', sans serif;
- font-size:15px;
- background-color:#111111;
- border: solid 1px;
- border-color:#111111;
- border-radius:5px;
- -moz-border-radius: 5px;
- -webkit-border-radius:5px;
- color:#FFFFFF;
- width:94%;
- height:35px;
- margin-left:3%;
- margin-right:3%;
- margin-top:2%;
- margin-bottom:5%;
- }
- }
- login.php
- <!doctype html>
- <html>
- <head>
- <meta charset="utf-8">
- <title>Hungry | Get Started</title>
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
- <link href="css/global.css" rel="stylesheet">
- <link href="css/header.css" rel="stylesheet">
- <link href="css/login.css" rel="stylesheet">
- <link href="https://maxcdn.bootstrapcdn.com/font-awesome/4.6.1/css/font-awesome.min.css" rel="stylesheet">
- <link href='https://fonts.googleapis.com/css?family=Roboto:700|Source+Sans+Pro' rel='stylesheet' type='text/css'>
- <script src="js/jquery-1.11.3.min.js"></script>
- <script src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.10.3/jquery-ui.min.js"></script>
- <script src="js/slider_popper.js"></script>
- </head>
- <body>
- <?php include('includes/header.php'); ?>
- <div id="container">
- <div id="greeting">
- <div id="first_part">
- <span>Go<br></span>
- <span><h7>Hungry</h7><br><br></span>
- </div>
- <div id="second_part">
- <span><i>love,</i><br></span>
- <span><u>yum yum</u></span>
- </div>
- </div>
- <div id="actions_container">
- <button id="google" type="button"><i class="fa fa-google fa-lg fa-fw" aria-hidden="true"> </i>CONNECT WITH GOOGLE</button>
- <button id="signup" type="button">SIGN UP</button>
- <button id="signin" type="button">SIGN IN</button>
- </div>
- </div>
- <div id="signup_container">
- <input type="text" placeholder="First Name">
- <input type="text" placeholder="Last Name">
- <input type="email" placeholder="Email">
- <input type="password" placeholder="Create Password">
- <button id="join" type="button">JOIN YUM YUM</button>
- </div>
- <div id="login_container">
- <input type="email" placeholder="Email">
- <input type="password" placeholder="Password">
- <div id="forgot">Forgot Your Password?</div>
- <button id="login" type="button">SIGN INTO YUM YUM</button>
- </div>
- </body>
- </html>
Add Comment
Please, Sign In to add comment