Team:Queens Canada/qgem header

From 2013.igem.org

(Difference between revisions)
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:4em;
 +
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:2em;
-
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 184: Line 199:
z-index:0;
z-index:0;
position:relative;
position:relative;
-
}
 
-
 
-
/**---------Menu-Bar----------**/
 
-
#top-MENU {
 
-
        width:100%
 
-
        position:relative;
 
-
float: right;
 
-
text-align: right;
 
-
margin-top: 40%;
 
-
        margin-right:5%
 
-
}
 
-
 
-
#top-MENU ul {
 
-
margin: 0;
 
-
padding: 0;
 
-
font-size: 0.85em;
 
-
}
 
-
 
-
#top-MENU li {
 
-
display: inline-block;
 
-
*display: inline;
 
-
padding: 0 15px;
 
-
margin: 0 4px;
 
-
}
 
-
 
-
#top-MENU a:link{
 
-
        text-decoration:none;
 
-
        color:#83282a;
 
-
}
 
-
 
-
#top-MENU a:visited{
 
-
        text-decoration:none;
 
-
        color:#83282a;
 
-
}
 
-
 
-
#top-MENU a:hover{
 
-
        color:#ff6669;
 
}
}
/**---------Fonts---------**/
/**---------Fonts---------**/
Line 236: Line 214:
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 241: Line 253:
<body>
<body>
-
 
+
<div class="row-fluid toolbar" style="background-color:#83282a;bottom:0;">
-
<div class="top-photo"><div class="tattletale"></div>
+
<div class="span2 offset1">
-
<div id="top-MENU" class="menu-font">
+
    <img src="../toolbar-logo.png" style="height:50px;">
 +
    </div>
 +
    <div class="span6 toolbar-links">
     <ul>
     <ul>
-
         <li class="HOME"><a href="#">HOME</a></li>
+
         <li><a href="#">HOME</a></li>
-
                <li><a href="https://2013.igem.org/Team:Queens_Canada/Team">TEAM</a></li>
+
            <li><a href="#">TEAM</a></li>
-
                <li><a href="https://2013.igem.org/Team:Queens_Canada/Project">PROJECT</a></li>
+
            <li><a href="#">PROJECT</a></li>
-
                <li><a href="#">OUTREACH</a></li>
+
            <li><a href="#">OUTREACH</a></li>
-
                <li>       </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>
         </ul>
-
        <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>
 
-
 
-
<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>
</div>
-
<script type="text/javascript">
+
<div class="top-photo">
 +
<div class="header-text row"><div class="span4 offset1">WE ARE TEAM</div></div>
 +
<div class="row"><div class="span8 offset1"><img src="https://dl.dropboxusercontent.com/u/125588631/qgem-logo.png" style="height:120px;margin-bottom:40px;margin-top:10px;" /></div></div>
 +
<div class="year row"><div class="span4 offset1">2013</div></div>
 +
<div class="header-text row"><div class="span4 offset1">iGEM | QUEEN'S</div></div>
 +
<div>
 +
<div id="menu">
 +
<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>
-
function isOnScreen(element)
+
<script type="text/javascript">
-
{
+
-
    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()-40;
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 321: Line 306:
$(".top-photo").css("height",val);
$(".top-photo").css("height",val);
});
});
-
+
 
-
+
        $('.top-photo').waypoint(function(direction) {
 +
if (direction=="down"){
 +
$('.toolbar').fadeIn('fast');
 +
}
 +
else{
 +
$('.toolbar').fadeOut('fast');
 +
}
 +
}, {
 +
  offset: function() {
 +
    return -$(this).height();
 +
}
 +
});
});
});
</script>
</script>
 +
</body>
</body>
</html>
</html>

Revision as of 22:08, 10 June 2013

Untitled Document

WE ARE TEAM
2013
iGEM | QUEEN'S