97
Responsive Web Design & the state of the Web porcupine.gr @yiannis_k

Responsive Web Design & the state of the Web

Embed Size (px)

Citation preview

Page 1: Responsive Web Design & the state of the Web

Responsive Web Design

& the state of the Web

porcupine.gr @yiannis_k

Page 2: Responsive Web Design & the state of the Web

“Responsive Web design is the approach that

suggests that design and development should

respond to the user’s behavior and

environment based on screen size, platform

and orientation. “

- Kayla Knight on Smashing Magazine

Page 3: Responsive Web Design & the state of the Web

“The practice consists of a mix of flexible grids

and layouts, images and an intelligent use of

CSS media queries.“

- Kayla Knight on Smashing Magazine

Page 4: Responsive Web Design & the state of the Web

As the user switches from their laptop to

iPad, the website should automatically

switch to accommodate for resolution, image

size and scripting abilities. In other words, the

website should have the technology to

automatically respond to the user’s

preferences.

- Kayla Knight on Smashing Magazine

Page 5: Responsive Web Design & the state of the Web
Page 6: Responsive Web Design & the state of the Web
Page 7: Responsive Web Design & the state of the Web
Page 8: Responsive Web Design & the state of the Web
Page 9: Responsive Web Design & the state of the Web
Page 10: Responsive Web Design & the state of the Web
Page 11: Responsive Web Design & the state of the Web
Page 12: Responsive Web Design & the state of the Web
Page 13: Responsive Web Design & the state of the Web
Page 14: Responsive Web Design & the state of the Web
Page 15: Responsive Web Design & the state of the Web

Why?

Page 18: Responsive Web Design & the state of the Web

http://www.flickr.com/photos/thomashawk/76170826/

Page 20: Responsive Web Design & the state of the Web

http://www.flickr.com/photos/nasamarshall/5404263213/

Page 22: Responsive Web Design & the state of the Web

http://www.flickr.com/photos/emeryjl/520109861/

Page 24: Responsive Web Design & the state of the Web

http://www.flickr.com/photos/jonathanharford/5217423633/

Page 25: Responsive Web Design & the state of the Web

(Not so) boring numbers

Page 26: Responsive Web Design & the state of the Web

August 2011

72.2 million Americans

accessed social

networking sites or

blogs on their mobile

device (+37% since 2010)

Luke Wroblewski

http://www.flickr.com/photos/pamhule/5709324762/

Page 27: Responsive Web Design & the state of the Web

May 2012

79% of US smartphone

and tablet owners have

used their mobile

devices for shopping-

related activities.

Luke Wroblewski

http://www.flickr.com/photos/polvero/3422530445/

Page 28: Responsive Web Design & the state of the Web

May 2011

iPad users spend 30% of their time on the

device in front of television.

Smartphone users spend 20% of their time on

the device in front of the television.

Luke Wroblewski

Page 29: Responsive Web Design & the state of the Web

What are you gonna do about it? *

Page 30: Responsive Web Design & the state of the Web

What are you gonna do about it? *

* Romeo & Juliet - Dire Straits

Page 31: Responsive Web Design & the state of the Web

Create the best experience for your

audience no matter the device

Page 32: Responsive Web Design & the state of the Web

WTF. RWD, FTW!

Page 33: Responsive Web Design & the state of the Web

WTF. RWD, FTW!

What the Frak. Responsive Web Design, For The Win!

Page 40: Responsive Web Design & the state of the Web
Page 41: Responsive Web Design & the state of the Web

HTML

Page 42: Responsive Web Design & the state of the Web

HTML

Quick ’n’ dirty

Page 43: Responsive Web Design & the state of the Web

HTML

<link rel="stylesheet" type="text/css" media="screen and (max-width: 480px)" href="mobile.css" />

Quick ’n’ dirty

Page 44: Responsive Web Design & the state of the Web

HTML

Page 45: Responsive Web Design & the state of the Web

HTML

Let’s tide things up

Page 46: Responsive Web Design & the state of the Web

HTML

<link rel="stylesheet" type="text/css" href="media.css" />

<link rel="stylesheet" type="text/css" href="global.css" />

<meta name="viewport" content="width=device-width; initial-scale=1.0">

Let’s tide things up

Page 47: Responsive Web Design & the state of the Web

CSS

/*320px =iPhone portrait */@media only screen and (max-width: 320px){...}

/*480px =iPhone landscape */@media only screen and (min-width: 320px) and (max-width: 480px) {...}

/*768px =iPad portrait */@media only screen and (min-width: 768px) {...}

/*1024px =iPad landscape */@media only screen and (min-width: 768px) and (max-width: 1024px) {...}

/*1280px =Medium screens */@media only screen and (min-width: 1025px) and (max-width: 1280px) {

}

Page 48: Responsive Web Design & the state of the Web

Flexible Multimedia

