Slide 1

Slide 1 text

LIBRARIES RESPONSIVE WEB DESIGN FOR GET BEYOND THE MYTH OF THE MOBILE WEB MATTHEW REIDSMA : GVSU

Slide 2

Slide 2 text

GO AWAY Totally stolen from John Fink, @adr

Slide 3

Slide 3 text

MOBILE WEB DESKTOP WEB VS.

Slide 4

Slide 4 text

m.yourwebsite.com

Slide 5

Slide 5 text

if (device == iPhone) OR (device == Droid) { // Show mobile site } else { // Show “Desktop” site }

Slide 6

Slide 6 text

http://techcrunch.com/2012/05/11/this-is-what-developing-for-android-looks-like/

Slide 7

Slide 7 text

http://opensignalmaps.com/reports/fragmentation.php

Slide 8

Slide 8 text

if (browser == Mobile Safari) OR (browser == Opera Mini) { // Show mobile site } else { // Show “Desktop” site }

Slide 9

Slide 9 text

No content

Slide 10

Slide 10 text

No content

Slide 11

Slide 11 text

http://googlemobileads.blogspot.com/2011/04/complimentary-copy-of-mobile-movement.html 84% 80% 76% 64% 39% AT HOME RANDOM DOWNTIMES WAITING IN LINE AT WORK IN THE BATHROOM http://blog.compete.com/2010/03/12/smartphone-owners-a-ready-and-willing-audience/ 61% LIARS

Slide 12

Slide 12 text

MOBILE WEB THERE IS NO http://www.the-haystack.com/2011/01/07/there-is-no-mobile-web/

Slide 13

Slide 13 text

We should embrace the fact that the web doesn’t have the same constraints [as print], and design for this flexibility. JOHN ALSOPP, 2000 http://www.alistapart.com/articles/dao/

Slide 14

Slide 14 text

SCALABLE FLEXIBLE RESPONSIVE

Slide 15

Slide 15 text

WEB DESIGN RESPONSIVE

Slide 16

Slide 16 text

1 FLEXIBLE GRIDS

Slide 17

Slide 17 text

{ 80px { 24px

Slide 18

Slide 18 text

960px 288px 600px

Slide 19

Slide 19 text

TARGET ÷ CONTEXT = RESULT From Ethan Marcotte, Responsive Web Design, 2011.

Slide 20

Slide 20 text

ELEMENT ÷ CONTAINER = RESULT From Ethan Marcotte, An Event Apart, May 2011

Slide 21

Slide 21 text

960px 288px 600px

Slide 22

Slide 22 text

No content

Slide 23

Slide 23 text

600 ÷ 960 = 62.5% 288 ÷ 960 = 30% TARGET ÷ CONTEXT = RESULT

Slide 24

Slide 24 text

.left { float: left; width: 30%; } .right { float: right; width: 62.5%; }

Slide 25

Slide 25 text

100% 30% 62.5%

Slide 26

Slide 26 text

2 FLEXIBLE IMAGES

Slide 27

Slide 27 text

img { max-size: 100%; }

Slide 28

Slide 28 text

3 MEDIA QUERIES

Slide 29

Slide 29 text

320px Phone - portrait 480px Phone - landscape 600px 7” tablets - portrait 768px 10” tablets - portrait 980px #blue-banner-bar width 1024px 10” tablets - landscape, “desktop”

Slide 30

Slide 30 text

No content

Slide 31

Slide 31 text

@media screen and (min-width: 480px) { ... } /* Base styles */ ... /* Progressive styles */ @media screen and (min-width: 600px) { ... } @media screen and (min-width: 768px) { ... } @media screen and (min-width: 980px) { ... } @media screen and (min-width: 1024px) { ... }

Slide 32

Slide 32 text

No content

Slide 33

Slide 33 text

MORE OKAY, TELL ME

Slide 34

Slide 34 text

No content

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

No content

Slide 39

Slide 39 text

AT HOME PLAY ALONG LOLLIBRARY.ORG

Slide 40

Slide 40 text

HTML WELL-STRUCTURED

Slide 41

Slide 41 text

SOURCE ORDER

Slide 42

Slide 42 text

IS LAYOUT ENHANCEMENT AN -Ethan Marcotte https://twitter.com/zeldman/status/166653639383973889

Slide 43

Slide 43 text

No content

Slide 44

Slide 44 text

CONTENT FIRST

Slide 45

Slide 45 text

HEADING 1 FORM SECTION #NEWS SECTION #EVENTS SECTION #EXHIBITS NAV FOOTER

Slide 46

Slide 46 text

No content

Slide 47

Slide 47 text

AT HOME CODE ALONG REMMBR.US/LOL

Slide 48

Slide 48 text

THANK YOU MARIO! BUT OUR DESIGN IS IN ANOTHER CASTLE.

Slide 49

Slide 49 text

GRIDS MORE ON

Slide 50

Slide 50 text

TO CODE FROM PICTURES

Slide 51

Slide 51 text

CONTENT FIRST MOBILE

Slide 52

Slide 52 text

MOBILE BASE STYLES =

Slide 53

Slide 53 text

No content

Slide 54

Slide 54 text

BLOCK ELEMENTS NAVIGATION AT THE BOTTOM ANCHOR LINK TO NAV IN HEADER SMALL-SCREEN LAYOUT ENHANCEMENTS

Slide 55

Slide 55 text

HEADING 1 ANCHOR # INPUT TYPE=”TEXT” INPUT TYPE=”SUBMIT” SECTION #NEWS SECTION #EVENTS SECTION #EXHIBITS FOOTER NAVIGATION

Slide 56

Slide 56 text

h1 { float: left; width: 66%; } header .nomed { float: right; width: 33%; } HEADING 1 ANCHOR #

Slide 57

Slide 57 text

h1 { float: left; padding-left: .65%; width: 65%; } header .nomed { float: right; margin-right: 1%; width: 32%; }

Slide 58

Slide 58 text

INPUT TYPE=”TEXT” INPUT TYPE=”SUBMIT” input[type=”text”] { display: block; margin: 0 1%; padding: .4em .96%; width: 96%; } input[type=”submit”] { display: block; margin: .5em 1%; width: 98%; }

Slide 59

Slide 59 text

SIZE ENHANCE WITH

Slide 60

Slide 60 text

@media screen and (min-width: 33.75em) { /* Styles at least this wide go here */ }

Slide 61

Slide 61 text

EM WHAT?

Slide 62

Slide 62 text

SIZ RELATIVE ES

Slide 63

Slide 63 text

= 1 EM 16 PX*

Slide 64

Slide 64 text

RELATIVE RELATIVE EMS ARE

Slide 65

Slide 65 text

= 33.75 EM 540 PX*

Slide 66

Slide 66 text

IS 540 PX? WHAT DEVICE

Slide 67

Slide 67 text

320px Phone - portrait 480px Phone - landscape 600px 7” tablets - portrait 768px 10” tablets - portrait 980px #blue-banner-bar width 1024px 10” tablets - landscape, “desktop”

Slide 68

Slide 68 text

THE DEVICE IT’S NOT ABOUT

Slide 69

Slide 69 text

CONTENT IT’S ABOUT

Slide 70

Slide 70 text

= BREAK POINT? WHEN IT LOOKS STUPID

Slide 71

Slide 71 text

FORM IN HEADER TO RIGHT NAVIGATION AT THE TOP ANCHOR LINK TO NAV IN HEADER GONE ENHANCEMENTS FOR > 33.75EM

Slide 72

Slide 72 text

HEADING 1 ANCHOR # INPUT TYPE=”TEXT” INPUT TYPE=”SUBMIT” SECTION #NEWS SECTION #EVENTS SECTION #EXHIBITS FOOTER HEADING 1 SUBMIT INPUT NAVIGATION

Slide 73

Slide 73 text

.nomed { display: none; }

Slide 74

Slide 74 text

INPUT SUBMIT h1 { width: 32%; } form { float: left; width: 66%; } input[type=”text”] { width: 66%; } input[type=”submit”] { float: right; width: 28%; } HEADING 1

Slide 75

Slide 75 text

body { display: table; caption-side: top; } nav[role="navigation"] { display: table-caption; } nav[role="navigation"] ol { display: table-row; } nav[role="navigation"] ol li { display: table-cell; } NAVIGATION http://adactio.com/journal/4780/

Slide 76

Slide 76 text

NEWS & EVENTS IN RIGHT COLUMN EXHIBITS IN LEFT COLUMN ENHANCEMENTS FOR > 43.75EM

Slide 77

Slide 77 text

SECTION #NEWS SECTION #EVENTS SECTION #EXHIBITS FOOTER HEADING 1 SUBMIT INPUT NAVIGATION SECTION #NEWS SECTION #EVENTS SECTION #EXHIBITS

Slide 78

Slide 78 text

... ...

Slide 79

Slide 79 text

#right-column { float: right; width: 30%; } #exhibits { float: right; width: 66%; }

Slide 80

Slide 80 text

NEWS & EVENTS ACROSS THE TOP EXHIBITS BELOW IN 3 COLUMNS ENHANCEMENTS FOR > 64EM HEADING CHANGED TO FULL NAME

Slide 81

Slide 81 text

FOOTER HEADING 1 SUBMIT INPUT NAVIGATION SECTION #NEWS SECTION #EVENTS SECTION #EXHIBITS SECTION #EVENTS SECTION #EXHIBITS

Slide 82

Slide 82 text

#right-column { float: none; margin-left: 0; width: 100%; } #events { clear: none; width: 66%; float: right; } #news { width: 30%; margin-left: 3%; float: right; }

Slide 83

Slide 83 text

.event-img { float: left; margin: 0 1.5%; width: 47%; }

Slide 84

Slide 84 text

#exhibits { ! width: 100%; ! float: none; ! clear: both; } ! #exhibits .exhibit-section { ! float: left; ! width: 31.3%; ! margin: 0 1%; }

Slide 85

Slide 85 text

Slide 86

Slide 86 text

h1 span { display: none; } @media screen and (min-width: 64em) { h1 abbr { display: none; } h1 span { display: inline; } }

Slide 87

Slide 87 text

SUPPORT A WORD ABOUT

Slide 88

Slide 88 text

https://github.com/scottjehl/Respond/

Slide 89

Slide 89 text

CHEATS? WHERE ARE THE

Slide 90

Slide 90 text

http://twitter.github.com/bootstrap/ TWITTER BOOTSTRAP http://foundation.zurb.com/ FOUNDATION

Slide 91

Slide 91 text

PEEPS? WHERE MY

Slide 92

Slide 92 text

http://cantonpl.org

Slide 93

Slide 93 text

http://preview.lib.virginia.edu

Slide 94

Slide 94 text

No content

Slide 95

Slide 95 text

[email protected] :: @mreidsma matthewreidsma.com :: gvsu.edu/library/labs YOU THANK