examples.html 6.79 KB
Newer Older
Mark Otto's avatar
Mark Otto committed
1
2
3
<div class="bs-docs-section">
  <h1 id="examples" class="page-header">Examples</h1>

4
  <p class="lead">Build on the basic template above with Bootstrap's many components. We encourage you to customize and adapt Bootstrap to suit your individual project's needs.</p>
Mark Otto's avatar
Mark Otto committed
5

6
7
  <p>Get the source code for every example below by <a href="{{ site.download.source }}">downloading the Bootstrap repository</a>. Examples can be found in the <code>docs/examples/</code> directory.</p>

8
  <h2 id="examples-framework">Using the framework</h2>
Mark Otto's avatar
Mark Otto committed
9
10
11
  <div class="row bs-examples">
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/starter-template/">
XhmikosR's avatar
XhmikosR committed
12
        <img src="../examples/screenshots/starter-template.jpg" alt="Starter template example">
Mark Otto's avatar
Mark Otto committed
13
      </a>
14
      <h3>Starter template</h3>
Mark Otto's avatar
Mark Otto committed
15
16
17
18
      <p>Nothing but the basics: compiled CSS and JavaScript along with a container.</p>
    </div>
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/theme/">
XhmikosR's avatar
XhmikosR committed
19
        <img src="../examples/screenshots/theme.jpg" alt="Bootstrap theme example">
Mark Otto's avatar
Mark Otto committed
20
      </a>
21
      <h3>Bootstrap theme</h3>
Mark Otto's avatar
Mark Otto committed
22
23
24
25
26
27
      <p>Load the optional Bootstrap theme for a visually enhanced experience.</p>
    </div>
    <div class="clearfix visible-xs"></div>

    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/grid/">
XhmikosR's avatar
XhmikosR committed
28
        <img src="../examples/screenshots/grid.jpg" alt="Multiple grids example">
Mark Otto's avatar
Mark Otto committed
29
      </a>
30
      <h3>Grids</h3>
Mark Otto's avatar
Mark Otto committed
31
32
33
34
      <p>Multiple examples of grid layouts with all four tiers, nesting, and more.</p>
    </div>
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/jumbotron/">
XhmikosR's avatar
XhmikosR committed
35
        <img src="../examples/screenshots/jumbotron.jpg" alt="Jumbotron example">
Mark Otto's avatar
Mark Otto committed
36
      </a>
37
      <h3>Jumbotron</h3>
Mark Otto's avatar
Mark Otto committed
38
39
40
41
42
43
      <p>Build around the jumbotron with a navbar and some basic grid columns.</p>
    </div>
    <div class="clearfix visible-xs"></div>

    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/jumbotron-narrow/">
XhmikosR's avatar
XhmikosR committed
44
        <img src="../examples/screenshots/jumbotron-narrow.jpg" alt="Narrow jumbotron example">
Mark Otto's avatar
Mark Otto committed
45
      </a>
46
      <h3>Narrow jumbotron</h3>
Mark Otto's avatar
Mark Otto committed
47
48
49
50
      <p>Build a more custom page by narrowing the default container and jumbotron.</p>
    </div>
  </div>

51
  <h2 id="examples-navbars">Navbars in action</h2>
Mark Otto's avatar
Mark Otto committed
52
53
54
  <div class="row bs-examples">
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/navbar/">
XhmikosR's avatar
XhmikosR committed
55
        <img src="../examples/screenshots/navbar.jpg" alt="Navbar example">
Mark Otto's avatar
Mark Otto committed
56
      </a>
57
      <h3>Navbar</h3>
Mark Otto's avatar
Mark Otto committed
58
59
60
61
      <p>Super basic template that includes the navbar along with some additional content.</p>
    </div>
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/navbar-static-top/">
XhmikosR's avatar
XhmikosR committed
62
        <img src="../examples/screenshots/navbar-static.jpg" alt="Static top navbar example">
Mark Otto's avatar
Mark Otto committed
63
      </a>
64
      <h3>Static top navbar</h3>
Mark Otto's avatar
Mark Otto committed
65
66
67
68
69
70
      <p>Super basic template with a static top navbar along with some additional content.</p>
    </div>
    <div class="clearfix visible-xs"></div>

    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/navbar-fixed-top/">
XhmikosR's avatar
XhmikosR committed
71
        <img src="../examples/screenshots/navbar-fixed.jpg" alt="Fixed navbar example">
Mark Otto's avatar
Mark Otto committed
72
      </a>
73
      <h3>Fixed navbar</h3>
Mark Otto's avatar
Mark Otto committed
74
75
76
77
      <p>Super basic template with a fixed top navbar along with some additional content.</p>
    </div>
  </div>

78
  <h2 id="examples-custom">Custom components</h2>
Mark Otto's avatar
Mark Otto committed
79
80
81
  <div class="row bs-examples">
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/cover/">
XhmikosR's avatar
XhmikosR committed
82
        <img src="../examples/screenshots/cover.jpg" alt="A one-page template example">
