slidev-theme-the-unnamed 0.0.13 → 0.0.15
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 +26 -2
- package/changelog.md +8 -0
- package/example.md +16 -0
- package/layouts/cover.vue +0 -1
- package/layouts/two-cols.vue +25 -0
- package/package.json +1 -1
- package/styles/layout.css +18 -0
package/README.md
CHANGED
|
@@ -24,6 +24,7 @@ The theme currently has the following layouts:
|
|
|
24
24
|
- `cover`
|
|
25
25
|
- `center`
|
|
26
26
|
- `section`
|
|
27
|
+
- `two-cols`
|
|
27
28
|
- `about-me`
|
|
28
29
|
- and the ones from Slidev itself
|
|
29
30
|
|
|
@@ -88,6 +89,28 @@ background: <image url or HEX or rbg or rgba> (optional)
|
|
|
88
89
|
---
|
|
89
90
|
```
|
|
90
91
|
|
|
92
|
+
### Two columns
|
|
93
|
+
|
|
94
|
+

|
|
95
|
+
|
|
96
|
+
**Usage**
|
|
97
|
+
|
|
98
|
+
```yaml
|
|
99
|
+
---
|
|
100
|
+
layout: two-cols
|
|
101
|
+
---
|
|
102
|
+
|
|
103
|
+
# Left
|
|
104
|
+
|
|
105
|
+
This shows on the left
|
|
106
|
+
|
|
107
|
+
::right::
|
|
108
|
+
|
|
109
|
+
# Right
|
|
110
|
+
|
|
111
|
+
This shows on the right
|
|
112
|
+
```
|
|
113
|
+
|
|
91
114
|
### Default
|
|
92
115
|
|
|
93
116
|

|
|
@@ -101,7 +124,6 @@ background: <image url or HEX or rbg or rgba> (optional)
|
|
|
101
124
|
---
|
|
102
125
|
```
|
|
103
126
|
|
|
104
|
-
|
|
105
127
|
## Cusomizations
|
|
106
128
|
|
|
107
129
|
You can customize the theme by adding the following frontmatter to your `slides.md`.
|
|
@@ -121,6 +143,8 @@ themeConfig:
|
|
|
121
143
|
accents-blue: "#5EADF2"
|
|
122
144
|
accents-vulcan: "#0E131F"
|
|
123
145
|
|
|
146
|
+
header-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
|
|
147
|
+
|
|
124
148
|
default-headingBg: var(--slidev-theme-accents-yellow)
|
|
125
149
|
default-headingColor: var(--slidev-theme-accents-vulcan)
|
|
126
150
|
default-background: var(--slidev-theme-background)
|
|
@@ -149,4 +173,4 @@ themeConfig:
|
|
|
149
173
|
<br />
|
|
150
174
|
<br />
|
|
151
175
|
|
|
152
|
-
[](https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2Festruyf%2Fslidev-theme-the-unnamed)
|
|
176
|
+
[](https://visitorbadge.io/status?path=https%3A%2F%2Fgithub.com%2Festruyf%2Fslidev-theme-the-unnamed)
|
package/changelog.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## [0.0.15] - 2023-10-18
|
|
4
|
+
|
|
5
|
+
- Added box shadow to the header + `header-shadow` theme option
|
|
6
|
+
|
|
7
|
+
## [0.0.14] - 2023-10-17
|
|
8
|
+
|
|
9
|
+
- Added styles for the two-column layout
|
|
10
|
+
|
|
3
11
|
## [0.0.13] - 2023-10-05
|
|
4
12
|
|
|
5
13
|
- Remove backdrop if no background is set on cover
|
package/example.md
CHANGED
|
@@ -16,6 +16,8 @@ themeConfig:
|
|
|
16
16
|
accents-blue: "#5EADF2"
|
|
17
17
|
accents-vulcan: "#0E131F"
|
|
18
18
|
|
|
19
|
+
header-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
|
|
20
|
+
|
|
19
21
|
default-headingBg: var(--slidev-theme-accents-yellow)
|
|
20
22
|
default-headingColor: var(--slidev-theme-accents-vulcan)
|
|
21
23
|
default-background: var(--slidev-theme-background)
|
|
@@ -81,6 +83,20 @@ layout: center
|
|
|
81
83
|
|
|
82
84
|
Subtitle for the center layout
|
|
83
85
|
|
|
86
|
+
---
|
|
87
|
+
layout: two-cols
|
|
88
|
+
---
|
|
89
|
+
|
|
90
|
+
# Left
|
|
91
|
+
|
|
92
|
+
This shows on the left
|
|
93
|
+
|
|
94
|
+
::right::
|
|
95
|
+
|
|
96
|
+
# Right
|
|
97
|
+
|
|
98
|
+
This shows on the right
|
|
99
|
+
|
|
84
100
|
---
|
|
85
101
|
|
|
86
102
|
# Code with Shiki and The unnamed theme
|
package/layouts/cover.vue
CHANGED
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
<script setup lang="ts">
|
|
2
|
+
const props = defineProps({
|
|
3
|
+
class: {
|
|
4
|
+
type: String,
|
|
5
|
+
},
|
|
6
|
+
layoutClass: {
|
|
7
|
+
type: String,
|
|
8
|
+
},
|
|
9
|
+
});
|
|
10
|
+
</script>
|
|
11
|
+
|
|
12
|
+
<template>
|
|
13
|
+
<div
|
|
14
|
+
class="slidev-layout two-columns w-full h-full grid grid-cols-2"
|
|
15
|
+
:class="props.layoutClass"
|
|
16
|
+
>
|
|
17
|
+
<div class="col-left" :class="props.class">
|
|
18
|
+
<slot />
|
|
19
|
+
</div>
|
|
20
|
+
|
|
21
|
+
<div class="col-right" :class="props.class">
|
|
22
|
+
<slot name="right" />
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
25
|
+
</template>
|
package/package.json
CHANGED
package/styles/layout.css
CHANGED
|
@@ -20,6 +20,9 @@
|
|
|
20
20
|
--slidev-theme-accents-blue: #5eadf2;
|
|
21
21
|
--slidev-theme-accents-vulcan: #0e131f;
|
|
22
22
|
|
|
23
|
+
/* Header shadow */
|
|
24
|
+
--slidev-theme-header-shadow: rgba(0, 0, 0, 0.15) 1.95px 1.95px 2.6px;
|
|
25
|
+
|
|
23
26
|
/* Default */
|
|
24
27
|
--slidev-theme-default-headingBg: var(--slidev-theme-accents-yellow);
|
|
25
28
|
--slidev-theme-default-headingColor: var(--slidev-theme-accents-vulcan);
|
|
@@ -153,6 +156,7 @@
|
|
|
153
156
|
.slidev-layout.intro,
|
|
154
157
|
.slidev-layout.default,
|
|
155
158
|
.slidev-layout.center,
|
|
159
|
+
.slidev-layout.two-columns,
|
|
156
160
|
.slidev-layout[layout="default"],
|
|
157
161
|
.about-me {
|
|
158
162
|
h1 {
|
|
@@ -163,6 +167,7 @@
|
|
|
163
167
|
z-index: 1;
|
|
164
168
|
|
|
165
169
|
&::before {
|
|
170
|
+
box-shadow: var(--slidev-theme-header-shadow);
|
|
166
171
|
content: " ";
|
|
167
172
|
display: block;
|
|
168
173
|
position: absolute;
|
|
@@ -320,6 +325,19 @@
|
|
|
320
325
|
}
|
|
321
326
|
}
|
|
322
327
|
|
|
328
|
+
/* Two columns */
|
|
329
|
+
.slidev-layout.two-columns {
|
|
330
|
+
background: var(--slidev-theme-default-background);
|
|
331
|
+
|
|
332
|
+
h1 {
|
|
333
|
+
color: var(--slidev-theme-default-headingColor);
|
|
334
|
+
|
|
335
|
+
&::before {
|
|
336
|
+
background: var(--slidev-theme-default-headingBg);
|
|
337
|
+
}
|
|
338
|
+
}
|
|
339
|
+
}
|
|
340
|
+
|
|
323
341
|
/* About me slide */
|
|
324
342
|
.about-me {
|
|
325
343
|
background: var(--slidev-theme-aboutme-background);
|