slidev-theme-neversink 0.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/.github/workflows/deploy.yml +67 -0
  2. package/.prettierrc +15 -0
  3. package/.vscode/settings.json +4 -0
  4. package/LICENSE +21 -0
  5. package/README.md +112 -0
  6. package/assets/nyu_long_black_on_white.svg +41 -0
  7. package/components/Admonition.vue +80 -0
  8. package/components/AdmonitionType.vue +56 -0
  9. package/components/CreditScroll.vue +94 -0
  10. package/components/SpeechBubble.vue +294 -0
  11. package/components/StickyNote.vue +71 -0
  12. package/components/vue3-kawaii/README.md +5 -0
  13. package/components/vue3-kawaii/components/backpack/BackPack.vue +123 -0
  14. package/components/vue3-kawaii/components/backpack/backpackpaths.js +17 -0
  15. package/components/vue3-kawaii/components/browser/Browser.vue +56 -0
  16. package/components/vue3-kawaii/components/browser/browserpaths.js +9 -0
  17. package/components/vue3-kawaii/components/cat/Cat.vue +89 -0
  18. package/components/vue3-kawaii/components/cat/catpaths.js +8 -0
  19. package/components/vue3-kawaii/components/common/face/Face.vue +95 -0
  20. package/components/vue3-kawaii/components/common/face/facepaths.js +24 -0
  21. package/components/vue3-kawaii/components/common/wrapper/Wrapper.vue +24 -0
  22. package/components/vue3-kawaii/components/creditCard/CreditCard.vue +47 -0
  23. package/components/vue3-kawaii/components/creditCard/creditcardpaths.js +8 -0
  24. package/components/vue3-kawaii/components/ghost/Ghost.vue +48 -0
  25. package/components/vue3-kawaii/components/ghost/ghostpaths.js +8 -0
  26. package/components/vue3-kawaii/components/iceCream/IceCream.vue +49 -0
  27. package/components/vue3-kawaii/components/iceCream/icecreampaths.js +9 -0
  28. package/components/vue3-kawaii/components/mug/Mug.vue +48 -0
  29. package/components/vue3-kawaii/components/mug/mugpaths.js +7 -0
  30. package/components/vue3-kawaii/components/planet/Planet.vue +58 -0
  31. package/components/vue3-kawaii/components/planet/planetpaths.js +7 -0
  32. package/components/vue3-kawaii/components/speechBubble/SpeechBubbleGuy.vue +63 -0
  33. package/components/vue3-kawaii/components/speechBubble/speechbubblepaths.js +8 -0
  34. package/components/vue3-kawaii/utils/getUniqueId.js +10 -0
  35. package/docs/.vitepress/config.js +75 -0
  36. package/docs/.vitepress/theme/index.js +50 -0
  37. package/docs/.vitepress/theme/style.css +145 -0
  38. package/docs/api-examples.md +49 -0
  39. package/docs/branding.md +43 -0
  40. package/docs/colors.md +108 -0
  41. package/docs/components/admonitions.md +106 -0
  42. package/docs/components/creditscroll.md +1 -0
  43. package/docs/components/kawaii.md +26 -0
  44. package/docs/components/qrcode.md +24 -0
  45. package/docs/components/speechbubble.md +69 -0
  46. package/docs/components/stickynote.md +54 -0
  47. package/docs/components.md +19 -0
  48. package/docs/contributing.md +5 -0
  49. package/docs/customizing.md +38 -0
  50. package/docs/getting-started.md +32 -0
  51. package/docs/index.md +19 -0
  52. package/docs/layouts/cover.md +69 -0
  53. package/docs/layouts/credits.md +111 -0
  54. package/docs/layouts/default.md +88 -0
  55. package/docs/layouts/full.md +131 -0
  56. package/docs/layouts/intro.md +63 -0
  57. package/docs/layouts/quote.md +51 -0
  58. package/docs/layouts/section.md +67 -0
  59. package/docs/layouts/side-title.md +180 -0
  60. package/docs/layouts/top-title-two-cols.md +171 -0
  61. package/docs/layouts/top-title.md +103 -0
  62. package/docs/layouts/two-cols-title.md +273 -0
  63. package/docs/layouts.md +92 -0
  64. package/docs/markdown-examples.md +85 -0
  65. package/docs/markdown.md +87 -0
  66. package/docs/parts/columnsystem.md +18 -0
  67. package/docs/parts/layoutpicker.md +73 -0
  68. package/docs/public/deck.png +0 -0
  69. package/docs/public/layouts/side-title-12row.svg +27 -0
  70. package/docs/public/layouts/side-title-is-3.svg +7 -0
  71. package/docs/public/layouts/side-title-is-6.svg +7 -0
  72. package/docs/public/layouts/side-title-side.svg +13 -0
  73. package/docs/public/layouts/two-col-title-12row.svg +31 -0
  74. package/docs/public/layouts/two-col-title-align.svg +13 -0
  75. package/docs/public/layouts/two-col-title-is-4.svg +23 -0
  76. package/docs/public/layouts/two-col-title-is-6.svg +23 -0
  77. package/docs/public/layouts/two-col-title-titlepos.svg +31 -0
  78. package/docs/public/screenshots/1.png +0 -0
  79. package/docs/public/screenshots/10.png +0 -0
  80. package/docs/public/screenshots/11.png +0 -0
  81. package/docs/public/screenshots/12.png +0 -0
  82. package/docs/public/screenshots/13.png +0 -0
  83. package/docs/public/screenshots/14.png +0 -0
  84. package/docs/public/screenshots/15.png +0 -0
  85. package/docs/public/screenshots/16.png +0 -0
  86. package/docs/public/screenshots/17.png +0 -0
  87. package/docs/public/screenshots/18.png +0 -0
  88. package/docs/public/screenshots/19.png +0 -0
  89. package/docs/public/screenshots/2.png +0 -0
  90. package/docs/public/screenshots/20.png +0 -0
  91. package/docs/public/screenshots/21.png +0 -0
  92. package/docs/public/screenshots/22.png +0 -0
  93. package/docs/public/screenshots/23.png +0 -0
  94. package/docs/public/screenshots/24.png +0 -0
  95. package/docs/public/screenshots/25.png +0 -0
  96. package/docs/public/screenshots/26.png +0 -0
  97. package/docs/public/screenshots/27.png +0 -0
  98. package/docs/public/screenshots/28.png +0 -0
  99. package/docs/public/screenshots/29.png +0 -0
  100. package/docs/public/screenshots/3.png +0 -0
  101. package/docs/public/screenshots/30.png +0 -0
  102. package/docs/public/screenshots/31.png +0 -0
  103. package/docs/public/screenshots/32.png +0 -0
  104. package/docs/public/screenshots/33.png +0 -0
  105. package/docs/public/screenshots/34.png +0 -0
  106. package/docs/public/screenshots/35.png +0 -0
  107. package/docs/public/screenshots/36.png +0 -0
  108. package/docs/public/screenshots/37.png +0 -0
  109. package/docs/public/screenshots/38.png +0 -0
  110. package/docs/public/screenshots/4.png +0 -0
  111. package/docs/public/screenshots/5.png +0 -0
  112. package/docs/public/screenshots/6.png +0 -0
  113. package/docs/public/screenshots/7.png +0 -0
  114. package/docs/public/screenshots/8.png +0 -0
  115. package/docs/public/screenshots/9.png +0 -0
  116. package/example.md +1503 -0
  117. package/layoutHelper.ts +118 -0
  118. package/layouts/cover.vue +93 -0
  119. package/layouts/credits.vue +35 -0
  120. package/layouts/default.vue +18 -0
  121. package/layouts/four-cell.vue +210 -0
  122. package/layouts/full.vue +22 -0
  123. package/layouts/intro.vue +75 -0
  124. package/layouts/quote.vue +62 -0
  125. package/layouts/section.vue +84 -0
  126. package/layouts/side-title.vue +142 -0
  127. package/layouts/top-title-two-cols.vue +131 -0
  128. package/layouts/top-title.vue +63 -0
  129. package/layouts/two-cols-title.vue +176 -0
  130. package/layouts/two-cols.vue +141 -0
  131. package/package.json +54 -0
  132. package/public/images/photo.png +0 -0
  133. package/public/images/photo2.png +0 -0
  134. package/public/images/scatter1.png +0 -0
  135. package/public/images/scatter1.svg +20 -0
  136. package/screenshot.md +874 -0
  137. package/setup/main.ts +45 -0
  138. package/setup/shiki.ts +14 -0
  139. package/slide-bottom.vue +107 -0
  140. package/styles/base.css +240 -0
  141. package/styles/bubbles.css +4 -0
  142. package/styles/colors.css +12 -0
  143. package/styles/index.ts +11 -0
  144. package/styles/layouts.css +76 -0
  145. package/styles/stickynote.css +4 -0
  146. package/uno.config.ts +222 -0
  147. package/vite.config.ts +16 -0
