web components and ´polymer

40
Unlock the next era of UI development with Web Components and Polymer Google I/O Extended Maceió, 2015

Upload: maria-clara-santana

Post on 08-Aug-2015

75 views

Category:

Technology


4 download

TRANSCRIPT

Page 1: Web Components and ´Polymer

Unlock the next era of UI development with Web Components and Polymer

Google I/O ExtendedMaceió, 2015

Page 2: Web Components and ´Polymer

About me:Maria Clara Santana

● Computer Engineering student at UFAL;● Artificial Intelligence researcher;● GDG Maceió co-organizer;● WTM Maceió Lead;● Technovation Challenge coach;

Page 3: Web Components and ´Polymer

We use an average of three different devices a day.The New Multi-screen World (http://bit.ly/1uoUzpK)

Page 4: Web Components and ´Polymer

Multi-device applications!

Page 5: Web Components and ´Polymer

(http://bit.ly/1IpP4SZ)

Building UI tabs should be easy!

Page 6: Web Components and ´Polymer
Page 7: Web Components and ´Polymer

“It’s easy to write code that a browser understands.Good developers writecode that people can understand.”

Page 8: Web Components and ´Polymer

How can we solve this?

Page 9: Web Components and ´Polymer

Web ComponentsLess code. Less confusion.

Page 10: Web Components and ´Polymer
Page 11: Web Components and ´Polymer

What are Web Components?

Page 12: Web Components and ´Polymer

Custom Elements

● declarative;● readable;● meaningful HTML;● reusable;

Page 13: Web Components and ´Polymer

HTML Templates

● native template in the broswer;

● parsed;● content is inert;● doc fragment;

Page 14: Web Components and ´Polymer

Shadow DOM

● scoped CSS;● encapsulated markup;

Actually shadow DOM

Page 15: Web Components and ´Polymer

HTML Imports

● loading Web Components;Example: Bootstrap

Page 16: Web Components and ´Polymer

Browser supportSummer 2014

Page 17: Web Components and ´Polymer

What if we designed HTML for the mobile

web?

Page 18: Web Components and ´Polymer
Page 19: Web Components and ´Polymer
Page 20: Web Components and ´Polymer

polymer

Page 21: Web Components and ´Polymer

polymer-topeka.appspot.com/

Page 22: Web Components and ´Polymer

Understanding polymerLayers

1. Web Components

2. The polymer library

3. Elements

Page 23: Web Components and ´Polymer

core-elements

Page 24: Web Components and ´Polymer

Visual Visual

<core-toolbar><core-header-panel><core-menu><core-icon>

And many more...

<core-ajax><core-shared-lib><core-range><core-localstorage>

And many more...

Page 25: Web Components and ´Polymer

<core-toolbar> </core-toolbar>

Page 26: Web Components and ´Polymer

<core-header-panel> </core-header-panel>

Page 27: Web Components and ´Polymer

<core-drawer-panel> </core-drawer-panel>

Page 28: Web Components and ´Polymer

paper-elements

Page 29: Web Components and ´Polymer

<paper-fab> </paper-fab>

Page 30: Web Components and ´Polymer

<paper-checkbox> </paper-checkbox>

Page 31: Web Components and ´Polymer

<paper-ripple> </paper-ripple>

Page 32: Web Components and ´Polymer

<paper-menu-button> </paper-menu-button>

Page 33: Web Components and ´Polymer

<paper-radio-button> </paper-radio-button>

(http://bit.ly/1dBOkyE)

Page 34: Web Components and ´Polymer
Page 35: Web Components and ´Polymer

Join the future!

Page 36: Web Components and ´Polymer

Learn!

polymer-project.org

WebComponents.org

Polycasts by Rob Dodson

Page 37: Web Components and ´Polymer

Build!

Chrome Dev Editor

yeoman.io

polymer-designer.appspot.com/

Page 38: Web Components and ´Polymer

“Your future is whatever you make

it. So make it a good one”

Doc (Back to the future III, 1990)

Page 39: Web Components and ´Polymer

Questions?+MariaClaraSantana1@[email protected]

Page 40: Web Components and ´Polymer