mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-04 16:24:22 +01:00
dfdf343825
* Add hella CSS comments * Reduce padding on body to height of navbar, then set top margin on jumbotron at +768px * Wrap marketing copy and footer in an extra div so we can set some padding for ideal responsive views
158 lines
6.5 KiB
HTML
158 lines
6.5 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<title>Jumbotron template · Bootstrap</title>
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="description" content="">
|
|
<meta name="author" content="">
|
|
|
|
<!-- Bootstrap core CSS -->
|
|
<link href="../assets/css/bootstrap.css" rel="stylesheet">
|
|
|
|
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
|
|
<!--[if lt IE 9]>
|
|
<script src="../assets/js/html5shiv.js"></script>
|
|
<script src="../assets/js/respond/respond.min.js"></script>
|
|
<![endif]-->
|
|
|
|
<!-- Fav and touch icons -->
|
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="../assets/ico/apple-touch-icon-144-precomposed.png">
|
|
<link rel="apple-touch-icon-precomposed" sizes="114x114" href="../assets/ico/apple-touch-icon-114-precomposed.png">
|
|
<link rel="apple-touch-icon-precomposed" sizes="72x72" href="../assets/ico/apple-touch-icon-72-precomposed.png">
|
|
<link rel="apple-touch-icon-precomposed" href="../assets/ico/apple-touch-icon-57-precomposed.png">
|
|
<link rel="shortcut icon" href="../assets/ico/favicon.png">
|
|
|
|
<!-- Custom styles for this template -->
|
|
<style>
|
|
/* Move down content because we have a fixed navbar that is 50px tall */
|
|
body {
|
|
padding-top: 50px;
|
|
padding-bottom: 20px;
|
|
}
|
|
|
|
/* Set widths on the navbar form inputs since otherwise they're 100% wide */
|
|
.navbar-form input[type="text"],
|
|
.navbar-form input[type="password"] {
|
|
width: 180px;
|
|
}
|
|
|
|
/* Wrapping element */
|
|
/* Set some basic padding to keep content from hitting the edges */
|
|
.body-content {
|
|
padding-left: 15px;
|
|
padding-right: 15px;
|
|
}
|
|
|
|
/* Responsive: Portrait tablets and up */
|
|
@media screen and (min-width: 768px) {
|
|
/* Let the jumbotron breathe */
|
|
.jumbotron {
|
|
margin-top: 20px;
|
|
}
|
|
/* Remove padding from wrapping element since we kick in the grid classes here */
|
|
.body-content {
|
|
padding: 0;
|
|
}
|
|
}
|
|
</style>
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div class="navbar navbar-inverse navbar-fixed-top">
|
|
<div class="container">
|
|
<a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</a>
|
|
<a class="brand" href="#">Project name</a>
|
|
<div class="nav-collapse collapse">
|
|
<ul class="nav">
|
|
<li class="active"><a href="#">Home</a></li>
|
|
<li><a href="#about">About</a></li>
|
|
<li><a href="#contact">Contact</a></li>
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
|
|
<ul class="dropdown-menu">
|
|
<li><a href="#">Action</a></li>
|
|
<li><a href="#">Another action</a></li>
|
|
<li><a href="#">Something else here</a></li>
|
|
<li class="divider"></li>
|
|
<li class="nav-header">Nav header</li>
|
|
<li><a href="#">Separated link</a></li>
|
|
<li><a href="#">One more separated link</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
<form class="navbar-form pull-right">
|
|
<input type="text" placeholder="Email">
|
|
<input type="password" placeholder="Password">
|
|
<button type="submit" class="btn">Sign in</button>
|
|
</form>
|
|
</div><!--/.nav-collapse -->
|
|
</div>
|
|
</div>
|
|
|
|
<div class="container">
|
|
|
|
<!-- Main jumbotron for a primary marketing message or call to action -->
|
|
<div class="jumbotron">
|
|
<h1>Hello, world!</h1>
|
|
<p>This is a template for a simple marketing or informational website. It includes a large callout called the hero unit and three supporting pieces of content. Use it as a starting point to create something more unique.</p>
|
|
<p><a class="btn btn-primary btn-large">Learn more »</a></p>
|
|
</div>
|
|
|
|
<div class="body-content">
|
|
|
|
<!-- Example row of columns -->
|
|
<div class="row">
|
|
<div class="span4">
|
|
<h2>Heading</h2>
|
|
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
<p><a class="btn" href="#">View details »</a></p>
|
|
</div>
|
|
<div class="span4">
|
|
<h2>Heading</h2>
|
|
<p>Donec id elit non mi porta gravida at eget metus. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus. Etiam porta sem malesuada magna mollis euismod. Donec sed odio dui. </p>
|
|
<p><a class="btn" href="#">View details »</a></p>
|
|
</div>
|
|
<div class="span4">
|
|
<h2>Heading</h2>
|
|
<p>Donec sed odio dui. Cras justo odio, dapibus ac facilisis in, egestas eget quam. Vestibulum id ligula porta felis euismod semper. Fusce dapibus, tellus ac cursus commodo, tortor mauris condimentum nibh, ut fermentum massa justo sit amet risus.</p>
|
|
<p><a class="btn" href="#">View details »</a></p>
|
|
</div>
|
|
</div>
|
|
|
|
<hr>
|
|
|
|
<footer>
|
|
<p>© Company 2013</p>
|
|
</footer>
|
|
</div>
|
|
|
|
</div> <!-- /container -->
|
|
|
|
|
|
|
|
<!-- Bootstrap core JavaScript
|
|
================================================== -->
|
|
<!-- Placed at the end of the document so the pages load faster -->
|
|
<script src="../assets/js/jquery.js"></script>
|
|
<script src="../assets/js/bootstrap-transition.js"></script>
|
|
<script src="../assets/js/bootstrap-alert.js"></script>
|
|
<script src="../assets/js/bootstrap-modal.js"></script>
|
|
<script src="../assets/js/bootstrap-dropdown.js"></script>
|
|
<script src="../assets/js/bootstrap-scrollspy.js"></script>
|
|
<script src="../assets/js/bootstrap-tab.js"></script>
|
|
<script src="../assets/js/bootstrap-tooltip.js"></script>
|
|
<script src="../assets/js/bootstrap-popover.js"></script>
|
|
<script src="../assets/js/bootstrap-button.js"></script>
|
|
<script src="../assets/js/bootstrap-collapse.js"></script>
|
|
<script src="../assets/js/bootstrap-carousel.js"></script>
|
|
<script src="../assets/js/bootstrap-typeahead.js"></script>
|
|
|
|
</body>
|
|
</html>
|