package/example.md ADDED
@@ -0,0 +1,1503 @@
1
+ ---
2
+ colorSchema: light
3
+ layout: cover
4
+ routerMode: hash
5
+ title: Base Template
6
+ theme: ./
7
+ neversink_string: "Neversink Example Deck"
8
+ ---
9
+
10
+ # Neversink
11
+
12
+ A [Slidev](https://sli.dev) theme designed by **Todd Gureckis**
13
+ <div class="iconlink">
14
+
15
+ _New York University_ <a href="https://todd.gureckislab.org" class="iconlink"><mdi-open-in-new /></a>
16
+ </div>
17
+
18
+
19
+
20
+ ---
21
+ layout: side-title
22
+ color: amber
23
+ align : rm-lm
24
+ ---
25
+
26
+ :: title ::
27
+
28
+ # Slidev Neversink Theme
29
+
30
+ :: content ::
31
+
32
+ Neversink is theme for education and academic presentations. It is designed to be bright, flat, minimal, and easy to read. It is based on the default Slidev theme but with some additional features and color schemes that have reference in the [metropolis](https://github.com/matze/mtheme) Beamer theme among others.
33
+
34
+ It is named for the [Neversink River](https://en.wikipedia.org/wiki/Neversink_River) for absolutely no discernable reason.
35
+
36
+ ---
37
+ layout: default
38
+ ---
39
+
40
+ # Why use it?
41
+
42
+
43
+ - Neversink has several configurable ==layouts== that build upon the Slidev defaults and which make it easier to quickly throw together common slide layouts without having to write a lot of custom CSS/HTML.
44
+
45
+ - It has a variety of ==color themes== to choose from that make your visual identity more coherent.
46
+
47
+
48
+ - It also has some whimsical elements like movie-style scrolling credits, animated speech bubbles, and admonitions that make your presentations more memorable.
49
+
50
+ - It strives to be well documented and easy to use!
51
+
52
+
53
+ You can find the source code on [GitHub](http://github.com/gureckis/slidev-theme-neversink).
54
+
55
+ ---
56
+ layout: default
57
+ ---
58
+
59
+ # How to install
60
+
61
+
62
+ The theme depends on Slidev. So you need to have that [installed first](https://sli.dev/guide/install). Then you can install the theme with npm:
63
+
64
+ ```bash
65
+ npm install slidev-theme-neversink
66
+ ```
67
+
68
+ Then create a slidev markdown file (e.g., `slides.md`) and add the theme to the frontmatter of your first slide:
69
+
70
+ ```md
71
+ ---
72
+ theme: neversink
73
+ ---
74
+ ```
75
+
76
+ Then you are basically ready to go!
77
+
78
+
79
+ ---
80
+ layout: default
81
+ ---
82
+
83
+ # Color schemes
84
+
85
+
86
+ Let's start with colors.
87
+
88
+ The project uses tailwind-like color schemes arranged in ==monochromatic pairs==. These boxes show the options and names:
89
+
90
+ **B&W**:
91
+
92
+ <span class="text-white bg-black p-1 pl-3 pr-3 m-1 rounded font-size-3">black</span>
93
+ <span class="text-black bg-white border-1 border-solid border-black p1 pl-3 pr-3 m-1 rounded font-size-3">white</span>
94
+ <span class="text-gray-100 bg-gray-800 p1 pl-3 pr-3 m-1 rounded font-size-3">dark</span>
95
+ <span class="text-gray-800 bg-gray-100 p1 pl-3 pr-3 m-1 rounded font-size-3">light</span>
96
+
97
+ **Light**:
98
+
99
+ <span class="bg-slate-100 text-slate-500 p1 pl-3 pr-3 m-1 rounded font-size-3">slate-light</span>
100
+ <span class="bg-gray-100 text-gray-500 p1 pl-3 pr-3 m-1 rounded font-size-3">gray-light</span>
101
+ <span class="bg-zinc-100 text-zinc-500 p1 pl-3 pr-3 m-1 rounded font-size-3">zinc-light</span>
102
+ <span class="bg-neutral-100 text-neutral-500 p1 pl-3 pr-3 m-1 rounded font-size-3">neutral-light</span>
103
+ <span class="bg-stone-100 text-stone-500 p1 pl-3 pr-3 m-1 rounded font-size-3">stone-light</span>
104
+ <span class="bg-red-100 text-red-500 p1 pl-3 pr-3 m-1 rounded font-size-3">red-light</span>
105
+ <span class="bg-orange-100 text-orange-500 p1 pl-3 pr-3 m-1 rounded font-size-3">orange-light</span>
106
+ <span class="bg-amber-100 text-amber-500 p1 pl-3 pr-3 m-1 rounded font-size-3">amber-light</span>
107
+ <span class="bg-yellow-100 text-yellow-500 p1 pl-3 pr-3 m-1 rounded font-size-3">yellow-light</span><br />
108
+ <span class="bg-lime-100 text-lime-500 p1 pl-3 pr-3 m-1 rounded font-size-3">lime-light</span>
109
+ <span class="bg-green-100 text-green-500 p1 pl-3 pr-3 m-1 rounded font-size-3">green-light</span>
110
+ <span class="bg-emerald-100 text-emerald-500 p1 pl-3 pr-3 m-1 rounded font-size-3">emerald-light</span>
111
+ <span class="bg-teal-100 text-teal-500 p1 pl-3 pr-3 m-1 rounded font-size-3">teal-light</span>
112
+ <span class="bg-cyan-100 text-cyan-500 p1 pl-3 pr-3 m-1 rounded font-size-3">cyan-light</span>
113
+ <span class="bg-sky-100 text-sky-500 p1 pl-3 pr-3 m-1 rounded font-size-3">sky-light</span>
114
+ <span class="bg-blue-100 text-blue-500 p1 pl-3 pr-3 m-1 rounded font-size-3">blue-light</span>
115
+ <span class="bg-indigo-100 text-indigo-500 p1 pl-3 pr-3 m-1 rounded font-size-3">indigo-light</span>
116
+ <span class="bg-violet-100 text-violet-500 p1 pl-3 pr-3 m-1 rounded font-size-3">violet-light</span><br />
117
+ <span class="bg-purple-100 text-purple-500 p1 pl-3 pr-3 m-1 rounded font-size-3">purple-light</span>
118
+ <span class="bg-pink-100 text-pink-500 p1 pl-3 pr-3 m-1 rounded font-size-3">pink-light</span>
119
+ <span class="bg-rose-100 text-rose-500 p1 pl-3 pr-3 m-1 rounded font-size-3">rose-light</span>
120
+ <span class="bg-fuchsia-100 text-fuchsia-500 p1 pl-3 pr-3 m-1 rounded font-size-3">fuchsia-light</span>
121
+ <span class="bg-gray-50 text-navy-900 p1 pl-3 pr-3 m-1 rounded font-size-3">navy-light</span>
122
+
123
+ **Regular**:
124
+
125
+ <span class="bg-slate-500 text-slate-100 p1 pl-3 pr-3 m-1 rounded font-size-3">slate</span>
126
+ <span class="bg-gray-500 text-gray-100 p1 pl-3 pr-3 m-1 rounded font-size-3">gray</span>
127
+ <span class="bg-zinc-500 text-zinc-100 p1 pl-3 pr-3 m-1 rounded font-size-3">zinc</span>
128
+ <span class="bg-neutral-500 text-neutral-100 p1 pl-3 pr-3 m-1 rounded font-size-3">neutral</span>
129
+ <span class="bg-stone-500 text-stone-100 p1 pl-3 pr-3 m-1 rounded font-size-3">stone</span>
130
+ <span class="bg-red-500 text-red-100 p1 pl-3 pr-3 m-1 rounded font-size-3">red</span>
131
+ <span class="bg-orange-500 text-orange-100 p1 pl-3 pr-3 m-1 rounded font-size-3">orange</span>
132
+ <span class="bg-amber-500 text-amber-100 p1 pl-3 pr-3 m-1 rounded font-size-3">amber</span>
133
+ <span class="bg-yellow-500 text-yellow-100 p1 pl-3 pr-3 m-1 rounded font-size-3">yellow</span>
134
+ <span class="bg-lime-500 text-lime-100 p1 pl-3 pr-3 m-1 rounded font-size-3">lime</span>
135
+ <span class="bg-green-500 text-green-100 p1 pl-3 pr-3 m-1 rounded font-size-3">green</span>
136
+ <span class="bg-emerald-500 text-emerald-100 p1 pl-3 pr-3 m-1 rounded font-size-3">emerald</span>
137
+ <span class="bg-teal-500 text-teal-100 p1 pl-3 pr-3 m-1 rounded font-size-3">teal</span>
138
+ <span class="bg-cyan-500 text-cyan-100 p1 pl-3 pr-3 m-1 rounded font-size-3">cyan</span><br/>
139
+ <span class="text-gray-300 bg-navy-900 p1 pl-3 pr-3 m-1 rounded font-size-3">navy</span>
140
+ <span class="bg-sky-500 text-sky-100 p1 pl-3 pr-3 m-1 rounded font-size-3">sky</span>
141
+ <span class="bg-blue-500 text-blue-100 p1 pl-3 pr-3 m-1 rounded font-size-3">blue</span>
142
+ <span class="bg-indigo-500 text-indigo-100 p1 pl-3 pr-3 m-1 rounded font-size-3">indigo</span>
143
+ <span class="bg-violet-500 text-violet-100 p1 pl-3 pr-3 m-1 rounded font-size-3">violet</span>
144
+ <span class="bg-purple-500 text-purple-100 p1 pl-3 pr-3 m-1 rounded font-size-3">purple</span>
145
+ <span class="bg-pink-500 text-pink-100 p1 pl-3 pr-3 m-1 rounded font-size-3">pink</span>
146
+ <span class="bg-rose-500 text-rose-100 p1 pl-3 pr-3 m-1 rounded font-size-3">rose</span>
147
+ <span class="bg-fuchsia-500 text-fuchsia-100 p1 pl-3 pr-3 m-1 rounded font-size-3">fuchsia</span>
148
+
149
+
150
+ ---
151
+ layout: default
152
+ ---
153
+
154
+ # Color schemes
155
+
156
+ In many parts of the theme you can use the color schemes to help choose matching colors for your slides. For example, we can make a slide with a sticky note using the `rose-light` color scheme, the `sky` color scheme, or the `amber-light` color scheme:
157
+
158
+ <StickyNote color="rose-light" textAlign="left" width="180px" v-drag="[122,253,180,180,-14]">
159
+
160
+ Hello, I'm a **redish sticky note** using `rose-light`.
161
+ </StickyNote>
162
+
163
+ <StickyNote color="sky" textAlign="left" width="180px" v-drag="[389,251,180,180,9]">
164
+
165
+ Hello, I'm a **blueish sticky note** using `sky`.
166
+ </StickyNote>
167
+
168
+
169
+ <StickyNote color="amber-light" textAlign="left" width="180px" v-drag="[650,253,180,180,-9]">
170
+
171
+ Hello, I'm a **yellowish sticky note** using `amber-light`.
172
+ </StickyNote>
173
+
174
+
175
+ ---
176
+ layout: side-title
177
+ color: emerald-light
178
+ align: rm-lm
179
+ titlewidth: is-3
180
+ ---
181
+
182
+ <StickyNote color="emerald-light" textAlign="left" width="180px" v-drag="[719,291,180,180,16]">
183
+
184
+ Don't worry if you don't understand all the details, yet we are still talking about **color schemes**.
185
+ </StickyNote>
186
+
187
+
188
+ :: title ::
189
+ # Color schemes
190
+
191
+
192
+ :: content ::
193
+
194
+ Or we can use the `emerald-light` scheme in a slide layout to set the overall color and style of a slide with a matching sticky note:
195
+
196
+ ```md
197
+ ---
198
+ layout: side-title
199
+ color: emerald-light
200
+ align: rm-lm
201
+ titlewidth: is-3
202
+ ---
203
+ ```
204
+
205
+ ---
206
+ layout: top-title
207
+ color: amber
208
+ align: l
209
+ ---
210
+
211
+ :: title ::
212
+ # Layouts
213
+
214
+ :: content ::
215
+
216
+ The theme includes many layouts. Layouts set the overall structure of the page. For example, this slide is using the `top-title` layout with the `amber` color scheme. You can see the frontmatter for this slide below:
217
+
218
+ ```md
219
+ ---
220
+ layout: top-title
221
+ color: amber
222
+ align: l
223
+ ---
224
+ ```
225
+
226
+ The previous slide used the `side-title` layout with the `emerald-light` color scheme. You can see the frontmatter for that slide below:
227
+
228
+ ```md
229
+ ---
230
+ layout: side-title
231
+ color: emerald-light
232
+ align: rm-lm
233
+ titlewidth: is-3
234
+ ---
235
+ ```
236
+
237
+
238
+ ---
239
+ layout: top-title-two-cols
240
+ color: amber-light
241
+ align: l-lt-lt
242
+ ---
243
+
244
+ :: title ::
245
+
246
+ # Two things about layouts
247
+
248
+
249
+
250
+ :: left ::
251
+
252
+ There are two important parts of slides to know about.
253
+
254
+ ## Frontmatter
255
+
256
+ First is **frontmatter**, which are configuration options
257
+ that appear at the start of each slide (see [Slidev docs](https://sli.dev/guide/syntax#frontmatter-layouts)). These configure things like
258
+ alignment, color, and spacing:
259
+
260
+ ```md
261
+ ---
262
+ layout: top-title
263
+ color: sky
264
+ align: l
265
+ ---
266
+ ```
267
+
268
+ :: right ::
269
+
270
+ # Slots
271
+
272
+ The other aspect is **slots**. Slots are a basic part of [Vue.js](https://vuejs.org/guide/components/slots.html). In Slidev slots can be marked using `:: slotname ::` and then filled in with content. For example, the `:: left ::` and `:: right ::` slots on this slide are filled with content.
273
+
274
+ Slots effectively help you map parts of your slide to different parts of a layout. The most common case is to say which content appears in the left column and which appears in the right column. But different layouts can have different slots and different content.
275
+
276
+
277
+ ---
278
+ layout: top-title
279
+ color: amber-light
280
+ align: lt
281
+ ---
282
+
283
+ :: title ::
284
+
285
+ # Available Layouts
286
+
287
+ :: content ::
288
+
289
+ The available layouts in **Neversink** currently are:
290
+
291
+
292
+ <div class="tight">
293
+
294
+ <div class='flex flex-wrap'>
295
+
296
+ <div class='w-1/3'>
297
+
298
+ - `cover`
299
+ - `intro`
300
+ - `default`
301
+ - `section`
302
+ - `quote`
303
+ - `full`
304
+ - `credits`
305
+ </div>
306
+
307
+ <div class='w-1/3'>
308
+
309
+
310
+ - `two-cols-title`
311
+ - `top-title`
312
+ - `top-title-two-cols`
313
+ - `side-title`
314
+
315
+ </div>
316
+
317
+ <div class='w-1/3'>
318
+
319
+ - `image-right`
320
+ - `image-left`
321
+ - `image`
322
+ - `iframe-right`
323
+ - `iframe-left`
324
+ - `iframe`
325
+ - `none`
326
+ - `end`
327
+ - `fact`
328
+
329
+ </div>
330
+ </div>
331
+ </div>
332
+
333
+
334
+ We will step through these one by one showing several examples
335
+ and how to configure the frontmatter for each.
336
+
337
+
338
+ ---
339
+ layout: cover
340
+ ---
341
+
342
+ # This is the `cover` layout
343
+
344
+ **Todd Gureckis**
345
+ <div class="iconlink">
346
+
347
+ _New York University_ <a href="https://todd.gureckislab.org" class="iconlink"><mdi-open-in-new /></a>
348
+ </div>
349
+
350
+ :: note ::
351
+
352
+ <div class="fw-200" >
353
+
354
+ \* Optional `:: note ::` slot for mentioning ==notes== at the bottom.
355
+
356
+ </div>
357
+
358
+
359
+ ---
360
+ layout: cover
361
+ color: dark
362
+ ---
363
+
364
+ # This is the `cover` layout
365
+
366
+ **Todd Gureckis**
367
+ <div class="iconlink">
368
+
369
+ _New York University_ <a href="https://todd.gureckislab.org" class="iconlink"><mdi-open-in-new /></a>
370
+ </div>
371
+
372
+ :: note ::
373
+
374
+ <div class="fw-200" >
375
+
376
+ \* Here we set `color: dark` in the frontmatter.
377
+
378
+ </div>
379
+
380
+
381
+ ---
382
+ layout: cover
383
+ color: amber
384
+ ---
385
+
386
+ # This is the `cover` layout
387
+
388
+ **Todd Gureckis**
389
+ <div class="iconlink">
390
+
391
+ _New York University_ <a href="https://todd.gureckislab.org" class="iconlink"><mdi-open-in-new /></a>
392
+ </div>
393
+
394
+ :: note ::
395
+
396
+ <div class="fw-200" >
397
+
398
+ \* Here we set `color: amber` in the frontmatter.
399
+
400
+ </div>
401
+
402
+
403
+ ---
404
+ layout: cover
405
+ color: amber-light
406
+ ---
407
+
408
+ # This is the `cover` layout
409
+
410
+ **Todd Gureckis**
411
+ <div class="iconlink">
412
+
413
+ _New York University_ <a href="https://todd.gureckislab.org" class="iconlink"><mdi-open-in-new /></a>
414
+ </div>
415
+
416
+ :: note ::
417
+
418
+ <div class="fw-200" >
419
+
420
+ \* Here we set `color: amber-light` in the frontmatter. Notice how the color scheme brings along many of the elements on the page.
421
+
422
+ </div>
423
+
424
+
425
+ ---
426
+ layout: cover
427
+ color: pink
428
+ ---
429
+
430
+ ### This is the `cover` layout with a longer title for your talk you just use more `#`s
431
+
432
+ **Todd Gureckis**
433
+ <div class="iconlink">
434
+
435
+ _New York University_ <a href="https://todd.gureckislab.org" class="iconlink"><mdi-open-in-new /></a>
436
+ </div>
437
+
438
+ :: note ::
439
+
440
+ <div class="fw-200" >
441
+
442
+ \* Here we set `color: pink` in the frontmatter. Different choices convey a different vibe for the intro of your talk. There's lots of choices available.
443
+
444
+ </div>
445
+
446
+
447
+ ---
448
+ layout: intro
449
+ color: emerald-light
450
+ ---
451
+
452
+ # This is the `intro` layout
453
+
454
+ **Todd Gureckis**
455
+ <div class="iconlink">
456
+
457
+ _New York University_ <a href="https://todd.gureckislab.org" class="iconlink"><mdi-open-in-new /></a>
458
+ </div>
459
+
460
+ <br />
461
+
462
+ This is like the cover slide but with a little less decoration.
463
+ It also has a frontmatter option of `color: emerald-light`.
464
+
465
+ ---
466
+ layout: default
467
+ ---
468
+
469
+ # This is the `default` layout
470
+
471
+ This is kind of the basic slide. The main content is interpreted as markdown and rendered in the center of the slide.
472
+
473
+ Speaking of markdown, you can use markdown to make things **bold** or *italic* or even `code` like `this`. In **Neversink** you can also ==highlight things using the double equals signs like this==
474
+ thanks to the `markdown-it-mark` plugin.
475
+
476
+ Of course you can make bullet lists:
477
+
478
+ - Hi
479
+ - There
480
+
481
+ Also there's a little helper class you can add to make the bullet spacing a bit tighter:
482
+
483
+ <div class="tight">
484
+
485
+ - Hi
486
+ - There
487
+ - I need space
488
+ </div>
489
+
490
+
491
+ ---
492
+ layout: default
493
+ color: sky
494
+ ---
495
+
496
+ # The `default` layout
497
+
498
+ The default layout also has an optional `color` option in the frontmatter.
499
+ For example this is
500
+
501
+ ```md
502
+ ---
503
+ layout: default
504
+ color: sky
505
+ ---
506
+ ```
507
+
508
+
509
+ ---
510
+ layout: default
511
+ color: light
512
+ ---
513
+
514
+ # The `default` layout
515
+
516
+ Things don't have to be so dramatic. For more conservative presentations you can use color schemes like `light`:
517
+
518
+ ```md
519
+ ---
520
+ layout: default
521
+ color: light
522
+ ---
523
+ ```
524
+
525
+ And of course you don't have to change the color scheme every slide!
526
+
527
+
528
+ ---
529
+ layout: section
530
+ ---
531
+
532
+ # The `section` layout
533
+
534
+ This is a section slide. It can be use to make a noticable point or break between sections.
535
+
536
+
537
+ ---
538
+ layout: section
539
+ color: navy
540
+ ---
541
+
542
+ # The `section` layout
543
+ <hr>
544
+ It has a `hr` which is color matched to the color scheme. For example, this slide is using the `navy` color scheme and the line is white.
545
+
546
+
547
+ ---
548
+ layout: section
549
+ color: indigo
550
+ ---
551
+
552
+ # The `section` layout
553
+ <hr>
554
+
555
+ This is `color: indigo` and the line and font is a light indigo shade.
556
+
557
+
558
+ ---
559
+ layout: section
560
+ color: navy
561
+ ---
562
+
563
+ <div class="w-1/2 ml-30">
564
+
565
+ # The `section` layout
566
+ <hr>
567
+
568
+ <span class='text-amber-300'>
569
+ You can use HTML and inline CSS to modify the look and feel.
570
+ </span>
571
+
572
+ </div>
573
+
574
+ ---
575
+ layout: quote
576
+ color: sky-light
577
+ quote: "This is a quote slide. It has a frontmatter option of `quote` which is the text that appears in the quote box and `author` and options for the size of the text(`quotesize: text2xl` and `authorsize: text-l`). I feel it is a little uninspired but might save you some time."
578
+ author: "Todd Gureckis"
579
+ ---
580
+
581
+
582
+ ---
583
+ layout: quote
584
+ color: amber-light
585
+ ---
586
+
587
+
588
+
589
+
590
+ ---
591
+ layout: full
592
+ title: Full Layout
593
+ ---
594
+
595
+ <div class='border-1px v-full h-full p-5'>
596
+
597
+ This is `layout: full` which fills the whole screen for the most part.
598
+ The grey box is just showing you the full addressable space.
599
+ Full can be useful for arbitrary layouts such as on the next slide which uses
600
+ the `v-drag` directive to position elements.
601
+
602
+ </div>
603
+
604
+ ---
605
+ layout: full
606
+ title: Full with Arbitrary Layout
607
+ ---
608
+
609
+ <div class='v-full h-full'>
610
+
611
+ <SpeechBubble position="l" shape="round" color='pink-light' v-drag="[555,342,274,58]">
612
+
613
+ Hello, I'm an **ice cream**!
614
+ </SpeechBubble>
615
+
616
+ <SpeechBubble position="bl" shape="round" color='emerald-light' v-drag="[445,258,274,57]">
617
+
618
+ Hello, I'm **kawaii**.
619
+ </SpeechBubble>
620
+
621
+ <SpeechBubble position="r" shape="round" animation="float" color='sky' v-drag="[143,391,274,84]">
622
+
623
+ I'm v-dragged out and ==floating==.
624
+ </SpeechBubble>
625
+
626
+ <IceCream :size="150" mood="lovestruck" color="#FDA7DC" v-drag="[439,341,85,150]" />
627
+
628
+ <div class="tight" v-drag="[143,33,277,214]">
629
+
630
+ <span class="bg-red-100 text-red-600 p-2 border-l-6 border-2 border-red-200 rounded-lg pl-4 pr-4">Here's a list of somethings</span>
631
+
632
+ - Novelty bonuses
633
+ - Cumulative prediction error
634
+ - Learning progress
635
+ - Surprise
636
+ - Suspense
637
+ - Information gain
638
+
639
+ </div>
640
+
641
+ <div class="tight" v-drag="[461,63,293,148,17]">
642
+
643
+ <span class="bg-emerald-100 text-emerald-500 p-2 border-l-6 border-2 border-emerald-200 rounded-lg pl-4 pr-4">Here's another list of things</span>
644
+
645
+ - Structured behaviors
646
+ - Compositional
647
+ - Communicable
648
+
649
+ </div>
650
+
651
+ </div>
652
+
653
+
654
+ ---
655
+ layout: full
656
+ title: Full Layout - 2 Col Fig
657
+ ---
658
+
659
+ This is an example of using unocss atomic classes to put two figures side by side.
660
+
661
+ <div class="grid w-full h-fit grid-cols-2 grid-rows-2 mt-10 mb-auto">
662
+ <div class="grid-item grid-col-span-1"><img src="/images/scatter1.svg" /></div>
663
+ <div class="grid-item grid-col-span-1"><img src="/images/scatter1.svg" /></div>
664
+ <div class="grid-item grid-col-span-2 text-center h-fit">
665
+
666
+ **Figure show this**: this is a two column figure
667
+
668
+ </div>
669
+ </div>
670
+
671
+ ---
672
+ layout: full
673
+ title: Full Layout - 3 Col Fig
674
+ ---
675
+
676
+ This is an example of using unocss atomic classes to put three figures side by side.
677
+
678
+ <div class="grid w-full h-fit grid-cols-3 grid-rows-2 mt-20 mb-auto">
679
+ <div class="grid-item grid-col-span-1"><img src="/images/scatter1.svg" /></div>
680
+ <div class="grid-item grid-col-span-1"><img src="/images/scatter1.svg" /></div>
681
+ <div class="grid-item grid-col-span-1"><img src="/images/scatter1.svg" /></div>
682
+ <div class="grid-item grid-col-span-3 text-center h-fit">
683
+
684
+ **Figure show this**: this is a three column figure
685
+
686
+ </div>
687
+
688
+ </div>
689
+
690
+
691
+ ---
692
+ layout: credits
693
+ color: light
694
+ ---
695
+
696
+ <div class="grid text-size-4 grid-cols-3 w-3/4 gap-y-10 auto-rows-min ml-auto mr-auto">
697
+ <div class="grid-item text-center mr-0- col-span-3">
698
+
699
+ This is the `layout: credits` slide. It's a movie-like scrolling credits!
700
+ </div>
701
+ <div class="grid-item text-center mr-0- col-span-3">
702
+ <strong>Cast</strong><br>
703
+ <span class="font-size-3 mt-0">(In order of appearance)</span>
704
+ </div>
705
+ <div class="grid-item text-right mr-4 col-span-1"><strong>Study 1</strong></div>
706
+ <div class="grid-item col-span-2">Person 1 <i>as PhD student</i>&nbsp;<mdi-open-in-new class="font-size-3 mb-0.5" /><br/>Person 2 <i>as Co-PI</i>&nbsp;<mdi-open-in-new class="font-size-3 mb-0.5" /></div>
707
+ <div class="grid-item text-right mr-4 col-span-1"><strong>Study 2</strong></div>
708
+ <div class="grid-item col-span-2">Person 3 <i>as Postdoc</i>&nbsp;<mdi-open-in-new class="font-size-3 mb-0.5" /><br/>Person 4 <i>as Co-PI</i>&nbsp;<mdi-open-in-new class="font-size-3 mb-0.5" /></div>
709
+ <div class="grid-item text-right mr-4 col-span-1"><strong>Experiments</strong></div>
710
+ <div class="grid-item col-span-2">Smile 🫠</div>
711
+ <div class="grid-item text-right mr-4 col-span-1"><strong>Funding</strong></div>
712
+ <div class="grid-item col-span-2">National Science Foundation<br/>
713
+ National Institute of Health</div>
714
+ <div class="grid-item text-right mr-4 col-span-1"><strong>Slides</strong></div>
715
+ <div class="grid-item col-span-2">
716
+ Slidev<br/>
717
+ Unocss<br/>
718
+ Figma<br/>
719
+ Vuejs<br/>
720
+ Vite<br/>
721
+ </div>
722
+ <div class="grid-item col-span-3 text-center mt-180px mb-auto font-size-1.5rem"><strong>Questions?</strong></div>
723
+ </div>
724
+
725
+
726
+ ---
727
+ layout: credits
728
+ color: navy
729
+ speed: 4.0
730
+ loop: true
731
+ ---
732
+
733
+ <div class="grid text-size-4 grid-cols-3 w-3/4 gap-y-10 auto-rows-min ml-auto mr-auto">
734
+ <div class="grid-item text-center mr-0- col-span-3">
735
+
736
+ This one has `speed: 4.0` and `loop: true` in the front matter
737
+ </div>
738
+ <div class="grid-item text-center mr-0- col-span-3">
739
+ <strong>Cast</strong><br>
740
+ <span class="font-size-3 mt-0">(In order of appearance)</span>
741
+ </div>
742
+ <div class="grid-item text-right mr-4 col-span-1"><strong>Study 1</strong></div>
743
+ <div class="grid-item col-span-2">Person 1 <i>as PhD student</i>&nbsp;<mdi-open-in-new class="font-size-3 mb-0.5" /><br/>Person 2 <i>as Co-PI</i>&nbsp;<mdi-open-in-new class="font-size-3 mb-0.5" /></div>
744
+ <div class="grid-item text-right mr-4 col-span-1"><strong>Study 2</strong></div>
745
+ <div class="grid-item col-span-2">Person 3 <i>as Postdoc</i>&nbsp;<mdi-open-in-new class="font-size-3 mb-0.5" /><br/>Person 4 <i>as Co-PI</i>&nbsp;<mdi-open-in-new class="font-size-3 mb-0.5" /></div>
746
+ <div class="grid-item text-right mr-4 col-span-1"><strong>Experiments</strong></div>
747
+ <div class="grid-item col-span-2">Smile 🫠</div>
748
+ <div class="grid-item text-right mr-4 col-span-1"><strong>Funding</strong></div>
749
+ <div class="grid-item col-span-2">National Science Foundation<br/>
750
+ National Institute of Health</div>
751
+ <div class="grid-item text-right mr-4 col-span-1"><strong>Slides</strong></div>
752
+ <div class="grid-item col-span-2">
753
+ Slidev<br/>
754
+ Unocss<br/>
755
+ Figma<br/>
756
+ Vuejs<br/>
757
+ Vite<br/>
758
+ </div>
759
+ <div class="grid-item col-span-3 text-center mt-180px mb-auto font-size-1.5rem"><strong>Questions?</strong></div>
760
+ </div>
761
+
762
+
763
+ ---
764
+ layout: image-left
765
+ image: /images/photo.png
766
+ class: mycoolclass
767
+ ---
768
+
769
+ <br />
770
+
771
+ # Image left
772
+
773
+ This is the `layout: image-left` layout.
774
+
775
+ ---
776
+ layout: image-right
777
+ image: /images/photo2.png
778
+ slide_info: false
779
+ class: mycoolclass
780
+ ---
781
+
782
+ # Image right
783
+
784
+ This is the `layout: image-right` layout.
785
+
786
+ ---
787
+ layout: image
788
+ image: /images/photo.png
789
+ title: Image Layout
790
+ ---
791
+
792
+ ---
793
+ layout: iframe-left
794
+ title: iframe Left Layout
795
+ # the web page source
796
+ url: https://gureckislab.org
797
+
798
+ # a custom class name to the content
799
+ class: my-cool-content-on-the-right
800
+ ---
801
+
802
+ <br />
803
+
804
+ # This is a website on the left
805
+
806
+ This is useful for showing a website but loads live on the web so requires and internet connection.
807
+
808
+ ---
809
+ layout: iframe-right
810
+ title: iframe Right Layout
811
+ # the web page source
812
+ url: https://gureckislab.org
813
+
814
+ # a custom class name to the content
815
+ class: my-cool-content-on-the-right
816
+ slide_info: false
817
+ ---
818
+
819
+ # This is a website on the right
820
+
821
+ This is useful for showing a website but loads live on the web so requires and internet connection.
822
+
823
+ ---
824
+ layout: iframe
825
+ title: iframe Layout
826
+ # the web page source
827
+ url: https://gureckislab.org
828
+ slide_info: false
829
+ ---
830
+
831
+
832
+ ---
833
+ layout: two-cols-title
834
+ columns: is-6
835
+ align: l-lt-lt
836
+ title: Two Cols Title - Header (Info)
837
+ ---
838
+
839
+ :: title ::
840
+
841
+ # `two-cols-title`
842
+
843
+ :: left ::
844
+
845
+ This is `layout: two-cols-title`.
846
+
847
+ - There are three slots: `:: title ::`, `:: left ::`, and `:: right ::` along with the default which is implicit before any named slots.
848
+
849
+ - It additionally provides three configuration options in the slide YAML front matter:
850
+ `color`, `columns` and `align`.
851
+
852
+ :: right ::
853
+
854
+ - `color` is the color scheme.
855
+
856
+ - `columns` is the relative spacing given to the left versus right column. The overall space is divided into 12 columns. Instructions like `is-5` will give 5 units to the left and 7 to the right.
857
+
858
+ - The <code>align</code> parameter determines how the columns look. The notation is for example
859
+ <code>align: l-cm-cm</code>. The first part is for the header, the second for the left column, the third part is for the right column. The first letter is (<code>c</code> for center, <code>l</code> for left, <code>r</code> for right), the second letter
860
+ is vertical alignment (<code>t</code> for top, <code>m</code> for middle, <code>b</code> for bottom). Only c/l/r works for the header.
861
+
862
+
863
+
864
+
865
+
866
+ ---
867
+ layout: two-cols-title
868
+ columns: is-2
869
+ align: l-lt-lt
870
+ title: Two Cols Title - Header (is-2)
871
+ ---
872
+
873
+ :: title ::
874
+
875
+ <div class='w-full h-20 bg-indigo-100'>
876
+ </div>
877
+
878
+
879
+ :: left ::
880
+ <div class='w-full h-100 bg-gray-300'></div>
881
+
882
+ :: right ::
883
+ <div class='w-full h-100 bg-pink-300'></div>
884
+
885
+
886
+ ---
887
+ layout: two-cols-title
888
+ columns: is-4
889
+ align: l-lt-lt
890
+ title: Two Cols Title - Header (is-4)
891
+ ---
892
+
893
+ :: title ::
894
+
895
+ <div class='w-full h-20 bg-indigo-100'>
896
+ </div>
897
+
898
+
899
+ :: left ::
900
+ <div class='w-full h-100 bg-gray-300'></div>
901
+
902
+ :: right ::
903
+ <div class='w-full h-100 bg-pink-300'></div>
904
+
905
+ ---
906
+ layout: two-cols-title
907
+ columns: is-6
908
+ align: l-lt-lt
909
+ title: Two Cols Title - Header (is-6)
910
+ ---
911
+
912
+ :: title ::
913
+
914
+ <div class='w-full h-20 bg-indigo-100'>
915
+ </div>
916
+
917
+
918
+ :: left ::
919
+ <div class='w-full h-100 bg-gray-300'></div>
920
+
921
+ :: right ::
922
+ <div class='w-full h-100 bg-pink-300'></div>
923
+
924
+
925
+ ---
926
+ layout: two-cols-title
927
+ columns: is-8
928
+ align: l-lt-lt
929
+ title: Two Cols Title - Header (is-8)
930
+ ---
931
+
932
+ :: title ::
933
+
934
+ <div class='w-full h-20 bg-indigo-100'>
935
+ </div>
936
+
937
+
938
+ :: left ::
939
+ <div class='w-full h-100 bg-gray-300'></div>
940
+
941
+ :: right ::
942
+ <div class='w-full h-100 bg-pink-300'></div>
943
+
944
+
945
+ ---
946
+ layout: two-cols-title
947
+ columns: is-10
948
+ align: l-lt-lt
949
+ title: Two Cols Title - Header (is-10)
950
+ ---
951
+
952
+ :: title ::
953
+
954
+ <div class='w-full h-20 bg-indigo-100'>
955
+ </div>
956
+
957
+
958
+ :: left ::
959
+ <div class='w-full h-100 bg-gray-300'></div>
960
+
961
+ :: right ::
962
+ <div class='w-full h-100 bg-pink-300'></div>
963
+
964
+
965
+ ---
966
+ layout: two-cols-title
967
+ columns: is-10
968
+ align: l-lt-lt
969
+ titlepos: b
970
+ title: Two Cols Title - Footer (is-10)
971
+ ---
972
+
973
+ :: title ::
974
+
975
+ <div class='w-full h-20 bg-indigo-100'>
976
+ </div>
977
+
978
+
979
+ :: left ::
980
+ <div class='w-full h-100 bg-gray-300'></div>
981
+
982
+ :: right ::
983
+ <div class='w-full h-100 bg-pink-300'></div>
984
+
985
+
986
+ ---
987
+ layout: two-cols-title
988
+ columns: is-4
989
+ align: l-lt-lt
990
+ titlepos: b
991
+ title: Two Cols Title - no title (is-4)
992
+ ---
993
+
994
+
995
+
996
+ :: left ::
997
+ <div class='w-full h-120 bg-gray-300'></div>
998
+
999
+ :: right ::
1000
+ <div class='w-full h-120 bg-pink-300'></div>
1001
+
1002
+
1003
+
1004
+
1005
+
1006
+
1007
+ ---
1008
+ layout: side-title
1009
+ side: l
1010
+ color: violet
1011
+ titlewidth: is-4
1012
+ align: rm-lm
1013
+ title: Side Title Layout (Another)
1014
+ ---
1015
+
1016
+ :: title ::
1017
+
1018
+ # `side-title`
1019
+
1020
+ # <mdi-arrow-right />
1021
+
1022
+ :: content ::
1023
+
1024
+ This is `layout: side-title` with `side: right` in the front matter.
1025
+
1026
+ ```yaml
1027
+ side: left
1028
+ color: violet
1029
+ titlewidth: is-4
1030
+ align: rm-lm
1031
+ ```
1032
+
1033
+
1034
+
1035
+ ---
1036
+ layout: side-title
1037
+ side: r
1038
+ color: pink-light
1039
+ titlewidth: is-6
1040
+ align: lm-lb
1041
+ title: Side Title Layout (Another)
1042
+ ---
1043
+
1044
+ :: title ::
1045
+
1046
+ # `side-title`
1047
+
1048
+ # <mdi-arrow-right />
1049
+
1050
+ :: content ::
1051
+
1052
+ This is `layout: side-title` with `side: right` in the front matter.
1053
+
1054
+ ```yaml
1055
+ side: right
1056
+ color: pink-light
1057
+ titlewidth: is-6
1058
+ align: lm-lb
1059
+ ```
1060
+
1061
+
1062
+ ---
1063
+ layout: top-title
1064
+ color: violet
1065
+ align: l
1066
+ title: Top Title (Another)
1067
+ ---
1068
+
1069
+ :: title ::
1070
+
1071
+ # `top-title`: A variation with different parameters
1072
+
1073
+ :: content ::
1074
+
1075
+ Todd has used this navy color on many projects in the past. This is a top title layout.
1076
+
1077
+ I sort of like the `###` font style the best.
1078
+
1079
+ ```yaml
1080
+ layout: top-title
1081
+ color: violet
1082
+ titlewidth: is-2
1083
+ align: lm
1084
+ ```
1085
+
1086
+ ---
1087
+ layout: top-title-two-cols
1088
+ color: navy
1089
+ columns: is-6
1090
+ align: l-lt-lt
1091
+ title: Top Title (Another)
1092
+ ---
1093
+
1094
+
1095
+ :: title ::
1096
+
1097
+ ### `top-title-two-cols`: A variation with two columns
1098
+
1099
+ :: left ::
1100
+
1101
+ - This is the left column
1102
+ - This is a nice way to add color and distinction to a slide
1103
+ - Options are `columns` which is the size of the left column, `color` (default `light`), and `align` which is the alignment of the title and columns (e.g., `l-lt-lt`)
1104
+
1105
+ :: right ::
1106
+
1107
+ - This is the right column
1108
+ - This is a nice way to add color and distinction to a slide
1109
+
1110
+
1111
+ ---
1112
+ layout: default
1113
+ ---
1114
+
1115
+ # Extras
1116
+
1117
+ In addition to these custom layouts, the **Neversink** theme includes a few custom components that can be used in your slides. These include sticky notes, speech bubbles, cute icons, QR codes, and more. The next few slides walks through them:
1118
+
1119
+ <div class="tight">
1120
+
1121
+ - admonitions
1122
+ - sticky notes
1123
+ - speech bubbles
1124
+ - cute icons
1125
+ - QR codes
1126
+ </div>
1127
+
1128
+
1129
+ ---
1130
+ layout: two-cols-title
1131
+ columns: is-6
1132
+ title: Admonitions
1133
+ dragPos:
1134
+ admon: Left,Top,Width,Height,Rotate
1135
+ "'admon'": 55,300,287,106
1136
+ ---
1137
+
1138
+ <Admonition title="V-draggable" color='teal-light' width="300px" v-drag="[93,303,300,145,-14]">
1139
+ If you want to `v-drag` an admonition, you should set the width to a fixed value.
1140
+ </Admonition>
1141
+
1142
+ :: title ::
1143
+
1144
+ # Admonitions
1145
+
1146
+ :: left ::
1147
+
1148
+ - Admonitions are boxes that you can use to call out things.
1149
+
1150
+ <Admonition title="Custom title" color='amber-light'>
1151
+ This is my admon message
1152
+ </Admonition>
1153
+
1154
+ :: right ::
1155
+
1156
+ <AdmonitionType type='note' >
1157
+ This is note text
1158
+ </AdmonitionType>
1159
+
1160
+ <!--
1161
+ > [!note]
1162
+ > This is note text
1163
+ -->
1164
+
1165
+ <AdmonitionType type='important' >
1166
+ This is important text
1167
+ </AdmonitionType>
1168
+
1169
+ <AdmonitionType type='tip' >
1170
+ This is a tip
1171
+ </AdmonitionType>
1172
+
1173
+ <AdmonitionType type='warning' >
1174
+ This is a tip
1175
+ </AdmonitionType>
1176
+
1177
+ <AdmonitionType type='caution' >
1178
+ This is warning text
1179
+ </AdmonitionType>
1180
+
1181
+ ---
1182
+ layout: two-cols-title
1183
+ columns: is-6
1184
+ title: Bubbles
1185
+ ---
1186
+
1187
+ <SpeechBubble position="l" color='sky' shape="round" v-drag="[83,364,274,109]">
1188
+
1189
+ Hello, I'm a **speech bubble**! I'm a longer speech bubble. I'm still going.
1190
+ </SpeechBubble>
1191
+
1192
+ :: title ::
1193
+
1194
+ # Bubbles
1195
+
1196
+ :: left ::
1197
+
1198
+ - Bubbles are moveable elements that act as speech bubbles
1199
+ - They can be configured for where you want the arrow to point
1200
+ - The can be move around if you enable `v-drag` on the element
1201
+
1202
+ :: right ::
1203
+
1204
+ <SpeechBubble position="bl" color='amber-light' shape="round">
1205
+
1206
+ Hello, I'm a **speech bubble**! I'm a longer speech bubble. I'm still going.
1207
+ Hello, I'm a **speech bubble**! I'm a longer speech bubble. I'm still going.
1208
+ Hello, I'm a **speech bubble**! I'm a longer speech bubble. I'm still going.
1209
+ </SpeechBubble>
1210
+
1211
+ ---
1212
+ layout: default
1213
+ title: Sticky Notes
1214
+ ---
1215
+
1216
+ <StickyNote color="amber-light" textAlign="left" width="180px" title="Title" v-drag="[66,318,185,171]">
1217
+
1218
+ Hello, I'm a **sticky note**.
1219
+ </StickyNote>
1220
+
1221
+ <StickyNote color="sky-light" textAlign="left" width="180px" title="This is my title" v-drag="[375,306,180,180,-15]">
1222
+
1223
+ Hello, I'm also a **sticky note** but am blue sky title.
1224
+ </StickyNote>
1225
+
1226
+ <StickyNote color="pink-light" textAlign="left" width="180px" v-drag="[667,299,185,171,8]">
1227
+
1228
+ Hello, I'm also a **sticky note** but I lack a title.
1229
+ </StickyNote>
1230
+
1231
+ # Sticky Notes
1232
+
1233
+ - Sticky notes are moveable elements you can use for notes.
1234
+ - Syntax is
1235
+
1236
+ ```js
1237
+ <StickyNote color="amber-light" textAlign="left" width="180px" title="Title" v-drag>
1238
+ Hello, I'm a **sticky note**.
1239
+ </StickyNote>
1240
+ ```
1241
+
1242
+ ---
1243
+ layout: default
1244
+ title: Kawaii 1
1245
+ ---
1246
+
1247
+ # Kawaii
1248
+
1249
+ - Kawaii is a Japanese term that means cute
1250
+
1251
+ <IceCream :size="80" mood="sad" color="#FDA7DC" />
1252
+ <IceCream :size="80" mood="shocked" color="#FDA7DC" />
1253
+ <IceCream :size="80" mood="happy" color="#FDA7DC" />
1254
+ <IceCream :size="80" mood="blissful" color="#FDA7DC" />
1255
+ <IceCream :size="80" mood="lovestruck" color="#FDA7DC" />
1256
+ <IceCream :size="80" mood="excited" color="#FDA7DC" />
1257
+ <IceCream :size="80" mood="ko" color="#FDA7DC" /><br/>
1258
+
1259
+ <BackPack :size="80" mood="sad" color="#FFD882" />
1260
+ <BackPack :size="80" mood="shocked" color="#FFD882" />
1261
+ <BackPack :size="80" mood="happy" color="#FFD882"/>
1262
+ <BackPack :size="80" mood="blissful" color="#FFD882" />
1263
+ <BackPack :size="80" mood="lovestruck" color="#FFD882" />
1264
+ <BackPack :size="80" mood="excited" color="#FFD882" />
1265
+ <BackPack :size="80" mood="ko" color="#FFD882" /><br/>
1266
+
1267
+ <Cat :size="80" mood="sad" color="#FFD882" />
1268
+ <Cat :size="80" mood="shocked" color="#FFD882" />
1269
+ <Cat :size="80" mood="happy" color="#FFD882"/>
1270
+ <Cat :size="80" mood="blissful" color="#FFD882" />
1271
+ <Cat :size="80" mood="lovestruck" color="#FFD882" />
1272
+ <Cat :size="80" mood="excited" color="#FFD882" />
1273
+ <Cat :size="80" mood="ko" color="#FFD882" /><br/>
1274
+
1275
+ <Browser :size="50" mood="lovestruck" color="#61DDBC" />
1276
+ <Mug :size="50" mood="lovestruck" color="#61DDBC" />
1277
+ <Planet :size="50" mood="lovestruck" color="#61DDBC" />
1278
+ <SpeechBubbleGuy :size="50" mood="lovestruck" color="#d3d3d3" />
1279
+ <Ghost :size="50" mood="blissful" color="#E0E4E8" />
1280
+ <CreditCard :size="50" mood="blissful" color="#E0E4E8" />
1281
+
1282
+ ---
1283
+ layout: default
1284
+ title: QR Codes
1285
+ ---
1286
+
1287
+ # In-line QR Codes
1288
+
1289
+ - Send people to a url with a easy to configure QR code
1290
+
1291
+ ```vue
1292
+ <QRCode value="https://gureckislab.org" :size="200" render-as="svg" />
1293
+ ```
1294
+
1295
+ <br />
1296
+ Result:
1297
+
1298
+ <QRCode value="https://gureckislab.org" :size="200" render-as='svg'/>
1299
+
1300
+
1301
+ ---
1302
+ layout: side-title
1303
+ side: left
1304
+ color: violet
1305
+ titlewidth: is-4
1306
+ align: rm-lt
1307
+ title: Code Example
1308
+ ---
1309
+
1310
+ <SpeechBubble position="br" shape="round" borderWidth="0" animation="float" v-drag="[19,335,261,83]">
1311
+
1312
+ Slidev is great at code formatting!
1313
+ </SpeechBubble>
1314
+
1315
+ :: title ::
1316
+
1317
+ # <mdi-code-braces /> Code
1318
+
1319
+ <IceCream :size="80" mood="excited" color="#FDA7DC" v-drag="[232,444,50,80]" />
1320
+
1321
+ :: content ::
1322
+
1323
+ Plain javascript:
1324
+
1325
+ ```js
1326
+ console.log('Hello, World!')
1327
+ ```
1328
+
1329
+ Highlight lines 2 and 3:
1330
+
1331
+ ```ts {2,3}
1332
+ function helloworld() {
1333
+ console.log('Hello, World!')
1334
+ console.log('Hello, World!')
1335
+ console.log('Hello, World!')
1336
+ }
1337
+ ```
1338
+
1339
+ Crazy clicking through
1340
+
1341
+ ```ts {2,3|5|all}
1342
+ function helloworld() {
1343
+ console.log('Hello, World!')
1344
+ console.log('Hello, World!')
1345
+ console.log('Hello, World!')
1346
+ console.log('Hello, World!')
1347
+ console.log('Hello, World!')
1348
+ console.log('Hello, World!')
1349
+ }
1350
+ ```
1351
+
1352
+ ---
1353
+ layout: side-title
1354
+ side: left
1355
+ color: violet
1356
+ titlewidth: is-4
1357
+ align: rm-lt
1358
+ title: Code Example
1359
+ ---
1360
+
1361
+
1362
+ :: title ::
1363
+
1364
+ # <mdi-code-braces /> Code
1365
+
1366
+ More cool code stuff
1367
+
1368
+ :: content ::
1369
+
1370
+ Scrollable with clicks 🤯
1371
+
1372
+ ```ts {2|3|7|12}{maxHeight:'100px'}
1373
+ function helloworld() {
1374
+ console.log('Hello, World 1!')
1375
+ console.log('Hello, World 2!')
1376
+ console.log('Hello, World 3!')
1377
+ console.log('Hello, World 4!')
1378
+ console.log('Hello, World 5!')
1379
+ console.log('Hello, World 6!')
1380
+ console.log('Hello, World 7!')
1381
+ console.log('Hello, World 8!')
1382
+ console.log('Hello, World 9!')
1383
+ console.log('Hello, World 10!')
1384
+ console.log('Hello, World 11!')
1385
+ }
1386
+ ```
1387
+
1388
+ You can even edit the code in the browser
1389
+
1390
+ ```ts {monaco}
1391
+ console.log('HelloWorld')
1392
+ ```
1393
+
1394
+ You can even run the code in the browser
1395
+
1396
+ ```ts {monaco-run} {showOutputAt:'+1'}
1397
+ function distance(x: number, y: number) {
1398
+ return Math.sqrt(x ** 2 + y ** 2)
1399
+ }
1400
+ console.log(distance(3, 4))
1401
+ ```
1402
+
1403
+ ---
1404
+ layout: side-title
1405
+ side: left
1406
+ color: lime
1407
+ titlewidth: is-4
1408
+ align: rm-lt
1409
+ title: LaTeX Example
1410
+ ---
1411
+
1412
+ :: title ::
1413
+
1414
+ # <mdi-math-integral-box /> LaTeX Equations
1415
+
1416
+ Yeah it does this fine
1417
+
1418
+ <Mug :size="80" mood="excited" color="#FDA7DC" v-drag="[342,288,77,80]" />
1419
+
1420
+ :: content ::
1421
+
1422
+ Inline equations: $\sqrt{3x-1}+(1+x)^2$
1423
+
1424
+ Block rendering:
1425
+
1426
+ $$
1427
+ \begin{array}{c}
1428
+
1429
+ \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &
1430
+ = \frac{4\pi}{c}\vec{\mathbf{j}} \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
1431
+
1432
+ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
1433
+
1434
+ \nabla \cdot \vec{\mathbf{B}} & = 0
1435
+
1436
+ \end{array}
1437
+ $$
1438
+
1439
+ Line highlighting with clicks!
1440
+
1441
+ $$
1442
+ {1|3|all}
1443
+ \begin{array}{c}
1444
+ \nabla \times \vec{\mathbf{B}} -\, \frac1c\, \frac{\partial\vec{\mathbf{E}}}{\partial t} &
1445
+ = \frac{4\pi}{c}\vec{\mathbf{j}} \nabla \cdot \vec{\mathbf{E}} & = 4 \pi \rho \\
1446
+ \nabla \times \vec{\mathbf{E}}\, +\, \frac1c\, \frac{\partial\vec{\mathbf{B}}}{\partial t} & = \vec{\mathbf{0}} \\
1447
+ \nabla \cdot \vec{\mathbf{B}} & = 0
1448
+ \end{array}
1449
+ $$
1450
+
1451
+ ---
1452
+ layout: side-title
1453
+ side: left
1454
+ color: sky
1455
+ titlewidth: is-4
1456
+ align: rm-cm
1457
+ title: Mermaid Example
1458
+ ---
1459
+
1460
+ :: title ::
1461
+
1462
+ # Mermaid Diagrams
1463
+
1464
+ Everyone is talking about this
1465
+
1466
+ :: content ::
1467
+
1468
+ ```mermaid
1469
+ sequenceDiagram
1470
+ Alice->John: Hello John, how are you?
1471
+ Note over Alice,John: A typical interaction
1472
+ ```
1473
+
1474
+ ---
1475
+ layout: side-title
1476
+ side: left
1477
+ color: sky
1478
+ titlewidth: is-4
1479
+ align: rm-cm
1480
+ title: Mermaid Example
1481
+ ---
1482
+
1483
+ :: title ::
1484
+
1485
+ # Mermaid Diagrams
1486
+
1487
+ Everyone is talking about this
1488
+
1489
+ :: content ::
1490
+
1491
+ ```mermaid {theme: 'neutral', scale: 0.8}
1492
+ graph TD
1493
+ B[Text] --> C{Decision}
1494
+ C -->|One| D[Result 1]
1495
+ C -->|Two| E[Result 2]
1496
+ ```
1497
+
1498
+ A mermaid diagram with two circles side by side horizontally with an arrow pointing from the left circle to the right circle
1499
+
1500
+ ```mermaid {theme: 'neutral', scale: 0.8}
1501
+ graph LR
1502
+ A([Circle 1]) --> B((Circle 2))
1503
+ ```