-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.html
290 lines (255 loc) · 8.37 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
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
<!DOCTYPE html>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no, minimal-ui" />
<meta name="theme-color" content="#FF2A69" />
<meta property="og:title" content="Slide'm Slide Deck" />
<meta property="og:locale" content="en_US" />
<meta name="description" content="Slide'm - Web Components you can use to write your slide deck in HTML" />
<meta property="og:description" content="Slide'm - Web Components you can use to write your slide deck in HTML" />
<link rel="canonical" href="https://slidem.ruphin.net/" />
<meta property="og:url" content="https://slidem.ruphin.net/" />
<meta property="og:site_name" content="Slide'm Slide Deck" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:700" />
<script type="module">
import '../slidem-deck.js';
import '../slidem-slide.js';
import '../slidem-video-slide.js';
</script>
<style>
:root {
--primary: #ff2a69;
background: var(--primary);
}
slidem-deck[loading] {
opacity: 0;
}
</style>
<slidem-deck font="Open Sans Condensed" loading>
<slidem-slide center in="slide" background="--primary">
<h1 uppercase fit line-height="0.8" color="black">Slide'm</h1>
<p uppercase fit color="black">Presentation Library</p>
<p uppercase fit color="white">So you can write your decks in html</p>
<p uppercase center font-size="78px" line-height="1.8" color="black">
<a href="https://github.com/ruphin/slidem">View on GitHub</a>
</p>
<p center font-size="78px" color="white">Right Arrow or Swipe Left to Begin!</p>
</slidem-slide>
<slidem-slide center in="slide" out="slide" background="black">
<div center>
<img src="/images/what.png" />
</div>
<p line-height="1.3" uppercase fit color="--primary">Wait what?</p>
</slidem-slide>
<slidem-slide center in="zoom" out="zoom" background="--primary">
<div center>
<img src="/images/codeSample.png" />
</div>
</slidem-slide>
<slidem-slide center in="fade" background="--primary">
<h2 fit uppercase fit center color="black">Smooth transitions</h2>
<p center uppercase font-size="168px" line-height="1.7" color="white">slide - fade - zoom</p>
</slidem-slide>
<slidem-slide center in="slide" out="slide" darken-background=".75" background="/images/streetView.jpg">
<p fit uppercase color="--primary">Full width</p>
<p fit uppercase reveal color="white">Adjustable darkness</p>
<p fit uppercase reveal color="--primary">Background imagery</p>
</slidem-slide>
<slidem-speaker-slide>
<h2 slot="title">Custom Slides</h2>
<p slot="subtitle" reveal>Design with HTML and CSS</p>
<p slot="name">Goffert van Gool</p>
<a slot="email">[email protected]</a>
<a slot="social">@ruphin_</a>
<p slot="event">Polymer Summit Copenhagen 2017</p>
<img slot="logo" src="/images/polymer.png" alt="Polymer Logo">
<img slot="avatar" src="/images/avatar.jpg" alt="Goffert looking up and to the side, outside in downtown Copenhagen on a sunny day">
</slidem-speaker-slide>
<slidem-slide center in="slide" darken-background=".8" background="/images/presenter.jpg">
<h2 uppercase font-size="158px" line-height="1.8" color="white">Other features include</h2>
<p uppercase font-size="118px" line-height="1.3" color="white">- Presenter Mode (press p)</p>
<p uppercase font-size="118px" line-height="1.3" color="white">- Fullscreen video</p>
<p uppercase font-size="118px" line-height="1.3" color="white">- Inline text styling</p>
</slidem-slide>
<slidem-video-slide center in="fade" out="slide" fullscreen muted video="/videos/presenter.mp4"></slidem-video-slide>
<slidem-slide center background="white">
<p fit color="--primary" uppercase>
Install
<span color="black">
<a href="https://www.npmjs.com/package/slidem">With NPM</a>
</span>
</p>
<p fit color="--primary" uppercase>
Check
<span color="black">
<a href="https://github.com/ruphin/slidem">The source</a>
</span>
</p>
<p fit color="--primary" uppercase>
Read
<span color="black">
<a href="https://github.com/ruphin/slidem/blob/master/README.md">The Docs</a>
</span>
</p>
</slidem-slide>
</slidem-deck>
<template id="speaker-slide-template">
<div class="introSlide">
<div class="side">
<div class="avatar"><slot name="avatar"></slot></div>
<div class="speakerDetails">
<slot name="speaker"></slot>
<div>
<slot name="email"></slot>
</div>
<div>
<slot name="twitter"></slot>
</div>
</div>
<div class="logo">
<slot name="logo"></slot>
</div>
</div>
<div class="event">
<slot name="event"></slot>
</div>
<slot name="title"></slot>
<slot name="subtitle"></slot>
</div>
</template>
<template id="speaker-slide-style">
<style>
#container::before {
content: '';
display: block;
position: absolute;
top: 0;
left: 0;
right: 0;
height: 34px;
background: rgba(0, 0, 0, 0.2);
}
:host {
background: #2e9be6;
font-family: 'Roboto';
}
.introSlide {
overflow: hidden;
border-bottom: 3px solid white;
color: white;
position: relative;
height: 100%;
}
.topShade {
position: absolute;
top: 0;
left: 0;
right: 0;
height: 34px;
background: rgba(0, 0, 0, 0.2);
}
.introSlide .event {
position: absolute;
bottom: 26px;
left: 0;
}
.introSlide .event ::slotted([slot="event"]) {
margin: 0;
font-size: 24px;
letter-spacing: 1px;
font-weight: 700;
}
.introSlide .side {
position: absolute;
right: 0;
width: 340px;
height: 100%;
display: flex;
flex-flow: column;
justify-content: flex-end;
}
.introSlide .side * {
flex-shrink: 0;
}
.introSlide .avatar {
height: 340px;
width: 340px;
border-radius: 50%;
overflow: hidden;
margin-bottom: 56px;
}
.introSlide ::slotted([slot="avatar"]) {
max-width: 340px;
}
.introSlide .speakerDetails {
border-top: 3px solid white;
padding-top: 50px;
padding-bottom: 30px;
}
.introSlide .speakerDetails ::slotted([slot="speaker"]) {
font-weight: 400;
margin-top: 0;
margin-bottom: 20px;
font-size: 32px;
letter-spacing: 1px;
}
.introSlide .speakerDetails div {
margin-bottom: 20px;
}
.introSlide .speakerDetails div ::slotted([slot="email"]),
.introSlide .speakerDetails div ::slotted([slot="twitter"]) {
color: white;
font-weight: 500;
font-size: 28px;
letter-spacing: 1px;
}
.introSlide .logo {
display: flex;
justify-content: center;
align-items: center;
height: 260px;
background-color: white;
}
.introSlide .logo ::slotted([slot="logo"]) {
max-height: 200px;
max-width: 300px;
background-position: center;
background-size: contain;
}
.introSlide ::slotted([slot="title"]) {
margin-top: 190px;
margin-bottom: 0;
font-weight: 500;
font-size: 150px;
color: white;
letter-spacing: 2px;
}
.introSlide ::slotted([slot="subtitle"]) {
display: inline-block;
margin-top: 40px;
font-weight: 400;
font-size: 100px;
letter-spacing: 2px;
color: white;
padding-top: 40px;
border-top: 3px solid white;
}
</style>
</template>
<script type="module">
import {SlidemSlide} from '../slidem-slide.js';
const fontLink = document.createElement('link');
fontLink.href = 'https://fonts.googleapis.com/css?family=Roboto:400,500,700';
fontLink.rel = 'stylesheet';
document.head.appendChild(fontLink);
const template = document.getElementById('speaker-slide-template');
const style = (document.getElementById('speaker-slide-style').content.querySelector('style'))
const sheet = new CSSStyleSheet();
sheet.replaceSync(style.textContent);
customElements.define('slidem-speaker-slide', class SlidemSpeakerSlide extends SlidemSlide {
constructor() {
super();
this.shadowRoot.getElementById('content').append(template.content.cloneNode(true));
this.shadowRoot.adoptedStyleSheets = [...this.shadowRoot.adoptedStyleSheets, sheet];
}
});
</script>