responsive design - files.meetup.com€¦ · products/responsive-web-design. i want to see some...

51
RESPONSIVE DESIGN Basic concepts and implementation

Upload: others

Post on 13-Oct-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

RESPONSIVE DESIGNBasic concepts and implementation

Page 2: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

WHO ARE YOU?Mario Noble

Page 3: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

WHAT IS RESPONSIVE DESIGN?

• Responsive design is a technique that uses fluid grids, media queries and flexible images.

• A strategy/tool.

•Not a cure for all ills.

• http://www.abookapart.com/products/responsive-web-design

Page 4: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

I WANT TO SEE SOME EXAMPLES.

Page 5: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

WHY SHOULD I DO IT?

Page 6: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

FOR THE MONEY, OF COURSE!

Page 7: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

CHANGING EXPECTATIONS.

Page 8: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

FRUSTRATION

Page 9: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

VARIOUS CONTEXTS

Page 10: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

NOT JUST MOBILE

Page 11: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

THE GOLDEN MEAN

Page 12: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

PROGRESSIVE ENHANCEMENT

Page 13: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

BACK TO THE FUTURE

Page 14: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

PURE FLUID VS. RESPONSIVE

Page 15: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

•Fluid stretches but doesn’t deliberately arrange.

•Adaptive is break point based

•Responsive is range based.

•There is overlap. Semantics overlap.

•Both are an extension of Universal Design.

Page 16: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

HOW DO YOU DO IT?

Page 17: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

DESIGN

Page 18: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

FOCUS, FOCUS, FOCUS

Page 19: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

MODULE APPROACH

Page 20: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

CODINGaka the Boring Part, depending on who you are...

Page 21: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

TARGET ÷ CONTEXT = RESULT

NOOOOO!!!!!! MATHHHHHH!!!!!!

Page 22: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

900 ÷ 960 = 0.9375becomes 93.75%

Page 23: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

#MAIN {  MARGIN: 0 AUTO;  WIDTH: 93.75%; /* 900 / 960 */}

Page 24: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

650 ÷ 900 = 0.7222222272.222222%

Page 25: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

215 ÷ 900 = 0.238888or 23.8888%

Page 26: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

#main-content {  float: left;  width: 72.222222%; /* 650 / 900 */}

#sidebar {  float: right;  width: 23.8888%; /* 215 / 900 */}

Page 27: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

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

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

Page 28: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

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

href="shetland.css" />

@media screen and (max-device-width: 480px) { .column { float: none; }}

Page 29: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

media only screen and (min-width:321px) and (max-width:481px) {.two-sidebars .content-inner,.one-sidebar .content-inner,.region-sidebar-first,.region-sidebar-second {margin-left: 0; margin-right: 0;}.region-sidebar-first, .region-sidebar-second, .region-sidebar-first .block, .region-sidebar-second .block {width: 100%;}.region-sidebar-second {width: 100%;}.content-inner,.region-sidebar-first,.region-sidebar-second {float: none;}.region-sidebar-first, .region-sidebar-second {clear : both;}.container {width: 100%;}}/* Tablet portrait one-col-vert */@media only screen and (min-width:481px) and (max-width:800px) {.two-sidebars .content-inner,.one-sidebar .content-inner,.region-sidebar-first,.region-sidebar-second {margin-left: 0; margin-right: 0;}.region-sidebar-first {width: 100%;}.region-sidebar-second {width: 0%;}.one-sidebar .sidebar {width: 100%;}.region-sidebar-first, .region-sidebar-second {overflow: hidden; margin-top: 20px;}.region-sidebar-first .block, .region-sidebar-second .block {width: 100%;}.container {width: 90%;}}

Page 30: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

Scalable Imagesusing

max-width: 100%;and various other solutions

like filament

Page 31: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

Beware IE and explicit dimensions

Embrace Modernizr/Respond.js

Page 32: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

HOW CAN YOU USE IT? WHAT ARE THE PROS AND CONS?

Page 33: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

PROS

Page 34: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

MONEY + TIME

Page 35: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

MORE PEOPLE + PLACES

Page 36: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

•More adaptable.

•Design once, deploy everywhere

•Maintains aspect ratios

•Saves time in long run

•More future proof

•Less time and money over the long haul

Page 37: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

CONS

Page 38: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

TIME + MONEY

Page 39: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

ADAPTING EXISTING SITES

Page 40: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

• Can be difficult to port over to existing complex sites

• Need to breakout of the one-off mindset

• Not necessarily supported cross browser

• Serving up media can be challenging.

• Potential bandwidth issues.

• May be more time up front (particularly at first)

• Addressing non-responsive plug-ins

• Navigation

• Tables and forms

• Sidebars

• Selling stakeholders on the process

• Advertising

Page 41: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

RUBBER PEG

Page 42: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

ALTERNATIVES

Page 43: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

•Fat Finger Design

•User Agent Sniffing

• Javascript sniffing

•Design for lowest common denominator

•Fluid design

Page 44: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

TO RESPOND OR NOT?

Page 45: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

HOW MUCH TIME, MONEY AND ENERGY DOES IT TAKE

TO MAKE A SITE RESPONSIVE?

Page 46: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

• It all depends on your time, money and energy.

• Is your orientation primarily desktop or mobile?

•Most of all your clients/organization and customers/visitors.

• It all depends on the complexity of your site.

• Advertisers

• Third party plug ins

IS IT WORTH IT?

Page 47: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

MARIO’S TRICKS AND OPINIONS

Page 48: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

TAKE IT WITH A GRAIN OF...

Page 49: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

TRICKS• Start with mobile first if

doing from scratch

• Small usable Fat Finger changes for pre existing complex sites

• Fix worst offending problems anyway that you can in different contexts.

•Display tables inline or reformat as spans or divs

Page 50: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

OPINIONS

•Don’t leave things out.

• Give the visitor more actual control.

• Allow to choose the context or task

• Load media on demand (images, slideshows, galleries, videos)

Page 51: RESPONSIVE DESIGN - files.meetup.com€¦ · products/responsive-web-design. i want to see some examples. why should i do it? for the money, of course! changing expectations. frustration

TOWARDS A NEW MINDSET

• Pay now or pay later.

• Responsive design may not work for you. But you will need to find something that does.

• Responsive design is less a technique than a mindset.

• Instead of pixel perfect, priority perfect.

• Eyes on the prize - Usability and Engagement.