Skip to content

Instantly share code, notes, and snippets.

@jareware
Forked from omahlama/index.html
Created November 28, 2012 11:51
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save jareware/4160697 to your computer and use it in GitHub Desktop.
Save jareware/4160697 to your computer and use it in GitHub Desktop.
Frontend/UX friendship without limits scratchpad
<!DOCTYPE html>
<html>
<head>
<title>Frontend/UX friendship without limits scratchpad</title>
<meta charset="utf-8">
<!-- Include Twitter Bootstrap CSS -->
<link href="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/css/bootstrap.min.css" rel="stylesheet">
<!-- Include a custom font from Google Web Fonts -->
<link href='http://fonts.googleapis.com/css?family=Strait' rel='stylesheet' type='text/css'>
<style>
/* TODO: Write your styling here! */
* {
box-sizing: border-box;
}
h1 {
background-image: url('http://24.media.tumblr.com/tumblr_mdj3giWQRn1qdjda6o1_400.jpg');
background-repeat: no-repeat;
background-position: -30px -20px;
margin: 20px 0 40px 0;
padding: 250px 0 40px 350px;
font-size: 60px;
font-family: 'Strait', sans-serif;
}
#navigation-target {
text-align: justify;
}
p.lead {
font-size: 30px;
margin: 30px 20px 50px;
}
#footer {
border-style: solid;
border-width: 1px 0 0 0;
border-color: #DDD;
margin: 30px 0 20px 0;
padding: 7px 0 0 0;
font-size: 12px;
color: #555;
}
#smaller-boxes {
margin-top: 30px;
}
#top-navigation a {
color: #E87400;
}
#top-navigation>.active>a,#top-navigation>.active>a:hover {
color: #555; /* reset the override above */
}
#sub-navigation a {
text-align: right;
color: #666;
}
.well {
font-size: 26px;
text-align: center;
padding: 30px;
color: #777;
font-family: 'Strait', sans-serif;
}
</style>
</head>
<body>
<div id="main-container" class="container">
<h1>Frontend/UX</h1>
<ul id="top-navigation" class="nav nav-tabs">
<li class="active"><a href="#">Home</a></li>
<li><a href="#">More</a></li>
<li><a href="#">Awesome</a></li>
<li><a href="#">Stuff</a></li>
</ul>
<div class="row">
<p class="span12 lead">"Neque porro quisquam est qui dolorem ipsum quia dolor sit amet, consectetur, adipisci velit"</p>
<div class="span6">
<p id="navigation-target">Lorem Ipsum is simply dummy text of the printing and typesetting industry. Lorem Ipsum has been the industry's standard dummy text ever since the 1500s, when an unknown printer took a galley of type and scrambled it to make a type specimen book. It has survived not only five centuries, but also the leap into electronic typesetting, remaining essentially unchanged. It was popularised in the 1960s with the release of Letraset sheets containing Lorem Ipsum passages, and... yeah.</p>
</div>
<div class="span6">
<ul id="sub-navigation" class="nav nav-tabs nav-stacked">
<!-- http://www.the-top-tens.com/lists/random-sentences.asp -->
<li class="active"><a href="#">I am so blue I'm greener than purple</a></li>
<li><a href="#">Marry Poppins killed a shopping trolley</a></li>
<li><a href="#">Banana terror</a></li>
<li><a href="#">Llamas eat sexy paper clips</a></li>
</ul>
</div>
</div>
<div id="smaller-boxes" class="row">
<div class="span4 well">
You.
</div>
<div class="span4 well">
Fucking.
</div>
<div class="span4 well">
Rule.
</div>
</div>
<div id="footer">
&copy; Futu Dudes &amp; Dudettes 2012
</div>
</div>
<!-- Include jQuery from the Google CDN -->
<script src="http://ajax.googleapis.com/ajax/libs/jquery/1.8.3/jquery.js"></script>
<!-- Include Bootstrap JS components -->
<script src="http://netdna.bootstrapcdn.com/twitter-bootstrap/2.2.1/js/bootstrap.min.js"></script>
<script>
$(function() {
$('#sub-navigation a').on('click', function() {
var newText = new Array(10).join($(this).text() + ' ');
$('#navigation-target').text(newText);
// Remove active class from all navigation items
$("#sub-navigation li").removeClass("active");
// and add it back to the one we just clicked (this is the <a>, so parent is <li>)
$(this).parent().addClass("active");
return false;
});
});
</script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment