Team:Queens Canada/qgem header

From 2013.igem.org

(Difference between revisions)
 
(27 intermediate revisions not shown)
Line 4: Line 4:
<title>Untitled Document</title>
<title>Untitled Document</title>
<link rel="stylesheet" href="https://dl.dropboxusercontent.com/u/125588631/bootstrap.min.css" media="screen" />
<link rel="stylesheet" href="https://dl.dropboxusercontent.com/u/125588631/bootstrap.min.css" media="screen" />
-
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script>
+
<script src="http://code.jquery.com/jquery.js"></script>
-
<script type="text/javascript" src="../../Downloads/jquery-visible-master/jquery.visible.js"></script>
+
<script src="https://dl.dropboxusercontent.com/u/125588631/bootstrap.min.js"></script>
<style>
<style>
*{
*{
Line 134: Line 134:
body{
body{
background:white;
background:white;
-
background-siz:cover;
+
background-size:cover;
z-index:-999;
z-index:-999;
}
}
/**---------HEADER----------**/
/**---------HEADER----------**/
.top-photo{
.top-photo{
-
         background:url(https://dl.dropboxusercontent.com/u/125588631/qgem-final-cover.png) no-repeat center center;
+
         background:url(https://dl.dropboxusercontent.com/u/125588631/header_template.png) no-repeat center center;
         position:relative;
         position:relative;
         overflow:hidden;
         overflow:hidden;
         width:auto;
         width:auto;
-
        padding:0;
+
padding-top:40px;
-
        margin:0;
+
}
}
-
.actualimg{
+
 
-
        background:url(https://dl.dropboxusercontent.com/u/125588631/qgem-final-cover.png) no-repeat center center;
+
.header-text{
-
        background-size:cover;
+
font-family:bebasN;
-
        position:absolute;
+
font-size:3em;
 +
color:#ffb297;
 +
position:relative;
 +
margin:5px;
}
}
-
.home-body{
+
 
-
background:none repeat scroll 0 0 #FBFBFB;
+
.year{
-
padding:0px;
+
font-family:Arial, Helvetica, sans-serif;
-
height:auto;
+
color:#320a00;
-
width:100%;
+
font-size:9em;
position:relative;
position:relative;
 +
margin:5px;
 +
margin-bottom:60px;
 +
}
 +
 +
#menu{
 +
margin-top:10%;
 +
margin-left:5%;
 +
}
 +
 +
#menu li{
 +
margin: 0 5px;
 +
padding: 0 9px;
display:inline-block;
display:inline-block;
-
left:0px;
+
color:white;
-
right:0px;
+
font-size:1.5em;
-
bottom:0px;
+
-
z-index:1;
+
-
position:relative;
+
}
}
-
.tattletale{
+
 
-
height:50px;
+
#menu li a:link{
-
width:50px;
+
color:white;
-
top-margin:10px;
+
text-decoration:none;
-
left-margin:20px;
+
}
-
background:blue;
+
 
-
position:absolute;
+
#menu li a:hover{
-
z-index:999;
+
border-bottom:5px solid #ffb297;
-
display:none;
+
}
 +
 
 +
#menu li a:visited{
 +
color:white;
 +
text-decoration:none;
}
}
/**--------General Style Elements------------**/
/**--------General Style Elements------------**/
Line 185: Line 200:
position:relative;
position:relative;
}
}
-
/**---------Menubar------------**/
 
-
.logo-bar{
 
-
width:100%;
 
-
height:60px;
 
-
background-color:#83282a;
 
-
position:fixed;
 
-
z-index:50;
 
-
top,left,right:0;
 
-
vertical-align:text-top;
 
-
float:left;
 
-
}
 
-
.upper-row{
 
-
margin-top:0px;
 
-
margin-left:55%;
 
-
overflow:hidden;
 
-
position:absolute;
 
-
}
 
-
.lower-row{
 
-
margin-top:32px;
 
-
margin-left:59%;
 
-
position:absolute;
 
-
}
 
-
.top-menu{
 
-
padding:0px;
 
-
position:fixed;
 
-
z-index:100;
 
-
}
 
