-
Notifications
You must be signed in to change notification settings - Fork 13
/
class09.html
673 lines (561 loc) · 25.9 KB
/
class09.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
<!doctype html>
<html lang="en">
<head>
<title>FEWD: Class 09</title>
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/general-assembly.css" id="theme">
<link rel="shortcut icon" type="image/x-icon" href="img/favicon.ico" />
<link rel="stylesheet" href="css/zenburn.css">
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/styles/default.min.css">
<script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.9.0/highlight.min.js"></script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section class="hero">
<h1>HELLO</h1>
<div class="opening-instructions">
<p>1) Please download <a href="../materials/class09.zip">Class 09 Starter Code</a></p>
<!-- <p>2) Move the following into <code class="code">class-work</code> :</p>
<div class="pad-left-lg">
<p>• <code class="code">animated-sticky-nav</code></p>
</div> -->
<p>2) Solution to <code class="code">startup-matchmaker</code> included</p>
</div>
</section>
<section class="hero">
<h1>Class <span class="red">#09</span></h1>
<h1>10/15/2018</h1>
<h1 class="lesson-title">Flexbox</h1>
</section>
<!-- ANNOUNCEMENTS -->
<section data-background="#FFF" class="text-left">
<div class="heading">Annoucements</div>
<p>• Final Projects:</p>
<div class="pad-left-lg text-smaller">
<p>⇒ First deliverable due Monday, October 22nd</p>
<p>⇒ One week away!</p>
<p>⇒ Project proposal/ideas</p>
<p>⇒ Wirefames if possible!</p>
</div>
<p>• We start JavaScript next week!</p>
</section>
<!-- AGENDA -->
<section data-background="#FFF" class="text-left">
<div class="heading">Agenda</div>
<p>• <a href="#/responsive-review">Responsive Review</a></p>
<p>• <a href="#/responsive-navbar">Responsive Navbar</a></p>
<p>• <a href="#/flexbox">Flexbox</a></p>
<!-- <p>• <a href="#/css-frameworks">CSS Frameworks Overview</a></p>
<p>• <a href="#/bootstrap">Bootstrap</a></p> -->
<p>• <a href="#/viewport">Viewport</a></p>
<p>• In-class Final Project Work</p>
</section>
<!-- REVIEW -->
<section class="title" id="responsive-review">
<h1>Responsive Review</h1>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Responsive Review</div>
<div class="text-smaller">
<div class="fragment">
<p><u>RWD</u>:</p>
<p class="pad-left-lg text-smallest">• Designing the optimal viewing experience no matter the device</p>
</div>
<div class="fragment">
<p><u>Static vs. Fluid Layouts</u>:</p>
<p class="pad-left-lg text-smallest">• Using %-based widths, margins, etc. instead of px-based</p>
</div>
<div class="fragment">
<p><u>Media Queries</u>:</p>
<div class="pad-left-lg text-smallest">
<p>• CSS targeted at specific variables, like screen-size</p>
<p>• When <code class="code">width > 1000px</code> color text <span style="color:red;">red</span></p>
</div>
</div>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Responsive Review: Media Queries</div>
<div class="text-smaller">
<p>Within CSS Stylesheet:</p>
<pre><code>
@media screen and (min-width: 1024px) {
...styles here
}
</code></pre>
<p><u>Media Type:</u> <code class="code fragment">screen</code></p>
<p class="fragment pad-left-lg">Only target devices with a viewable screen</p>
<p><u>Rule:</u> <code class="code fragment">(mid-width: 1024px)</code></p>
<p class="fragment pad-left-lg">Only target windows larger than, or equal to, 1024px</p>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Media Queries: Multiple Rules</div>
<p>• Multiple rules:</p>
<pre><code>
@media (min-width: 320px) and (max-width: 480px) {
...
}
@media (min-width: 480px) and (max-width: 760px) {
...
}
</code></pre>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Responsive Review: Other Tools</div>
<div class="text-smaller">
<p>• Set <code class="code">box-sizing: border-box;</code>:</p>
<pre><code>
* {
box-sizing: border-box;
}
</code></pre>
<div class="fragment">
<p>• Use <code class="code">calc()</code> for help determining exact widths:</p>
<pre><code>
div {
width: calc(100% / 3)
}
</code></pre>
</div>
</div>
</section>
<!-- RESPONSIVE NAVBAR -->
<section class="title" id="responsive-navbar">
<h1>Responsive Navbar</h1>
</section>
<section class="center">
<img src="img/class09/responsive-nav.svg" alt="">
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Responsive Navbar</div>
<p>1. Open the following <a href="https://codepen.io/cheshireoctopus/pen/xyLzrz?editors=1100" target="_blank">CodePen</a></p>
<p>2. Use <code class="code">float</code>'s to render the desktop</p>
<p>3. Use media queries to render the mobile</p>
<p>4. Research <code class="code">display: none</code> to <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/display#display_none" target="_blank">hide/show</a> icon</p>
<p>5. Approximate <code class="code">margin</code> and <code class="code">padding</code> values</p>
</section>
<!-- FLEXBOX -->
<section class="title" id="flexbox">
<h1>Flexbox</h1>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Flexbox: Overview</div>
<p>• Page layout can be difficult/annoying/life-ruining</p>
<p class="fragment">• <a href="https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout/Basic_Concepts_of_Flexbox" target="_blank">Flexbox</a> is a CSS tool for easy <u>2D</u> layouts</p>
<p class="fragment">• Helps parent element "flex" childrens' sizes</p>
<p class="fragment">• Parents can vertically/horizontally align children</p>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Flexbox: Overview</div>
<p class="text-smallest">• Two components: a <b>flex container</b> and its <b>flex children</b></p>
<div class="text-center">
<img src="img/class09/flexbox-overview.png" alt="">
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Flexbox: Overview</div>
<p>• The equivalent HTML:</p>
<pre><code>
<div class="container">
<div class="child"></div>
<div class="child"></div>
<div class="child"></div>
</div>
</code></pre>
<p>• <code class="code"><div class="container"></code> is the <b>flex container</b></p>
<p>• <code class="code"><div class="child"></code>'s are the <b>flex children</b></p>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Flexbox: Overview</div>
<p>• Easy to use!</p>
<p>• Apply <code class="code">display: flex;</code> to the <b>flex container</b></p>
<p>• Container's immediate children are <b>flex children</b></p>
<p>• The <b>flex children</b> will render inline (like floats)</p>
<p>• <a href="https://codepen.io/cheshireoctopus/pen/gWxxER?editors=1100" target="_blank">Codepen example</a></p>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Flexbox: Containers - Horizontal Alignment</div>
<div class="text-smaller">
<p><code class="code">justify-content</code> horiztonally aligns the container's children:</p>
<div class="text-smaller">
<p>⇒ <code class="code">flex-start</code> (default): items align at the left</p>
<p>⇒ <code class="code">flex-end</code>: items align at the right</p>
<p>⇒ <code class="code">center</code>: items are centered</p>
<p>⇒ <code class="code">space-between</code>: evenly distributed - aligned with conatiner's start/end</p>
<p>⇒ <code class="code">space-around</code>: evenly distributed with equal space around them</p>
</div>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Flexbox: Containers - Vertical Alignment</div>
<div class="text-smaller">
<p><code class="code">align-items</code> vertically aligns the container's children:</p>
<p>⇒ <code class="code">flex-start</code>: items aligned at the top of the container</p>
<p>⇒ <code class="code">flex-end</code>: itemts aligned at the bottom of the container</p>
<p>⇒ <code class="code">center</code>: items are centered</p>
<p>⇒ <code class="code">baseline</code>: aligned along the baseline of their respective text</p>
<p>⇒ <code class="code">stretch</code> (default): items stretch to fill their container</p>
</div>
</section>
<section class="center">
<img src="img/class09/flexbox-froggy.png" alt="">
<h1><a href="http://flexboxfroggy.com/" target="_blank">Flexbox Froggy</a></h1>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Codealong: Flexbox + Startup Matchmaker</div>
<p>1) <a href="https://codepen.io/cheshireoctopus/pen/dWzZzq?editors=1100" target="_blank">Startup Matchmaker Nav</a></p>
<p>2) <a href="https://codepen.io/cheshireoctopus/pen/qVpwWG" target="_blank">Startup Matchmaker Jumbotron</a></p>
<p>3) <a href="https://codepen.io/cheshireoctopus/pen/GOyLgq?editors=1100#0" target="_blank">Startup Matchmaker CTA's</a></p>
</section>
<!-- BREAK (5-7 mins) -->
<section class="center">
<h1>5 minute break</h1>
<img src="img/main/break-time-bear.jpg">
</section>
<!-- META TAG -->
<section class="title" id="viewport">
<h1>The Viewport</h1>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">The Viewport</div>
<p>• Ever had to zoom to move around a mobile website?</p>
<div class="fragment">
<p>• Mobile browsers render webpages in a window wider than the screen</p>
<p>• <a href="https://developer.mozilla.org/en-US/docs/Mozilla/Mobile/Viewport_meta_tag" target="_blank">The Viewport</a></p>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">The Viewport</div>
<div class="text-center">
<img src="img/class09/viewport.jpg" alt="">
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">The Viewport</div>
<p>• Esnure content is viewed at the width of the device</p>
<p>• ...not the viewport</p>
<pre><code>
<meta name="viewport" content="width=device-width, initial-scale=1">
</code></pre>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">The Viewport</div>
<pre><code>
<meta name="viewport" content="width=device-width, initial-scale=1">
</code></pre>
<p><code class="code">width=device-width</code></p>
<p class="pad-left-lg text-smaller">⇒ Controls the size of the viewport; sets it to the device's width</p>
<p><code class="code">initial-scale=1</code></p>
<p class="pad-left-lg text-smaller">⇒ Controls the zoom level</p>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">The Viewport</div>
<p>• Open your Startup Matchmaker with mobile dev tools</p>
<p>• Apply the <code class="code"><meta></code> tag</p>
<p>• Refresh!</p>
<p>• Ensure this tag is included on mobile</p>
</section>
<section class="title">
<h1>Final Project Work</h1>
</section>
<!-- CSS FRAMEWORKS -->
<!-- <section class="title" id="css-frameworks">
<h1>CSS Frameworks</h1>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">CSS Frameworks: Overview</div>
<div class="text-smaller">
<p>• Standardized approach for solving common problems</p>
<p>• Pre-packaged code used to support web development</p>
<div class="fragment">
<p>• Goals:</p>
<div class="pad-left-lg">
<p>⇒ Provide a common structure (boilerplate)</p>
<p>⇒ Eliminate repetitive work</p>
<p>⇒ Speed development process</p>
<p>⇒ Increase on-boarding time of new developers</p>
</div>
</div>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">CSS Frameworks: Overview</div>
<p><u>Frontend Framework</u>:</p>
<div class="text-smaller">
<p>• Contains standardized code and assets (HTML/CSS/JS)</p>
<p>• Typography and pre-built styles for HTML elements</p>
<p>• CSS grid for developing a responsive layout</p>
<p>• Solutions to cross-browser compatibility issues</p>
<p>• JS library for UI/UX interactions (dropdowns/carousels/etc.)</p>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">CSS Frameworks: Overview</div>
<p>Two types of framework:</p>
<div class="text-smallest pad-left-lg">
<p>1) Grid/Layouts (simple):</p>
<div class="pad-left-lg">
<p>⇒ <a target="_blank" href="http://960.gs/">960 Grid System</a></p>
<p>⇒ <a target="_blank" href="http://daneden.github.io/Toast/">Toast</a></p>
</div>
<p>2) Complete (complex):</p>
<div class="pad-left-lg">
<p>⇒ <a target="_blank" href="http://getbootstrap.com/">Bootstrap</a></p>
<p>⇒ <a target="_blank" href="http://foundation.zurb.com/">(Zurb) Foundation</a></p>
<p>⇒ <a target="_blank" href="http://getskeleton.com/">Skeleton</a></p>
</div>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">CSS Frameworks: Selecting a Framework</div>
<p>Rule of thumb:</p>
<p class="pad-left-lg text-smallest">⇒ The more stylistically complex (the more custom CSS you will be writing), the less complex of a framework you will need</p>
<div class="fragment">
<p>As with plugins:</p>
<div class="pad-left-lg text-smallest">
<p>⇒ Open source</p>
<p>⇒ Recently updated</p>
<p>⇒ Community of active contributors</p>
<p>⇒ Well-documented</p>
</div>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">CSS Frameworks: Pros/Cons</div>
<div class="text-smaller">
<p>Pros:</p>
<div class="pad-left-lg text-smallest">
<p>⇒ Major increase in speed of development</p>
<p>⇒ Solutions to common problems already built</p>
<p>⇒ Cross-browser compatibility</p>
</div>
<p>Cons:</p>
<div class="pad-left-lg text-smallest">
<p>⇒ Reliance: you might un-learn CSS!</p>
<p>⇒ Bloat: unused framework code</p>
<p>⇒ <a href="http://adventurega.me/bootstrap/" target="_blank">Identical/similar-looking/clones</a></p>
</div>
</div>
</section> -->
<!-- BOOTSTRAP -->
<!-- <section class="title" id="bootstrap">
<h1>Bootstrap</h1>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap: What is it?</div>
<p>In their own words:</p>
<blockquote>"Bootstrap is the most popular HTML, CSS, and JS framework for developing responsive, mobile first projects on the web."</blockquote>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap: What is it?</div>
<div class="text-smaller">
<p>• Best thing to come out of Twitter (built by <a target="_blank" href="https://twitter.com/mdo">@mdo</a> and <a target="_blank" href="https://twitter.com/fat">@fat</a>)</p>
<p>• CSS framework with HTML and JS components</p>
<p>• Collection of CSS styles for common UI <a target="_blank" href="http://getbootstrap.com/components/">components</a>:</p>
<div class="pad-left-lg text-smallest">
<p>⇒ Responsive Navigation w/ Dropdown Menus</p>
<p>⇒ Image Carousels</p>
</div>
<p>• Notable for its responsive <a target="_blank" href="http://getbootstrap.com/css/#grid">grid</a> layout</p>
<p>• <a href="https://codepen.io/cheshireoctopus/pen/XzVQzw?editors=1100" target="_blank">CodePen Example</a></p>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap: What is it?</div>
<div class="text-center">
<img src="img/class18/bootstrap-files.png" alt="">
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap: The Grid</div>
<p>• Responsive, mobile-first, fluid grid system that </p>
<p>• Scales up to 12 columns as the viewport size increases</p>
<p>• Implemented through a series of <b>rows</b> and <b>columns</b></p>
<p>• Supported through pre-defined media queries</p>
<p>• Bottom line ⇒ handles responsive design for you!</p>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap: The Grid</div>
<div class="text-center">
<img src="img/class18/bootstrap-12-grid.png" alt="">
</div>
<p class="text-left text-smallest">Source: <a target="_blank" href="http://gdiboulder.github.io/gdi-boulder-intro-bootstrap/">Girl Develop It</a></p>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap: The Grid - Core CSS Classes</div>
<div class="text-smallest">
<p><code class="code">.container</code> (or, <code class="code">container-fluid</code>)</p>
<p class="pad-left-lg text-smaller">⇒ Top-level element; contains other HTML</p>
<div class="fragment">
<p><code class="code">.row</code></p>
<p class="pad-left-lg text-smaller">⇒ Horiztonal row used to hold <code class="code">.col</code>'s</p>
<p class="pad-left-lg text-smaller">⇒ Must be children of a <code class="code">.container</code></p>
</div>
<div class="fragment">
<p><code class="code">.col</code></p>
<p class="pad-left-lg text-smaller">⇒ Used to hold content (text/images/etc.)</p>
<p class="pad-left-lg text-smaller">⇒ Must be immediate children of <code class="code">row</code>'s</p>
</div>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap: Columns</div>
<div class="text-smallest">
<p>• Bootstrap's grid is divided into 12 columns</p>
<p>• Columns are created using CSS classes</p>
<p>• Build columns using the following formula: <code class="code">col-{size}-{width}</code></p>
<div class="fragment">
<hr>
<p>• <code class="code"><div class="col-md-6"></code></p>
<p class="pad-left-lg text-smaller">⇒ A <code class="code"><div></code> for medium-sized screens that is 6-columns wide</p>
<p>• <code class="code"><div class="col-xs-2"></code></p>
<p class="pad-left-lg text-smaller">⇒ A <code class="code"><div></code> for x-small screens that is 2-columns wide</p>
</div>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Boostrap: Two 50%-width Columns</div>
<div class="text-center">
<img src="img/class18/bootstrap-2-col.png" alt="">
</div>
<p class="text-left text-smallest">Source: <a target="_blank" href="http://gdiboulder.github.io/gdi-boulder-intro-bootstrap/">Girl Develop It</a></p>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap: Two 50%-width Columns</div>
<pre><code>
<div class="container">
<div class="row">
<div class="col-md-6">Content here</div>
<div class="col-md-6">Content here</div>
</div>
</div>
</code></pre>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap: Four 25%-width Columns</div>
<div class="text-center">
<img src="img/class18/bootstrap-4-col.png" alt="">
</div>
<p class="text-left text-smallest">Source: <a target="_blank" href="http://gdiboulder.github.io/gdi-boulder-intro-bootstrap/">Girl Develop It</a></p>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap: Four 25%-width Columns</div>
<pre><code>
<div class="container">
<div class="row">
<div class="col-md-3">Content here</div>
<div class="col-md-3">Content here</div>
<div class="col-md-3">Content here</div>
<div class="col-md-3">Content here</div>
</div>
</div>
</code></pre>
<p>• <a href="https://codepen.io/cheshireoctopus/pen/OOzGEO?editors=1100#0" target="_blank">CodePen Example</a></p>
</section>
-->
<!-- <section class="title" id="bootstrap-components">
<h1>Bootstrap Componenets</h1>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap Components: Overview</div>
<p>• Bootstrap components are pre-rolled HTML/CSS (often JS) combinations</p>
<p>• Make it easy to implement typical functionality:</p>
<div class="pad-left-lg">
<p>⇒ Dropdowns</p>
<p>⇒ Navigation</p>
<p>⇒ Pagination</p>
</div>
<p>• <a href="http://getbootstrap.com/components/#top" target="_blank">Components List</a></p>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap Components: Navbar</div>
<p>• Bootstrap's <a href="http://getbootstrap.com/components/#navbar" target="_blank">Navbar</a> provides a responsive nav out-of-the-box</p>
<p>• Provides built-in links, search, and dropdown components</p>
<p>• Can be "fixed" to top/bottom of screen</p>
<div class="fragment">
<p>• Easy-install:</p>
<div class="pad-left-lg">
<p>1) Copy the starter code from the documents</p>
<p>2) Paste the starter code right before the opening <code class="code"><body></code> tag</p>
<p>3) Customize to your liking</p>
</div>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap Components: Navbar</div>
<div class="text-center">
<img src="img/class18/bootstrap-nav-starter-code.png" alt="bootstrap nav starter code">
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap Components: Navbar</div>
<div class="text-smallest">
<p>• The nav's containers:</p>
<pre><code>
<nav class="navbar navbar-inverse navbar-fixed-top">
<div class="container-fluid">
...rest of nav elements here
</div>
</nav>
</code></pre>
<div class="fragment">
<p>• Apply the following classes to nav:</p>
<div class="pad-left-lg">
<p>⇒ <code class="code">navbar</code></p>
<p>⇒ <code class="code">navbar-inverse</code></p>
<p>⇒ <code class="code">navbar-fixed-top</code></p>
</div>
</div>
<p class="fragment">• Creates a black navbar that is fixed to the top of the page</p>
</div>
</section>
<section data-background="#FFF" class="text-left">
<div class="heading">Bootstrap Components: Navbar</div>
<div class="text-smallest">
<p>• The nav's primary children (nested inside <code class="code">container-fluid</code>):</p>
<pre><code>
<div class="navbar-header">
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
<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="index.html">
<img src="img/your-logo-here.png" width="20" heigh="20" alt="your logo">
</a>
</div>
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
<ul class="nav navbar-nav">
<li class="active"><a href="index.html">Home</a></li>
<li><a href="about.html">About</a></li>
<li><a href="blog.html">Blog</a></li>
</ul>
</div>
</code></pre>
<p>• Creates a logo and responsive nav menu</p>
<p>• Navigation links are stored in <code class="code"><div class="nav navbar-nav">...</code></p>
</div>
</section> -->
<!-- THE END -->
<section class="center">
<img src="img/main/the-end.jpg">
</section>
<!-- ON DECK -->
<section data-background="#FFF" class="text-left">
<div class="heading">On Deck: #10 - Responsive Capstone</div>
<p>• Relaxr Responsive Capstone</p>
<p>• ...or In-Class Final Project Work</p>
</section>
<section class="center">
<h1>Exit Tickets!</h1>
</section>
</div>
</div>
<script src="js/head.min.js"></script>
<script src="js/reveal.min.js"></script>
<script src="js/main.js"></script>
</body>
</html>