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

Responsive Web Design

jos
May 02, 2016

Responsive Web Design

National Central University Academy Program

jos

May 02, 2016

Transcript

44 slides
  1. ABOUT ME JOSEPH YEH 2 [email protected] https://github.com/jostw https://www.linkedin.com/in/josyeh MOZILLA Software

    Engineer MUZIK ONLINE Front End Engineer NTHU Master's Degree NCU Bachelor's degree
  2. WHY RESPONSIVE WEB DESIGN PROS 8 CONS - Performance -

    User experience - Operates without internet - Device features - Development costs - Maintenance costs - Running on all platforms - Sharing on social media - Better SEO
  3. HOW TO BE RESPONSIVE - Mobile first? - Depends on

    your content and usecase - User experience first - How to reuse your component? 10 http://getbootstrap.com/components/
  4. GRID SYSTEM 13 http://www.imamuseum.org/blog/2010/02/16/ima-on-the-grid/ Grid systems are used for creating

    page layouts through a series of rows and columns that house your content.
  5. MEDIA QUERIES Media queries can be used to apply styles

    based on device characteristics. 18 body { background-color: red; } @media (max-width: 320px) { body { background-color: orange; } } http://codepen.io/pen/vGzMJM
  6. MEDIA QUERIES 19 @import url("mobile.css") (max-width: 320px); <html> <head> <link

    href="style.css" rel="stylesheet"> <link href="mobile.css" rel="stylesheet" media="(max-width: 320px)"> </head> <body> ... Imported from a file.
  7. FLEXIBLE ELEMENT 26 Content should not rely on a particular

    viewport width to render well. https://developers.google.com/web/fundamentals/design-and-ui/responsive/fundamentals/size-content-to-the-viewport
  8. FLEXIBLE ELEMENT FLEXIBLE IMAGE 28 img { width: 100%; height:

    auto; } div { background-size: 100%; } div { background-size: cover; }
  9. OPTIMIZATION Keep lines of text to a maximum of around

    70 or 80 characters. 37 http://trentwalton.com/2012/06/19/fluid-type/
  10. OPTIMIZATION - Hover effect - Touch event - Browser support

    - Performance - RESS: Responsive Design + Server Side Components http://www.slideshare.net/adamp3wang/pinkoi 41
  11. CONCLUSION 42 - Core content - Be flexible - User

    experience http://imgur.com/yQuXuMa

More Decks by jos

Other Decks in Design