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 CHANGED
@@ -1,3 +1,9 @@
1
1
  # Slidev Theme - The unnamed
2
2
 
3
+ [![NPM version](https://img.shields.io/npm/v/slidev-theme-the-unnamed?color=F141A8&label=)](https://www.npmjs.com/package/slidev-theme-the-unnamed)
4
+
3
5
  TBA
6
+
7
+ ## Layouts
8
+
9
+ ## Components
package/changelog.md ADDED
@@ -0,0 +1,10 @@
1
+ # Changelog
2
+
3
+ ## [0.0.2] - 2023-01-31
4
+
5
+ - New layouts
6
+ - New fonts
7
+
8
+ ## [0.0.1] - 2023-01-31
9
+
10
+ - Initial release
package/example.md CHANGED
@@ -1,5 +1,6 @@
1
1
  ---
2
2
  theme: ./
3
+ background: https://source.unsplash.com/collection/94734566/1920x1080
3
4
  ---
4
5
 
5
6
  # Slidev - The Unnamed
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
@@ -4,4 +4,4 @@
4
4
  <slot />
5
5
  </div>
6
6
  </div>
7
- </template>
7
+ </template>
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <div class="slidev-layout quote">
3
+ <div class="my-auto">
4
+ <slot />
5
+ </div>
6
+ </div>
7
+ </template>
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <div class="slidev-layout section w-full h-full grid">
3
+ <div class="my-auto text-center">
4
+ <slot />
5
+ </div>
6
+ </div>
7
+ </template>
@@ -0,0 +1,7 @@
1
+ <template>
2
+ <div class="slidev-layout statement">
3
+ <div class="my-auto">
4
+ <slot />
5
+ </div>
6
+ </div>
7
+ </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "slidev-theme-the-unnamed",
3
- "version": "0.0.1",
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
+ }