slidev-theme-the-unnamed 0.0.1 → 0.0.2
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/README.md +6 -0
- package/changelog.md +10 -0
- package/example.md +1 -0
- package/layouts/cover.vue +13 -2
- package/layouts/intro.vue +1 -1
- package/layouts/quote.vue +7 -0
- package/layouts/section.vue +7 -0
- package/layouts/statement.vue +7 -0
- package/package.json +13 -4
package/README.md
CHANGED
package/changelog.md
ADDED
package/example.md
CHANGED
package/layouts/cover.vue
CHANGED
|
@@ -1,7 +1,18 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
import { computed } from 'vue'
|
|
3
|
+
import { handleBackground } from '../layoutHelper'
|
|
4
|
+
const props = defineProps({
|
|
5
|
+
background: {
|
|
6
|
+
default: '',
|
|
7
|
+
},
|
|
8
|
+
})
|
|
9
|
+
const style = computed(() => handleBackground(props.background, true))
|
|
10
|
+
</script>
|
|
11
|
+
|
|
1
12
|
<template>
|
|
2
|
-
<div class="slidev-layout cover">
|
|
13
|
+
<div class="slidev-layout cover" :style="style">
|
|
3
14
|
<div class="my-auto w-full">
|
|
4
15
|
<slot />
|
|
5
16
|
</div>
|
|
6
17
|
</div>
|
|
7
|
-
</template>
|
|
18
|
+
</template>
|
package/layouts/intro.vue
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "slidev-theme-the-unnamed",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.2",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"slidev-theme",
|
|
6
6
|
"slidev"
|
|
@@ -27,6 +27,15 @@
|
|
|
27
27
|
"//": "Learn more: https://sli.dev/themes/write-a-theme.html",
|
|
28
28
|
"slidev": {
|
|
29
29
|
"colorSchema": "dark",
|
|
30
|
-
"highlighter": "shiki"
|
|
31
|
-
|
|
32
|
-
|
|
30
|
+
"highlighter": "shiki",
|
|
31
|
+
"defaults": {
|
|
32
|
+
"fonts": {
|
|
33
|
+
"mono": "Fira Code",
|
|
34
|
+
"sans": "Avenir Next,Nunito Sans",
|
|
35
|
+
"local": "Avenir Next"
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"author": "Elio Struyf <elio@struyfconsulting.be>",
|
|
40
|
+
"funding": "https://github.com/sponsors/estruyf"
|
|
41
|
+
}
|