65
Adobe & HTML5 Terry Ryan | Worldwide Developer Evangelist Twitter: @tpryan

Adobe & HTML5

Embed Size (px)

DESCRIPTION

A quick tour through a number of Adobe initiatives in HMTL5

Citation preview

Page 1: Adobe & HTML5

Adobe & HTML5Terry Ryan | Worldwide Developer EvangelistTwitter: @tpryan

Page 2: Adobe & HTML5

Who Are You?

Page 3: Adobe & HTML5

HTML5 Acquired Typekit

Acquired Nitobi, makers of PhoneGap

Released new preview of Edge

CSS Shaders submitted to W3C

Page 4: Adobe & HTML5
Page 5: Adobe & HTML5

I am sick of seeing only 6-10fonts

deemed “web safe”

Page 6: Adobe & HTML5

I WANT MORE FONTS

Page 7: Adobe & HTML5

Webfonts

• Webfonts are a solution to this– Require multiple formats– Require proper licensing

Page 8: Adobe & HTML5

• Or someone can handle all this for you

Typekit

Page 9: Adobe & HTML5

Demo

Typekit

Page 10: Adobe & HTML5

• Try Typekit– https://typekit.com/

Next Steps with Typekit

Page 11: Adobe & HTML5
Page 12: Adobe & HTML5
Page 13: Adobe & HTML5

Why jQuery Mobile?

Page 14: Adobe & HTML5

Fixed position toolbar

Expand <a> to fill entire <li> space for touchability

Fixed position toolbar that doesn’t work in Android, yet

Replace default link following with Ajax call and replacing <body>

Add margins to list to make work with toolbars

Also it doesn’t display right.

Doesn’t work on all mobile browsers

Page 15: Adobe & HTML5

Doing it yourself sucks.

Page 16: Adobe & HTML5

Especially if someone else

has done it

Page 17: Adobe & HTML5

<div data-role=“header”>

<div data-role=“footer”>

<ul data-role="listview”>

<a> No AJAX required

Entire app is one HTML document

Works perfectly in many browsers, gracefully degrades in most.

Page 18: Adobe & HTML5

jQuery makes stuff easy

Page 19: Adobe & HTML5

jQuery has a huge

ecosystem

Page 20: Adobe & HTML5

GETTING STARTED WITH JQUERY MOBILE

Page 21: Adobe & HTML5

<!DOCTYPE html> <html> <head> <title>Codeworks</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="jquery.mobile-1.0.min.css" /><script type="text/javascript" src="jquery-1.6.4.min.js"></script><script type="text/javascript" src="jquery.mobile-1.0.min.js"></script></head>

Basic Page Start

Page 22: Adobe & HTML5

Page Model

Page 23: Adobe & HTML5

<div data-role="page" id="landing" ><div data-role="header">

<!-- header content --></div><div data-role="content">

<!-- Page content --></div><div data-role="footer" >

<!-- Footer content --></div>

</div>

Basic Page Layout

Page 24: Adobe & HTML5

<div data-role="page" id="landing"><!-- page content -->

</div>

<div data-role="page" id="detail"><!-- page content -->

</div>

<div data-role="page" id="map"><!-- page content -->

</div>

Basic Page Layout

Page 25: Adobe & HTML5

<a href="#map" class="ui-btn-active">Map</a>

Navigation

Page 26: Adobe & HTML5

<div data-role="page" id="second" data-add-back-btn="true">

Navigation

Page 27: Adobe & HTML5

<ul data-role="listview"><li><a href="#second">Second</a></li><li><a href="#third">Third</a></li>

</ul>

Data Lists

Page 28: Adobe & HTML5

<div data-role="navbar"><ul><li><a href="#landing" class="ui-btn-active">Schedule</a></li><li><a href="#map">Map</a></li></ul></div>

Tab Menus

Page 29: Adobe & HTML5

<form > <label for="username">Username:</label> <input type="text" name="username" id="username" /> <label for="password">Password:</label> <input type="password" name="password" id="password" /> <input type="submit" name="submit" value="Login" /></form>

Forms

Page 30: Adobe & HTML5

THEME ROLLER

Page 31: Adobe & HTML5

I want my own design

Page 32: Adobe & HTML5
Page 33: Adobe & HTML5

• Download jQuery Mobile– http://jquerymobile.com/

• Check out killer documentation– http://jquerymobile.com/demos/1.0/

• Check out Theme Roller– http://jquerymobile.com/themeroller/

Next Steps with jQuery Mobile

Page 34: Adobe & HTML5
Page 35: Adobe & HTML5
Page 36: Adobe & HTML5
Page 37: Adobe & HTML5
Page 38: Adobe & HTML5
Page 39: Adobe & HTML5

Demo

Adobe Edge

Page 40: Adobe & HTML5

• Get Edge– http://labs.adobe.com/technologies/

edge/

Next Steps with Edge

Page 41: Adobe & HTML5
Page 42: Adobe & HTML5
Page 43: Adobe & HTML5

We have a web app

We need a native app

Page 44: Adobe & HTML5

Why do we need native?

Page 45: Adobe & HTML5

CameraCompass

Accelerometer

Page 46: Adobe & HTML5

The ease of web

the access of native

Page 47: Adobe & HTML5

Enter PhoneGap

Page 48: Adobe & HTML5

PhoneGap packages a

web app into a “native” app

Page 49: Adobe & HTML5

What do you mean by

“native” apps

Page 50: Adobe & HTML5

Apps can be distributed in

stores

Page 51: Adobe & HTML5

UI is not native

Page 52: Adobe & HTML5

PHONEGAP BUILD

Page 53: Adobe & HTML5

One pain point: Lots of

software

Page 54: Adobe & HTML5
Page 55: Adobe & HTML5
Page 56: Adobe & HTML5

Enter PhoneGap

Build

Page 57: Adobe & HTML5

• Setup build– Certificates– Provision files

• Get code to cloud– Upload– Link to git repository

• Have servers build app files

PhoneGap Build

Page 58: Adobe & HTML5

Demo

PhoneGap Build

Page 59: Adobe & HTML5

• Look at Phone Gap– http://phonegap.com/

• Get started – http://phonegap.com/start

• Phone Gap Build– https://build.phonegap.com/

Next Steps with Phone Gap

Page 60: Adobe & HTML5
Page 61: Adobe & HTML5

What if browsers could do more?

Page 62: Adobe & HTML5

Enter CSS Shaders

Page 63: Adobe & HTML5

Cinematic effects for the

web

Page 64: Adobe & HTML5

Demo

CSS Shaders

Page 65: Adobe & HTML5

Follow up?

• Preso will be up at – http://slideshare.net/tpryan

• Feel free to contact me– [email protected]– http://terrenceryan.com– Twitter: @tpryan