@puzzleitc/slidev-theme-puzzle 1.0.0 → 1.1.1

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/.prettierrc ADDED
@@ -0,0 +1,11 @@
1
+ {
2
+ "overrides": [
3
+ {
4
+ "files": ["example.md"],
5
+ "options": {
6
+ "parser": "slidev",
7
+ "plugins": ["prettier-plugin-slidev"]
8
+ }
9
+ }
10
+ ]
11
+ }
package/CHANGELOG.md ADDED
@@ -0,0 +1,14 @@
1
+ # @puzzleitc/slidev-theme-puzzle Changelog
2
+
3
+ # 1.1.1
4
+
5
+ - Fixed "end" layout horizontal alignment
6
+
7
+ # 1.1.0
8
+
9
+ - Improved general styling
10
+ - Added "meet" layout
11
+
12
+ ## 1.0.0
13
+
14
+ - Initial release with basic styling & "agenda" layout
package/README.md CHANGED
@@ -1,23 +1,23 @@
1
1
  # slidev-theme-puzzle
2
2
 
3
- [![NPM version](https://img.shields.io/npm/v/slidev-theme-puzzle?color=3AB9D4&label=)](https://www.npmjs.com/package/slidev-theme-puzzle)
3
+ [![NPM version](https://img.shields.io/npm/v/@puzzleitc/slidev-theme-puzzle?color=3AB9D4&label=)](https://www.npmjs.com/package/@puzzleitc/slidev-theme-puzzle)
4
4
 
5
5
  A Puzzle ITC theme for [Slidev](https://github.com/slidevjs/slidev).
6
6
 
7
7
  ![Cover slide](./example-export/1.png)
8
8
 
9
- ![Default slide](./example-export/3.png)
9
+ ![Default slide](./example-export/6.png)
10
10
 
11
- ![Intro slide](./example-export/4.png)
11
+ ![Intro slide](./example-export/7.png)
12
12
 
13
- ![End slide](./example-export/8.png)
13
+ ![End slide](./example-export/11.png)
14
14
 
15
15
  ## Install
16
16
 
17
17
  Add the following frontmatter to your `slides.md`. Start Slidev then it will prompt you to install the theme automatically.
18
18
 
19
19
  <pre><code>---
20
- theme: <b>puzzle</b>
20
+ theme: <b>"@puzzleitc/slidev-theme-puzzle"</b>
21
21
  ---</code></pre>
22
22
 
23
23
  Learn more about [how to use a theme](https://sli.dev/guide/theme-addon#use-theme).
@@ -26,10 +26,14 @@ Learn more about [how to use a theme](https://sli.dev/guide/theme-addon#use-them
26
26
 
27
27
  This theme provides the following layouts:
28
28
 
29
- - `agenda` for an slide with the table of contents
29
+ - `agenda` for a slide with the table of contents
30
30
 
31
31
  ![Agenda slide](./example-export/2.png)
32
32
 
33
+ - `meet` for a slide to present one or more members
34
+
35
+ ![Agenda slide](./example-export/3.png)
36
+
33
37
  ## Contributing
34
38
 
35
39
  - `pnpm install`
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
Binary file
package/example.md CHANGED
@@ -5,7 +5,7 @@ layout: cover
5
5
 
6
6
  # Slidev Theme<br><span class="highlight">Puzzle</span>
7
7
 
8
- Firstname lastname
8
+ Firstname lastname \
9
9
  <a href="mailto:email@puzzle.ch">email@puzzle.ch</a>
10
10
 
11
11
  ---
@@ -20,6 +20,97 @@ layout: agenda
20
20
  - Our Services
21
21
  - Q&A
22
22
 
23
+ ---
24
+ layout: meet
25
+ ---
26
+
27
+ # Nice to meet you
28
+
29
+ ::members::
30
+
31
+ <div>
32
+ <img src="./images/Tux.png" alt="Daniel Müller">
33
+
34
+ Daniel Müller
35
+
36
+ Key Account Manager \
37
+ mueller@puzzle.ch
38
+
39
+ </div>
40
+
41
+ <div>
42
+ <img src="./images/Tux.png" alt="Maria Meier">
43
+
44
+ Maria Meier
45
+
46
+ Members Coach \
47
+ meier@puzzle.ch
48
+
49
+ </div>
50
+
51
+ <div>
52
+ <img src="./images/Tux.png" alt="Peter Schmid">
53
+
54
+ Peter Schmid
55
+
56
+ Software Engineer, \
57
+ Member of the Technical Board \
58
+ schmid@puzzle.ch
59
+
60
+ </div>
61
+
62
+ <!--
63
+ Get member photos here:
64
+
65
+ https://files.puzzle.ch/apps/files/files/6267463?dir=/ux/Projects/Puzzle/00_Puzzle%20Team/00_Member_Fotos/03_Rund%20fuer%20Praesis/Assets_BG_Unifarbe
66
+ -->
67
+
68
+ ---
69
+ layout: meet
70
+ ---
71
+
72
+ # Nice to meet you
73
+
74
+ ::members::
75
+
76
+ <div>
77
+ <img src="./images/Tux.png" alt="Daniel Müller">
78
+
79
+ Daniel Müller
80
+
81
+ Key Account Manager \
82
+ mueller@puzzle.ch
83
+
84
+ </div>
85
+
86
+ <div>
87
+ <img src="./images/Tux.png" alt="Maria Meier">
88
+
89
+ Maria Meier
90
+
91
+ Members Coach \
92
+ meier@puzzle.ch
93
+
94
+ </div>
95
+
96
+ ---
97
+ layout: meet
98
+ ---
99
+
100
+ # Nice to meet you
101
+
102
+ ::members::
103
+
104
+ <div>
105
+ <img src="./images/Tux.png" alt="Daniel Müller">
106
+
107
+ Daniel Müller
108
+
109
+ Key Account Manager \
110
+ mueller@puzzle.ch
111
+
112
+ </div>
113
+
23
114
  ---
24
115
 
25
116
  # What is Slidev?
package/images/Tux.png ADDED
Binary file
@@ -0,0 +1,8 @@
1
+ <template>
2
+ <div class="slidev-layout meet">
3
+ <slot />
4
+ <div class="members">
5
+ <slot name="members" />
6
+ </div>
7
+ </div>
8
+ </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@puzzleitc/slidev-theme-puzzle",
3
- "version": "1.0.0",
3
+ "version": "1.1.1",
4
4
  "description": "Slidev theme for Puzzle ITC corporate design",
5
5
  "type": "module",
6
6
  "keywords": [
@@ -11,12 +11,20 @@
11
11
  "engines": {
12
12
  "node": ">=18.0.0"
13
13
  },
14
+ "scripts": {
15
+ "build": "slidev build example.md",
16
+ "dev": "slidev example.md --open",
17
+ "export": "slidev export example.md",
18
+ "screenshot": "slidev export example.md --format png"
19
+ },
14
20
  "dependencies": {
15
21
  "@slidev/types": "^52.11.5"
16
22
  },
17
23
  "devDependencies": {
18
24
  "@slidev/cli": "^52.11.5",
19
- "playwright-chromium": "^1.58.2"
25
+ "playwright-chromium": "^1.58.2",
26
+ "prettier": "^3.8.1",
27
+ "prettier-plugin-slidev": "^1.0.5"
20
28
  },
21
29
  "//": "Learn more: https://sli.dev/guide/write-theme.html",
22
30
  "slidev": {
@@ -24,14 +32,9 @@
24
32
  "defaults": {
25
33
  "fonts": {
26
34
  "sans": "Roboto",
27
- "mono": "Fira Code"
35
+ "mono": "Fira Code",
36
+ "weights": "200,300,400,600"
28
37
  }
29
38
  }
30
- },
31
- "scripts": {
32
- "build": "slidev build example.md",
33
- "dev": "slidev example.md --open",
34
- "export": "slidev export example.md",
35
- "screenshot": "slidev export example.md --format png"
36
39
  }
37
- }
40
+ }
package/styles/layout.css CHANGED
@@ -13,12 +13,34 @@
13
13
  --puzzle-brand7: #69b978; /* Emerald */
14
14
  --puzzle-brand8: #61b44b; /* Brilliant Green */
15
15
  --puzzle-brand9: #1b2d53; /* Prussian Blue */
16
+
17
+ --slidev-font-weight-base: 300;
16
18
  }
17
19
 
18
20
  /* General */
19
21
 
22
+ body {
23
+ font-weight: 300;
24
+ }
25
+
26
+ .slidev-layout h1,
27
+ .slidev-layout h2,
28
+ .slidev-layout h3,
29
+ .slidev-layout h4 {
30
+ font-weight: 400;
31
+ }
32
+
20
33
  .slidev-layout h1 {
21
- color: #15508b;
34
+ color: var(--puzzle-brand9);
35
+ }
36
+
37
+ .slidev-layout h2 {
38
+ color: var(--puzzle-brand2);
39
+ }
40
+
41
+ .slidev-layout a {
42
+ color: var(--puzzle-brand4);
43
+ border-style: solid;
22
44
  }
23
45
 
24
46
  .slidev-layout.cover,
@@ -71,13 +93,7 @@
71
93
  @apply mb-0;
72
94
  opacity: 1;
73
95
  font-size: 24px;
74
- line-height: 1.15;
75
- }
76
-
77
- .slidev-layout.cover h1 + p a {
78
- @apply block mt-1;
79
- border: 0;
80
- font-size: 20px;
96
+ line-height: 1.25;
81
97
  }
82
98
 
83
99
  /* Layout "intro" */
@@ -107,6 +123,7 @@
107
123
  background-position: right bottom;
108
124
  background-size: 400px;
109
125
  text-align: left !important;
126
+ place-content: center start !important;
110
127
  }
111
128
 
112
129
  .slidev-layout.end h1 {
@@ -136,12 +153,20 @@
136
153
  background-repeat: no-repeat;
137
154
  background-position: right bottom;
138
155
  background-size: 300px;
139
-
156
+ }
157
+
158
+ .slidev-layout.agenda ol.slidev-toc-list {
159
+ list-style: disc;
140
160
  }
141
161
 
142
162
  .slidev-layout.agenda h1 {
143
163
  font-size: 70px;
144
- margin-bottom: 0.5em;
164
+ margin-bottom: 0.6em;
165
+ }
166
+
167
+ .slidev-layout.agenda a {
168
+ color: black;
169
+ border: 0;
145
170
  }
146
171
 
147
172
  /* Layout "quote" */
@@ -152,3 +177,64 @@
152
177
  @apply mt-2;
153
178
  }
154
179
  }
180
+
181
+ /* Layout "meet" */
182
+ .slidev-page:has(.slidev-layout.meet) {
183
+ background: linear-gradient(
184
+ 0deg,
185
+ var(--puzzle-brand7) 0%,
186
+ var(--puzzle-brand7) 50%,
187
+ white 50%
188
+ );
189
+ padding: 1rem;
190
+ }
191
+
192
+ .slidev-layout.meet {
193
+ background-color: var(--puzzle-brand2);
194
+ border-radius: 2rem;
195
+ }
196
+
197
+ .slidev-layout.meet .members {
198
+ display: flex;
199
+ align-items: start;
200
+ justify-content: space-around;
201
+ }
202
+
203
+ .slidev-layout.meet,
204
+ .slidev-layout.meet h1,
205
+ .slidev-layout.meet a {
206
+ color: white;
207
+ }
208
+
209
+ .slidev-layout.meet h1 {
210
+ font-size: 70px;
211
+ margin-bottom: 3rem;
212
+ }
213
+
214
+ .slidev-layout.meet .members > div {
215
+ display: flex;
216
+ flex-direction: column;
217
+ align-items: center;
218
+ text-align: center;
219
+ }
220
+
221
+ .slidev-layout.meet .members > div > img {
222
+ width: 200px;
223
+ margin-bottom: 1rem;
224
+ border-radius: 50%;
225
+ }
226
+
227
+ .slidev-layout.meet .members > div .name,
228
+ .slidev-layout.meet .members > div > p:first-of-type {
229
+ font-size: 1.5em;
230
+ margin-bottom: 0;
231
+ }
232
+
233
+ .slidev-layout.meet .members > div .title,
234
+ .slidev-layout.meet .members > div p:last-of-type {
235
+ font-size: 1.2em;
236
+ }
237
+
238
+ .slidev-layout.meet .members > div p:last-of-type a {
239
+ font-size: 1.1rem;
240
+ }