Top Banner
IAT334 Interface Design WEEK OF 1/9/2013 1 D101 & D104 Labs Spring 2013 - Week 1 Diliara [dilara] Nasirova
17

Bootstrap Introduction

Jan 28, 2015

Download

Technology

Bootstrap tutorial presentation notes prepared for IAT 334 course @SIAT, SFU
Spring 2013 semester
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Bootstrap Introduction

IAT334 Interface Design

WEEK OF 1/9/2013 1

D101 & D104 Labs Spring 2013 - Week 1

Diliara [dilara] Nasirova

Page 2: Bootstrap Introduction

Responsive Design

• What is it and why should we care about it?

• CSS3 media queries: use different CSS styles based on the screen size

• Fluid grid: %-based or EM-based sizes allows flexible design

• Flexible images: images resize as part of the design

• Together: • one codebase across all devices

• UI adapts to the screen at hand

Page 3: Bootstrap Introduction

Responsive Design Examples

http://blenz.ca

Page 4: Bootstrap Introduction

Responsive Design Examples

http://starbucks.ca/

Page 5: Bootstrap Introduction

Responsive Design Examples

http://timhortons.ca

Page 6: Bootstrap Introduction

Twitter Bootstrap HTML + CSS + JavaScript = Responsive Design Framework

Page 7: Bootstrap Introduction

Download Bootstrap

http://getbootstrap.com

WEEK OF 1/9/2013 11

css

(bootstrap.min.css)

img

(glyphicons) js

(bootstrap.min.js)

Page 8: Bootstrap Introduction

Make an HTML file 1. Create HTML 5 document

2. Change Title

3. Attach 2 CSS files

4. Add jQuery Link

5. Attach JavaScript file

6. Add Responsive Design metatag

Page 9: Bootstrap Introduction

Make an HTML file Bootstrap Template

http://twitter.github.com/bootstrap/getting-started.html

Page 10: Bootstrap Introduction

Make an HTML file Responsive Design

http://twitter.github.com/bootstrap/scaffolding.html

Page 11: Bootstrap Introduction

How it Works 12-column grid

WEEK OF 1/9/2013 15

.span12

.span4 .span4 .span4

.span3 .span9

.container-fluid

.span1 .span11

• Relies on you making divs with

certain classes.

• Bootstrap has many built-in

components whose styles can

be applied as well.

Page 12: Bootstrap Introduction

How it Works Bootstrap Base CSS

http://twitter.github.com/bootstrap/base-css.html

WEEK OF 1/9/2013 16

Page 13: Bootstrap Introduction

How it Works Bootstrap Scaffolding

http://twitter.github.com/bootstrap/scaffolding.html

WEEK OF 1/9/2013 17

Page 14: Bootstrap Introduction

Practice

WEEK OF 1/9/2013 18

Page 15: Bootstrap Introduction

Explore! Bootstrap Components

Full list of all of the built-in components:

http://twitter.github.com/bootstrap/components.html

WEEK OF 1/9/2013 19

Page 16: Bootstrap Introduction

.hero-unit

<h1>

<p>

.btn .btn-primary .btn-large

.span8 .span4

<h2> <h2>

<p> <p>

.btn

Recreate this design

Page 17: Bootstrap Introduction

Useful Resources

• Examples of websites built with bootstrap: • www.builtwithbootstrap.com

• W3C Validator: • http://validator.w3.org

• Free Graphics: • http://subtlepatterns.com

• Firebug: • http://getfirebug.com

WEEK OF 1/9/2013 21