aboutsummaryrefslogtreecommitdiff
path: root/examples/jumbotron
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2013-08-15 16:40:39 -0700
committerMark Otto <[email protected]>2013-08-15 16:40:39 -0700
commit3d99a4c15e0661df630dbaf7dddb5228cf044fe6 (patch)
tree40e68d12f804131ef3cea3bf0120531106b42dc9 /examples/jumbotron
parent54670ab64a2565fd35071eb17fc7eef3480eb724 (diff)
downloadbootstrap-3d99a4c15e0661df630dbaf7dddb5228cf044fe6.tar.xz
bootstrap-3d99a4c15e0661df630dbaf7dddb5228cf044fe6.zip
move to examples dir
Diffstat (limited to 'examples/jumbotron')
-rw-r--r--examples/jumbotron/index.html97
-rw-r--r--examples/jumbotron/jumbotron.css30
2 files changed, 127 insertions, 0 deletions
diff --git a/examples/jumbotron/index.html b/examples/jumbotron/index.html
new file mode 100644
index 000000000..09bb12277
--- /dev/null
+++ b/examples/jumbotron/index.html
@@ -0,0 +1,97 @@
+<!DOCTYPE html>
+<html lang="en">
+ <head>
+ <meta charset="utf-8">
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
+ <meta name="description" content="">
+ <meta name="author" content="">
+
+ <title>Jumbotron Template for Bootstrap</title>
+
+ <!-- Bootstrap core CSS -->
+ <link href="../bootstrap/css/bootstrap.css" rel="stylesheet">
+
+ <!-- Custom styles for this template -->
+ <link href="jumbotron.css" rel="stylesheet">
+ </head>
+
+ <body>
+
+ <div class="navbar navbar-inverse navbar-fixed-top">
+ <div class="container">
+ <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".nav-collapse">
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ <span class="icon-bar"></span>
+ </button>
+ <a class="navbar-brand" href="#">Project name</a>
+ <div class="nav-collapse collapse">
+ <ul class="nav navbar-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="dropdown-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 form-inline pull-right">
+ <input type="text" placeholder="Email" class="form-control">
+ <input type="password" placeholder="Password" class="form-control">
+ <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 &raquo;</a></p>
+ </div>
+
+ <div class="body-content">
+
+ <!-- Example row of columns -->
+ <div class="row">
+ <div class="col-lg-4">
+ <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 btn-default" href="#">View details &raquo;</a></p>
+ </div>
+ <div class="col-lg-4">
+ <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 btn-default" href="#">View details &raquo;</a></p>
+ </div>
+ <div class="col-lg-4">
+ <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 btn-default" href="#">View details &raquo;</a></p>
+ </div>
+ </div>
+
+ <hr>
+
+ <footer>
+ <p>&copy; Company 2013</p>
+ </footer>
+ </div>
+
+ </div> <!-- /container -->
+
+ <script src="../assets/js/jquery.js"></script>
+ <script src="../bootstrap/js/bootstrap.min.js"></script>
+ </body>
+</html> \ No newline at end of file
diff --git a/examples/jumbotron/jumbotron.css b/examples/jumbotron/jumbotron.css
new file mode 100644
index 000000000..17d253be4
--- /dev/null
+++ b/examples/jumbotron/jumbotron.css
@@ -0,0 +1,30 @@
+/* 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;
+ }
+} \ No newline at end of file