adaptive systems

64
ADAPTIVE SYSTEMS with Simon Collison Adaptive Systems for Multiple Devices HD Live 4th Nov 2010 FOR MULTIPLE DEVICES

Upload: simon-collison

Post on 17-Aug-2014

12.536 views

Category:

Design


1 download

DESCRIPTION

Simon will explore CSS media queries and other methods for creating incredibly flexible adaptive layouts for varying devices, viewports and orientations.

TRANSCRIPT

Page 1: Adaptive Systems

ADAPTIVE SYSTEMS

with

Simon Collison

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

FOR MULTIPLE DEVICES

Page 2: Adaptive Systems

HULL

Page 3: Adaptive Systems
Page 4: Adaptive Systems
Page 5: Adaptive Systems
Page 6: Adaptive Systems
Page 7: Adaptive Systems

PATTERNS

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

THAT ARE UNIQUELY OURS

Page 8: Adaptive Systems

The screen brings with it different kinds of challenges for visual design, some of which occur exclusively in interactive media.

It’s unrealistic to think our old methods can fill in all the gaps, but new interaction patterns and visual languages emerge everyday.

These are the building blocks for our new design principles.

JASON SANTA MARIA, 2008

Page 9: Adaptive Systems

BALANCECOMPOSITIONSYMMETRYMOVEMENTRHYTHMREPETITIONPATTERNS

Page 10: Adaptive Systems

SYSTEMS

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

FOR EVOLVING WEBSITES

Page 11: Adaptive Systems

We don’t design web pages. We design systems.

ANDY CLARKE

Page 12: Adaptive Systems
Page 13: Adaptive Systems

DESKTOPSCREEN RESOLUTIONVIEWPORTMOBILE DEVICESORIENTATIONRENDERING ENGINESLAYOUT

Page 14: Adaptive Systems

http://jasonsantamaria.com/http://gregorywood.co.uk/

Page 15: Adaptive Systems

ADAPTIVE

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

LAYOUTS

Page 16: Adaptive Systems

• Use one set of files for the website

• Manipulate the resolution, viewport, and orientation

• Deliver 100% of the content

• Or, deliver the device-relevant content

• Surprise. Delight. Be creative!

Page 17: Adaptive Systems

The ability to alter the presentation of a website without altering its structure should have opened up the floodgates of design creativity.

JEREMY KEITH, 2006

Page 18: Adaptive Systems
Page 19: Adaptive Systems
Page 20: Adaptive Systems
Page 21: Adaptive Systems
Page 22: Adaptive Systems
Page 23: Adaptive Systems
Page 24: Adaptive Systems
Page 25: Adaptive Systems

RESPONSIVE

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

WEB DESIGN

Page 27: Adaptive Systems

Ethan states that a responsive design is composed of three distinct parts:

1. Flexible grid.

2. Flexible images.

3. Media queries.

Page 28: Adaptive Systems
Page 29: Adaptive Systems
Page 30: Adaptive Systems
Page 31: Adaptive Systems
Page 32: Adaptive Systems

FLEXIBLE GRID

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

RESPONSIVE INGREDIENT # 1

Page 33: Adaptive Systems
Page 34: Adaptive Systems

• Relative measurements

• Percentages and ems

• min-width and max-width

• Maths!

Page 36: Adaptive Systems
Page 37: Adaptive Systems

FLEXIBLE IMAGES

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

RESPONSIVE INGREDIENT # 2

Page 38: Adaptive Systems

img {width:380px;height:auto;}

img {height:auto;max-width:100%;}

For a Windows fix, see http://unstoppablerobotninja.com/entry/fluid-images

Page 39: Adaptive Systems

MEDIA QUERIES

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

RESPONSIVE INGREDIENT # 3

Page 40: Adaptive Systems

A media query consists of a media type and zero or more expressions that check for the conditions of particular media features.

Among the media features that can be used in media queries are ‘width’, ‘height’, and ‘color’.

By using media queries, presentations can be tailored to a specific range of output devices without changing the content itself.

http://www.w3.org/TR/css3-mediaqueries/

Page 41: Adaptive Systems

@media  (max-­‐device-­‐width:480px)  and  (orientation:portrait)  {  }

Page 42: Adaptive Systems

• nth-child for flow of images

• Proportional leading

• Change anything you want!

Page 43: Adaptive Systems

CASE STUDY

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

COLLY.COM

Page 44: Adaptive Systems
Page 45: Adaptive Systems

<meta  name="viewport"  content="width=device-­‐width"  />

Page 46: Adaptive Systems

@media  (min-­‐device-­‐width:1024px)  and  (max-­‐width:989px),  screen  and  (max-­‐device-­‐width:480px),  (max-­‐device-­‐width:480px)  and  (orientation:landscape),  (min-­‐device-­‐width:481px)  and  (orientation:portrait)  {div#page  {  width:468px;  }  }

1. Devices with a minimum width of 1,024 pixels and windows with a maximum width of 989 pixels.

2. Screens that have a maximum device width of 480 pixels.

3. Devices with a maximum width of 480 pixels and are also in landscape orientation.

4.Devices with a minimum width of 481 pixels and are also in portrait orientation.

5. When one of the above criteria are met, resize the page division to 468 pixels.

Page 47: Adaptive Systems

@media  (min-­‐device-­‐width:1024px)  and  (max-­‐width:509px),  (max-­‐device-­‐width:480px)  and  (orientation:portrait)  {div#page  {  width:306px;}

With these two queries, the page division shrinks to 306 pixels wide when viewed with:

1. devices with a minimum width of 1,024 pixels and windows with a maximum width of 509 pixels.

2. devices with a maximum width of 480 pixels which are also in landscape orientation.

Page 48: Adaptive Systems
Page 49: Adaptive Systems
Page 50: Adaptive Systems
Page 51: Adaptive Systems
Page 52: Adaptive Systems
Page 53: Adaptive Systems
Page 54: Adaptive Systems
Page 55: Adaptive Systems

NO SILVER BULLET

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

FOR THE MOBILE WEB

Page 60: Adaptive Systems

• Start with mobile!

• Use well structured meaningful markup

• Consider media queries

• Progressive enhancement (JavaScript & media queries)

• Adapt content appropriately for each device

Page 61: Adaptive Systems

display:none;

Page 62: Adaptive Systems

WHAT NEXT?

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010

Page 63: Adaptive Systems

• Rethink our processes

• Be responsive

• Progressively enhance

• Consider the needs of the mobile user

• Be brave, be creative!

Page 64: Adaptive Systems

THANKS

Simon Collison

http://colly.com@colly

Adaptive Systems for Multiple Devices HD Live 4th Nov 2010