25
Accelerated Web Development with Twitter Bootstrap Steve Noone – 1/18/2013

Bootstrap Responsive Framework

Embed Size (px)

Citation preview

Page 1: Bootstrap Responsive Framework

Accelerated Web Developmentwith Twitter Bootstrap

Steve Noone – 1/18/2013

Page 2: Bootstrap Responsive Framework

Twitter Bootstrap is:A flexible, modern toolset for web layout & design

=

Page 3: Bootstrap Responsive Framework

Twitter Bootstrap is:A collection of tools for building web sites

created using HTML, CSS & JavaScript

Bootstrap Includes:

A responsive grid system for layout

Basic templates for UI elements (forms, buttons, navigation, sliders, modals, etc)

A component library (based on jQuery)

Page 4: Bootstrap Responsive Framework

Twitter Bootstrap is:Free (as in speech) – Apache 2.0

Page 5: Bootstrap Responsive Framework

Twitter Bootstrap is:Used in major, high-traffic websites

And many others…

Page 6: Bootstrap Responsive Framework

Twitter Bootstrap is:Compatible with all major browsers

But will likely drop support for IE7 in 2013…

Page 7: Bootstrap Responsive Framework

Twitter Bootstrap is:One of many, similar UI frameworks

Page 8: Bootstrap Responsive Framework

Twitter Bootstrap is:One of many, similar UI frameworks

Page 9: Bootstrap Responsive Framework

Twitter Bootstrap is:The top followed project on GitHub,

the most commonly used, and has the most active developer community.

https://github.com/popular/starred link

http://responsive.vermilion.com/compare.php link

Page 10: Bootstrap Responsive Framework
Page 11: Bootstrap Responsive Framework

The Bootstrap Grid:

Bootstrap calls this “Scaffolding:”

<div class="row">

<div class="span4">...</div>

<div class="span8">...</div>

</div>

Div elements are used to build rows and columns.Widths and Margins controlled by the framework.Optionally responsive using CSS media queries.

Page 12: Bootstrap Responsive Framework

The Bootstrap Grid:Commonly 12 columns by 60px (static)Modified for BBS to 16 columns by 40px (static)Can “nest” grids (like tables or divs)

Optionally:Flexible-width between 724px and 1170pxCan adapt layout (hide/show/resize) based on deviceCan reflow content on resize (or orientation change)

Page 13: Bootstrap Responsive Framework

Twitter Bootstrap is:An evolution of existing techniques

Tables Divs Grids Responsive

Page 14: Bootstrap Responsive Framework

Responsive Grid Examples:

The Boston Globe link

Responsive Layout Examples

The Boston Globe link

Smashing Magazine link

Microsoft.com link

SONY link

Starbucks link

Page 15: Bootstrap Responsive Framework

Responsive Grid Examples:

The Boston Globe link

Responsive = Increased Complexity

Page 16: Bootstrap Responsive Framework

Bootstrap Base CSS:Nice-looking default styles for common elements, normalizing most browser and OS rendering errata.

Typography (headlines, body copy, callouts, etc.)Tabular Data (striping, hover, row colors, context)Images (borders, frames, shape masking) Forms (input add-ons, help text, validation, selects)Buttons (basic types, states, size options & icons)

Page 17: Bootstrap Responsive Framework

Bootstrap Base CSS:Table Example:

<table class="table table-striped">

</table>

Result:

Page 18: Bootstrap Responsive Framework

Bootstrap Base CSS:Input example:

<div class="input-prepend input-append">

<span class="add-on">$</span>

<input class="span2" id="appendedPrependedInput" type="text">

<span class="add-on">.00</span>

</div>

Result:

Page 19: Bootstrap Responsive Framework

Bootstrap Base CSS:What’s Missing:

File Upload

Multi-Select Replacement

Checkbox/Radio Button Replacement

Resolution-independent icons

Page 20: Bootstrap Responsive Framework

Next Steps: Testing & Review

Page 21: Bootstrap Responsive Framework

Static Components to Test:twitter.github.com/bootstrap/components.html link :

Button Dropdowns (Parent/Child listings)

Thumbnails (search results)

Alerts & Progress bars

Page 22: Bootstrap Responsive Framework

Dynamic Components to Test:twitter.github.com/bootstrap/javascript.html link

Modal popups

Tab panels

Tooltips & Popover Tips

Collapsible content blocks

Page 23: Bootstrap Responsive Framework

“Sandboxed” Test Opportunities:

Email and Ad Landing Pages

BBS Style Guide

FSBO Landing Page & sales flow prototyping

L&F State and Property-type pages

Page 24: Bootstrap Responsive Framework

Potential Problems

Page 25: Bootstrap Responsive Framework

Potential Problems

Introduces another 3rd party dependency

Potential conflicts with existing styles

Limited benefit on very complex pages

Version lock-in for JavaScript Components

Additional QA load for responsive sites