Skip to content

Commit

Permalink
Add jekylling
Browse files Browse the repository at this point in the history
  • Loading branch information
desandro committed Jan 3, 2011
1 parent 05a39fc commit 368011c
Show file tree
Hide file tree
Showing 6 changed files with 117 additions and 6 deletions.
1 change: 1 addition & 0 deletions .gitignore
@@ -0,0 +1 @@
_site/
1 change: 1 addition & 0 deletions _config.yml
@@ -0,0 +1 @@
name: BeerCamp at SXSW 2011
8 changes: 8 additions & 0 deletions _includes/nav.html
@@ -0,0 +1,8 @@

<ul class="nav">
<li class="intro"><a href="#intro">Intro</a></li>
<li class="sponsors"><a href="#sponsors">Sponsors</a></li>
<li class="flip-cup"><a href="#flip-cup">Flip Cup</a></li>
<li class="sign-up"><a href="#sign-up">Team Sign Up</a></li>
<li class="teams"><a href="#team">Teams</a></li>
</ul>
86 changes: 80 additions & 6 deletions css/style.css
Expand Up @@ -140,8 +140,8 @@ input:invalid, textarea:invalid {
.no-boxshadow textarea:invalid { background-color: #f0dddd; }


/*::-moz-selection{ background: #FF5E99; color:#fff; text-shadow: none; }
::selection { background:#FF5E99; color:#fff; text-shadow: none; }*/
/*::-moz-selection { background: #223; color: #DD0; text-shadow: none; }
::selection { background: #223; color: #DD0; text-shadow: none; opacity: 1; }*/

/* make buttons play nice in IE:
www.viget.com/inspire/styling-the-button-element-in-internet-explorer/ */
Expand Down Expand Up @@ -198,7 +198,7 @@ html, body {
width: 990px;
height: 540px;
top: -270px;
border: 1px solid;
border: 1px solid hsla( 0, 0%, 0%, 0.1 );
margin: 0 auto;

}
Expand Down Expand Up @@ -253,6 +253,60 @@ a:visited {
text-decoration: none;
}

a:hover {
color: #B20;
}

/***************** Nav *****************/

.nav {
list-style: none;
margin: 0;
position: absolute;
z-index: 100;
top: 0;
width: 100%;
/* background: #223;*/
}

.nav li {
float: left;
border-right: 2px solid #DD0;
text-align: center;
font-size: 15px;
text-transform: uppercase;
/* font-family: 'Hero';*/
}

.nav li a {
line-height: 1.4em;
display: block;
background: #223;
color: #DD0;
letter-spacing: 0.2em;
/* text-shadow:
1px 0px #DD0,
1px 1px #DD0,
0px 1px #DD0,
-1px 1px #DD0,
-1px 0px #DD0,
-1px -1px #DD0,
0px -1px #DD0,
1px -1px #DD0
;*/
padding: 0.1em 2.0em 0 0.5em;
}

.nav li a:hover {
background: white;
color: #223;
}

#intro .nav li.intro a
{
background: #B20;
}

/***************** Intro *****************/

#intro {
Expand All @@ -264,6 +318,7 @@ a:visited {
font-size: 180px;
text-align: center;
line-height: 160px;
margin-top: 10px;
}

#intro h2 {
Expand All @@ -277,7 +332,7 @@ a:visited {
#intro .location {
position: absolute;
width: 330px;
top: 300px;
top: 296px;
}

/* Date */
Expand Down Expand Up @@ -332,13 +387,13 @@ a:visited {
font-size: 32px;
line-height: 1.6em;
letter-spacing: 0.05em;
font-family: 'Hero';
}

/* Location */

#intro .location {
right: 0;
top: 284px;
}

#intro .location h3 {
Expand Down Expand Up @@ -373,7 +428,26 @@ a:visited {
#intro .location a:hover p { background: #B20; }



#intro .blurb {
position: absolute;
bottom: 0;
text-align: center;
font-family: 'Mod';
width: 100%;
font-size: 47px;
color: #DD0;
text-shadow:
2px 0px #223,
2px 2px #223,
0px 2px #223,
-2px 2px #223,
-2px 0px #223,
-2px -2px #223,
0px -2px #223,
2px -2px #223
;
letter-spacing: 2px;
}


/*
Expand Down
8 changes: 8 additions & 0 deletions index.html
@@ -1,3 +1,6 @@
---
layout: nil
---
<!doctype html>
<!--[if lt IE 7 ]> <html lang="en" class="no-js ie6"> <![endif]-->
<!--[if IE 7 ]> <html lang="en" class="no-js ie7"> <![endif]-->
Expand Down Expand Up @@ -52,6 +55,8 @@
</section> <!-- #grid -->

<section id="intro">
{% include nav.html %}

<h1>BeerCamp</h1>
<h2>at SXSW 2011</h2>

Expand All @@ -70,6 +75,8 @@ <h3>Emo&rsquo;s</h3>
</a>
</div>

<p class="blurb">A party of rational proportions</p>

</section> <!-- #intro -->


Expand All @@ -82,6 +89,7 @@ <h3>Emo&rsquo;s</h3>

<script src="//ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.js"></script>
<script>!window.jQuery && document.write(unescape('%3Cscript src="js/jquery-1.4.4.min.js"%3E%3C/script%3E'))</script>
<script src="js/scripts.js"></script>



Expand Down
19 changes: 19 additions & 0 deletions js/scripts.js
@@ -0,0 +1,19 @@
$(function(){

var section = 'intro';

$('.nav a').click(function(){

var oldSection = section;
section = $(this).attr('href').slice(1);

$(document.body).removeClass( oldSection ).addClass( section );

window.location.hash = '#' + section;

return false;

});


});

0 comments on commit 368011c

Please sign in to comment.