Edit open day responsive design frameworks

34
Alexandre Marreiro

description

Slides that was the base of a workshop i gave at the event open day in EDIT. The main goal of the workshop was to give a solid knowledge about responsive and how we can use frameworks to optimize our work 13-1-2013

Transcript of Edit open day responsive design frameworks

Page 1: Edit open day responsive design frameworks

Alexandre Marreiros

Page 2: Edit open day responsive design frameworks

The Trainner

• CTO @ INNOVAGENCY• Tech Trainner & Speaker as

Idependent• Tech and Buis Consultant as

Independent@alexmarreiros

Digitalmindignition.com

[email protected]

Alexandre Marreiros

Page 3: Edit open day responsive design frameworks

“The control which designers know in the print medium, and often desire in the web medium, is simply a function of the limitation of the printed page. We should embrace the fact that the web doesn’t have the same constraints, and design for this flexibility. But first, we must “accept the web and flow of things.”

John Allsopp, “A Dao of Web Design”

Alexandre Marreiros

Page 4: Edit open day responsive design frameworks

Alexandre Marreiros

http://commons.wikimedia.org/wiki/File:Architecture_Cologne.jpg

Page 5: Edit open day responsive design frameworks

Web work is a all different story

Alexandre Marreiros

Resolutions and sizes

User’sDevices

Browser’s

Page 6: Edit open day responsive design frameworks

Landscape / Portrait

• http://www.sermonaudio.com/new_details.asp?ID=30996

Alexandre Marreiros

Page 7: Edit open day responsive design frameworks

Web Client desires“Almost every new client these days wants a mobile version of their website. It’s practically essential after all: one design for the BlackBerry, another for the iPhone, the iPad, netbook, Kindle — and all screen resolutions must be compatible, too. In the next five years, we’ll likely need to design for a number of additional inventions. When will the madness stop? It won’t, of course.”

Kayla Knight

Alexandre Marreiros

Page 8: Edit open day responsive design frameworks

So is just to Be Flexible ?

http://academiafabiocosta.blogspot.pt/2011/06/faca-exercicios-para-melhorar-sua.html

Alexandre Marreiros

Page 9: Edit open day responsive design frameworks

Flexible Web Design

Ethan Marcotte Flexibel Design examplehttp://www.alistapart.com/d/responsive-web-design/ex/ex-site-flexible.html

Alexandre Marreiros

Page 10: Edit open day responsive design frameworks

Flexible Web Design

There still a problem to solve•User expetation•And sizes design/cross devices

“…no design, fixed or fluid, scales seamlessly beyond the context for which it was originally intended.”

Alexandre Marreiros

Page 11: Edit open day responsive design frameworks

“responsive architecture”http://www.youtube.com/watch?feature=player_embedded&v=XYV0qATsyts

Alexandre Marreiros

Page 12: Edit open day responsive design frameworks

Responsive Web Design“This is our way forward. Rather than tailoring disconnected designs to each of an ever-increasing number of web devices, we can treat them as facets of the same experience. We can design for an optimal viewing experience, but embed standards-based technologies into our designs to make them not only more flexible, but more adaptive to the media that renders them. In short, we need to practice responsive web design.”

Ethan Marcotte

Alexandre Marreiros

Page 13: Edit open day responsive design frameworks

Responsive Web Design• Flexible Images (

http://www.flexiblewebbook.com/bonus.html)

<h1 id="logo"><a href="#"><img src="site/logo.png" alt="The Baker Street Inquirer"/></a></h1>

Alexandre Marreiros

Page 14: Edit open day responsive design frameworks

Responsive Web Design• Fluid Grids (http://www.alistapart.com/articles/fluidgrids/)

Alexandre Marreiros

Page 15: Edit open day responsive design frameworks

Responsive Web Design• Media Queries (http://www.w3.org/TR/css3-mediaqueries/ )

Alexandre Marreiros

Page 16: Edit open day responsive design frameworks

Responsive Web Design Examples

http://mdcraftbeerfestival.com/

Alexandre Marreiros

Page 17: Edit open day responsive design frameworks

Responsive Web Design Examples

http://www.formfett.net/

Alexandre Marreiros

Page 18: Edit open day responsive design frameworks

Responsive Web Design Examples

http://forefathersgroup.com/

Alexandre Marreiros

Page 19: Edit open day responsive design frameworks

Media Queries• Part of the CSS3 specification

• Allows us to target not only certain device classes, but to actually inspect the physical characteristics of the device rendering our work

• Are conditional styles

Alexandre Marreiros

Page 20: Edit open day responsive design frameworks

Media Queries• Example: @media screen and (max-device-width: 480px)

{ .column { float: none; }

}

Alexandre Marreiros

Page 21: Edit open day responsive design frameworks

First we target what our conditional with the attribute@media

Examples:

@media only screen and (max-width:1023 px) small screens

@media only screen and (min-device-width: 481px ) and (max-device width:1024 px) and (orientation: landscape) ipad landscap

@media only screen and (min-device-width: 481px ) and (max-device width:1024 px) and (orientation: portrait) ipad portrait

Responsive Web Design

Alexandre Marreiros

Page 22: Edit open day responsive design frameworks

Responsive Web Design

Alexandre Marreiros

Table with the most common resolutions

Page 23: Edit open day responsive design frameworks

Responsive Web Design

Alexandre Marreiros

Table with the most common resolutions

Page 24: Edit open day responsive design frameworks

Responsive Web Design

Alexandre Marreiros

Table with the most common resolutions

Page 25: Edit open day responsive design frameworks

Responsive Web Design• Let’s build some responsiviness. Hands on Lab 1st part

http://www.techdigest.tv/2012/07/tech_pentathlon.html

Alexandre Marreiros

Page 26: Edit open day responsive design frameworks

Responsive Frameworks

Alexandre Marreiros

Page 27: Edit open day responsive design frameworks

Mobile Boilerplate

• a responsive template that puts the focus on mobile devices, namely those running Android, iOS, Blackberry and Symbian software.

Alexandre Marreiros

Page 28: Edit open day responsive design frameworks

Skeleton

Is a light collection of CSS and JavaScript files that make designing responsive sites based on the 960px grid easy.

Alexandre Marreiros

Page 29: Edit open day responsive design frameworks

BluCSS

• CSS framework that, as usual, uses a flexible grid to facilitate responsive design. One feature that stands out is its responsive images, something many of these frameworks leave out; apply a class to your images and they’ll scale with your design. No need to include multiple files at multiple sizes, though be wary of unnecessary load on mobile devices with this approach..

Alexandre Marreiros

Page 30: Edit open day responsive design frameworks

Less

• Is a CSS starter with four layouts — default at 992px, and tablet, mobile and wide mobile sizes — based on a grid system

Alexandre Marreiros

Page 31: Edit open day responsive design frameworks

Twitter Bootstrap

Twitter Bootstrap includes a responsive grid system in addition to tons of stellar pre-styled elements like forms, uttons, navigation menus and more.

Alexandre Marreiros

Page 32: Edit open day responsive design frameworks

Foundation

Alexandre Marreiros

Page 33: Edit open day responsive design frameworks

Responsive Web Design• Let’s use responsive frameworks, hands on lab part 2

http://www.techdigest.tv/2012/07/tech_pentathlon.html

Alexandre Marreiros

Page 34: Edit open day responsive design frameworks

Final References• http://www.mrgeek.me/?s=bootstrap• http://www.abookapart.com/products/mobile-first• http://www.abookapart.com/products/responsive-web-

design• http://www.smashingmagazine.com/responsive-web-design-

guidelines-tutorials/• Workshops exercises based on canonical web examples:

Alexandre Marreiros