-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
437 lines (351 loc) · 15.2 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
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
<!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>stereopticon</title>
<meta name="description" content="A reveal.js theme slightly inspired by LaTeX/Beamer.">
<meta name="author" content="Erwan Bousse">
<link rel="stylesheet" href="reveal.js/dist/reset.css">
<link rel="stylesheet" href="reveal.js/dist/reveal.css">
<!-- Here we setup the stereopticon theme-->
<link rel="stylesheet" href="stereopticon/stereopticon.css">
<!-- Theme used for syntax highlighting of code -->
<link rel="stylesheet" href="reveal.js/plugin/highlight/monokai.css">
</head>
<body>
<div class="reveal">
<!-- Any section element inside of this container is displayed as a slide -->
<div class="slides">
<section class="title">
<h1>stereopticon</h1>
<div class="subtitle">
A reveal.js theme slightly inspired by LaTeX/Beamer.
</div>
<div class="authors">
<div class="author">
<div class="name">
Erwan Bousse
</div>
<div class="institution">
University of Nantes − LS2N, France
</div>
</div>
<div class="author">
<div class="name">
An imaginary second author
</div>
<div class="institution">
From somewhere
</div>
</div>
</div>
</section>
<section>
<h2>Hello There!</h2>
<h3>Description</h3>
<p>
<em>stereopticon</em> is a <a href="https://github.com/hakimel/../reveal.js/">reveal.js</a> theme
slightly inspired by typical LaTeX/Beamer themes.
</p>
<h3>Some characteristics</h3>
<ul>
<li>Titles of regular slides are rendered at the top.</li>
<li>Left-aligned text.</li>
<li>Fancy <strong>fonts</strong>:</li>
<ul>
<li><em>Yanone Kaffeesatz</em> for titles,</li>
<li><em>Open Sans</em> for regular text.</li>
</ul>
<li>Many extra "helper" CSS classes (for columns, blocks, etc.). </li>
</ul>
</section>
<section>
<h2>Title Page</h2>
<p>The elements of a <strong>title page</strong> can be styled using the following provided CSS classes:</p>
<ul>
<li><code>title</code>, as a class for the reveal/js <code>section</code> (dark background etc.),</li>
<li><code>subtitle</code> for the subtitle element (header font, etc.),</li>
<li><code>authors</code> for the authors block, with inside:
<ul>
<li><code>author</code> to declare an author block,</li>
<li><code>name</code> to name an author inside an <code>author</code> block,</li>
<li><code>institution</code> to give the institution inside an <code>author</code> block,</li>
</ul>
</li>
<li><code>speaker</code> to tag an author's name as the speaker (dashed underline).</li>
</ul>
</section>
<!-- Example of nested vertical slides -->
<section>
<section>
<h2>Vertical Slides</h2>
<p>Vertical slides work as expected.</p>
</section>
<section>
<h2>Basement Level 1</h2>
<p>You can go even deeper!
</p>
</section>
<section>
<h2>Basement Level 2</h2>
<p>That's it, time to go back up.</p>
</section>
</section>
<section class="impact">
<h2>Now for an <strong>impact</strong> slide.</h2>
<p>Can be used for a nice transition.</p>
<p>Enabled with <code>class="impact"</code>.</p>
</section>
<section id="fragments">
<h2>Fragments</h2>
<p>Hit the next arrow...</p>
<p class="fragment">... to step through ...</p>
<p><span class="fragment">... a</span> <span class="fragment">fragmented</span> <span class="fragment">slide.</span></p>
</section>
<section>
<h2>Pretty Code</h2>
<pre><code class="hljs" data-trim data-line-numbers="4,8-11">
import React, { useState } from 'react';
function Example() {
const [count, setCount] = useState(0);
return (
<div>
<p>You clicked {count} times</p>
<button onClick={() => setCount(count + 1)}>
Click me
</button>
</div>
);
}
</code></pre>
<p>Code syntax highlighting courtesy of <a href="http://softwaremaniacs.org/soft/highlight/en/description/">highlight.js</a>.</p>
</section>
<section>
<h2>Longer code snippet</h2>
<pre><code class="hljs">public static void stringMatch(String one, String two) {
boolean match = false;
if (one.charAt(0) == two.charAt(0)) {
System.out.println(match = true); // returns true
} else {
System.out.println(match); // returns false
}
for (int i = 0; i < two.length(); i++) {
int temp = i;
for (int x = 0; x < one.length(); x++) {
if (two.charAt(temp) == one.charAt(x)) {
System.out.println(match = true); //returns true
i = two.length();
}
}
}
int num1 = one.length() - 1;
int num2 = two.length() - 1;
if (one.charAt(num1) == two.charAt(num2)) {
System.out.println(match = true);
} else {
System.out.println(match = false);
}
}</code></pre>
</section>
<section>
<h2>Normal List</h2>
<ul>
<li>No order here</li>
<li>Or here</li>
<li>Or here</li>
<li>Or here, but a sublist:</li>
<ul>
<li>with</li>
<li>different things</li>
</ul>
</ul>
</section>
<section>
<h2>Ordered List</h2>
<ol>
<li>One is smaller than...</li>
<li>Two is smaller than...</li>
<li>Three!</li>
</ol>
</section>
<section>
<h2>Tabular Tables</h2>
<table>
<thead>
<tr>
<th>Item</th>
<th>Value</th>
<th>Quantity</th>
</tr>
</thead>
<tbody>
<tr>
<td>Apples</td>
<td>$1</td>
<td>7</td>
</tr>
<tr>
<td>Lemonade</td>
<td>$2</td>
<td>18</td>
</tr>
<tr>
<td>Bread</td>
<td>$3</td>
<td>2</td>
</tr>
</tbody>
</table>
</section>
<section>
<h2>Block quote</h2>
<p>
A block quote can be declared with <code>blockquote</code>.
</p>
<blockquote cite="http://searchservervirtualization.techtarget.com/definition/Our-Favorite-Technology-Quotations">
For years there has been a theory that millions of monkeys typing at random on millions of
typewriters would
reproduce the entire works of Shakespeare. The Internet has proven this theory to be untrue.
</blockquote>
</section>
<section>
<h2>Columns</h2>
<ul>
<li>
<p>Some <strong>utility CSS classes</strong> are provided, such as <code>col-X</code> (with X a
number between 1 and 12) to declare a column that uses X/12th of the available width.</p>
</li>
<li>
<p>
Columns must be declared within a container that has the <code>columns</code> class.
</p>
</li>
<li>
Example with three columns (each a <code>col-4</code>):
</li>
</ul>
<div class="vspace-20"></div>
<div class="cols">
<div class="col-4">
<h3>First column</h3>
<ul>
<li>
an item
</li>
<li>
an item
</li>
<li>
an item
</li>
</ul>
</div>
<div class="col-4">
<h3>Second column</h3>
<ol>
<li>
an item
</li>
<li>
an item
</li>
<li>
an item
</li>
</ol>
</div>
<div class="col-4">
<h3>Third column</h3>
<ul>
<li>
an item
</li>
<li>
an item
</li>
<li>
an item
</li>
</ul>
</div>
</div>
</section>
<section>
<h2>More columns</h2>
<p>Example with an image:</p>
<div class="cols">
<div class="col-7">
<ul>
<li>On the right is an old <b>stereopticon</b>.</li>
<li>It is a projector from the <b>mid 19th century</b>.</li>
<li>It uses <b>two lenses</b> to be able to transition smoothly from one image to another.</li>
</ul>
</div>
<div class="col-4">
<img src="img/old-stereopticon.jpg">
</div>
</div>
</section>
<section>
<h2>Vertical spacing</h2>
<p>The CSS class <code>vspace-X</code> (with X a number between 1 and 200) can be applied on an element
to add a blank vertical space of X pixels before the element.</p>
<p>It can also be applied to an empty <code>div</code>.</p>
<p class="vspace-150">As an example, this paragraph has a <code>vspace-150</code>!</p>
</section>
<section>
<h2>Blocks</h2>
<p>The CSS class <code>block</code> can be used to put things in blocks.</p>
<div class="block">
<h3>Example of block</h3>
<p>Hello!</p>
</div>
</section>
<section>
<h2>References (1)</h2>
<p>The CSS class <code>references</code> can be used to put references at the bottom of a slide. Each reference must have the <code>reference</code> class.</p>
<p>However there is no clean way yet to cite a reference in the body of the slide.</p>
<div class="references">
<div class="reference">Einstein, Albert. The Meaning of Relativity. Princeton: Princeton University Press, 1923.</div>
<div class="reference">Global Campaign for Education. “Girls Can’t Wait: Why Girls’ Education Matters and How to Make It Happen Now: Briefing Paper for the UN Beijing 10 Review and Appraisal.” Reproductive Health Matters 13, no. 25 (May 2005): 19–22. http://www.jstor.org/stable/3776224.</div>
</div>
</section>
<section>
<h2>References (2)</h2>
<p>The identifiers of references keep incrementing accross slides.</p>
<div class="references">
<div class="reference">Andy Hunt & Dave Thomas. The Pragmatic Programmer: From Journeyman to Master. Addison-Wesley. 1999.</div>
<div class="reference">Erich Gamma, Richard Helm, Ralph Johnson & John Vlissides. Design Patterns: Elements of Reusable Object-Oriented Software. Addison-Wesley. 1994.</div>
</div>
</section>
<section>
<h2>Subtitles</h2>
<div class="subtitle">This is the subtitle of this slide</div>
<p>A slide can have a subtitle by adding an HTML element with the <code>subtitle</code> CSS class right after the <code>h2</code> block.</p>
</section>
</div>
</div>
<script src="reveal.js/dist/reveal.js"></script>
<script src="reveal.js/plugin/markdown/markdown.js"></script>
<script src="reveal.js/plugin/highlight/highlight.js"></script>
<script src="reveal.js/plugin/search/search.js"></script>
<script src="reveal.js/plugin/zoom/zoom.js"></script>
<script src="reveal.js/plugin/notes/notes.js"></script>
<script>
// More info https://github.com/hakimel/reveal.js#configuration
Reveal.initialize({
controls: true,
progress: true,
hash: true,
center: false,
display: 'flex',
width: 1920,
height: 1080,
transition: 'none', // none/fade/slide/convex/concave/zoom
// Learn about plugins: https://revealjs.com/plugins/
plugins: [ RevealMarkdown, RevealHighlight, RevealNotes, RevealSearch ]
});
</script>
</body>
</html>