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
45
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
42
Finding Leaders with Maximum Spread of Influence through Social Networks
jostw
0
45
Other Decks in Design
See All in Design
東急URBAN HACKSのデザイナーって何やってるの? 〜Designer Night #1〜 移動・不動産領域の取り組み
tmtgtkhs
0
210
20241019-CUD友の会「困った!を解決するデザイン改訂版」交流会
majimasachi
0
340
241214_StackNagoya_プレイングマネージャーのプレイングの時間の使い方
kiyoshifuwa
0
220
HCDフォーラム2024 「HCDとHAI ~人間とAIが共存する世界の実現~」
kamechi7222222
0
310
商業デザインのアクセシビリティにおける倫理フレームワークの考察
securecat
0
200
NAHO SHIMONO_Portfolio2025
nahohphp
0
220
Goodpatch Tour💙 / We are hiring!
goodpatch
31
800k
Tableau曲線表現講座(2024.11.21)
cielo1985
0
270
250131_product meetup
motokoishida
0
120
ネーミングの極意 - その名は体を現していますか? -
kakukoki
2
490
Museum Heist
allykae
0
140
若手デザイナーチームが手がける CADC2024クリエイティブディレクションの全貌 / opening-design
cyberagentdevelopers
PRO
1
1.7k
Featured
See All Featured
[Rails World 2023 - Day 1 Closing Keynote] - The Magic of Rails
eileencodes
33
2.1k
The Invisible Side of Design
smashingmag
299
50k
Performance Is Good for Brains [We Love Speed 2024]
tammyeverts
7
660
RailsConf 2023
tenderlove
29
1k
No one is an island. Learnings from fostering a developers community.
thoeni
21
3.2k
Automating Front-end Workflow
addyosmani
1369
200k
Building an army of robots
kneath
303
45k
A Philosophy of Restraint
colly
203
16k
Designing on Purpose - Digital PM Summit 2013
jponch
117
7.1k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
45
9.4k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
11
1.3k
Git: the NoSQL Database
bkeepers
PRO
428
65k
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/