Top Banner
Responsive Design Mobile design and development techniques
70

Responsive and Mobile Design

Jan 15, 2015

Download

Design

Now that more than 55% of American adults own a smartphone, designing for the mobile web isn't just important—it's a requirement. Through this session, we'll discuss best practices for designing mobile websites using responsive design, a technique for developing cross-platform to account for the ever-growing range of device sizes and resolutions. The session will also cover design constraints of different devices, how to use CSS3 media queries, and front-end development frameworks like Twitter Bootstrap.
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: Responsive and Mobile Design

Responsive DesignMobile design and development techniques

Page 2: Responsive and Mobile Design

What we’re coveringA brief agenda...

• What is responsive design• How to design for mobile effectively• Implementing responsive design techniques on the web• Frameworks to make your life easier

Page 3: Responsive and Mobile Design
Page 4: Responsive and Mobile Design

@mike_tedeschihttp://mtedeschi.com

Page 5: Responsive and Mobile Design

Why support mobile?(really? you’re not convinced?)

Page 6: Responsive and Mobile Design

1.75B Smartphone Users Worldwide

http://www.emarketer.com/Article/Smartphone-Users-Worldwide-Will-Total-175-Billion-2014

Page 7: Responsive and Mobile Design

1.75B Smartphone Users Worldwide

http://www.emarketer.com/Article/Smartphone-Users-Worldwide-Will-Total-175-Billion-2014

(that’s 300 million more than last year)

Page 8: Responsive and Mobile Design

55% of Americans have smartphones

http://www.pewinternet.org/2013/09/19/cell-phone-activities-2013/

Page 9: Responsive and Mobile Design

60% use their phone to go online

http://www.pewinternet.org/2013/09/19/cell-phone-activities-2013/

Page 10: Responsive and Mobile Design

http://www.pewinternet.org/2013/09/19/cell-phone-activities-2013/

200 million unhappy visitors

Page 11: Responsive and Mobile Design

200 million unhappy visitorscustomers

http://www.pewinternet.org/2013/09/19/cell-phone-activities-2013/

Page 12: Responsive and Mobile Design

What is responsive design?

Page 13: Responsive and Mobile Design

What is responsive design?More than just a buzzword

The web design approach for building sites that adapt and are optimized for a range of screen resolutions, sizes, and formats.

Page 14: Responsive and Mobile Design

They “respond” to the conditionsin which the site is viewed.

Page 15: Responsive and Mobile Design

1200px 996px 480px768px

Page 16: Responsive and Mobile Design

Desktops and Laptops Tablets Phones

Page 17: Responsive and Mobile Design

Common breakpointsFor most screen sizes

• 320 px – Mobile portrait• 480 px – Mobile landscape• 600 px – Small tablet• 768 px – Tablet portrait• 1024 px – Tablet landscape/Netbook• 1280 px & greater – Desktop

Page 18: Responsive and Mobile Design

Responsive

A d a p t i v e versus

Page 19: Responsive and Mobile Design

Responsive (percentages) Adaptive (pixels)

Page 20: Responsive and Mobile Design

Responsive (percentages) Adaptive (pixels)

30px

Page 21: Responsive and Mobile Design

Responsive (percentages) Adaptive (pixels)

12.28% 30px

Page 22: Responsive and Mobile Design

We usually meet in the middle

Page 23: Responsive and Mobile Design

Adaptive (fixed-width grid) Responsive (%-based grid)

Page 24: Responsive and Mobile Design

So, what actually changes?

Page 25: Responsive and Mobile Design

Adaptive (fixed-width grid)

Page 26: Responsive and Mobile Design
Page 27: Responsive and Mobile Design

NavigationCategories

Page 28: Responsive and Mobile Design

Categories

SearchAds = gone

Page 29: Responsive and Mobile Design

Categories

Images fit

Page 30: Responsive and Mobile Design

Mobile web design best practices

Page 31: Responsive and Mobile Design

Best practices & considerationsThink about how people use their phones

• Consider hand placement• Avoid edges and corners if possible• Place content in the middle and give room to scroll• Make targets an appropriate, easy-to-tap size• Don’t place anything important under a target/button