Page 49: Responsive Web Design & the state of the Web

Flexible Multimedia

img, object {max-width: 100%;

}

Page 50: Responsive Web Design & the state of the Web

Flexible Multimedia

img, object {max-width: 100%;

}

FitVid.js

Page 51: Responsive Web Design & the state of the Web

Flexible Grid

Page 52: Responsive Web Design & the state of the Web

Flexible Grid

Golden Grid System

Page 53: Responsive Web Design & the state of the Web

Browser Support

Page 54: Responsive Web Design & the state of the Web

Browser Support

Page 55: Responsive Web Design & the state of the Web

(Far from) Browser Support

Page 56: Responsive Web Design & the state of the Web

7 8

(Far from) Browser Support

Page 57: Responsive Web Design & the state of the Web

7 8

(Far from) Browser Support

Kill these agents

Page 58: Responsive Web Design & the state of the Web

Approaches & Techniques

Page 59: Responsive Web Design & the state of the Web
Page 60: Responsive Web Design & the state of the Web
Page 61: Responsive Web Design & the state of the Web

Responsive

vs.

Adaptive

vs.

Mobile

vs.

whatevah

Page 62: Responsive Web Design & the state of the Web
Page 63: Responsive Web Design & the state of the Web
Page 64: Responsive Web Design & the state of the Web

Mobile first!

Page 65: Responsive Web Design & the state of the Web
Page 66: Responsive Web Design & the state of the Web
Page 67: Responsive Web Design & the state of the Web

The art of

hiding

Page 68: Responsive Web Design & the state of the Web
Page 69: Responsive Web Design & the state of the Web
Page 70: Responsive Web Design & the state of the Web

The designer and the

front end developer

must be one person:

you

Page 71: Responsive Web Design & the state of the Web

“Good mobile user

experience requires a

different design than

what’s needed to

satisfy desktop users.

Two designs, two

sites, and cross-linking

to make it all work.”

- Jacob Nielsen

Page 72: Responsive Web Design & the state of the Web

“Good mobile user

experience requires a

different design than

what’s needed to

satisfy desktop users.

Two designs, two

sites, and cross-linking

to make it all work.”

- Jacob Nielsen

“You never know better

than your users what

content they want.”

- Bruce Lawson

Page 73: Responsive Web Design & the state of the Web

“Good mobile user

experience requires a

different design than

what’s needed to

satisfy desktop users.

Two designs, two

sites, and cross-linking

to make it all work.”

- Jacob Nielsen

“You never know better

than your users what

content they want.”

- Bruce Lawson

Separate mobile websites?

Page 74: Responsive Web Design & the state of the Web

Kiran PrasadDirector of Engineering Mobile at LinkedIn

“Responsive design might

work for uncomplicated,

one-off websites, he said,

but for applications or

networks, responsive

design is actually bad.”

Page 75: Responsive Web Design & the state of the Web

Kiran PrasadDirector of Engineering Mobile at LinkedIn

“Responsive design might

work for uncomplicated,

one-off websites, he said,

but for applications or

networks, responsive

design is actually bad.”

Page 76: Responsive Web Design & the state of the Web

Kiran PrasadDirector of Engineering Mobile at LinkedIn

“Responsive design might

work for uncomplicated,

one-off websites, he said,

but for applications or

networks, responsive

design is actually bad.”

When is-no-good?

Page 77: Responsive Web Design & the state of the Web

Evaluation

Page 78: Responsive Web Design & the state of the Web
Page 79: Responsive Web Design & the state of the Web

All you need

is your good old

CSS

Page 81: Responsive Web Design & the state of the Web

One step closer to Utopia*

* When the project is fairly simple and when

compared with a separate mobile website

http://blog.digidave.org/2009/10/lessons-in-web-development-good-fast-and-cheap-pick-two

Page 84: Responsive Web Design & the state of the Web
Page 85: Responsive Web Design & the state of the Web

No separate websites,

no duplicate content

Page 87: Responsive Web Design & the state of the Web

Still fresh.

Things are a changin*

Could be a Bob Dylan’s song

http://www.flickr.com/photos/jfisher/3769846083/

Page 90: Responsive Web Design & the state of the Web

Tools & Resources

Page 91: Responsive Web Design & the state of the Web

Testing

Page 95: Responsive Web Design & the state of the Web

What’s nextResponsive Images and Web Standards at the Turning Point

Content Choreography

HTML5 adaptive images: end of round one

ArticlesTips and best practices to develop responsive websites

Preserving vertical rhythm with CSS and jQuery

Responsive CSS that scales

Build a responsive site in a week: designing responsively (part 1)

Build a responsive site in a week: typography and grids (part 2)

Page 96: Responsive Web Design & the state of the Web

Wait, there’s more!

Page 97: Responsive Web Design & the state of the Web

Thank you!

Wait, there’s more!