Mark Otto's avatar
Mark Otto committed
83
      </a>
84
      <h3>Cover</h3>
Mark Otto's avatar
Mark Otto committed
85
86
87
88
      <p>A one-page template for building simple and beautiful home pages.</p>
    </div>
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/carousel/">
XhmikosR's avatar
XhmikosR committed
89
        <img src="../examples/screenshots/carousel.jpg" alt="Carousel example">
Mark Otto's avatar
Mark Otto committed
90
      </a>
91
      <h3>Carousel</h3>
Mark Otto's avatar
Mark Otto committed
92
93
94
95
96
97
      <p>Customize the navbar and carousel, then add some new components.</p>
    </div>
    <div class="clearfix visible-xs"></div>

    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/blog/">
XhmikosR's avatar
XhmikosR committed
98
        <img src="../examples/screenshots/blog.jpg" alt="Blog layout example">
Mark Otto's avatar
Mark Otto committed
99
      </a>
100
      <h3>Blog</h3>
Mark Otto's avatar
Mark Otto committed
101
102
103
104
      <p>Simple two-column blog layout with custom navigation, header, and type.</p>
    </div>
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/dashboard/">
XhmikosR's avatar
XhmikosR committed
105
        <img src="../examples/screenshots/dashboard.jpg" alt="Dashboard example">
Mark Otto's avatar
Mark Otto committed
106
      </a>
107
      <h3>Dashboard</h3>
XhmikosR's avatar
XhmikosR committed
108
      <p>Basic structure for an admin dashboard with fixed sidebar and navbar.</p>
Mark Otto's avatar
Mark Otto committed
109
110
111
112
113
    </div>
    <div class="clearfix visible-xs"></div>

    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/signin/">
XhmikosR's avatar
XhmikosR committed
114
        <img src="../examples/screenshots/sign-in.jpg" alt="Sign-in page example">
Mark Otto's avatar
Mark Otto committed
115
      </a>
116
      <h3>Sign-in page</h3>
Mark Otto's avatar
Mark Otto committed
117
118
119
120
      <p>Custom form layout and design for a simple sign in form.</p>
    </div>
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/justified-nav/">
XhmikosR's avatar
XhmikosR committed
121
        <img src="../examples/screenshots/justified-nav.jpg" alt="Justified nav example">
Mark Otto's avatar
Mark Otto committed
122
      </a>
123
      <h3>Justified nav</h3>
124
      <p>Create a custom navbar with justified links. Heads up! <a href="../components/#nav-justified">Not too Safari friendly.</a></p>
Mark Otto's avatar
Mark Otto committed
125
126
127
128
129
    </div>
    <div class="clearfix visible-xs"></div>

    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/sticky-footer/">
XhmikosR's avatar
XhmikosR committed
130
        <img src="../examples/screenshots/sticky-footer.jpg" alt="Sticky footer example">
Mark Otto's avatar
Mark Otto committed
131
      </a>
132
      <h3>Sticky footer</h3>
Mark Otto's avatar
Mark Otto committed
133
134
135
136
      <p>Attach a footer to the bottom of the viewport when the content is shorter than it.</p>
    </div>
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/sticky-footer-navbar/">
XhmikosR's avatar
XhmikosR committed
137
        <img src="../examples/screenshots/sticky-footer-navbar.jpg" alt="Sticky footer with navbar example">
Mark Otto's avatar
Mark Otto committed
138
      </a>
139
      <h3>Sticky footer with navbar</h3>
Mark Otto's avatar
Mark Otto committed
140
141
142
143
      <p>Attach a footer to the bottom of the viewport with a fixed navbar at the top.</p>
    </div>
  </div>

144
  <h2 id="examples-experiments">Experiments</h2>
Mark Otto's avatar
Mark Otto committed
145
146
147
  <div class="row bs-examples">
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/non-responsive/">
XhmikosR's avatar
XhmikosR committed
148
        <img src="../examples/screenshots/non-responsive.jpg" alt="Non-responsive example">
Mark Otto's avatar
Mark Otto committed
149
      </a>
150
      <h3>Non-responsive Bootstrap</h3>
Mark Otto's avatar
Mark Otto committed
151
152
153
154
      <p>Easily disable the responsiveness of Bootstrap <a href="#disable-responsive">per our docs</a>.</p>
    </div>
    <div class="col-xs-6 col-md-4">
      <a class="thumbnail" href="../examples/offcanvas/">
XhmikosR's avatar
XhmikosR committed
155
        <img src="../examples/screenshots/offcanvas.jpg" alt="Off-canvas navigation example">
Mark Otto's avatar
Mark Otto committed
156
      </a>
157
      <h3>Off-canvas</h3>
Mark Otto's avatar
Mark Otto committed
158
159
160
161
      <p>Build a toggleable off-canvas navigation menu for use with Bootstrap.</p>
    </div>
  </div>
</div>