Skip to content

Commit 3068172

Browse files
committed
feat: init and make slide of lesson 01
0 parents  commit 3068172

File tree

9 files changed

+2872
-0
lines changed

9 files changed

+2872
-0
lines changed

.gitignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
*.local
5+
index.html
6+
.remote-assets
7+
components.d.ts

.npmrc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# for pnpm
2+
shamefully-hoist=true

README.md

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Welcome to [Slidev](https://github.com/slidevjs/slidev)!
2+
3+
To start the slide show:
4+
5+
- `npm install`
6+
- `npm run dev`
7+
- visit http://localhost:3030
8+
9+
Edit the [slides.md](./slides.md) to see the changes.
10+
11+
Learn more about Slidev on [documentations](https://sli.dev/).

components/Counter.vue

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
<script setup lang="ts">
2+
import { ref } from 'vue'
3+
4+
const props = defineProps({
5+
count: {
6+
default: 0,
7+
},
8+
})
9+
10+
const counter = ref(props.count)
11+
</script>
12+
13+
<template>
14+
<div flex="~" w="min" border="~ gray-400 opacity-50 rounded-md">
15+
<button
16+
border="r gray-400 opacity-50"
17+
p="2"
18+
font="mono"
19+
outline="!none"
20+
hover:bg="gray-400 opacity-20"
21+
@click="counter -= 1"
22+
>
23+
-
24+
</button>
25+
<span m="auto" p="2">{{ counter }}</span>
26+
<button
27+
border="l gray-400 opacity-50"
28+
p="2"
29+
font="mono"
30+
outline="!none"
31+
hover:bg="gray-400 opacity-20"
32+
@click="counter += 1"
33+
>
34+
+
35+
</button>
36+
</div>
37+
</template>

netlify.toml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
[build.environment]
2+
NODE_VERSION = "14"
3+
4+
[build]
5+
publish = "dist"
6+
command = "npm run build"
7+
8+
[[redirects]]
9+
from = "/*"
10+
to = "/index.html"
11+
status = 200

package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"private": true,
3+
"scripts": {
4+
"build": "slidev build",
5+
"dev": "slidev",
6+
"export": "slidev export"
7+
},
8+
"dependencies": {
9+
"@slidev/cli": "^0.27.9",
10+
"@slidev/theme-apple-basic": "^0.20.0",
11+
"@slidev/theme-default": "*",
12+
"@slidev/theme-seriph": "*"
13+
},
14+
"name": "slides"
15+
}

0 commit comments

Comments
 (0)