mirror of
https://github.com/twbs/bootstrap.git
synced 2024-12-12 00:08:59 +01:00
219 lines
11 KiB
Plaintext
219 lines
11 KiB
Plaintext
<!-- Subhead
|
|
================================================== -->
|
|
<header class="jumbotron subhead" id="overview">
|
|
<div class="container">
|
|
<h1>{{_i}}Getting started{{/i}}</h1>
|
|
<p class="lead">{{_i}}Overview of the project, its contents, and how to get started with a simple template.{{/i}}</p>
|
|
</div>
|
|
</header>
|
|
|
|
|
|
<div class="container">
|
|
|
|
<!-- Docs nav
|
|
================================================== -->
|
|
<div class="row">
|
|
<div class="span3 bs-docs-sidebar">
|
|
<ul class="nav nav-list bs-docs-sidenav">
|
|
<li><a href="#download-bootstrap"><i class="icon-chevron-right"></i> {{_i}}Download{{/i}}</a></li>
|
|
<li><a href="#file-structure"><i class="icon-chevron-right"></i> {{_i}}File structure{{/i}}</a></li>
|
|
<li><a href="#contents"><i class="icon-chevron-right"></i> {{_i}}What's included{{/i}}</a></li>
|
|
<li><a href="#html-template"><i class="icon-chevron-right"></i> {{_i}}HTML template{{/i}}</a></li>
|
|
<li><a href="#examples"><i class="icon-chevron-right"></i> {{_i}}Examples{{/i}}</a></li>
|
|
<li><a href="#what-next"><i class="icon-chevron-right"></i> {{_i}}What next?{{/i}}</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="span9">
|
|
|
|
|
|
|
|
<!-- Download
|
|
================================================== -->
|
|
<section id="download-bootstrap">
|
|
<div class="page-header">
|
|
<h1>{{_i}}1. Download{{/i}}</h1>
|
|
</div>
|
|
<p class="lead">{{_i}}Before downloading, be sure to have a code editor (we recommend <a href="http://sublimetext.com/2">Sublime Text 2</a>) and some working knowledge of HTML and CSS. We won't walk through the source files here, but they are available for download. We'll focus on getting started with the compiled Bootstrap files.{{/i}}</p>
|
|
|
|
<div class="row-fluid">
|
|
<div class="span6">
|
|
<h2>{{_i}}Download compiled{{/i}}</h2>
|
|
<p>{{_i}}<strong>Fastest way to get started:</strong> get the compiled and minified versions of our CSS, JS, and images. No docs or original source files.{{/i}}</p>
|
|
<p><a class="btn btn-large btn-primary" href="assets/bootstrap.zip" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download compiled']);"{{/production}}>{{_i}}Download Bootstrap{{/i}}</a></p>
|
|
</div>
|
|
<div class="span6">
|
|
<h2>Download source</h2>
|
|
<p>Get the original files for all CSS and JavaScript, along with a local copy of the docs by downloading the latest version directly from GitHub.</p>
|
|
<p><a class="btn btn-large" href="https://github.com/twitter/bootstrap/zipball/master" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Download', 'Download source']);"{{/production}}>{{_i}}Download Bootstrap source{{/i}}</a></p>
|
|
</div>
|
|
</div>
|
|
</section>
|
|
|
|
|
|
|
|
<!-- File structure
|
|
================================================== -->
|
|
<section id="file-structure">
|
|
<div class="page-header">
|
|
<h1>{{_i}}2. File structure{{/i}}</h1>
|
|
</div>
|
|
<p class="lead">{{_i}}Within the download you'll find the following file structure and contents, logically grouping common assets and providing both compiled and minified variations.{{/i}}</p>
|
|
<p>{{_i}}Once downloaded, unzip the compressed folder to see the structure of (the compiled) Bootstrap. You'll see something like this:{{/i}}</p>
|
|
<pre class="prettyprint">
|
|
bootstrap/
|
|
├── css/
|
|
│ ├── bootstrap.css
|
|
│ ├── bootstrap.min.css
|
|
├── js/
|
|
│ ├── bootstrap.js
|
|
│ ├── bootstrap.min.js
|
|
├── img/
|
|
│ ├── glyphicons-halflings.png
|
|
│ ├── glyphicons-halflings-white.png
|
|
└── README.md
|
|
</pre>
|
|
<p>{{_i}}This is the most basic form of Bootstrap: compiled files for quick drop-in usage in nearly any web project. We provide compiled CSS and JS (<code>bootstrap.*</code>), as well as compiled and minified CSS and JS (<code>bootstrap.min.*</code>). The image files are compressed using <a href="http://imageoptim.com/">ImageOptim</a>, a Mac app for compressing PNGs.{{/i}}</p>
|
|
<p>{{_i}}Please note that all JavaScript plugins require jQuery to be included.{{/i}}</p>
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Contents
|
|
================================================== -->
|
|
<section id="contents">
|
|
<div class="page-header">
|
|
<h1>{{_i}}3. What's included{{/i}}</h1>
|
|
</div>
|
|
<p class="lead">{{_i}}Bootstrap comes equipped with HTML, CSS, and JS for all sorts of things, but they can be summarized with a handful of categories visible at the top of the <a href="http://getbootstrap.com">Bootstrap documentation</a>.{{/i}}</p>
|
|
|
|
<h2>{{_i}}Docs sections{{/i}}</h2>
|
|
<h4><a href="http://twitter.github.com/bootstrap/scaffolding.html">{{_i}}Scaffolding{{/i}}</a></h4>
|
|
<p>{{_i}}Global styles for the body to reset type and background, link styles, grid system, and two simple layouts.{{/i}}</p>
|
|
<h4><a href="http://twitter.github.com/bootstrap/base-css.html">{{_i}}Base CSS{{/i}}</a></h4>
|
|
<p>{{_i}}Styles for common HTML elements like typography, code, tables, forms, and buttons. Also includes <a href="http://glyphicons.com">Glyphicons</a>, a great little icon set.{{/i}}</p>
|
|
<h4><a href="http://twitter.github.com/bootstrap/components.html">{{_i}}Components{{/i}}</a></h4>
|
|
<p>{{_i}}Basic styles for common interface components like tabs and pills, navbar, alerts, page headers, and more.{{/i}}</p>
|
|
<h4><a href="http://twitter.github.com/bootstrap/javascript.html">{{_i}}Javascript plugins{{/i}}</a></h4>
|
|
<p>{{_i}}Similar to Components, these Javascript plugins are interactive components for things like tooltips, popovers, modals, and more.{{/i}}</p>
|
|
|
|
<h2>{{_i}}List of components{{/i}}</h2>
|
|
<p>{{_i}}Together, the <strong>Components</strong> and <strong>Javascript plugins</strong> sections provide the following interface elements:{{/i}}</p>
|
|
<ul>
|
|
<li>{{_i}}Button groups{{/i}}</li>
|
|
<li>{{_i}}Button dropdowns{{/i}}</li>
|
|
<li>{{_i}}Navigational tabs, pills, and lists{{/i}}</li>
|
|
<li>{{_i}}Navbar{{/i}}</li>
|
|
<li>{{_i}}Labels{{/i}}</li>
|
|
<li>{{_i}}Badges{{/i}}</li>
|
|
<li>{{_i}}Page headers and hero unit{{/i}}</li>
|
|
<li>{{_i}}Thumbnails{{/i}}</li>
|
|
<li>{{_i}}Alerts{{/i}}</li>
|
|
<li>{{_i}}Progress bars{{/i}}</li>
|
|
<li>{{_i}}Modals{{/i}}</li>
|
|
<li>{{_i}}Dropdowns{{/i}}</li>
|
|
<li>{{_i}}Tooltips{{/i}}</li>
|
|
<li>{{_i}}Popovers{{/i}}</li>
|
|
<li>{{_i}}Accordion{{/i}}</li>
|
|
<li>{{_i}}Carousel{{/i}}</li>
|
|
<li>{{_i}}Typeahead{{/i}}</li>
|
|
</ul>
|
|
<p>{{_i}}In future guides, we may walk through these components individually in more detail. Until then, look for each of these in the documentation for information on how to utilize and customize them.{{/i}}</p>
|
|
</section>
|
|
|
|
|
|
|
|
<!-- HTML template
|
|
================================================== -->
|
|
<section id="html-template">
|
|
<div class="page-header">
|
|
<h1>{{_i}}4. Basic HTML template{{/i}}</h1>
|
|
</div>
|
|
<p class="lead">{{_i}}With a brief intro into the contents out of the way, we can focus on putting Bootstrap to use. To do that, we'll utilize a basic HTML template that includes everything we mentioned in the <a href="#file-structure">File structure</a>.{{/i}}</p>
|
|
<p>{{_i}}Now, here's a look at a <strong>typical HTML file</strong>:{{/i}}</p>
|
|
<pre class="prettyprint linenums">
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Bootstrap 101 Template</title>
|
|
</head>
|
|
<body>
|
|
<h1>Hello, world!</h1>
|
|
<script src="http://code.jquery.com/jquery-latest.js"></script>
|
|
</body>
|
|
</html>
|
|
</pre>
|
|
<p>{{_i}}To make this <strong>a Bootstrapped template</strong>, just include the appropriate CSS and JS files:{{/i}}</p>
|
|
<pre class="prettyprint linenums">
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Bootstrap 101 Template</title>
|
|
<!-- Bootstrap -->
|
|
<link href="css/bootstrap.min.css" rel="stylesheet" media="screen">
|
|
</head>
|
|
<body>
|
|
<h1>Hello, world!</h1>
|
|
<script src="http://code.jquery.com/jquery-latest.js"></script>
|
|
<script src="js/bootstrap.min.js"></script>
|
|
</body>
|
|
</html>
|
|
</pre>
|
|
<p>{{_i}}<strong>And you're set!</strong> With those two files added, you can begin to develop any site or application with Bootstrap.{{/i}}</p>
|
|
</section>
|
|
|
|
|
|
|
|
<!-- Examples
|
|
================================================== -->
|
|
<section id="examples">
|
|
<div class="page-header">
|
|
<h1>{{_i}}5. Examples{{/i}}</h1>
|
|
</div>
|
|
<p class="lead">{{_i}}Move beyond the base template with a few example layouts. We encourage folks to iterate on these examples and not simply use them as an end result.{{/i}}</p>
|
|
<ul class="thumbnails bootstrap-examples">
|
|
<li class="span3">
|
|
<a class="thumbnail" href="examples/hero.html">
|
|
<img src="assets/img/examples/bootstrap-example-hero.jpg" alt="">
|
|
</a>
|
|
<h4>{{_i}}Basic marketing site{{/i}}</h4>
|
|
<p>{{_i}}Featuring a hero unit for a primary message and three supporting elements.{{/i}}</p>
|
|
</li>
|
|
<li class="span3">
|
|
<a class="thumbnail" href="examples/fluid.html">
|
|
<img src="assets/img/examples/bootstrap-example-fluid.jpg" alt="">
|
|
</a>
|
|
<h4>{{_i}}Fluid layout{{/i}}</h4>
|
|
<p>{{_i}}Uses our new responsive, fluid grid system to create a seamless liquid layout.{{/i}}</p>
|
|
</li>
|
|
<li class="span3">
|
|
<a class="thumbnail" href="examples/starter-template.html">
|
|
<img src="assets/img/examples/bootstrap-example-starter.jpg" alt="">
|
|
</a>
|
|
<h4>{{_i}}Starter template{{/i}}</h4>
|
|
<p>{{_i}}A barebones HTML document with all the Bootstrap CSS and javascript included.{{/i}}</p>
|
|
</li>
|
|
</ul>
|
|
</section>
|
|
|
|
|
|
|
|
|
|
<!-- Next
|
|
================================================== -->
|
|
<section id="what-next">
|
|
<div class="page-header">
|
|
<h1>{{_i}}What next?{{/i}}</h1>
|
|
</div>
|
|
<p class="lead">{{_i}}Head to the docs for information, examples, and code snippets, or take the next leap and customize Bootstrap for any upcoming project.{{/i}}</p>
|
|
<a class="btn btn-large btn-primary" href="./scaffolding.html" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Visit docs']);"{{/production}}>{{_i}}Visit the Bootstrap docs{{/i}}</a>
|
|
<a class="btn btn-large" href="./customize.html" style="margin-left: 5px;" {{#production}}onclick="_gaq.push(['_trackEvent', 'Getting started', 'Next steps', 'Customize']);"{{/production}}>{{_i}}Customize Bootstrap{{/i}}</a>
|
|
</section>
|
|
|
|
|
|
|
|
|
|
</div>{{! /span9 }}
|
|
</div>{{! row}}
|
|
|
|
</div>{{! /.container }}
|