Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Responsive Web Design
Search
jos
May 02, 2016
Design
2
49
Responsive Web Design
National Central University Academy Program
jos
May 02, 2016
Tweet
Share
More Decks by jos
See All by jos
Firefox Marketplace Frontend
jostw
0
47
Finding Leaders with Maximum Spread of Influence through Social Networks
jostw
0
48
Other Decks in Design
See All in Design
kintone_aroma
kintone
0
1.3k
Connpass-Xperia_Camera_App_by_HCD.pdf
sony
0
480
はじめての演奏会フライヤーデザイン
chorkaichan
1
220
逆向きUIの世界〜AndroidアプリのRTL言語対応〜
akatsuki174
1
790
逆向きUIの世界 〜iOSアプリのRTL言語対応〜
akatsuki174
1
500
AIエージェントが対話的なUIを返す!MCP−UIで変わるユーザ体験
daitasu
1
140
デザインコンテキストのバトンをつなぐ—AI時代のプロダクトマネジメント
kumanoayumi
5
810
Crisp Code inc.|ブランドガイドライン - Brand guidelines
so_kotani
1
300
Treasure_Hunting
solmetts
0
230
アンエシカルデザインの枠組みの提案 -HCD-Netダークパターン研究会活動報告-
securecat
0
190
チームをデザイン対象にする / Design for your team
kaminashi
1
500
Drawing for Animation
lynteo
2
180
Featured
See All Featured
Pawsitive SEO: Lessons from My Dog (and Many Mistakes) on Thriving as a Consultant in the Age of AI
davidcarrasco
0
62
Chasing Engaging Ingredients in Design
codingconduct
0
110
Designing for Performance
lara
610
70k
Darren the Foodie - Storyboard
khoart
PRO
2
2.3k
Optimizing for Happiness
mojombo
379
71k
Tell your own story through comics
letsgokoyo
1
800
Building Adaptive Systems
keathley
44
2.9k
Design of three-dimensional binary manipulators for pick-and-place task avoiding obstacles (IECON2024)
konakalab
0
350
Design and Strategy: How to Deal with People Who Don’t "Get" Design
morganepeng
133
19k
How to Align SEO within the Product Triangle To Get Buy-In & Support - #RIMC
aleyda
1
1.4k
Unsuck your backbone
ammeep
671
58k
Music & Morning Musume
bryan
47
7.1k
Transcript
RWD JOSEPH YEH May 2, 2016
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
3 https://sourcemaking.com/design_patterns OUTLINE INCLUDING NOT INCLUDING Code Design Pattern http://sacsconsult.com.au/blog/code/
WHAT IS RWD RESPONSIVE WEB DESIGN 4 Responsive websites respond
to their environment.
5 http://blog.stationfour.com/an-illustrators-perspective-on-responsive-design/ WHAT IS RWD
6 http://www.yottaa.com/company/blog/mobile/marketers-and-content-writers-you-too-can-think-mobile-first/ WHY RESPONSIVE WEB DESIGN
7 http://www.developereconomics.com/websites-vs-web-apps/
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
HOW TO BE RESPONSIVE Progressive Enhancement vs. Graceful Degradation 9
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/
https://developers.google.com/web/fundamentals/design-and-ui/responsive/fundamentals/set-the-viewport VIEWPORT 11 A meta viewport tag gives the browser
instructions on how to control the page’s dimensions and scaling.
VIEWPORT <html> <head> <meta name="viewport" content="width=device-width, initial-scale=1"> </head> <body> ...
12
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.
GRID SYSTEM - 12 columns - 960px 14 http://www.sitepoint.com/design-organized-websites-rapidly-with-960-grid/
FLUID GRID SYSTEM 15 http://www.collaborative.com/blog/getting-started-with-responsive-web-design/
FLUID GRID SYSTEM 16 http://www.objectliteral.com/css3-box-sizing/ * { box-sizing: border-box; }
BORDER BOX http://codepen.io/pen/KzxEOV
FLUID GRID SYSTEM 17 http://recorder.sayforward.com/category/person/luke-wroblewski
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
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.
https://www.google.com/design/spec/layout/responsive-ui.html MEDIA QUERIES 20 BREAKPOINTS
https://developers.google.com/web/fundamentals/design-and-ui/responsive/patterns/mostly-fluid DESIGN PATTERNS 21 MOSTLY FLUID
https://developers.google.com/web/fundamentals/design-and-ui/responsive/patterns/column-drop DESIGN PATTERNS 22 COLUMN DROP
https://developers.google.com/web/fundamentals/design-and-ui/responsive/patterns/layout-shifter DESIGN PATTERNS 23 LAYOUT SHIFTER
https://developers.google.com/web/fundamentals/design-and-ui/responsive/patterns/tiny-tweaks DESIGN PATTERNS 24 TINY TWEAKS
https://developers.google.com/web/fundamentals/design-and-ui/responsive/patterns/off-canvas DESIGN PATTERNS 25 OFF CANVAS
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
https://blog.intercom.io/why-cards-are-the-future-of-the-web/ FLEXIBLE ELEMENT 27
FLEXIBLE ELEMENT FLEXIBLE IMAGE 28 img { width: 100%; height:
auto; } div { background-size: 100%; } div { background-size: cover; }
https://en.wikipedia.org/wiki/Responsive_web_design FLEXIBLE ELEMENT 29
http://www.lydiabae.com/detail_dulux.html FLEXIBLE EVERYTHING 30
EXAMPLE 31 https://marketplace.firefox.com/
http://caniuse.com/#feat=flexbox ADVANCE 32 FLEXBOX
https://css-tricks.com/snippets/css/a-guide-to-flexbox/ ADVANCE 33 FLEXBOX
https://css-tricks.com/snippets/css/a-guide-to-flexbox/ ADVANCE 34 FLEXBOX
http://caniuse.com/#feat=srcset ADVANCE 35 SRCSET
ADVANCE 36 SRCSET <img src="logo.png" srcset="logo-2x.png 2x"> <img src="banner.png" srcset="banner-600.png
600w, banner-1200.png 1200w">
OPTIMIZATION Keep lines of text to a maximum of around
70 or 80 characters. 37 http://trentwalton.com/2012/06/19/fluid-type/
http://mashable.com/2013/01/03/tablet-friendly-website/ OPTIMIZATION 38 SPACING
https://github.com/twbs/bootstrap/issues/9235 OPTIMIZATION 39 BUTTON SIZE
http://mobileinputtypes.com/ OPTIMIZATION 40 INPUT TYPE <input type="email"> <input type="tel"> <input
type="number"> <input type="date">
OPTIMIZATION - Hover effect - Touch event - Browser support
- Performance - RESS: Responsive Design + Server Side Components http://www.slideshare.net/adamp3wang/pinkoi 41
CONCLUSION 42 - Core content - Be flexible - User
experience http://imgur.com/yQuXuMa
REFERENCE 43 https://developers.google.com/web/fundamentals/design-and-ui/responsive/ https://developers.google.com/webmasters/mobile-sites/mobile-seo/responsive-design http://design.google.com/resizer/ http://mediaqueri.es/ FRAMEWORKS http://getbootstrap.com/ http://foundation.zurb.com/ http://susy.oddbird.net/
44 https://www.pinterest.com/pin/574490496187451796/