-
Notifications
You must be signed in to change notification settings - Fork 56
/
Copy pathindex.html
399 lines (390 loc) · 15.4 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
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<title>reveal.js</title>
<link rel="stylesheet" href="dist/reset.css" />
<link rel="stylesheet" href="dist/reveal.css" />
<link rel="stylesheet" href="dist/theme/tokyo-night.css" />
<!-- Theme used for syntax highlighted code -->
<link rel="stylesheet" href="plugin/highlight/tokyo-night.css" />
<link rel="stylesheet" href="plugin/chalkboard/style.css" />
<link rel="stylesheet" href="plugin/customcontrols/style.css" />
<script src="https://cdn.tailwindcss.com"></script>
</head>
<body>
<div class="reveal">
<div class="slides">
<section>
<h1>Beautiful presentations</h1>
<h2>New features</h2>
<ul>
<li>Nerd icons </li>
<li>
<code class="js">
(inline) => code("highlighting")
</code>
</li>
<li>Automatic QR Code generation</li>
<li>and much more!</li>
</ul>
</section>
<section>
<h1>CUSTOM TOKYONIGHT THEME</h1>
<h2 class="fragment">THAT HAS</h2>
<h3 class="fragment">MULTI</h3>
<h4 class="fragment">LEVEL</h4>
<h5 class="fragment">HEADING</h5>
<h6 class="fragment">COLORS</h6>
<h6>
Thanks to this project
<a
href="https://github.com/tcmmichaelb139/obsidian-tokyonight">
</a>
for the colorscheme!
</h6>
</section>
<section>
<section>
<h1>Tailwind CSS</h1>
<div class="grid grid-cols-2 gap-8">
<div>
<h5>Lorem, ipsum.</h5>
<p>
Lorem ipsum dolor sit amet consectetur
adipisicing elit. Error quod fugiat harum
modi laboriosam dignissimos, maxime
possimus? Error, nihil in.
</p>
</div>
<div>
<h5>Lorem, ipsum.</h5>
<p>
Lorem ipsum dolor sit amet consectetur
adipisicing elit. Error quod fugiat harum
modi laboriosam dignissimos, maxime
possimus? Error, nihil in.
</p>
</div>
<div class="col-span-2">
<h5>Lorem, ipsum.</h5>
<p>
Lorem ipsum dolor sit amet consectetur
adipisicing elit. Error quod fugiat harum
modi laboriosam dignissimos, maxime
possimus? Error, nihil in.
</p>
</div>
</div>
</section>
<section>
<h1>Custom classes</h1>
<div class="grid grid-cols-3 gap-8">
<div class="border-r">
<h5>border-r</h5>
<p>
Lorem ipsum dolor sit amet, consectetur
adipisicing elit. Illum, soluta!
</p>
</div>
<div class="border-o">
<h5>border-o</h5>
<p>
Lorem ipsum dolor sit amet, consectetur
adipisicing elit. Illum, soluta!
</p>
</div>
<div class="border-y">
<h5>border-y</h5>
<p>
Lorem ipsum dolor sit amet, consectetur
adipisicing elit. Illum, soluta!
</p>
</div>
</div>
</section>
</section>
<section>
<section data-auto-animate>
<h1>New code highlighting!</h1>
<div>
Now also has Tokyo Night
<code>highlight.js</code>
highlighting implementation
</div>
<pre><code data-trim data-noescape>
var foo = {
bar: function () {
alert("Hello, World!");
}
};
</code></pre>
</section>
<section data-auto-animate>
<h1>New code highlighting!</h1>
<h5>Inline code highlighting is now also supported!</h5>
<p>
Just wrap your code with
<code><code></code>
tag and get highlighting like this
<code class="js">
const foo = () => {return bar}
</code>
!
</p>
</section>
</section>
<section>
<h1>Mermaid for beautiful diagrams!</h1>
<div class="mermaid">
<pre>
erDiagram
CUSTOMER ||--o{ ORDER : ""
CUSTOMER {
string name
string custNumber
string sector
}
ORDER ||--|{ LINE-ITEM : contains
ORDER {
int orderNumber
string deliveryAddress
}
LINE-ITEM {
string productCode
int quantity
float pricePerUnit
}
ORDER ||--|{ STUDENT : contains
STUDENT {
int orderNumber
string deliveryAddress
}
</pre
>
</div>
<h4>
Check documentation
<a href="https://mermaid.js.org/config/usage.html">
here
</a>
!
</h4>
</section>
<section>
<h1>Now supports Nerd font icons!</h1>
<div>Nerdy project that adds icons to font itself</div>
<h6>
Checkout their site for icons like this
<a href="https://www.nerdfonts.com/"></a>
!
</h6>
</section>
<section>
<h1>Now supports automatic QRCode generation!</h1>
<div>
With GoQR you can just add data-type and alt attributes
to your
<code class="html">
<img src="https://goqr.me/" data-type="qrcode" /
>
</code>
tag!
</div>
<img
class="r-stretch"
src="https://goqr.me/"
data-type="qrcode" />
</section>
<section>
<h1>New changes on the way!</h1>
</section>
</div>
</div>
<script src="dist/reveal.js"></script>
<script src="plugin/notes/notes.js"></script>
<script src="plugin/markdown/markdown.js"></script>
<script src="plugin/highlight/highlight.js"></script>
<script src="plugin/qrcode/qrcode.js"></script>
<script src="plugin/mermaid/mermaid.js"></script>
<script src="plugin/chalkboard/plugin.js"></script>
<script src="plugin/customcontrols/plugin.js"></script>
<script>
tailwind.config = {
corePlugins: {
preflight: false,
},
}
</script>
<script>
// More info about initialization & config:
// - https://revealjs.com/initialization/
// - https://revealjs.com/config/
const colors = {
blue0: 'rgb(61, 89, 161)',
blue: 'rgb(122, 162, 247)',
cyan: 'rgb(125, 207, 255)',
magenta: 'rgb(187, 154, 247)',
orange: 'rgb(255, 158, 100)',
yellow: 'rgb(224, 175, 104)',
green: 'rgb(158, 206, 106)',
teal: 'rgb(26, 188, 156)',
red: 'rgb(255, 117, 127)',
red1: 'rgb(219, 75, 75)',
fg: 'rgb(192, 202, 245)',
bg: 'rgb(26, 27, 38)',
transparent: '#00000000',
}
Reveal.initialize({
hash: true,
// Learn about plugins: https://revealjs.com/plugins/
plugins: [
RevealMarkdown,
RevealHighlight,
RevealNotes,
RevealMermaid,
RevealChalkboard,
RevealCustomControls,
],
slideNumber: true,
customcontrols: {
controls: [
{
icon: '<div></div>',
title: 'Clear canvas (DEL)',
action: 'RevealChalkboard.clear();',
},
{
icon: '<div></div>',
title: 'Toggle chalkboard (B)',
action: 'RevealChalkboard.toggleChalkboard();',
},
{
icon: '<div></div>',
title: 'Toggle notes canvas (C)',
action: 'RevealChalkboard.toggleNotesCanvas();',
},
],
},
chalkboard: {
boardmarkerWidth: 5,
boardmarkers: [
{
color: colors.bg,
cursor:
'url(' +
path +
'img/boardmarker-black.png), auto',
},
{
color: colors.fg,
cursor:
'url(' +
path +
'img/boardmarker-black.png), auto',
},
{
color: colors.blue,
cursor:
'url(' +
path +
'img/boardmarker-black.png), auto',
},
{
color: colors.red,
cursor:
'url(' +
path +
'img/boardmarker-black.png), auto',
},
{
color: colors.green,
cursor:
'url(' +
path +
'img/boardmarker-black.png), auto',
},
{
color: colors.yellow,
cursor:
'url(' +
path +
'img/boardmarker-black.png), auto',
},
{
color: colors.teal,
cursor:
'url(' +
path +
'img/boardmarker-black.png), auto',
},
{
color: colors.orange,
cursor:
'url(' +
path +
'img/boardmarker-black.png), auto',
},
],
chalks: [
{
color: colors.bg,
cursor:
'url(' + path + 'img/chalk-white.png), auto',
},
{
color: colors.fg,
cursor:
'url(' + path + 'img/chalk-white.png), auto',
},
{
color: colors.blue,
cursor:
'url(' + path + 'img/chalk-white.png), auto',
},
{
color: colors.red,
cursor:
'url(' + path + 'img/chalk-white.png), auto',
},
{
color: colors.green,
cursor:
'url(' + path + 'img/chalk-white.png), auto',
},
{
color: colors.yellow,
cursor:
'url(' + path + 'img/chalk-white.png), auto',
},
{
color: colors.teal,
cursor:
'url(' + path + 'img/chalk-white.png), auto',
},
{
color: colors.orange,
cursor:
'url(' + path + 'img/chalk-white.png), auto',
},
],
},
mermaid: {
securityLevel: 'loose',
theme: 'dark',
themeVariables: {
darkMode: true,
textColor: colors.fg,
background: colors.bg,
mainBkg: colors.bg,
lineColor: colors.fg,
},
},
})
</script>
</body>
</html>