slidev-theme-the-unnamed 0.0.21 → 0.0.22
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 +1 -0
- package/changelog.md +5 -0
- package/example.md +29 -1
- package/layouts/about-me.vue +7 -3
- package/package.json +3 -3
- package/public/theme/theunnamed-dark-theme.json +2 -3
package/README.md
CHANGED
package/changelog.md
CHANGED
package/example.md
CHANGED
|
@@ -50,7 +50,8 @@ layout: about-me
|
|
|
50
50
|
|
|
51
51
|
helloMsg: Hello!
|
|
52
52
|
name: Elio Struyf
|
|
53
|
-
imageSrc: https://elio.dev/
|
|
53
|
+
imageSrc: https://elio.dev/eliostruyf_2024.webp
|
|
54
|
+
position: left
|
|
54
55
|
job: Struyf Consulting
|
|
55
56
|
line1: "#Stickerpreneur @ pyod.shop"
|
|
56
57
|
line2: "#Maintainer @ Front Matter CMS"
|
|
@@ -214,6 +215,33 @@ function updateUser(id: number, update: Partial<User>) {
|
|
|
214
215
|
}
|
|
215
216
|
```
|
|
216
217
|
|
|
218
|
+
---
|
|
219
|
+
|
|
220
|
+
# Monaco Editor
|
|
221
|
+
|
|
222
|
+
```ts {monaco}
|
|
223
|
+
interface User {
|
|
224
|
+
id: number
|
|
225
|
+
firstName: string
|
|
226
|
+
lastName: string
|
|
227
|
+
role: string
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
function updateUser(id: number, update: Partial<User>) {
|
|
231
|
+
const user = getUser(id)
|
|
232
|
+
const newUser = { ...user, ...update }
|
|
233
|
+
saveUser(id, newUser)
|
|
234
|
+
}
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
---
|
|
238
|
+
|
|
239
|
+
# Monaco Editor
|
|
240
|
+
|
|
241
|
+
```ts {monaco-run} {autorun:false}
|
|
242
|
+
console.log('Click the play button to run me')
|
|
243
|
+
```
|
|
244
|
+
|
|
217
245
|
---
|
|
218
246
|
layout: center
|
|
219
247
|
class: "text-center"
|
package/layouts/about-me.vue
CHANGED
|
@@ -13,20 +13,24 @@
|
|
|
13
13
|
social1?: string
|
|
14
14
|
social2?: string
|
|
15
15
|
social3?: string
|
|
16
|
+
position?: string
|
|
16
17
|
}>()
|
|
17
18
|
|
|
18
19
|
const style = computed(() => handleBackground(props.imageSrc, false))
|
|
20
|
+
const flexRow = computed(() => props.position === 'left' ? 'flex-row-reverse' : 'flex-row')
|
|
21
|
+
const textItems = computed(() => props.position === 'left' ? 'items-start' : 'items-end')
|
|
22
|
+
const textAlign = computed(() => props.position === 'left' ? 'text-left' : 'text-right')
|
|
19
23
|
</script>
|
|
20
24
|
|
|
21
25
|
<template>
|
|
22
26
|
<div class="slidev-layout about-me p-0">
|
|
23
|
-
<div class="flex h-full">
|
|
27
|
+
<div class="flex h-full" :class="flexRow">
|
|
24
28
|
<div class="w-1/2 h-full flex flex-col justify-end" :style="style">
|
|
25
29
|
</div>
|
|
26
|
-
<div class="w-1/2 flex flex-col justify-between
|
|
30
|
+
<div class="w-1/2 flex flex-col justify-between px-8 py-16" :class="textItems">
|
|
27
31
|
<h1 v-if="helloMsg" class="flex">{{ helloMsg }}</h1>
|
|
28
32
|
|
|
29
|
-
<div class="flex flex-col
|
|
33
|
+
<div class="flex flex-col flex flex-col justify-end py-16" :class="[textItems, textAlign]">
|
|
30
34
|
<h2 class="font-extrabold">{{ name }}</h2>
|
|
31
35
|
|
|
32
36
|
<div class="text-2xl space-y-2 mt-4">
|
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.22",
|
|
4
4
|
"keywords": [
|
|
5
5
|
"slidev-theme",
|
|
6
6
|
"slidev"
|
|
@@ -16,13 +16,13 @@
|
|
|
16
16
|
"screenshot": "slidev export example.md --format png"
|
|
17
17
|
},
|
|
18
18
|
"dependencies": {
|
|
19
|
-
"@slidev/types": "^0.
|
|
19
|
+
"@slidev/types": "^0.50.0-beta.5",
|
|
20
20
|
"codemirror-theme-vars": "^0.1.1",
|
|
21
21
|
"prism-theme-vars": "^0.2.4",
|
|
22
22
|
"theme-vitesse": "^0.6.2"
|
|
23
23
|
},
|
|
24
24
|
"devDependencies": {
|
|
25
|
-
"@slidev/cli": "^0.
|
|
25
|
+
"@slidev/cli": "^0.50.0-beta.5",
|
|
26
26
|
"@types/node": "^18.13.0"
|
|
27
27
|
},
|
|
28
28
|
"//": "Learn more: https://sli.dev/themes/write-a-theme.html",
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"$schema": "vscode://schemas/color-theme",
|
|
3
|
-
"name": "
|
|
3
|
+
"name": "the-unnamed",
|
|
4
4
|
"type": "dark",
|
|
5
5
|
"colors": {
|
|
6
6
|
"foreground": "#F3EFF5",
|
|
@@ -156,8 +156,7 @@
|
|
|
156
156
|
"terminal.ansiBrightCyan": "#15c2cb",
|
|
157
157
|
"terminal.ansiBrightWhite": "#f3eff5"
|
|
158
158
|
},
|
|
159
|
-
"tokenColors": [
|
|
160
|
-
{
|
|
159
|
+
"tokenColors": [{
|
|
161
160
|
"scope": [
|
|
162
161
|
"meta.paragraph.markdown",
|
|
163
162
|
"string.other.link.description.title.markdown"
|