-
.top-menu ul{
 
-
margin:0;
 
-
padding:0;
 
-
}
 
-
.top-menu li{
 
-
display:inline-block;
 
-
padding: 0 10px;
 
-
margin: 0 0px;
 
-
}
 
-
.top-menu a:link {text-decoration:none;color:#83282a;}
 
-
.top-menu a:visited{color:#83282a;}
 
-
.top-menu a:hover{color:#ff6669;}
 
-
 
-
.top-menu-low{
 
-
top-margin:20px;
 
-
padding:0px;
 
-
position:fixed;
 
-
z-index:100;
 
-
}
 
-
.top-menu-low ul{
 
-
margin:0;
 
-
padding:0;
 
-
}
 
-
.top-menu-low li{
 
-
display:inline-block;
 
-
padding: 0 5px;
 
-
margin: 0 2px;
 
-
}
 
-
.top-menu-low a:link {text-decoration:none;color:#83282a;}
 
-
.top-menu-low a:visited{color:#83282a;}
 
-
.top-menu-low a:hover{color:#ff6669;}
 
/**---------Fonts---------**/
/**---------Fonts---------**/
@font-face{
@font-face{
Line 252: Line 209:
font-size:2em;
font-size:2em;
}
}
-
.menu-font-low{
+
 
-
font-family:bebasN;
+
-
font-size:1.5em;
+
-
}
+
.regular{
.regular{
font-family:bebasN;
font-family:bebasN;
color:black;
color:black;
font-size:15px;
font-size:15px;
 +
}
 +
 +
<!------- Toolbar ---------->
 +
.toolbar{
 +
height:50px;
 +
opacity:0.9;
 +
margin-top:500px;
 +
position:fixed;
 +
}
 +
 +
.toolbar-links ul{
 +
font-family:bebasN;
 +
font-size:1.2em;
 +
padding:15px;
 +
}
 +
 +
.toolbar-links ul li{
 +
display: inline-block;
 +
margin:0 4px;
 +
padding: 0 5px;
 +
}
 +
 +
.toolbar-links li a:link{
 +
text-decoration:none;
 +
color:white;
 +
}
 +
 +
.toolbar-links li a:visited{
 +
color:white;
 +
}
 +
 +
.toolbar-links li a:hover{
 +
color:#e88587;
 +
text-decoration:none;
}
}
</style>
</style>
Line 265: Line 253:
<body>
<body>
-
<div class="logo-bar"><img src="https://dl.dropboxusercontent.com/u/125588631/toolbar-logo.png" height="60px" /></div>
+
<div class="row-fluid toolbar" style="background-color:#83282a;bottom:0;">
 +
<div class="span2 offset1">
 +
    <img src="../toolbar-logo.png" style="height:50px;">
 +
    </div>
 +
    <div class="span6 toolbar-links">
 +
    <ul>
 +
        <li><a href="#">HOME</a></li>
 +
            <li><a href="#">TEAM</a></li>
 +
            <li><a href="#">PROJECT</a></li>
 +
            <li><a href="#">OUTREACH</a></li>
 +
            <li><a href="#">PARTS</a></li>
 +
            <li><a href="#">SAFETY</a></li>
 +
            <li><a href="#">JUDGING</a></li>
 +
            <li><a href="#">NOTEBOOK</a></li>
 +
        </ul>
 +
    </div>
 +
</div>
-
<div class="top-photo"><div class="tattletale"></div></div>
+
<div class="top-photo">
-
<div class="top-menu menu-font upper-row">
+
<div class="header-text row"><div class="span4 offset1">WE ARE TEAM</div></div>
-
        <ul>
+
<div class="row"><div class="span8 offset1"><img src="https://dl.dropboxusercontent.com/u/125588631/qgem-logo.png" style="height:120px;margin-bottom:50px;margin-top:10px;" /></div></div>
-
            <li><a href="#">HOME</a></li>
+
<div class="year row"><div class="span4 offset1">2013</div></div>
-
                <li><a href="https://2013.igem.org/Team:Queens_Canada/Team">TEAM</a></li>
+
<div class="header-text row"><div class="span4 offset1">iGEM | QUEEN'S</div></div>
-
                <li><a href="https://2013.igem.org/Team:Queens_Canada/Project">PROJECT</a></li>
+
<div>
-
                <li><a href="#">OUTREACH</a></li>
+
<div id="menu">
-
               
+
<ul>
-
            </ul>
+
    <li><a href="#">HOME</a></li>
 +
        <li><a href="#">TEAM</a></li>
 +
        <li><a href="#">PROJECT</a></li>
 +
        <li><a href="#">OUTREACH</a></li>
 +
        <li><a href="#">PARTS</a></li>
 +
        <li><a href="#">SAFETY</a></li>
 +
        <li><a href="#">JUDGING</a></li>
 +
        <li><a href="#">NOTEBOOK</a></li>
 +
    </ul>
 +
</div>
</div>
</div>
-
        <div class="top-menu-low menu-font-low lower-row">
 
-
        <ul>
 
-
            <li><a href="https://2013.igem.org/Team:Queens_Canada/Parts">PARTS</a></li>
 
-
                <li><a href="https://2013.igem.org/Team:Queens_Canada/Safety">SAFETY</a></li>
 
-
                <li><a href="#">JUDGING</a></li>
 
-
                <li><a href="https://2013.igem.org/Team:Queens_Canada/Notebook">NOTEBOOK</a></li>
 
-
            </ul>
 
-
        </div>   
 
-
<div class="home-body">
 
-
<div class="center-align regular">
 
-
  ><p>More to come in the near future!</p><br />
 
-
  <p>This is filler</p><br />
 
-
  <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
      <p>This is filler</p><br />
 
-
    </div>
 
</div>
</div>
<script type="text/javascript">
<script type="text/javascript">
-
 
-
function isOnScreen(element)
 
-
{
 
-
    var curPos = element.offset();
 
-
    var curTop = curPos.top;
 
-
    var screenHeight = $(window).height();
 
-
    return (curTop >= screenHeight) ? false : true;
 
-
}
 
-
 
-
function threshold(element)
 
-
{
 
-
var curPos = element.offset();
 
-
var curTop = curPos.top;
 
-
var screenHeight = $(window).height();
 
-
if (curTop == screenHeight){
 
-
if (curTop > screenHeight){ return 1;}
 
-
else {return (-1);}
 
-
}
 
-
return 0;
 
-
}
 
$(document).ready(function(){
$(document).ready(function(){
-
var height = $(window).height()-30;
+
var height = $(window).height()-40;
-
        var val = (height.toString())+"px";
+
    var val = (height.toString())+"px";
$(".top-photo").css("height",val);
$(".top-photo").css("height",val);
 +
var toolbarHeight=(height.toString()-50)+"px";
 +
$(".toolbar").hide();
$(window).resize(function(){
$(window).resize(function(){
Line 347: Line 306:
$(".top-photo").css("height",val);
$(".top-photo").css("height",val);
});
});
-
+
 
-
+
        $('.top-photo').waypoint(function(direction) {
-
$(window).scroll(function(){
+
if (direction=="down"){
-
if(isOnScreen($(".tattletale")) == false){
+
$('.toolbar').fadeIn('fast');
-
$(".logo-bar").css("display","inline-block");
+
-
$(".logo-bar").fadeIn('fast');
+
-
$(".top-menu a:link").css("color","white");
+
-
$(".top-menu-low a:link").css("color","white");
+
}
}
else{
else{
-
$(".logo-bar").css("display","none");
+
$('.toolbar').fadeOut('fast');
-
$(".top-menu a:link").css("color","#83282a");
+
-
$(".top-menu-low a:link").css("color","#83282a");
+
-
+
}
}
 +
}, {
 +
  offset: function() {
 +
    return -$(this).height();
 +
}
});
});
});
});
</script>
</script>
 +
</body>
</body>
</html>
</html>

Latest revision as of 22:09, 10 June 2013

Untitled Document

WE ARE TEAM
2013
iGEM | QUEEN'S