Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Going Responsive for Developers

Going Responsive for Developers

Designing and creating a website that is suitable for both the desktop and mobile is a unique kind of challenge. In the past years we have seen the rise of Responsive Design; a methodology and mindset on how to make a website suitable for both platforms. During this talk we'll design a new website using Responsive Design and show what considerations and design decisions are to be encountered along the way.

Mike van Riel

July 19, 2012
Tweet

More Decks by Mike van Riel

Other Decks in Technology

Transcript

  1. “Responsive design does not replace Mobile applications but empowers the

    user to experience your website from any device.” -- Me
  2. Now

  3. Goals ✔ Mobile-enabled ✔ More focus on what matters ✔

    Ratings ✔ Events and scheduling ✔ Call for Papers ✔ Face-lift Did you know?
  4. Inspiration ✔ Look at the competition ✔ What can you

    improve on that? ✔ Look at existing websites ✔ http://mediaqueri.es/ ✔ http://templatemonster.com ✔ http://www.4templates.com/
  5. Think about your Grid 1. Divide into contextual rows 2.

    Identify content blocks per context 3. Divide into columns 4. Consider order of importance
  6. “I did get Tom Hanks to say, Life is just

    a box of chocolates.” -- James Lipton
  7. Sketch your first tries • Makes grid tangible • Cheap

    try-outs • Quick • Tools • Pen and paper • iPad with Stylus Paper by 42
  8. Example: Twitter Bootstrap • Combines a CSS and JS Framework

    • Responsive design is a first citizen • Provides elements with strong symbiosis • Less bootstrapping yourself
  9. Defining columns <div class="row"> <div class="span4">...</div> <div class="span8">...</div> </div> <div

    class="row"> <div class="span4">...</div> <div class="span8">...</div> </div> 12 Columns
  10. Nesting columns <div class="row"> <div class="span4"> <div class="row"> <div class="span1">...</div>

    <div class="span4">...</div> </div> </div> <div class="span8">...</div> </div> <div class="row"> <div class="span4"> <div class="row"> <div class="span1">...</div> <div class="span4">...</div> </div> </div> <div class="span8">...</div> </div>
  11. Two column example <div class="row"> <div class="span12">...</div> </div> <div class="row">

    <div class="span4">...</div> <div class="span8">...</div> </div> <div class="row"> <div class="span12">...</div> </div> <div class="row"> <div class="span4">...</div> <div class="span8">...</div> </div>
  12. Three column example <div class="row"> <div class="span12">...</div> </div> <div class="row">

    <div class="span3">...</div> <div class="span6">...</div> <div class="span3">...</div> </div> <div class="row"> <div class="span12">...</div> </div> <div class="row"> <div class="span3">...</div> <div class="span6">...</div> <div class="span3">...</div> </div>
  13. Modern example <div class="row"> <div class="span12">...</div> </div> <div class="row"> <div

    class="span3">...</div> <div class="span3">...</div> <div class="span3">...</div> <div class="span3">...</div> </div> <div class="row"> <div class="span4">...</div> <div class="span4">...</div> <div class="span4">...</div> </div> <div class="row"> <div class="span12">...</div> </div> <div class="row"> <div class="span3">...</div> <div class="span3">...</div> <div class="span3">...</div> <div class="span3">...</div> </div> <div class="row"> <div class="span4">...</div> <div class="span4">...</div> <div class="span4">...</div> </div>
  14. Sidebar example <div class="row"> <div class="span12">...</div> </div> <div class="row"> <div

    class="span8"> <div class="row"> <div class="span4">...</div> <div class="span4">...</div> </div> <div class="row"> <div class="span4">...</div> <div class="span4">...</div> </div> </div> <div class="span4">...</div> </div> <div class="row"> <div class="span12">...</div> </div> <div class="row"> <div class="span8"> <div class="row"> <div class="span4">...</div> <div class="span4">...</div> </div> <div class="row"> <div class="span4">...</div> <div class="span4">...</div> </div> </div> <div class="span4">...</div> </div>
  15. Responsiveness • Grids help to collapse elements • Think about

    which to throw away • Consider which elements should be dominant • Scrolling is good; clicking not so much
  16. More responsiveness • Do not forget to link to bootstrap-responsive.css!

    • Use media queries for conditional CSS @media (min­width: 980px) { … }
  17. ➔Navigation http://bradfrostweb.com/blog/web/responsive-nav-patterns/ ➔Layout types http://www.lukew.com/ff/entry.asp?1514 ➔Screen sizes http://spirelightmedia.com/responsive-design-device-resolution-reference ➔CSS Frameworks

    ➔ http://twitter.github.com/bootstrap/ ➔ http://960.gs/ ➔ http://blueprintcss.org/ ➔ http://yuilibrary.com/ ➔Examples ➔ http://responsive.is/ ➔ http://mediaqueri.es/ Resources Please rate this talk http://joind.in/6711 Please rate this talk http://joind.in/6711