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.
- package/.github/workflows/deploy.yml +67 -0
- package/.prettierrc +15 -0
- package/.vscode/settings.json +4 -0
- package/LICENSE +21 -0
- package/README.md +112 -0
- package/assets/nyu_long_black_on_white.svg +41 -0
- package/components/Admonition.vue +80 -0
- package/components/AdmonitionType.vue +56 -0
- package/components/CreditScroll.vue +94 -0
- package/components/SpeechBubble.vue +294 -0
- package/components/StickyNote.vue +71 -0
- package/components/vue3-kawaii/README.md +5 -0
- package/components/vue3-kawaii/components/backpack/BackPack.vue +123 -0
- package/components/vue3-kawaii/components/backpack/backpackpaths.js +17 -0
- package/components/vue3-kawaii/components/browser/Browser.vue +56 -0
- package/components/vue3-kawaii/components/browser/browserpaths.js +9 -0
- package/components/vue3-kawaii/components/cat/Cat.vue +89 -0
- package/components/vue3-kawaii/components/cat/catpaths.js +8 -0
- package/components/vue3-kawaii/components/common/face/Face.vue +95 -0
- package/components/vue3-kawaii/components/common/face/facepaths.js +24 -0
- package/components/vue3-kawaii/components/common/wrapper/Wrapper.vue +24 -0
- package/components/vue3-kawaii/components/creditCard/CreditCard.vue +47 -0
- package/components/vue3-kawaii/components/creditCard/creditcardpaths.js +8 -0
- package/components/vue3-kawaii/components/ghost/Ghost.vue +48 -0
- package/components/vue3-kawaii/components/ghost/ghostpaths.js +8 -0
- package/components/vue3-kawaii/components/iceCream/IceCream.vue +49 -0
- package/components/vue3-kawaii/components/iceCream/icecreampaths.js +9 -0
- package/components/vue3-kawaii/components/mug/Mug.vue +48 -0
- package/components/vue3-kawaii/components/mug/mugpaths.js +7 -0
- package/components/vue3-kawaii/components/planet/Planet.vue +58 -0
- package/components/vue3-kawaii/components/planet/planetpaths.js +7 -0
- package/components/vue3-kawaii/components/speechBubble/SpeechBubbleGuy.vue +63 -0
- package/components/vue3-kawaii/components/speechBubble/speechbubblepaths.js +8 -0
- package/components/vue3-kawaii/utils/getUniqueId.js +10 -0
- package/docs/.vitepress/config.js +75 -0
- package/docs/.vitepress/theme/index.js +50 -0
- package/docs/.vitepress/theme/style.css +145 -0
- package/docs/api-examples.md +49 -0
- package/docs/branding.md +43 -0
- package/docs/colors.md +108 -0
- package/docs/components/admonitions.md +106 -0
- package/docs/components/creditscroll.md +1 -0
- package/docs/components/kawaii.md +26 -0
- package/docs/components/qrcode.md +24 -0
- package/docs/components/speechbubble.md +69 -0
- package/docs/components/stickynote.md +54 -0
- package/docs/components.md +19 -0
- package/docs/contributing.md +5 -0
- package/docs/customizing.md +38 -0
- package/docs/getting-started.md +32 -0
- package/docs/index.md +19 -0
- package/docs/layouts/cover.md +69 -0
- package/docs/layouts/credits.md +111 -0
- package/docs/layouts/default.md +88 -0
- package/docs/layouts/full.md +131 -0
- package/docs/layouts/intro.md +63 -0
- package/docs/layouts/quote.md +51 -0
- package/docs/layouts/section.md +67 -0
- package/docs/layouts/side-title.md +180 -0
- package/docs/layouts/top-title-two-cols.md +171 -0
- package/docs/layouts/top-title.md +103 -0
- package/docs/layouts/two-cols-title.md +273 -0
- package/docs/layouts.md +92 -0
- package/docs/markdown-examples.md +85 -0
- package/docs/markdown.md +87 -0
- package/docs/parts/columnsystem.md +18 -0
- package/docs/parts/layoutpicker.md +73 -0
- package/docs/public/deck.png +0 -0
- package/docs/public/layouts/side-title-12row.svg +27 -0
- package/docs/public/layouts/side-title-is-3.svg +7 -0
- package/docs/public/layouts/side-title-is-6.svg +7 -0
- package/docs/public/layouts/side-title-side.svg +13 -0
- package/docs/public/layouts/two-col-title-12row.svg +31 -0
- package/docs/public/layouts/two-col-title-align.svg +13 -0
- package/docs/public/layouts/two-col-title-is-4.svg +23 -0
- package/docs/public/layouts/two-col-title-is-6.svg +23 -0
- package/docs/public/layouts/two-col-title-titlepos.svg +31 -0
- package/docs/public/screenshots/1.png +0 -0
- package/docs/public/screenshots/10.png +0 -0
- package/docs/public/screenshots/11.png +0 -0
- package/docs/public/screenshots/12.png +0 -0
- package/docs/public/screenshots/13.png +0 -0
- package/docs/public/screenshots/14.png +0 -0
- package/docs/public/screenshots/15.png +0 -0
- package/docs/public/screenshots/16.png +0 -0
- package/docs/public/screenshots/17.png +0 -0
- package/docs/public/screenshots/18.png +0 -0
- package/docs/public/screenshots/19.png +0 -0
- package/docs/public/screenshots/2.png +0 -0
- package/docs/public/screenshots/20.png +0 -0
- package/docs/public/screenshots/21.png +0 -0
- package/docs/public/screenshots/22.png +0 -0
- package/docs/public/screenshots/23.png +0 -0
- package/docs/public/screenshots/24.png +0 -0
- package/docs/public/screenshots/25.png +0 -0
- package/docs/public/screenshots/26.png +0 -0
- package/docs/public/screenshots/27.png +0 -0
- package/docs/public/screenshots/28.png +0 -0
- package/docs/public/screenshots/29.png +0 -0
- package/docs/public/screenshots/3.png +0 -0
- package/docs/public/screenshots/30.png +0 -0
- package/docs/public/screenshots/31.png +0 -0
- package/docs/public/screenshots/32.png +0 -0
- package/docs/public/screenshots/33.png +0 -0
- package/docs/public/screenshots/34.png +0 -0
- package/docs/public/screenshots/35.png +0 -0
- package/docs/public/screenshots/36.png +0 -0
- package/docs/public/screenshots/37.png +0 -0
- package/docs/public/screenshots/38.png +0 -0
- package/docs/public/screenshots/4.png +0 -0
- package/docs/public/screenshots/5.png +0 -0
- package/docs/public/screenshots/6.png +0 -0
- package/docs/public/screenshots/7.png +0 -0
- package/docs/public/screenshots/8.png +0 -0
- package/docs/public/screenshots/9.png +0 -0
- package/example.md +1503 -0
- package/layoutHelper.ts +118 -0
- package/layouts/cover.vue +93 -0
- package/layouts/credits.vue +35 -0
- package/layouts/default.vue +18 -0
- package/layouts/four-cell.vue +210 -0
- package/layouts/full.vue +22 -0
- package/layouts/intro.vue +75 -0
- package/layouts/quote.vue +62 -0
- package/layouts/section.vue +84 -0
- package/layouts/side-title.vue +142 -0
- package/layouts/top-title-two-cols.vue +131 -0
- package/layouts/top-title.vue +63 -0
- package/layouts/two-cols-title.vue +176 -0
- package/layouts/two-cols.vue +141 -0
- package/package.json +54 -0
- package/public/images/photo.png +0 -0
- package/public/images/photo2.png +0 -0
- package/public/images/scatter1.png +0 -0
- package/public/images/scatter1.svg +20 -0
- package/screenshot.md +874 -0
- package/setup/main.ts +45 -0
- package/setup/shiki.ts +14 -0
- package/slide-bottom.vue +107 -0
- package/styles/base.css +240 -0
- package/styles/bubbles.css +4 -0
- package/styles/colors.css +12 -0
- package/styles/index.ts +11 -0
- package/styles/layouts.css +76 -0
- package/styles/stickynote.css +4 -0
- package/uno.config.ts +222 -0
- package/vite.config.ts +16 -0
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# StickyNote
|
|
2
|
+
|
|
3
|
+
<img src="/screenshots/36.png" alt="stickynotes slide example" width="600" class="screenshot mb-10 mt-10"/>
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
|
|
7
|
+
StickyNotes are a take on the classic computer metaphor of a sticknote. They are often used to provide notes or additional information to the viewer.
|
|
8
|
+
|
|
9
|
+
## `StickyNote`
|
|
10
|
+
|
|
11
|
+
The `StickyNote` component is used to create a colored box with an title and content. The StickyNote component has the following props:
|
|
12
|
+
|
|
13
|
+
- `title` (optional). Default value is ''
|
|
14
|
+
- `color` (optional) can be any of the [color scheme](/colors) options. If not provided, the default color is `amber-light`.
|
|
15
|
+
- `width` (optional) the width of the admonition. Default is `180px`.
|
|
16
|
+
- `textAlign` (optional) the text alignment of the content. Default is `left`.
|
|
17
|
+
|
|
18
|
+
Example:
|
|
19
|
+
|
|
20
|
+
```md
|
|
21
|
+
<StickyNote color="amber-light" textAlign="left" width="180px" title="Title">
|
|
22
|
+
|
|
23
|
+
Hello, I'm a **sticky note**.
|
|
24
|
+
</StickyNote>
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Renders as:
|
|
28
|
+
<StickyNote color="amber-light" textAlign="left" width="180px" title="Title">
|
|
29
|
+
|
|
30
|
+
Hello, I'm a **sticky note**.
|
|
31
|
+
</StickyNote>
|
|
32
|
+
|
|
33
|
+
If you want to position it somewhere arbitrary on the slide add v-drag to the admonition and also set the width to something fixed (e.g., `300px`):
|
|
34
|
+
|
|
35
|
+
```md
|
|
36
|
+
<StickyNote color="amber-light" textAlign="left" width="180px" title="Title" v-drag>
|
|
37
|
+
|
|
38
|
+
Hello, I'm a **sticky note**.
|
|
39
|
+
</StickyNote>
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
Another color:
|
|
43
|
+
|
|
44
|
+
```md
|
|
45
|
+
<StickyNote color="pink-light" textAlign="left" width="180px" title="Title">
|
|
46
|
+
|
|
47
|
+
Hello, I'm a **sticky note**.
|
|
48
|
+
</StickyNote>
|
|
49
|
+
```
|
|
50
|
+
|
|
51
|
+
<StickyNote color="pink-light" textAlign="left" width="180px" title="Title">
|
|
52
|
+
|
|
53
|
+
Hello, I'm a **sticky note**.
|
|
54
|
+
</StickyNote>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
# Components
|
|
2
|
+
|
|
3
|
+
Components are add-ons to the theme that can be used to add additional features to your slides. In some cases, they represent simple design elements like StickyNotes that can be added to slides. In other cases they add animations or interactivity to your slides.
|
|
4
|
+
|
|
5
|
+
The current components are:
|
|
6
|
+
|
|
7
|
+
- [Admonitions](/components/admonitions) - boxes that can be used to highlight text that includes styling like a title and icon.
|
|
8
|
+
|
|
9
|
+
- [SpeechBubble](/components/speechbubble) - a speech bubble with configurable position, shape, and color.
|
|
10
|
+
|
|
11
|
+
- [StickyNote](/components/stickynote) - a sticky note styled element that can be added to slides.
|
|
12
|
+
|
|
13
|
+
- [CreditScroll](/components/creditscroll) - a scrolling credits slide simliar to the end of a movive.
|
|
14
|
+
|
|
15
|
+
- [QRCore](/components/qrcode) - a QR code generator that can be used to add QR codes to slides.
|
|
16
|
+
|
|
17
|
+
- [Kawaii](/components/kawaii) - Modification of select [Vue Kawaii](https://github.com/youngtailors/vue-kawaii) figures that add cute characters to slides.
|
|
18
|
+
|
|
19
|
+
Most component can just be included in-line in your markdown. However, in some cases it can make sense to position these components using the `v-drag` directive. For example, the `SpeechBubble` component can be positioned using the `v-drag` directive to place it in a specific location on the slide. This can be useful for creating custom layouts or animations. In that case, it makes sense to keep the component in the [default slot](/layouts#slots) of each layout.
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Contributing
|
|
2
|
+
|
|
3
|
+
I welcome contributions to this project. However, I have limited time to provide free technical support.
|
|
4
|
+
|
|
5
|
+
If you have questions or ideas consider opening a [discussion](https://github.com/gureckis/slidev-theme-neversink/discussions) on this repository. If you have a bug report or feature request, please open an [issue](https://github.com/gureckis/slidev-theme-neversink/issues). If you have a code contribution, please open a [pull request](https://github.com/gureckis/slidev-theme-neversink/pulls).
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# Customizing
|
|
2
|
+
|
|
3
|
+
Generally you can customize this theme following the recommendations of [Slidev](https://sli.dev/custom/directory-structure). But there are a few hints:
|
|
4
|
+
|
|
5
|
+
## Customizing CSS
|
|
6
|
+
|
|
7
|
+
To add custom CSS styles to your project simply create a folder in the same files as your slide markdown file (usually `slides.md`) called `styles`.
|
|
8
|
+
|
|
9
|
+
```sh
|
|
10
|
+
your-slidev/
|
|
11
|
+
├── slides.md
|
|
12
|
+
└── styles/
|
|
13
|
+
├── index.ts
|
|
14
|
+
└── custom.css
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
in `index.ts` add the following:
|
|
18
|
+
|
|
19
|
+
```ts
|
|
20
|
+
// styles/index.ts
|
|
21
|
+
|
|
22
|
+
import './custom.css'
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
Then add whatever classes you want to `custom.css`.
|
|
26
|
+
|
|
27
|
+
## Customizing fonts
|
|
28
|
+
|
|
29
|
+
To customize the fonts used in the theme, you can set the following CSS variables in your `custom.css` file:
|
|
30
|
+
|
|
31
|
+
```css
|
|
32
|
+
:root {
|
|
33
|
+
--neversink-title-font: 'Inter', sans-serif;
|
|
34
|
+
--neversink-main-font: 'Inter', sans-serif;
|
|
35
|
+
--neversink-mono-font: 'Inter', monospace;
|
|
36
|
+
--neversink-quote-font: 'Fire Code', monospace;
|
|
37
|
+
}
|
|
38
|
+
```
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
# Getting started with Neversink
|
|
2
|
+
|
|
3
|
+
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:
|
|
4
|
+
|
|
5
|
+
```bash
|
|
6
|
+
npm install slidev-theme-neversink
|
|
7
|
+
```
|
|
8
|
+
|
|
9
|
+
Then create a slidev markdown file (e.g., `slides.md`) and add the theme to the frontmatter of your first slide:
|
|
10
|
+
|
|
11
|
+
```md
|
|
12
|
+
---
|
|
13
|
+
theme: neversink
|
|
14
|
+
---
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Then you are basically ready to go!
|
|
18
|
+
|
|
19
|
+
If you are new to Slidev highly recommend you check out the [Slidev documentation](https://sli.dev/) before diving in.
|
|
20
|
+
|
|
21
|
+
## Read on about all the Neversink features
|
|
22
|
+
|
|
23
|
+
- [Markdown features](markdown.md) - special addons to the Slidev markdown syntax
|
|
24
|
+
- [Color schemes](colors.md) - the color schemes available in Neversink
|
|
25
|
+
- [Branding](branding.md) - how to customize the theme to your brand/logos
|
|
26
|
+
- [Custom layouts](layouts.md) - the custom slide layouts available in Neversink
|
|
27
|
+
- [Components](components.md) - the custom components such as sticky notes and admonitions
|
|
28
|
+
- [Customizing](customizing.md) - how to customize the theme with your own CSS/fonts, etc...
|
|
29
|
+
|
|
30
|
+
## ... or simply pick a layout to learn how to structure it
|
|
31
|
+
|
|
32
|
+
<!--@include: ./parts/layoutpicker.md-->
|
package/docs/index.md
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
# https://vitepress.dev/reference/default-theme-home-page
|
|
3
|
+
layout: home
|
|
4
|
+
|
|
5
|
+
hero:
|
|
6
|
+
name: 'Neversink'
|
|
7
|
+
tagline: An education/academic Slidev theme
|
|
8
|
+
actions:
|
|
9
|
+
- theme: brand
|
|
10
|
+
text: Get Started
|
|
11
|
+
link: /getting-started
|
|
12
|
+
- theme: alt
|
|
13
|
+
text: Example deck
|
|
14
|
+
link: https://gureckis.github.io/slidev-theme-neversink/example/#1
|
|
15
|
+
target: '_self'
|
|
16
|
+
- theme: alt
|
|
17
|
+
text: GitHub
|
|
18
|
+
link: https://github.com/gureckis/slidev-theme-neversink
|
|
19
|
+
---
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
# `layout: cover`
|
|
2
|
+
|
|
3
|
+
<img src="/screenshots/2.png" alt="Cover slide example" width="600" class="screenshot mb-10 mt-10"/>
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
|
|
7
|
+
The `layout: cover` layout is presumably the first slide of your presentation. It is a full screen slide with a title and subtitle. The title is displayed in a large font size and the subtitle is displayed in a smaller font size. The title has a line beneath it. The title and subtitle are centered vertically on the slide.
|
|
8
|
+
|
|
9
|
+
## Frontmatter
|
|
10
|
+
|
|
11
|
+
- `layout: cover` (required).
|
|
12
|
+
- `color:` (optional) can be any of the [color scheme](/colors) options. If not provided, the default color is `white`.
|
|
13
|
+
|
|
14
|
+
Example:
|
|
15
|
+
|
|
16
|
+
```yaml
|
|
17
|
+
---
|
|
18
|
+
layout: cover
|
|
19
|
+
color: white
|
|
20
|
+
---
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Slots
|
|
24
|
+
|
|
25
|
+
This `cover` slide has one slot called `:: notes ::` which is optional. This slot is used to add notes to the slide. The notes are displayed in a smaller font size at the bottom of the slide.
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
### Basic example
|
|
30
|
+
|
|
31
|
+
```md
|
|
32
|
+
---
|
|
33
|
+
layout: cover
|
|
34
|
+
color: light
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
# This is my slide title
|
|
38
|
+
|
|
39
|
+
by **My Author**
|
|
40
|
+
|
|
41
|
+
:: note ::
|
|
42
|
+
|
|
43
|
+
\* This is a note about the slide.
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
Renders as:
|
|
47
|
+
|
|
48
|
+
<img src="/screenshots/2.png" alt="Cover slide example" width="600" class="screenshot"/>
|
|
49
|
+
|
|
50
|
+
### It's not easy being green
|
|
51
|
+
|
|
52
|
+
```md
|
|
53
|
+
---
|
|
54
|
+
layout: cover
|
|
55
|
+
color: emerald-light
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
# It's not easy being green
|
|
59
|
+
|
|
60
|
+
by **Kermit the Frog**
|
|
61
|
+
|
|
62
|
+
:: note ::
|
|
63
|
+
|
|
64
|
+
\* This is emerald, not green.
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
Renders as:
|
|
68
|
+
|
|
69
|
+
<img src="/screenshots/3.png" alt="Cover slide example" width="600" class="screenshot"/>
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
# `layout: credits`
|
|
2
|
+
|
|
3
|
+
## Description
|
|
4
|
+
|
|
5
|
+
The `layout: credits` make a scrolling credits slide simliar to the end of a movive. The slide will automatically scroll the content up the screen. The actual logic for the scrolling is handled by the [CreditScroll component](/components/creditscroll).
|
|
6
|
+
|
|
7
|
+
## Frontmatter
|
|
8
|
+
|
|
9
|
+
- `layout: credits` (required).
|
|
10
|
+
- `color:` (optional) can be any of the [color scheme](/colors) options. If not provided, the default color is `white`.
|
|
11
|
+
- `speed:` (optional) the speed of the scrolling. Default is `0.5`. Higher numbers are faster.
|
|
12
|
+
- `loop:` (optional) if the credits should loop back to the beginning. Default is `false`.
|
|
13
|
+
|
|
14
|
+
Example:
|
|
15
|
+
|
|
16
|
+
```yaml
|
|
17
|
+
---
|
|
18
|
+
layout: credits
|
|
19
|
+
color: light
|
|
20
|
+
speed: 2.0
|
|
21
|
+
loop: true
|
|
22
|
+
---
|
|
23
|
+
```
|
|
24
|
+
|
|
25
|
+
## Slots
|
|
26
|
+
|
|
27
|
+
This slide just uses the default slot for the content.
|
|
28
|
+
|
|
29
|
+
## Examples
|
|
30
|
+
|
|
31
|
+
### Basic example
|
|
32
|
+
|
|
33
|
+
```md
|
|
34
|
+
---
|
|
35
|
+
layout: credits
|
|
36
|
+
color: light
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
<div class="grid text-size-4 grid-cols-3 w-3/4 gap-y-10 auto-rows-min ml-auto mr-auto">
|
|
40
|
+
<div class="grid-item text-center mr-0- col-span-3">
|
|
41
|
+
|
|
42
|
+
This is the `layout: credits` slide. It's a movie-like scrolling credits!
|
|
43
|
+
</div>
|
|
44
|
+
<div class="grid-item text-center mr-0- col-span-3">
|
|
45
|
+
<strong>Cast</strong><br>
|
|
46
|
+
<span class="font-size-3 mt-0">(In order of appearance)</span>
|
|
47
|
+
</div>
|
|
48
|
+
<div class="grid-item text-right mr-4 col-span-1"><strong>Study 1</strong></div>
|
|
49
|
+
<div class="grid-item col-span-2">Person 1 <i>as PhD student</i> <mdi-open-in-new class="font-size-3 mb-0.5" /><br/>Person 2 <i>as Co-PI</i> <mdi-open-in-new class="font-size-3 mb-0.5" /></div>
|
|
50
|
+
<div class="grid-item text-right mr-4 col-span-1"><strong>Study 2</strong></div>
|
|
51
|
+
<div class="grid-item col-span-2">Person 3 <i>as Postdoc</i> <mdi-open-in-new class="font-size-3 mb-0.5" /><br/>Person 4 <i>as Co-PI</i> <mdi-open-in-new class="font-size-3 mb-0.5" /></div>
|
|
52
|
+
<div class="grid-item text-right mr-4 col-span-1"><strong>Experiments</strong></div>
|
|
53
|
+
<div class="grid-item col-span-2">Smile 🫠</div>
|
|
54
|
+
<div class="grid-item text-right mr-4 col-span-1"><strong>Funding</strong></div>
|
|
55
|
+
<div class="grid-item col-span-2">National Science Foundation<br/>
|
|
56
|
+
National Institute of Health</div>
|
|
57
|
+
<div class="grid-item text-right mr-4 col-span-1"><strong>Slides</strong></div>
|
|
58
|
+
<div class="grid-item col-span-2">
|
|
59
|
+
Slidev<br/>
|
|
60
|
+
Unocss<br/>
|
|
61
|
+
Figma<br/>
|
|
62
|
+
Vuejs<br/>
|
|
63
|
+
Vite<br/>
|
|
64
|
+
</div>
|
|
65
|
+
<div class="grid-item col-span-3 text-center mt-180px mb-auto font-size-1.5rem"><strong>Questions?</strong></div>
|
|
66
|
+
</div>
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
Renders as:
|
|
70
|
+
|
|
71
|
+
### Dark like the movies, and fast
|
|
72
|
+
|
|
73
|
+
```md
|
|
74
|
+
---
|
|
75
|
+
layout: credits
|
|
76
|
+
color: dark
|
|
77
|
+
speed: 4.0
|
|
78
|
+
loop: true
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
<div class="grid text-size-4 grid-cols-3 w-3/4 gap-y-10 auto-rows-min ml-auto mr-auto">
|
|
82
|
+
<div class="grid-item text-center mr-0- col-span-3">
|
|
83
|
+
|
|
84
|
+
This is the `layout: credits` slide. It's a movie-like scrolling credits!
|
|
85
|
+
</div>
|
|
86
|
+
<div class="grid-item text-center mr-0- col-span-3">
|
|
87
|
+
<strong>Cast</strong><br>
|
|
88
|
+
<span class="font-size-3 mt-0">(In order of appearance)</span>
|
|
89
|
+
</div>
|
|
90
|
+
<div class="grid-item text-right mr-4 col-span-1"><strong>Study 1</strong></div>
|
|
91
|
+
<div class="grid-item col-span-2">Person 1 <i>as PhD student</i> <mdi-open-in-new class="font-size-3 mb-0.5" /><br/>Person 2 <i>as Co-PI</i> <mdi-open-in-new class="font-size-3 mb-0.5" /></div>
|
|
92
|
+
<div class="grid-item text-right mr-4 col-span-1"><strong>Study 2</strong></div>
|
|
93
|
+
<div class="grid-item col-span-2">Person 3 <i>as Postdoc</i> <mdi-open-in-new class="font-size-3 mb-0.5" /><br/>Person 4 <i>as Co-PI</i> <mdi-open-in-new class="font-size-3 mb-0.5" /></div>
|
|
94
|
+
<div class="grid-item text-right mr-4 col-span-1"><strong>Experiments</strong></div>
|
|
95
|
+
<div class="grid-item col-span-2">Smile 🫠</div>
|
|
96
|
+
<div class="grid-item text-right mr-4 col-span-1"><strong>Funding</strong></div>
|
|
97
|
+
<div class="grid-item col-span-2">National Science Foundation<br/>
|
|
98
|
+
National Institute of Health</div>
|
|
99
|
+
<div class="grid-item text-right mr-4 col-span-1"><strong>Slides</strong></div>
|
|
100
|
+
<div class="grid-item col-span-2">
|
|
101
|
+
Slidev<br/>
|
|
102
|
+
Unocss<br/>
|
|
103
|
+
Figma<br/>
|
|
104
|
+
Vuejs<br/>
|
|
105
|
+
Vite<br/>
|
|
106
|
+
</div>
|
|
107
|
+
<div class="grid-item col-span-3 text-center mt-180px mb-auto font-size-1.5rem"><strong>Questions?</strong></div>
|
|
108
|
+
</div>
|
|
109
|
+
```
|
|
110
|
+
|
|
111
|
+
Renders as:
|
|
@@ -0,0 +1,88 @@
|
|
|
1
|
+
# `layout: default`
|
|
2
|
+
|
|
3
|
+
<img src="/screenshots/6.png" alt="Default slide example" width="600" class="screenshot mb-10 mt-10"/>
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
|
|
7
|
+
The `layout: default` layout is probably the most common slide type. It is a full screen slide with a title and content. The title is displayed in a large font size and the content is displayed in a smaller font size.
|
|
8
|
+
|
|
9
|
+
## Frontmatter
|
|
10
|
+
|
|
11
|
+
- `layout: default` (required).
|
|
12
|
+
- `color:` (optional) can be any of the [color scheme](/colors) options. If not provided, the default color is `white`.
|
|
13
|
+
|
|
14
|
+
Example:
|
|
15
|
+
|
|
16
|
+
```yaml
|
|
17
|
+
---
|
|
18
|
+
layout: default
|
|
19
|
+
color: white
|
|
20
|
+
---
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Slots
|
|
24
|
+
|
|
25
|
+
This `default` slide has no explicitly slots, using only the default slot.
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
### Basic example
|
|
30
|
+
|
|
31
|
+
```md
|
|
32
|
+
---
|
|
33
|
+
layout: default
|
|
34
|
+
---
|
|
35
|
+
|
|
36
|
+
# This is the `default` layout
|
|
37
|
+
|
|
38
|
+
This is kind of the basic slide. The main content is interpreted as
|
|
39
|
+
markdown and rendered in the center of the slide.
|
|
40
|
+
|
|
41
|
+
Speaking of markdown, you can use markdown to make things **bold** or
|
|
42
|
+
_italic_ or even `code` like `this`. In **Neversink** you can also
|
|
43
|
+
==highlight things using the double equals signs like this== thanks
|
|
44
|
+
to the `markdown-it-mark` plugin.
|
|
45
|
+
|
|
46
|
+
Of course you can make bullet lists:
|
|
47
|
+
|
|
48
|
+
- Hi
|
|
49
|
+
- There
|
|
50
|
+
- Bananas
|
|
51
|
+
|
|
52
|
+
and use all the Slidev [markdown features](https://sli.dev/guide/syntax) like LaTeX math $x^2$, etc...
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
Renders as:
|
|
56
|
+
|
|
57
|
+
<img src="/screenshots/6.png" alt="Cover slide example" width="600" class="screenshot"/>
|
|
58
|
+
|
|
59
|
+
### Dark and stormy
|
|
60
|
+
|
|
61
|
+
```md
|
|
62
|
+
---
|
|
63
|
+
layout: default
|
|
64
|
+
color: navy
|
|
65
|
+
---
|
|
66
|
+
|
|
67
|
+
# This is the `default` layout
|
|
68
|
+
|
|
69
|
+
This is kind of the basic slide. The main content is interpreted as
|
|
70
|
+
markdown and rendered in the center of the slide.
|
|
71
|
+
|
|
72
|
+
Speaking of markdown, you can use markdown to make things **bold** or
|
|
73
|
+
_italic_ or even `code` like `this`. In **Neversink** you can also
|
|
74
|
+
==highlight things using the double equals signs like this== thanks
|
|
75
|
+
to the `markdown-it-mark` plugin.
|
|
76
|
+
|
|
77
|
+
Of course you can make bullet lists:
|
|
78
|
+
|
|
79
|
+
- Hi
|
|
80
|
+
- There
|
|
81
|
+
- Bananas
|
|
82
|
+
|
|
83
|
+
and use all the Slidev [markdown features](https://sli.dev/guide/syntax) like LaTeX math $x^2$, etc...
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
Renders as:
|
|
87
|
+
|
|
88
|
+
<img src="/screenshots/7.png" alt="Cover slide example" width="600" class="screenshot"/>
|
|
@@ -0,0 +1,131 @@
|
|
|
1
|
+
# `layout: full`
|
|
2
|
+
|
|
3
|
+
<img src="/screenshots/29.png" alt="full slide example" width="600" class="screenshot mb-10 mt-10"/>
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
|
|
7
|
+
The `layout: full` fill the entire slide except for some margins. This layout is useful for slides that need to display a lot of content or images.
|
|
8
|
+
|
|
9
|
+
## Frontmatter
|
|
10
|
+
|
|
11
|
+
- `layout: full` (required).
|
|
12
|
+
- `color:` (optional) can be any of the [color scheme](/colors) options. If not provided, the default color is `white`.
|
|
13
|
+
Example:
|
|
14
|
+
|
|
15
|
+
```yaml
|
|
16
|
+
---
|
|
17
|
+
layout: full
|
|
18
|
+
---
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
## Slots
|
|
22
|
+
|
|
23
|
+
This slide just uses the default slot for the content.
|
|
24
|
+
|
|
25
|
+
## Examples
|
|
26
|
+
|
|
27
|
+
### Basic example showing some figures
|
|
28
|
+
|
|
29
|
+
```md
|
|
30
|
+
---
|
|
31
|
+
layout: full
|
|
32
|
+
title: Full Layout - 2 Col Fig
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
This is an example of using unocss atomic classes to put two figures side by side.
|
|
36
|
+
|
|
37
|
+
<div class="grid w-full h-fit grid-cols-2 grid-rows-2 mt-10 mb-auto">
|
|
38
|
+
<div class="grid-item grid-col-span-1"><img src="/images/scatter1.svg" /></div>
|
|
39
|
+
<div class="grid-item grid-col-span-1"><img src="/images/scatter1.svg" /></div>
|
|
40
|
+
<div class="grid-item grid-col-span-2 text-center h-fit">
|
|
41
|
+
|
|
42
|
+
**Figure show this**: this is a two column figure
|
|
43
|
+
|
|
44
|
+
</div>
|
|
45
|
+
</div>
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
Renders as:
|
|
49
|
+
|
|
50
|
+
<img src="/screenshots/29.png" alt="full slide example" width="600" class="screenshot"/>
|
|
51
|
+
|
|
52
|
+
### Addressable area
|
|
53
|
+
|
|
54
|
+
```md
|
|
55
|
+
---
|
|
56
|
+
layout: full
|
|
57
|
+
color: neutral
|
|
58
|
+
title: Full Layout
|
|
59
|
+
---
|
|
60
|
+
|
|
61
|
+
<div class='border-1px v-full h-full p-5'>
|
|
62
|
+
|
|
63
|
+
This is `layout: full` which fills the whole screen for the most part.
|
|
64
|
+
The grey box is just showing you the full addressable space.
|
|
65
|
+
Full can be useful for arbitrary layouts such as on the next slide which uses
|
|
66
|
+
the `v-drag` directive to position elements.
|
|
67
|
+
|
|
68
|
+
</div>
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
Renders as:
|
|
72
|
+
|
|
73
|
+
<img src="/screenshots/30.png" alt="full slide example" width="600" class="screenshot"/>
|
|
74
|
+
|
|
75
|
+
### A busy example
|
|
76
|
+
|
|
77
|
+
```md
|
|
78
|
+
---
|
|
79
|
+
layout: full
|
|
80
|
+
title: Full with Arbitrary Layout
|
|
81
|
+
---
|
|
82
|
+
|
|
83
|
+
<div class='v-full h-full'>
|
|
84
|
+
|
|
85
|
+
<SpeechBubble position="l" shape="round" color='pink-light' v-drag="[555,342,274,58]">
|
|
86
|
+
|
|
87
|
+
Hello, I'm an **ice cream**!
|
|
88
|
+
</SpeechBubble>
|
|
89
|
+
|
|
90
|
+
<SpeechBubble position="bl" shape="round" color='emerald-light' v-drag="[445,258,274,57]">
|
|
91
|
+
|
|
92
|
+
Hello, I'm **kawaii**.
|
|
93
|
+
</SpeechBubble>
|
|
94
|
+
|
|
95
|
+
<SpeechBubble position="r" shape="round" animation="float" color='sky' v-drag="[143,391,274,84]">
|
|
96
|
+
|
|
97
|
+
I'm v-dragged out and ==floating==.
|
|
98
|
+
</SpeechBubble>
|
|
99
|
+
|
|
100
|
+
<IceCream :size="150" mood="lovestruck" color="#FDA7DC" v-drag="[439,341,85,150]" />
|
|
101
|
+
|
|
102
|
+
<div class="tight" v-drag="[143,33,277,214]">
|
|
103
|
+
|
|
104
|
+
<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>
|
|
105
|
+
|
|
106
|
+
- Novelty bonuses
|
|
107
|
+
- Cumulative prediction error
|
|
108
|
+
- Learning progress
|
|
109
|
+
- Surprise
|
|
110
|
+
- Suspense
|
|
111
|
+
- Information gain
|
|
112
|
+
|
|
113
|
+
</div>
|
|
114
|
+
|
|
115
|
+
<div class="tight" v-drag="[461,63,293,148,17]">
|
|
116
|
+
|
|
117
|
+
<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>
|
|
118
|
+
|
|
119
|
+
- Structured behaviors
|
|
120
|
+
- Compositional
|
|
121
|
+
- Communicable
|
|
122
|
+
|
|
123
|
+
</div>
|
|
124
|
+
|
|
125
|
+
</div>
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
Renders as:
|
|
129
|
+
|
|
130
|
+
<img src="/screenshots/31.png" alt="full slide example" width="600" class="screenshot"/>
|
|
131
|
+
```
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
# `layout: intro`
|
|
2
|
+
|
|
3
|
+
<img src="/screenshots/4.png" alt="Cover slide example" width="600" class="screenshot mb-10 mt-10"/>
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
|
|
7
|
+
The `layout: intro` layout is an alternative for the first slide of your presentation. It is a full screen slide with a title and subtitle. The title is displayed in a large font size and the subtitle is displayed in a smaller font size. The title and subtitle are centered vertically on the slide. This isn't so different from `layout: cover` the main difference being the line beneath the title.
|
|
8
|
+
|
|
9
|
+
## Frontmatter
|
|
10
|
+
|
|
11
|
+
- `layout:` (required) is always `cover`.
|
|
12
|
+
- `color:` (optional) can be any of the [color scheme](/colors) options. If not provided, the default color is `white`.
|
|
13
|
+
|
|
14
|
+
Example:
|
|
15
|
+
|
|
16
|
+
```yaml
|
|
17
|
+
---
|
|
18
|
+
layout: intro
|
|
19
|
+
color: white
|
|
20
|
+
---
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## Slots
|
|
24
|
+
|
|
25
|
+
This `cover` slide has one slot called `:: notes ::` which is optional. This slot is used to add notes to the slide. The notes are displayed in a smaller font size at the bottom of the slide.
|
|
26
|
+
|
|
27
|
+
## Examples
|
|
28
|
+
|
|
29
|
+
```md
|
|
30
|
+
---
|
|
31
|
+
layout: intro
|
|
32
|
+
color: light
|
|
33
|
+
---
|
|
34
|
+
|
|
35
|
+
# This is my intro slide
|
|
36
|
+
|
|
37
|
+
by **My Author**
|
|
38
|
+
|
|
39
|
+
:: note ::
|
|
40
|
+
|
|
41
|
+
\* This is a note about the slide.
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
Renders as:
|
|
45
|
+
|
|
46
|
+
<img src="/screenshots/4.png" alt="Intro slide example" width="600" class="screenshot"/>
|
|
47
|
+
|
|
48
|
+
```md
|
|
49
|
+
---
|
|
50
|
+
layout: cover
|
|
51
|
+
color: indigo
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
# This is my intro slide in indigo
|
|
55
|
+
|
|
56
|
+
by **My Author**
|
|
57
|
+
|
|
58
|
+
:: note ::
|
|
59
|
+
|
|
60
|
+
\* This is a note about the slide.
|
|
61
|
+
```
|
|
62
|
+
|
|
63
|
+
<img src="/screenshots/5.png" alt="Intro slide example" width="600" class="screenshot"/>
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# `layout: quote`
|
|
2
|
+
|
|
3
|
+
<img src="/screenshots/26.png" alt="quote slide example" width="600" class="screenshot mb-10 mt-10"/>
|
|
4
|
+
|
|
5
|
+
## Description
|
|
6
|
+
|
|
7
|
+
The `layout: quote` is used when you want to provide a full slide quotation for dramatic effect in your presentation. The quote is displayed in a large font size and the author is displayed in a smaller font size. The quote and author are centered vertically on the slide.
|
|
8
|
+
|
|
9
|
+
## Frontmatter
|
|
10
|
+
|
|
11
|
+
- `layout: quote` (required).
|
|
12
|
+
- `color:` (optional) can be any of the [color scheme](/colors) options. If not provided, the default color is `light`.
|
|
13
|
+
- `quotesize:` (optional) the font size of the quote. Default is `text-2xl`. Based on tailwind sizes.
|
|
14
|
+
- `authorsize:` (optional) the font size of the quote. Default is `text-l`. Based on tailwind sizes.
|
|
15
|
+
- 'author:' (optional) the author of the quote. If not provided, the author will not be displayed.
|
|
16
|
+
|
|
17
|
+
Example:
|
|
18
|
+
|
|
19
|
+
```yaml
|
|
20
|
+
---
|
|
21
|
+
layout: quote
|
|
22
|
+
color: sky-light
|
|
23
|
+
quotesize: text-m
|
|
24
|
+
authorsize: text-s
|
|
25
|
+
author: 'Todd Gureckis'
|
|
26
|
+
---
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Slots
|
|
30
|
+
|
|
31
|
+
This slide just uses the default slot for the quote. Additional formatting can be provided there.
|
|
32
|
+
|
|
33
|
+
## Examples
|
|
34
|
+
|
|
35
|
+
### Basic example
|
|
36
|
+
|
|
37
|
+
```md
|
|
38
|
+
---
|
|
39
|
+
layout: quote
|
|
40
|
+
color: sky-light
|
|
41
|
+
quotesize: text-m
|
|
42
|
+
authorsize: text-s
|
|
43
|
+
author: 'Todd Gureckis'
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
"This is a quote slide. It has a frontmatter 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."
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Renders as:
|
|
50
|
+
|
|
51
|
+
<img src="/screenshots/26.png" alt="quote slide example" width="600" class="screenshot"/>
|