Skip to content

Instantly share code, notes, and snippets.

@atyourlibrary
Created October 23, 2014 17:14
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save atyourlibrary/ab748bff8d6d6a8b7e7c to your computer and use it in GitHub Desktop.
Save atyourlibrary/ab748bff8d6d6a8b7e7c to your computer and use it in GitHub Desktop.
Final Nested Content
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Basic Bootstrap Template</title>
<!-- Bootstrap -->
<!-- Latest compiled and minified CSS -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css">
<!-- Our Custom CSS styling -->
<link rel="stylesheet" href="app.css">
<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
<!--[if lt IE 9]>
<script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
<script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body>
<div class="container">
<!-- Banner with logo and social media links -->
<div class="row">
<div class="col-sm-7">
<img src="img/logo.png" alt="site logo" class="img-responsive">
</div>
<div class="col-sm-5">
<ul class="list-inline pull-right">
<li><a href="#">Facebook</a></li>
<li><a href="#">Twitter</a></li>
<li><a href="#">Pinterest</a></li>
</ul>
</div>
</div>
<!-- Navigation Bar -->
<div class="row">
<div class="col-sm-12">
<nav class="navbar navbar-inverse" role="navigation">
<!-- Brand and toggle get grouped for better mobile display -->
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
<span class="sr-only">Toggle navigation</span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
<a class="navbar-brand" href="#">Brand</a>
</div>
<!-- Collect the nav links, forms, and other content for toggling -->
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="#">Link</a></li>
<li class="dropdown">
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <span class="caret"></span></a>
<ul class="dropdown-menu" role="menu">
<li><a href="#">Action</a></li>
<li class="divider"></li>
<li><a href="#">Separated link</a></li>
</ul>
</li>
</ul>
<form class="navbar-form navbar-right" role="search">
<div class="form-group">
<input type="text" class="form-control" placeholder="Search">
</div>
<button type="submit" class="btn btn-default">Submit</button>
</form>
</div><!-- /.navbar-collapse -->
</nav>
</div>
</div>
<!-- Main Content -->
<div class="row">
<div class="col-sm-12">
<div class="jumbotron">
<h3>Book Clubs</h3>
</div>
<div class="row">
<div class="col-sm-6">
<h4 class="page-header">Children's Story Time</h4>
<div class="row">
<div class="col-xs-3">
<a href="#">
<img class="img-responsive thumbnail" src="img/mothergoose.jpg" alt="...">
</a>
</div>
<div class="col-xs-8">
<p>Storytelling is the conveying of events in words, and images, often by improvisation or embellishment. But librarians do it using hand puppets, silly hats and funny voices. </p>
<a href="#" class="btn btn-primary btn-sm active" role="button">Primary link</a>
</div>
</div>
</div>
<div class="col-sm-6">
<h4 class="page-header">Graphic Novels</h4>
<div class="row">
<div class="col-xs-3">
<a href="#">
<img class="img-responsive thumbnail" src="img/wow.jpg" alt="...">
</a>
</div>
<div class="col-xs-8">
<p>Entertaining adolescent males until they discover girls. Give them the skills and stereotypes to fail at relationships through out their entire lives.</p>
<a href="#" class="btn btn-primary btn-sm active" role="button">Primary link</a>
</div>
</div>
</div>
</div>
<div class="row">
<div class="col-sm-6">
<h4 class="page-header">Cooking Club</h4>
<div class="row">
<div class="col-xs-3">
<a href="#">
<img class="img-responsive thumbnail" src="img/crisco.jpg" alt="...">
</a>
</div>
<div class="col-xs-8">
<p>Discuss recipes for healthy eating, all made with Crisco. Lose weight and look great in a swimsuit after eating large quantities of crisco, butter, sugar and other nutritious ingredients.</p>
<a href="#" class="btn btn-primary btn-sm active" role="button">Primary link</a>
</div>
</div>
</div>
<div class="col-sm-6">
<h4 class="page-header">First Impressions</h4>
<div class="row">
<div class="col-xs-3">
<a href="#">
<img class="img-responsive thumbnail" src="img/adult.jpg" alt="...">
</a>
</div>
<div class="col-xs-8">
<p>Select books based on the first sentence. Getting past judging a book by the cover. Proving beauty is only skin deep.</p>
<a href="#" class="btn btn-primary btn-sm active" role="button">Primary link</a>
</div>
</div>
</div>
</div>
</div>
</div>
<hr/>
<!-- Footer -->
<div class="row">
<div class="col-sm-4">
Left
</div>
<div class="col-sm-4">
Center
</div>
<div class="col-sm-4">
Right
</div>
</div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<!-- Latest compiled and minified JavaScript -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/js/bootstrap.min.js"></script>
</body>
</html>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment