57
Build and Test Just What You Need, When You Need it, On Any Screen.

Lean responsive - Expanded

Embed Size (px)

DESCRIPTION

This is an expanded, longer version of my Lean Responsive presentation, with full notes.

Citation preview

Page 1: Lean responsive - Expanded

Build and Test Just What You Need, When You Need it, On Any Screen.

Page 2: Lean responsive - Expanded

Minimum Viable Introduction

I’m Josh Jeffryes, Lead UI Developer at The College Board

Page 3: Lean responsive - Expanded

Minimum Viable Introduction

I also help startups around the world with UX, Technology, and Lean

Methodology

Page 4: Lean responsive - Expanded

What Is Lean Responsive?

?

Page 5: Lean responsive - Expanded

What Is Lean Responsive?

+

Page 6: Lean responsive - Expanded

It’s Two Buzzwords.

What Is Lean Responsive?

Page 7: Lean responsive - Expanded

It’s Two Buzzwords.

I admit it.

What Is Lean Responsive?

Page 8: Lean responsive - Expanded

It’s also the best way to build anything on the web.

What Is Lean Responsive?

Page 9: Lean responsive - Expanded

Lean Part 1:

Build only what you need, at the stage of development when you need it.

What Is Lean Responsive?

Page 10: Lean responsive - Expanded

Lean Part 2:

Gain maximum understanding at each step,

before you build the next step.

What Is Lean Responsive?

Page 11: Lean responsive - Expanded

In Other Words:

Only one assumption should be provably wrong with each step.

What Is Lean Responsive?

Page 12: Lean responsive - Expanded

What Is Lean Responsive?

What do we need to understand to advance beyond this step?

Build the minimum product that will produce that understanding.

Test product.Iterate

product.

Repeat until optimal solution

understood

Go to next step.

A L

ean

It

era

tion

Page 13: Lean responsive - Expanded

Lean:

Replaces ego with actually knowing things.

What Is Lean Responsive?

Page 14: Lean responsive - Expanded

Responsive Design:

Build experiences that adapt to any screen, even ones that don’t exist yet.

What Is Lean Responsive?

Page 15: Lean responsive - Expanded

What Is Lean Responsive?

From 1” To 20” To 84”

We can’t predict what size screen a user will have...

so we have to design for all of them.

Page 16: Lean responsive - Expanded

What Is Lean Responsive?

We do this by adapting the layout and design based on screen size.

Things move, shrink, or disappear.

A B CA

BC

B A

C

B

Desktop Tablet Phone

Page 17: Lean responsive - Expanded

What Is Lean Responsive?

This happens through the magic of media queries

And sometimes JavaScript.

Page 18: Lean responsive - Expanded

What Is Lean Responsive?

So now what?

Page 19: Lean responsive - Expanded

You Got Responsive in my Leanupbutter

What Is Lean Responsive?

Page 20: Lean responsive - Expanded

Responsive• Test anywhere, any device• The same way the final

product will be used

Lean• Build and test fast• Prove your ideas, not your

code or design

What Is Lean Responsive?

Page 21: Lean responsive - Expanded

Most Importantly...

None of this requires any fancy

frameworks or libraries, and you don’t need a black belt in code ninja-

ing to do it.

Page 22: Lean responsive - Expanded

jpHTML

How is this possible?

jpHTML

Page 23: Lean responsive - Expanded

Behold, the Awesome Power of jpHTML

Page 24: Lean responsive - Expanded

jpHTML

jpHTML is:• Automatically Responsive• Universally Supported• 100% Accessible• Generates Perfect SEO

Page 25: Lean responsive - Expanded

jpHTML stands for:

Just Plain HTML

Page 26: Lean responsive - Expanded

<h1>jpHTML</h1><p>Just Plain HTML is fluid, it expands to fill it's horizontal space.</p>

<h2>Minimally Viable Responsiveness</h2> <p>But only for linear layouts.</p> <h2>Brains are Linear</h2> <p>People perceive ideas in order. You should test them that way.</p>

Page 27: Lean responsive - Expanded

Desktop Mobile

