65
Mobile first and Drupal. The future is already here Kristof Orts - Anthony Ringoet

Mobile first and Drupal

Embed Size (px)

DESCRIPTION

Mobile first and Drupal. The future is already here.Session on Drupalcamp Gent 25.05.2012Anthony Ringoet and Kristof Orts

Citation preview

Page 1: Mobile first and Drupal

Mobile first and Drupal. The future is already hereKristof Orts - Anthony Ringoet

Page 2: Mobile first and Drupal

2

hello

Anthony Ringoet Kristof Orts

Page 3: Mobile first and Drupal

3

Page 4: Mobile first and Drupal
Page 5: Mobile first and Drupal

What happened?

Page 6: Mobile first and Drupal

Not too long ago

Page 7: Mobile first and Drupal

The mobile experience back then.

Page 8: Mobile first and Drupal

Today

Page 9: Mobile first and Drupal

Today is the future

Page 10: Mobile first and Drupal

Today

•Computer market owned by smartphones in 2010 already

•Hardware prices dropping

•Mobile data prices dropping

• Lots of websites still suck

Page 11: Mobile first and Drupal

Responsive web design

Page 12: Mobile first and Drupal

Responsive websitesrespond

to their environment

Page 13: Mobile first and Drupal

Real clients

Page 14: Mobile first and Drupal
Page 15: Mobile first and Drupal

The Flexible Grid

Page 16: Mobile first and Drupal

Media Queries

Page 17: Mobile first and Drupal

@media all and (max-width: 699px) and (min-width: 520px) { body { background: #ccc;

}}

ext

Page 18: Mobile first and Drupal

Fluid media

Page 19: Mobile first and Drupal

Mobile first

19

Page 20: Mobile first and Drupal

"Designing for mobile first not only prepares you for the explosive growth and opportunities in this space, it forces you to focus and enables you to innovate."@lukew

Page 21: Mobile first and Drupal

Mobile first

• Design and development process

•Mobile first thinking should influence all your decisions when building

• You can’t be everything everywhere

• X-ray vision + enhancements

• Trying not to make assumptions

Page 22: Mobile first and Drupal

Benefits

• Supporting multiple platforms in a financial attractive way

• Sustainable

• one article = one url

• updates happen once

Page 23: Mobile first and Drupal

Focus

• Lots of constraints

• Focus on what really matters

• “People’s capacity for bullshit is rapidly diminishing.” @brad_frost

Page 24: Mobile first and Drupal

Mooaaar junk please

Page 25: Mobile first and Drupal

Mobile first is hard

• Lots of problems still to be solved

• Best practices are emerging

• mobilewebbestpractices.com

• Drupal: check out how mobile friendly contrib is before adding

• Diversity

• quirksmode.org/mobile

• Aim for universal acces

Page 26: Mobile first and Drupal

Future proof?

• Fragmentation will only get worse

• Standards will not be able to keep up

• Future friend.ly manifest

• Build with progressive enhancement

Page 27: Mobile first and Drupal

Responsive workflow

Page 28: Mobile first and Drupal

IA

Page 29: Mobile first and Drupal

Wireframes

Page 30: Mobile first and Drupal
Page 31: Mobile first and Drupal
Page 32: Mobile first and Drupal

Design

Page 33: Mobile first and Drupal
Page 34: Mobile first and Drupal
Page 35: Mobile first and Drupal
Page 36: Mobile first and Drupal
Page 37: Mobile first and Drupal
Page 38: Mobile first and Drupal
Page 39: Mobile first and Drupal

Trends and patterns

Page 40: Mobile first and Drupal
Page 41: Mobile first and Drupal
Page 42: Mobile first and Drupal
Page 43: Mobile first and Drupal
Page 44: Mobile first and Drupal
Page 45: Mobile first and Drupal
Page 46: Mobile first and Drupal

Is there a module for that?

46

Page 47: Mobile first and Drupal

47

Page 48: Mobile first and Drupal

Implementation

48

•Cleanup Drupal’s sensible defaults

•Front-end performance

•Fluid grids

•Browsersupport and polyfills

Page 49: Mobile first and Drupal

Cleanup Drupal’s defaults

• Stop repeating yourself

• Tweak the defaults so they work for you

• I like mothership with some tweaks on top of it

Page 50: Mobile first and Drupal

Mothership

• “Keelhaul the div!”

• html5 base that removes cruft

• uses theme settings

• break stuff and fix it really quick : )

• http://drupal.org/project/mothership

Page 51: Mobile first and Drupal
Page 52: Mobile first and Drupal
Page 53: Mobile first and Drupal

Front-end performance

•How Compass and Sass help me

Page 54: Mobile first and Drupal

Spriting

• http requests are lame and slow (esp. on mobile)

• Automatic sprite generation ftw!

• Beware of sprite size for caching on mobile

Page 55: Mobile first and Drupal

Inline data uri’s

• Embed files inside your css as raw data

•No extra http request for the file

compass syntax:inline-image($image, $mime-type)

result:background: url(data:image/gif;base64,R0lGODlhEAAQAMQAAOR.......)

Page 56: Mobile first and Drupal

Fluid grids

• Tricky when nesting because of %

• Susy (for Compass)

• http://susy.odbird.net

• Zen Grids (for Sass)

• http://zengrids.com

Page 57: Mobile first and Drupal

Browser support

• lame browsers = old IE + FF < 3.6

Page 58: Mobile first and Drupal

Browser support

• lame browsers = old IE + FF < 3.6

Page 59: Mobile first and Drupal

Browser support

• lame browsers = old IE + FF < 3.6

Page 60: Mobile first and Drupal

Browser support

• lame browsers = old IE + FF < 3.6

Page 61: Mobile first and Drupal

Browser support

• lame browsers = old IE + FF < 3.6

Page 63: Mobile first and Drupal

Thanks.

59

Let’s talk!@kristoforts - @mylittletony

Page 64: Mobile first and Drupal

CC photo credits

60

http://upstatement.com/wp-content/themes/ace/_img/device-array-1200.pnghttp://www.flickr.com/photos/adactio/6152947625/http://www.flickr.com/photos/48625620@N00/3663572712/http://www.flickr.com/photos/justinbaeder/247117023/

Page 65: Mobile first and Drupal

Feedback & follow-up:http://drupalcampgent.be/feedback