Link
Embed
Share
Beginning
This slide
Copy link URL
Copy link URL
Copy iframe embed code
Copy iframe embed code
Copy javascript embed code
Copy javascript embed code
Share
Tweet
Share
Tweet
Slide 1
Slide 1 text
RESPONSIVE ENHANCEMENT
Slide 2
Slide 2 text
I WORK AT SWWWEET.COM HI, I’M @HTMLBOY
Slide 3
Slide 3 text
I WORK AT SWWWEET.COM HI, I’M @HTMLBOY
Slide 4
Slide 4 text
I’m a web designer & front-end dev
Slide 5
Slide 5 text
I’m a web designer & front-end dev DISSAPOINTED
Slide 6
Slide 6 text
TOP 10 WEB DESIGN MYTHS
Slide 7
Slide 7 text
the Future is high-speed connections everywhere MYTH #1
Slide 8
Slide 8 text
flickr.com/photos/potjie/543400371
Slide 9
Slide 9 text
MYTH #2 Mobile = Stress Desktop = Relax
Slide 10
Slide 10 text
flickr.com/photos/shareski/5453209957
Slide 11
Slide 11 text
MYTH #3 We can’t give the full content to mobile devices
Slide 12
Slide 12 text
3 or 4 Ferraris are sold every month on eBay's mobile apps.” “ globalmoxie.com/blog/mobile-commerce-belly-flop.shtml
Slide 13
Slide 13 text
MYTH #4 Superhardware awesomeness!
Slide 14
Slide 14 text
flickr.com/photos/alien-paranoia/4941130941
Slide 15
Slide 15 text
MYTH #5 Auto-updated high-tech browsers by default
Slide 16
Slide 16 text
flickr.com/photos/mattimattila/5703851562
Slide 17
Slide 17 text
MYTH #6 Nobody browses without JS (and we have )
Slide 18
Slide 18 text
We don't have any non-JavaScript users” No, all your users are non-JS while they're downloading your JS Jake Archibald “
Slide 19
Slide 19 text
MYTH #7 We control the content with JS and CSS
Slide 20
Slide 20 text
No content
Slide 21
Slide 21 text
MYTH #8 We should only care about popular devices
Slide 22
Slide 22 text
No content
Slide 23
Slide 23 text
MYTH #9 Everybody browses full-screen
Slide 24
Slide 24 text
No content
Slide 25
Slide 25 text
MYTH #10 Big = mouse Small = touch
Slide 26
Slide 26 text
No content
Slide 27
Slide 27 text
CHANGING THE WAY WE WORK
Slide 28
Slide 28 text
Build always with a FALLBACK
Slide 29
Slide 29 text
HTML FALLBACKS
Fallback content
Slide 30
Slide 30 text
.canvas{ border:10px solid grey; border-color: rgba(0,0,0,.5); } CSS FALLBACKS
Slide 31
Slide 31 text
Detect SUPPORT for new & shiny properties
Slide 32
Slide 32 text
modernizr.com MODERNIZR .no-cssgradients .button{ background: url(gradient.png); }
Slide 33
Slide 33 text
bit.ly/css-supports @SUPPORTS @supports (display:flex) { section { display: flex; } }
Slide 34
Slide 34 text
RESPONSIVE web design
Slide 35
Slide 35 text
No content
Slide 36
Slide 36 text
No content
Slide 37
Slide 37 text
No content
Slide 38
Slide 38 text
FLEXIBLE GRIDS aside{ width: 38%; margin-left: 2%; float: right; }
Slide 39
Slide 39 text
FLEXIBLE IMAGES .img-container img{ max-width:100%; }
Slide 40
Slide 40 text
@media all and (max-width:400px){ .aside{ width:100%; margin-left:0; float:left; } } MEDIA QUERIES
Slide 41
Slide 41 text
MOBILE FIRST
Slide 42
Slide 42 text
One-column Small assets Clear hierarchy
Slide 43
Slide 43 text
IE8 != MEDIA QUERIES
Slide 44
Slide 44 text
or use respond.js github.com/scottjehl/Respond
Slide 45
Slide 45 text
We are reaching the BREAKING POINT
Slide 46
Slide 46 text
We can’t use the same CSS & JS everywhere
Slide 47
Slide 47 text
RESPONSIVE ENHANCEMENT introducing...
Slide 48
Slide 48 text
Instead of just using progressive enhancement to throw in some rounded corners[...], we can apply the same thinking to layout.” Jeremy Keith “
Slide 49
Slide 49 text
START WITH THE CONTENT Text Images Links
Slide 50
Slide 50 text
LEGACY LAYOUT Let’s call it the
Slide 51
Slide 51 text
Consider the LAYOUT as an ENHANCEMENT
Slide 52
Slide 52 text
HIDING STYLES @media all and (min-width:1px){ /*styles for browsers with media query support*/ }
Slide 53
Slide 53 text
FIX THE DESIGN IF IT BREAKS Stop being obsessed with “popular devices”
Slide 54
Slide 54 text
USE EM-BASED MEDIA QUERIES Be prepared to be zoomed. Play nice with smart TVs
Slide 55
Slide 55 text
Consider JAVASCRIPT as an ENHANCEMENT
Slide 56
Slide 56 text
NON-JS BY DEFAULT
Slide 57
Slide 57 text
CONTENT FIRST So basically...
Slide 58
Slide 58 text
ENHANCE IT WITH LAYOUT, JAVASCRIPT & DECORATION
Slide 59
Slide 59 text
Build for THE FUTURE
Slide 60
Slide 60 text
Build for THE FUTURE and for THE PAST
Slide 61
Slide 61 text
THANKS! Javier Usobiaga @htmlboy