Page 28: Lean responsive - Expanded

jpHTML

All you need is basic knowledge of HTML.• Headlines, paragraphs, lists• Form elements• Links• Simulate interactivity with links

that go to new pages • It’s even a legit use of

Dreamweaver

Page 29: Lean responsive - Expanded

jpHTML

Basic HTML is completely accessible and SEO friendly. It forces you to use H tags and paragraphs correctly.

Make this the foundation of your final product. Add CSS and JavaScript, but don’t change the structure.

If your idea works like this, it will work when it’s pretty too.

Page 30: Lean responsive - Expanded

An Example

Let me give you an example.

Page 31: Lean responsive - Expanded

An Example

Cat Wars- Pretty- Full of wonderful

candy- Client loves it

Page 32: Lean responsive - Expanded

An Example

Cat Wars- Pretty- Full of wonderful

candy- Client loves it- Completely useless

for testing

Page 33: Lean responsive - Expanded

An Example

Cat Wars- Takes a long time- Wastes money- Always wrong

Page 34: Lean responsive - Expanded

An Example

Cat Wars- This many layer

effects can never be right.

Page 35: Lean responsive - Expanded

An Example

Now you can test the most important thing:The Idea

Page 36: Lean responsive - Expanded

An Example

If people won’t do this...

Page 37: Lean responsive - Expanded

An Example

They’ll never do this.

Page 38: Lean responsive - Expanded

An Example

This = This

Page 39: Lean responsive - Expanded

An Example

No CSS was harmed in the making of this test

Page 40: Lean responsive - Expanded

An Example

If it takes more than an hour to build your prototype, you’re testing the wrong

thing.

Page 41: Lean responsive - Expanded

A Pinch of Code

{ }

Page 42: Lean responsive - Expanded

It just takes a few lines of code to make your plain HTML more responsive.

A Pinch of Code

Page 43: Lean responsive - Expanded

A page margin, base font, and more readable color:

Html {font: 10px/12px Arial;

}

Body {margin: 1rem;color: #222;

}

A Pinch of Code

Page 44: Lean responsive - Expanded

Scale everything by media queries using rem (root em):

@media screen and (max-width: 959px) {html {font-size: 12px;}}

H1 { font-size: 2rem; }

A Pinch of Code

Desktop Tablet

Headline is 20px Headline is 24px

Page 45: Lean responsive - Expanded

Easy responsive images:

Img {width: 100%;height: auto;

}

A Pinch of Code

Page 46: Lean responsive - Expanded

A persistent navigation bar:

Nav {position: fixed;padding: 10px;background: #ccc;color: #fff;

}

A Pinch of Code

Page 47: Lean responsive - Expanded

The Wild, Wild Test

Page 48: Lean responsive - Expanded

The Wild, Wild Test

Testing your apps in the wild is only slightly harder.

You just have to use the internet.

Page 49: Lean responsive - Expanded

The Wild, Wild Test

First, get hosting.

Your Site Here

Page 50: Lean responsive - Expanded

The Wild, Wild Test

Google Analytics is great for analytics.

One snippet of JavaScript

Page 51: Lean responsive - Expanded

The Wild, Wild Test

Test forms and collect dataUse Wufoo

Page 52: Lean responsive - Expanded

The Wild, Wild Test

All the Data You Need for Lean Responsive

Page 53: Lean responsive - Expanded

Sufficiently Advanced

Page 54: Lean responsive - Expanded

If you want, you can get really responsive.

Sufficiently Advanced

Twitter Bootstrap – grids and components

Foundation – pretty much the same thing

Mobify.js – this is more for ninja stuff

Page 55: Lean responsive - Expanded

You can do cool things with data on-screen.

Sufficiently Advanced

Angular – make HTML do JavaScripty stuff

KnockOut – a lightweight MVC framework

Page 56: Lean responsive - Expanded

Sufficiently Advanced

If you know JavaScript but not backend, you don’t need a backend.

Deployd

FireBase

Backlift

Page 57: Lean responsive - Expanded

Thank You

Lead UI Developer at The College Board

@[email protected]