Advertisement
Guest User

Untitled

a guest
May 29th, 2016
323
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
HTML 5 9.29 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html lang="en">
  3.     <head>
  4.         <!-- Required meta tags always come first -->
  5.         <meta charset="utf-8">
  6.         <meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
  7.         <meta http-equiv="x-ua-compatible" content="ie=edge">
  8.  
  9.         <!-- Bootstrap CSS -->
  10.         <link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/css/bootstrap.min.css" integrity="sha384-y3tfxAZXuh4HwSYylfB+J125MxIs6mR5FOHamPBG064zB+AFeWH94NdvaCBm8qnd" crossorigin="anonymous">
  11.        
  12.         <!-- Font awesome CDN -->
  13.         <script src="https://use.fontawesome.com/8a5a7cf9ff.js"></script>
  14.  
  15.         <!-- CSS -->
  16.         <style type="text/css">
  17.             /* Font import */
  18.             @import url(https://fonts.googleapis.com/css?family=Bitter);
  19.            
  20.             /* Responsive navbar */
  21.             .navbar-brand {
  22.               float: none;
  23.             }
  24.            
  25.             .navbar-nav .nav-item {
  26.               float: none;
  27.             }
  28.            
  29.             .navbar-divider,
  30.             .navbar-nav .nav-item+.nav-item,
  31.             .navbar-nav .nav-link + .nav-link {
  32.               margin-left: 0;
  33.             }
  34.            
  35.             @media (min-width: 34em) {
  36.               .navbar-brand {
  37.                 float: left;
  38.               }
  39.               .navbar-nav .nav-item {
  40.                 float: left;
  41.               }
  42.               .navbar-divider,
  43.               .navbar-nav .nav-item + .nav-item,
  44.               .navbar-nav .nav-link + .nav-link {
  45.                 margin-left: 1rem;
  46.               }
  47.             }
  48.            
  49.             /* Navbar styling */
  50.             #navbar {
  51.                 background-color: #54BAFF;
  52.                 height: 76.5px;
  53.             }
  54.            
  55.             #navbarImg {
  56.                 height: 60px;
  57.                
  58.             }
  59.            
  60.             #navbarBrandImg {
  61.                 position: absolute;
  62.                 transform: translateX(-50%);
  63.                 left: 50%;
  64.                 bottom: 3px;
  65.                 outline: none;
  66.             }
  67.            
  68.             #navbar > .nav > .nav-item > .navbarButtonDiv > .nav-link {
  69.                 position: relative;
  70.                 font-family: "Bitter", serif;
  71.                 color: Black;
  72.                 font-size: 120%;
  73.                 top: 14.5px;
  74.                 outline: none;
  75.             }
  76.            
  77.             #navbar > .nav > .nav-item > .navbarButtonDiv {
  78.                 margin-right: 50px;
  79.                 height: 76.5px;
  80.                 cursor: pointer;
  81.             }
  82.            
  83.             #navbar > .nav > .nav-item > .navbarButtonDiv:hover {
  84.                 background-color: #96D5FF;
  85.                 transition: 0.2s;
  86.             }
  87.            
  88.             #navbar > .nav > .nav-item > #navbarButtonDivHome {
  89.                 position: relative;
  90.                 width: 130px;
  91.                 bottom: 15px;
  92.                 left: 37.5px;
  93.             }
  94.            
  95.             #navbar > .nav > .nav-item > #navbarButtonDivHome > a {
  96.                 width: 0px;
  97.                 left: 37px;
  98.             }
  99.            
  100.             #navbar > .nav > .nav-item > #navbarButtonDivAbout {
  101.                 position: relative;
  102.                 width: 135px;
  103.                 bottom: 15px;
  104.                 right: 29px;
  105.             }
  106.            
  107.             #navbar > .nav > .nav-item > #navbarButtonDivAbout > a {
  108.                 width: 0px;
  109.                 left: 37px;
  110.             }
  111.            
  112.             #navbar > .nav > .nav-item > #navbarButtonDivLearn {
  113.                 position: relative;
  114.                 width: 135px;
  115.                 bottom: 15px;
  116.                 right: 95px;
  117.             }
  118.            
  119.             #navbar > .nav > .nav-item > #navbarButtonDivLearn > a {
  120.                 width: 0px;
  121.                 left: 40px;
  122.             }
  123.            
  124.             #navbar > #leftNavbar {
  125.                 position: fixed;
  126.                 top: 15px;
  127.                 left: 340px;
  128.             }
  129.            
  130.             #navbar > #navbarBrandImg:hover {
  131.                 content: url("images/edufeLogoShadow.png");
  132.             }
  133.            
  134.             #navbarForm {
  135.                 position: absolute;
  136.                 left: 1150px;
  137.                 top: 18px;
  138.             }
  139.            
  140.             #navbarFormSearch {
  141.                 width: 127%;
  142.                 font-family:"Bitter", serif;
  143.             }
  144.            
  145.             #navbarFormSubmit {
  146.                 position: absolute;
  147.                 height: 38px;
  148.                 width: 46px;
  149.                 bottom: 16px;
  150.                 left: 285px;
  151.             }
  152.            
  153.             #navbarFormSubmitFa {
  154.                 position: absolute;
  155.                 right: 14px;
  156.                 bottom: 10px;
  157.             }
  158.            
  159.             #navbar > #rightNavbar {
  160.                 position: absolute;
  161.                 left: 1600px;
  162.             }
  163.            
  164.             #navbar > .nav > .nav-item > #navbarButtonDivLogIn {
  165.                 position: relative;
  166.                 width: 135px;
  167.                 bottom: 7px;
  168.                 right: 70px;
  169.             }
  170.            
  171.             #navbar > .nav > .nav-item > #navbarButtonDivLogIn > a {
  172.                 left: 39px;
  173.             }
  174.            
  175.             #navbar > .nav > .nav-item > #navbarButtonDivSignUp {
  176.                 position: relative;
  177.                 width: 135px;
  178.                 bottom: 83.5px;
  179.                 left: 50px;
  180.             }
  181.            
  182.             #navbar > .nav > .nav-item > #navbarButtonDivSignUp > a {
  183.                 left: 39px;
  184.             }
  185.            
  186.             #navbar > .nav {
  187.                 position: relative;
  188.                 left: 15.5%;
  189.                 top: 7px;
  190.             }
  191.            
  192.  
  193.         </style>
  194.        
  195.         <!-- Favicon and title-->
  196.         <link rel="shortcut icon" type="image/x-icon" href="favicon.png"/>
  197.         <title>Education for Everyone</title>
  198.     </head>
  199.     <body>
  200.         <!-- Bootstrap fallback test div -->
  201.         <div id="bootstrapCssTest" class="hidden"></div>
  202.  
  203.         <!-- Navbar -->
  204.         <nav class="navbar navbar-fixed-top" id="navbar">
  205.             <ul class="nav navbar-nav" id="leftNavbar">
  206.                 <!-- Home -->
  207.                 <li class="nav-item">
  208.                     <div class="navbarButtonDiv" id="navbarButtonDivHome">
  209.                         <a class="nav-link" href="#home">Home <span class="sr-only">(current)</span></a>
  210.                     </div>
  211.                 </li>
  212.                 <!-- About -->
  213.                 <li class="nav-item">
  214.                     <div class="navbarButtonDiv" id="navbarButtonDivAbout">
  215.                         <a class="nav-link" href="#about">About</a>
  216.                     <div>
  217.                 </li>
  218.                 <!-- Search -->
  219.                 <li class="nav-item">
  220.                     <div class="navbarButtonDiv" id="navbarButtonDivLearn">
  221.                         <a class="nav-link" href="#learn">Learn</a>
  222.                     </div>
  223.                 </li>
  224.             </ul>
  225.             <!-- Logo -->
  226.             <a class="navbar-brand" href="#home" id="navbarBrandImg"><img src="images/edufeLogo.png" id="navbarImg"></a>
  227.             <!-- Search -->
  228.             <form class="navbar-form navbar-left" role="search" id="navbarForm">
  229.                 <div class="form-group">
  230.                     <input type="text" class="form-control" placeholder="I want to learn about..." id="navbarFormSearch">
  231.                 </div>
  232.                 <button type="submit" class="btn btn-default" id="navbarFormSubmit">
  233.                     <i class="fa fa-search" id="navbarFormSubmitFa" aria-hidden="true"></i>
  234.                 </button>
  235.             </form>
  236.             <ul class="nav navbar-nav" id="rightNavbar">
  237.                 <!-- Log In -->
  238.                 <li class="nav-item">
  239.                     <div class="navbarButtonDiv" id="navbarButtonDivLogIn">
  240.                         <a class="nav-link" href="#logIn">Log In</a>
  241.                     </div>
  242.                 </li>
  243.                 <!-- Sign Up -->
  244.                 <li class="nav-item">
  245.                     <div class="navbarButtonDiv" id="navbarButtonDivSignUp">
  246.                         <a class="nav-link" href="#signUp">Sign Up</a>
  247.                     <div>
  248.                 </li>
  249.             </ul>
  250.         </nav>
  251.        
  252.         <!-- Script tags -->
  253.         <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.1.4/jquery.min.js"></script>
  254.         <script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.2/js/bootstrap.min.js" integrity="sha384-vZ2WRJMwsjRMW/8U7i6PWi6AlO1L79snBrmgiDpgIWJ82z8eA5lenwvxbMV1PAh7" crossorigin="anonymous"></script>
  255.         <script type="text/javascript">
  256.             // Bootstrap callback test
  257.             if ($('#bootstrapCssTest').is(':visible') === true) {
  258.                 $('<link href="/bootstrap/js/bootstrap.min.js" rel="stylesheet" type="text/css" />').appendTo('head');
  259.             }
  260.  
  261.             // Make .navbarButtonDiv go to its child 'a' tag's href on click
  262.             $(".navbarButtonDiv").click(function() {
  263.                 window.location = $(this).find("a").attr("href");
  264.                 return false;
  265.             });
  266.         </script>
  267.     </body>
  268. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement