-
Notifications
You must be signed in to change notification settings - Fork 0
/
Keynote.vue
290 lines (247 loc) · 6.96 KB
/
Keynote.vue
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
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
<template lang="html">
<Keynote @keydown.alt.meta.up="fullscreen" tabindex="1">
<AuthorSlide name="Rahul Kadyan" v-bind="{ photo }" animation="slide-in-right">
<small>Vue.js Core Team Member</small>
|
<small>Developer @ Scalex</small>
</AuthorSlide>
<TitleSlide title="A First Day Guide" animation="slide-in-right">
Quick introduction to Vue.js
</TitleSlide>
<PhotoTitleSlide title="Contents" right vertical
photo="https://cdn.meme.am/cache/instances/folder561/500x/72732561.jpg"
animation="slide-in-right">
<ul class="d-inline-block text-left">
<li>Why?</li>
<li>What?</li>
<li>How?</li>
<li>And...</li>
</ul>
</PhotoTitleSlide>
<TitleSlide title="Why Vue.js?" animation="slide-in-right">
<h1>Simplicity</h1>
<h2>Learning Curve</h2>
<h3>Progressive</h3>
<h4>Incrementally Adoptable</h4>
<h5>Performance</h5>
<h5>
<small>SPA</small>
</h5>
</TitleSlide>
<Slide class="center" animation="slide-in-bottom">
<h3>https://about.gitlab.com/2016/10/20/<b class="text-primary">why-we-chose-vue</b>/</h3>
</Slide>
<TitleSlide title="What does Vue.js offers?" animation="slide-in-right">
<ul class="d-inline-block text-left">
<li>Reactive Interfaces</li>
<li>Declarative Rendering</li>
<li>Data Binding</li>
<li>Directives</li>
<li>Template Logic</li>
<li>Components</li>
</ul>
<ul class="d-inline-block text-left">
<li>Event Handling</li>
<li>Computed Properties</li>
<li>Transitions & Animations</li>
<li>Filters</li>
<li>Single File Components</li>
<li>Mixins</li>
</ul>
</TitleSlide>
<TitleSlide title="Reactive Interfaces" animation="slide-in-bottom">
</TitleSlide>
<TitleSlide title="Declarative Rendering" animation="slide-in-bottom"/>
<TitleSlide title="Declarative Rendering" animation="slide-in-bottom">
<Markdown v-pre>
```html
<div>Hello {{ name }}</div>
```
</Markdown>
<Markdown>
```jsx
render () {
return (<div>Hello {this.name}</div>)
}
```
</Markdown>
<Markdown>
```js
render (h) {
return h('div', 'Hello ' + this.name)
}
```
</Markdown>
</TitleSlide>
<TitleSlide title="Directives" animation="slide-in-bottom"/>
<TitleSlide title="Directives" animation="slide-in-bottom">
<Markdown v-pre>
```html
<div v-show="foo">Hello</div>
```
```html
v-name:argument.modifier1.modifier2="expression"
```
</Markdown>
</TitleSlide>
<TitleSlide title="Data Binding" animation="slide-in-bottom"/>
<TitleSlide title="Data Binding" animation="slide-in-bottom">
<Markdown v-pre>
```html
<input id="app" v-bind:class="style" v-model="name">
```
```js
new Vue({
el: '#app',
data: () => ({
style: 'red',
name: 'John Doe'
})
})
```
</Markdown>
</TitleSlide>
<TitleSlide title="Template Logic" animation="slide-in-bottom"/>
<TitleSlide title="Template Logic" animation="slide-in-bottom">
<Markdown v-pre>
```html
<div v-if="x > 0">None<div>
<div v-else-if="x === 1">One<div>
<div v-else>Many<div>
```
```html
<div v-for="i in 5">{{ i }}<div>
```
</Markdown>
</TitleSlide>
<TitleSlide title="Components" animation="slide-in-bottom"/>
<TitleSlide title="Components" animation="slide-in-bottom">
<Markdown v-pre>
```js
Vue.component('name-component', {
template: `
<div>My name is {{ name }}.</div>
`,
props: ['name']
})
```
```html
<name-component name="John Doe"></name-component>
```
</Markdown>
</TitleSlide>
<TitleSlide title="Event Handling" animation="slide-in-bottom"/>
<TitleSlide title="Event Handling" animation="slide-in-bottom">
<Markdown v-pre>
```html
Clicks: {{ count }}
<button v-on:click="count++">Click Me</button>
```
</Markdown>
</TitleSlide>
<TitleSlide title="Computed Properties & Watchers" animation="slide-in-bottom"/>
<TitleSlide title="Computed Properties" animation="slide-in-bottom">
<Markdown v-pre>
```js
...
data: () => ({ first_name: 'John', last_name: 'Doe' }),
computed: {
name () {
return this.first_name + ' ' + this.last_name // John Doe
}
}
```
</Markdown>
</TitleSlide>
<TitleSlide title="Watchers" animation="slide-in-bottom">
<Markdown v-pre>
```js
...
data: () => ({ name: 'John Doe', first_name: '', last_name: '' }),
watch: {
name (value) {
const parts = value.split(' ')
this.first_name = parts.shift()
this.last_name = parts.join(' ')
}
}
```
</Markdown>
</TitleSlide>
<TitleSlide title="Filters" animation="slide-in-bottom"/>
<TitleSlide title="Filters" animation="slide-in-bottom">
<Markdown v-pre>
```html
{{ name | uppercase }}
```
</Markdown>
</TitleSlide>
<TitleSlide title="Single File Components" animation="slide-in-bottom"/>
<TitleSlide title="Mixins" animation="slide-in-bottom"/>
<TitleSlide title="How?" animation="slide-in-right"/>
<TitleSlide title="Resources & Tutorials" animation="slide-in-bottom">
<h1>vuejs.org</h1>
<h2>Laracasts</h2>
</TitleSlide>
<TitleSlide title="Questions & Discussions" animation="slide-in-bottom">
<h1>forum.vuejs.org</h1>
<h2>gitter.im/vuejs/vue</h2>
<h3>vue.js tag on stackoverflow</h3>
</TitleSlide>
<TitleSlide title="News & Updates" animation="slide-in-bottom">
<h1>medium.com/the-vue-point</h1>
<h2>@vuejs</h2>
<h3>vue-newsletter</h3>
</TitleSlide>
<TitleSlide title="And..." animation="slide-in-right"/>
<TitleSlide title="Vuex">
State Management
</TitleSlide>
<TitleSlide title="Vue Router">
Routing
</TitleSlide>
<TitleSlide title="Vue Devtools">
Chrome devtools extension
</TitleSlide>
<TitleSlide title="Vue CLI">
Project scaffolding & building
</TitleSlide>
</Keynote>
</template>
<script lang="babel">
import 'prismjs/components/prism-jsx'
import photo from './assets/author.jpg'
export default {
name: 'A-First-Day-Guide',
data: () => ({}),
computed: {
photo: () => photo
},
mounted () {
document.title = 'A First Day Guide'
}
}
</script>
<style lang="scss">
@import './node_modules/vue-keynote/dist/vue-keynote.css';
@import './node_modules/prismjs/themes/prism.css';
html, body {
font-size: 24px;
}
.text-left {
text-align: left;
}
.text-primary {
color: #41b883;
}
.d-inline-block {
display: inline-block !important;
}
.slide.slide-photo-title.vertical .photo {
height: 100% !important;
object-fit: contain;
}
.no-margin {
padding: 0 !important;
}
</style>