Skip to content

Commit

Permalink
add slidev files
Browse files Browse the repository at this point in the history
Signed-off-by: Piotr Król <[email protected]>
  • Loading branch information
pietrushnic committed Sep 29, 2024
1 parent 7b30b2c commit 079fe6d
Show file tree
Hide file tree
Showing 43 changed files with 1,531 additions and 0 deletions.
9 changes: 9 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
node_modules
.DS_Store
dist
*.local
.vite-inspect
.remote-assets
components.d.ts
venv
*.pdf
37 changes: 37 additions & 0 deletions components/Counter.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
<script setup lang="ts">
import { ref } from 'vue'
const props = defineProps({
count: {
default: 0,
},
})
const counter = ref(props.count)
</script>

<template>
<div flex="~" w="min" border="~ main rounded-md">
<button
border="r main"
p="2"
font="mono"
outline="!none"
hover:bg="gray-400 opacity-20"
@click="counter -= 1"
>
-
</button>
<span m="auto" p="2">{{ counter }}</span>
<button
border="l main"
p="2"
font="mono"
outline="!none"
hover:bg="gray-400 opacity-20"
@click="counter += 1"
>
+
</button>
</div>
</template>
15 changes: 15 additions & 0 deletions global-top.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
<template>
<div>
<Scroll/>
<footer
v-if="$nav.currentLayout !== 'cover'"
class="absolute bottom-0 left-0 right-0 text-center py-2 text-[#000000]"
>
<small>© 2024 3mdeb Sp. z o.o. Licensed under the <a href="https://creativecommons.org/licenses/by-sa/4.0/" target="_blank">CC BY-SA 4.0</a>.
</small>
<div class="absolute bottom-0 right-0 py-2 pr-2 text-right text-[#000000]">
<small><SlideCurrentNo/>/<SlidesTotal/></small>
</div>
</footer>
</div>
</template>
19 changes: 19 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
{
"name": "presentation",
"type": "module",
"private": true,
"scripts": {
"build": "slidev build",
"dev": "slidev --open",
"export": "slidev export"
},
"dependencies": {
"@slidev/cli": "^0.49.29",
"@slidev/theme-default": "latest",
"@slidev/theme-seriph": "latest",
"vue": "^3.4.38"
},
"devDependencies": {
"markdown-it-admon": "^1.0.1"
}
}
28 changes: 28 additions & 0 deletions pages/imported-slides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# Imported Slides

You can split your slides.md into multiple files and organize them as you want using the `src` attribute.

#### `slides.md`

```markdown
# Page 1

Page 2 from main entry.

---

## src: ./subpage.md
```

<br>

#### `subpage.md`

```markdown
# Page 2

Page 2 from another file.
```

[Learn more](https://sli.dev/guide/syntax.html#importing-slides)

62 changes: 62 additions & 0 deletions public/dasharo-sygnet-white.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/fonts/miriam/MiriamLibre-Bold 2.ttf
Binary file not shown.
Binary file added public/fonts/miriam/MiriamLibre-Bold 3.ttf
Binary file not shown.
Binary file added public/fonts/miriam/MiriamLibre-Bold.ttf
Binary file not shown.
Binary file added public/fonts/miriam/MiriamLibre-Regular 2.ttf
Binary file not shown.
Binary file added public/fonts/miriam/MiriamLibre-Regular 3.ttf
Binary file not shown.
Binary file added public/fonts/miriam/MiriamLibre-Regular.ttf
Binary file not shown.
Binary file added public/fonts/opensans/OpenSans-Bold.ttf
Binary file not shown.
Binary file added public/fonts/opensans/OpenSans-BoldItalic.ttf
Binary file not shown.
Binary file added public/fonts/opensans/OpenSans-ExtraBold.ttf
Binary file not shown.
Binary file not shown.
Binary file added public/fonts/opensans/OpenSans-Italic.ttf
Binary file not shown.
Binary file added public/fonts/opensans/OpenSans-Light.ttf
Binary file not shown.
Binary file added public/fonts/opensans/OpenSans-LightItalic.ttf
Binary file not shown.
Binary file added public/fonts/opensans/OpenSans-Regular.ttf
Binary file not shown.
Binary file added public/fonts/opensans/OpenSans-Semibold.ttf
Binary file not shown.
Binary file not shown.
Binary file added public/intro.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
24 changes: 24 additions & 0 deletions slides.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
---
theme: ./theme
background: /intro.png
# some information about your slides (markdown enabled)
title: "Presentation Title"
info: false
# apply unocss classes to the current slide
class: text-center
# https://sli.dev/features/drawing
drawings:
persist: false
# slide transition: https://sli.dev/guide/animations.html#slide-transitions
transition: slide-left
# enable MDC Syntax: https://sli.dev/features/mdc
mdc: true

---

## Presentation title

---
# Provide path to slides you want to present.
src: ./pages/imported-slides.md
---
12 changes: 12 additions & 0 deletions snippets/external.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/* eslint-disable no-console */

// #region snippet
// Inside ./snippets/external.ts
export function emptyArray<T>(length: number) {
return Array.from<T>({ length })
}
// #endregion snippet

export function sayHello() {
console.log('Hello from snippets/external.ts')
}
Loading

0 comments on commit 079fe6d

Please sign in to comment.