Slide 1

Slide 1 text

DESIGNING FOR THE MODERN WEB SARA CANNON RAN.GE/WCSF2012

Slide 2

Slide 2 text

SARA CANNON Artist, Designer, & WordPress Developer In Birmingham, AL Co-founder / Creative Director Range http://ran.ge @rangeinc sara-cannon.com @saracannon slideshare.net/saracannon

Slide 3

Slide 3 text

DESIGNING FOR THE MODERN WEB

Slide 4

Slide 4 text

DESIGNING FOR THE FUTURE WEB

Slide 5

Slide 5 text

2015 IN THE YEAR 2015

Slide 6

Slide 6 text

INTERNATIONAL DATA CORPORATION (IDC) http://www.idc.com/getdoc.jsp?containerId=prUS23028711 The total number of people using the web on mobile devices is set to surpass desktops by 2015.

Slide 7

Slide 7 text

DESKTOP MOBILE 2007 2015 2009 2013 2011

Slide 8

Slide 8 text

DESKTOP MOBILE 2007 2015 2009 2013 2011

Slide 9

Slide 9 text

THE MOBILE WEB

Slide 10

Slide 10 text

THE MOBILE WEB

Slide 11

Slide 11 text

THE WEB

Slide 12

Slide 12 text

ILLUSTRATION INSPIRED BY BRAD FROST http://sar.ac/IJF7Rf

Slide 13

Slide 13 text

MOBILE SHOULD NEVER BE AN AFTERTHOUGHT

Slide 14

Slide 14 text

CONTENT

Slide 15

Slide 15 text

RESPONSIVE WEB DESIGN

Slide 16

Slide 16 text

No content

Slide 17

Slide 17 text

No content

Slide 18

Slide 18 text

No content

Slide 19

Slide 19 text

MOBILE FIRST

Slide 20

Slide 20 text

FLEXIBLE GRIDS

Slide 21

Slide 21 text

FLEXIBLE MEDIA

Slide 22

Slide 22 text

ADAPTIVE IMAGES

Slide 23

Slide 23 text

RETINA

Slide 24

Slide 24 text

No content

Slide 25

Slide 25 text

163 DPI 153,600 PIXELS 480 PX 320 PX iPHONE 3GS -

Slide 26

Slide 26 text

326 DPI 614,4OO PIXELS 96O PX 64O PX iPHONE 4 +

Slide 27

Slide 27 text

460,800 MORE PIXELS iPHONE 4 + iPHONE 3GS -

Slide 28

Slide 28 text

220 DPI 2,304,0OO PIXELS 2880 PX 1800 PX MACBOOK PRO 15-INCH RETINA

Slide 29

Slide 29 text

image by Geoff Teehan

Slide 30

Slide 30 text

RETINA FIRST

Slide 31

Slide 31 text

No content

Slide 32

Slide 32 text

SPEED AWESOME V.S.

Slide 33

Slide 33 text

2G IS THE NEW DIAL-UP

Slide 34

Slide 34 text

CONNECTION SPEED IMAGE SIZE

Slide 35

Slide 35 text

CONNECTION SPEED IMAGE SIZE

Slide 36

Slide 36 text

SERVING UP GRAPHICS

Slide 37

Slide 37 text

TEXT PNG JPG BACKGROUNDS SVG ICONS X2 LOW QUALITY X2 CSS MEDIA QUERY ICONFONT

Slide 38

Slide 38 text

HTTP://MIR.ACULO.US THOMAS FUCHS

Slide 39

Slide 39 text

HTTP://RETINAFY.ME THOMAS FUCHS

Slide 40

Slide 40 text

CSS DETECTION

Slide 41

Slide 41 text

@media      (min-­‐-­‐moz-­‐device-­‐pixel-­‐ratio:  1.5),         (-­‐o-­‐min-­‐device-­‐pixel-­‐ratio:  3/2),         (-­‐webkit-­‐min-­‐device-­‐pixel-­‐ratio:  1.5),         (min-­‐resolution:  1.5dppx)  {             /*  your  retina  rules  here  */ } DEVICE-PIXEL-RATIO MEDIA QUERY

Slide 42

Slide 42 text

#site-­‐title  {   background-­‐image:  url(../images/logo.png); } @media    (min-­‐-­‐moz-­‐device-­‐pixel-­‐ratio:  1.5),         (-­‐o-­‐min-­‐device-­‐pixel-­‐ratio:  3/2),         (-­‐webkit-­‐min-­‐device-­‐pixel-­‐ratio:  1.5),         (min-­‐resolution:  1.5dppx)  { #site-­‐title  {   background-­‐image:  url(../images/logo-­‐x2.png);   background-­‐size:  50%  50%; } }

Slide 43

Slide 43 text

JAVASCRIPT DETECTION

Slide 44

Slide 44 text

function  isRetina(){   return  (('devicePixelRatio'  in  window  &&     devicePixelRatio  >  1)  ||     ('matchMedia'  in  window  &&     !matchMedia("(-­‐moz-­‐device-­‐pixel-­‐ratio:1.0)").matches)) } DEVICE-PIXEL-RATIO DETECTION

Slide 45

Slide 45 text

KITTY.JPG [email protected]

Slide 46

Slide 46 text

retina.js

Slide 47

Slide 47 text

github.com/retina-images/retina-images Retina-images.complexcompulsions.com

Slide 48

Slide 48 text

wordpress.org/extend/plugins/wp-retina-2x

Slide 49

Slide 49 text

SVG

Slide 50

Slide 50 text

No content

Slide 51

Slide 51 text

1 KB 5 KB

Slide 52

Slide 52 text

    VBLOGO.SVG

Slide 53

Slide 53 text

jQuery(  function($)  {   var  supportsSVG  =  false;   try  {     var  svg  =  document.createElementNS("http://     www.w3.org/2000/svg",'svg');     supportsSVG  =  typeof  svg.createSVGPoint  ==  'function';   }  catch(e){}   if  (  !  supportsSVG  )     $(  'body'  ).addClass(  'nosvg'  ); }  ); SVG GRACEFUL DEGRADATION JQUERY

Slide 54

Slide 54 text

#site-­‐title  {   background-­‐image:  url(../images/logo.svg); } .nosvg  #site-­‐title  {   background-­‐image:  url(../images/logo.png); } SVG GRACEFUL DEGRADATION CSS

Slide 55

Slide 55 text

No content

Slide 56

Slide 56 text

SVG X2 PNG LOW RES X2 JPG 14KB 13KB 12KB

Slide 57

Slide 57 text

ICONFONTS

Slide 58

Slide 58 text

CSS-TRICKS.COM/EXAMPLES/ICONFONT

Slide 59

Slide 59 text

WEBDESIGNERDEPOT.COM/2012/01/HOW-TO-MAKE- YOUR-OWN-ICON-WEBFONT/ INKSCAPE.ORG

Slide 60

Slide 60 text

TESTING

Slide 61

Slide 61 text

make.wordpress.org/ui/2012/08/01/dev-for-hidpi-without-retina-mb

Slide 62

Slide 62 text

NETWORK LINK CONDITIONER

Slide 63

Slide 63 text

No content

Slide 64

Slide 64 text

No content

Slide 65

Slide 65 text

No content

Slide 66

Slide 66 text

Our work is never over. “ - DAFT PUNK