Page 32: Responsive and Mobile Design

Fingers and hand placement

Page 33: Responsive and Mobile Design
Page 34: Responsive and Mobile Design

Ideal hit zone

Page 35: Responsive and Mobile Design

Ideal hit zone

The short stretch

Page 36: Responsive and Mobile Design

Ideal hit zone

The long stretch

The short stretch

Page 37: Responsive and Mobile Design
Page 38: Responsive and Mobile Design

Avoid the edges

Page 39: Responsive and Mobile Design

http://4ourth.com/

Page 40: Responsive and Mobile Design

Inaccurate

http://4ourth.com/

Page 41: Responsive and Mobile Design

Accurate!Inaccurate

http://4ourth.com/

Page 42: Responsive and Mobile Design

Be smart with buttons/targets

Page 43: Responsive and Mobile Design
Page 44: Responsive and Mobile Design

Contact point +

Page 45: Responsive and Mobile Design

+

Obscured area

Contact point

Page 46: Responsive and Mobile Design

Where is the worst place for a button?

Page 47: Responsive and Mobile Design

Good luck.

Page 48: Responsive and Mobile Design

How to implement it on the web(yes, that means writing code)

Page 49: Responsive and Mobile Design

CSS Media Queries

Page 50: Responsive and Mobile Design

.content { width: 1024px; margin: 0 auto; background: red;}

Start with some basic CSS.

Page 51: Responsive and Mobile Design

What a lovely red box!

Page 52: Responsive and Mobile Design

That doesn’t seem quite right...

Page 53: Responsive and Mobile Design

.content { width: 1024px; margin: 0 auto; background: red;}

@media screen and (max-width: 1023px) { .content { width: 100%; margin: 0 20px; }}

Let’s add in some media queries.

Page 54: Responsive and Mobile Design

Much better!

Page 55: Responsive and Mobile Design

So... break that down.

Page 56: Responsive and Mobile Design

@media screen and (max-width: 1023px) { ... }

rule media parameters

Page 57: Responsive and Mobile Design

@media screen and (max-width: 1023px) { ... }

print

handheld

projection

tv

aural

braille

embossed

tty

all

Page 58: Responsive and Mobile Design

@media screen and (max-width: 1023px) { ... }

min-width

max-device-width

min-device-width

device-aspect-ratio

orientation

min-resolution

color

Page 59: Responsive and Mobile Design

.content { width: 50%; margin: 0 auto; background: red;}

@media screen and (min-width: 320px) and (max-width: 480px) { .content { width: 100%; }}

Between a range of screen sizes.

Page 60: Responsive and Mobile Design

.content { width: 50%; margin: 0 auto; background: red;}

@media screen and (min-width: 320px) and (max-width: 480px) { .content { width: 100%; }}

Between a range of screen sizes.

Page 61: Responsive and Mobile Design

.content { width: 100%; margin: 0 auto; background: red;}

@media screen and (orientation: portrait) { .content { width: 50%; }}

Orientation of the device or window.

Page 62: Responsive and Mobile Design

.content { width: 100%; margin: 0 auto; background: red;}

@media screen and (orientation: portrait) { .content { width: 50%; }}

Orientation of the device or window.

Page 63: Responsive and Mobile Design

.my-image { width: 100px; background: url(my-image.jpg);}

@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) { .my-image { background-image: url([email protected]); background-size: 100%; } }

On retina or high-resolution displays.

Page 64: Responsive and Mobile Design

Frameworks and libraries

Page 65: Responsive and Mobile Design

Frameworks & librariesBetter than starting from scratch

• Twitter Bootstrap• Zurb Foundation• Responsive Grid System• Many, many others...

Page 66: Responsive and Mobile Design

Twitter Bootstrap 3.0getbootstrap.com

Page 67: Responsive and Mobile Design

Zurb Foundation 5.0foundation.zurb.com

Page 68: Responsive and Mobile Design

Responsive Grid Systemresponsivegridsystem.com

Page 69: Responsive and Mobile Design

Go make awesome mobile sites!

Page 70: Responsive and Mobile Design

@mike_tedeschihttp://mtedeschi.com