-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
184 lines (176 loc) · 5.7 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>Polymer</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui">
<link rel="stylesheet" href="css/reveal.css">
<link rel="stylesheet" href="css/theme/beige.css" id="theme">
<!-- Code syntax highlighting -->
<link rel="stylesheet" href="lib/css/zenburn.css">
<script src="bower_components/webcomponentsjs/webcomponents-lite.js"></script>
<script>
/* Forcing shadow dom */
/* See https://www.polymer-project.org/1.0/docs/devguide/settings.html */
window.Polymer = {dom: 'shadow', lazyRegister: true};
</script>
<link rel="import" href="bower_components/polymer/polymer.html">
<link rel="import" href="elements/my-input.html">
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section>
<h1>Polymer</h1>
<h3>Building large Frontends with Webcomponents</h3>
<p>
<small>Created by <a href="mailto:[email protected]">Leandro R. S. Cruz</a></small>
</p>
</section>
<section>
<h3>Custom, Web Components</h3>
<pre><code class="html" data-trim>
<html>
<head/>
<body>
<my-app></my-app>
</body>
</html></code></pre>
</section>
<section _data-background="#4d7e65">
<h3>Custom, Web Components</h3>
<p>
A stack of HTML5 technologies that enable higher componentization of web applications:
</p>
<ol>
<li>Custom Elements</li>
<li>Html Imports</li>
<li>Templates</li>
<li>Shadow Dom</li>
</ol>
<p>
See: <a href="http://webcomponents.org" _style="color: #000">webcomponents.org</a>
</p>
</section>
<section>
<h3>Custom, Web Components</h3>
<pre><code class="js" data-trim>
var MegaButton = document.registerElement('mega-button', {
prototype: Object.create(HTMLButtonElement.prototype),
extends: 'button'
});</code></pre>
</section>
<section _data-background="#9900cc">
<h3>Polymer</h3>
<p>
Why <a href="https://www.polymer-project.org/">polymer</a> ?
</p>
<p>
Polymer is a framework build on top of Web Components that provides an aditional set of custom components
and extra functionality like two way data binding.
</p>
</section>
<section _data-background="#9900cc">
<h3>Polymer</h3>
<p>
Seriously, why?
</p>
<ol>
<li>Mobile and offline support</li>
<li>Highly reusable</li>
<li>Declarative approach</li>
<li>Large set of pre-built components</li>
<li>Good documentation/community</li>
<li>Enables good practices</li>
<li>Modern pipeline and <a href="https://www.polymer-project.org/1.0/tools/overview.html">tooling</a></li>
<li><a href="https://www.google.com/design/spec/material-design/introduction.html">Material Design</a></li>
<li><a href="https://polymerthemes.com/custom-style/">Themeable</a></li>
</ol>
</section>
<section>
<h3>Show Me the Code</h3>
<my-input id="my_input"></my-input>
<div>
<pre><code class="html"><my-input></my-input></code></pre>
</div>
</section>
<section>
<h3>It's just HTML</h3>
<pre><code class="html" data-trim>
<dom-module id="my-input">
<template>
<style>
:host {
display: block;
}
input {
font-size: 16pt;
border: 1px solid purple;
border-radius: 4px;
color: purple;
padding: 8px;
}
</style>
<input id="xxx" value="{{inputValue::input}}">
<p>Hello {{inputValue}}</p>
</template>
</dom-module>
<script>
Polymer({
is: 'my-input'
});
</script>
</code></pre>
</section>
<section>
<h3>No Just Visual Components</h3>
<pre><code data-trim>
<iron-ajax></iron-ajax>
<iron-form></iron-form>
<app-router></app-router>
</code></pre>
<p>
See:
<br/>
<a href="https://elements.polymer-project.org/">elements.polymer-project.org</a>
<br>
<a href="https://customelements.io">customelements.io</a>
<br/>
<a href="https://github.com/vaadin">github.com/vaadin</a>
<br/>
<a href="https://builtwithpolymer.org/">builtwithpolymer.org</a>
</p>
</section>
<section>
<h3>Get Started</h3>
<a href="https://developers.google.com/web/tools/polymer-starter-kit/">Polymer Starter Kit</a>
<br/>
<a href="https://www.youtube.com/watch?v=594LXGtorYE&list=PLmccrGoe3AUDPa-DeKlVimmrkU5gUlImC">Polycasts</a>
</section>
</div>
</div>
<script src="lib/js/head.min.js"></script>
<script src="js/reveal.js"></script>
<script>
// Full list of configuration options available at:
// https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
history: true,
center: true,
transition: 'slide', // none/fade/slide/convex/concave/zoom
// Optional reveal.js plugins
dependencies: [
{ src: 'lib/js/classList.js', condition: function() { return !document.body.classList; } },
// { src: 'plugin/markdown/marked.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
// { src: 'plugin/markdown/markdown.js', condition: function() { return !!document.querySelector( '[data-markdown]' ); } },
{ src: 'plugin/highlight/highlight.js', async: true, callback: function() { hljs.initHighlightingOnLoad(); } },
{ src: 'plugin/zoom-js/zoom.js', async: true },
{ src: 'plugin/notes/notes.js', async: true }
]
});
</script>
</body>
</html>