@curio-sd/e-module-builder 0.3.0 → 0.3.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/README.md CHANGED
@@ -131,7 +131,6 @@ The Markdown **body** is split on blank lines: the first paragraph becomes the `
131
131
  week: 1
132
132
  title: Build a page layout
133
133
  subtitle: Practical assignment
134
- client: Acme Corp
135
134
  deliverables:
136
135
  - A working HTML/CSS page
137
136
  criteria:
package/build.mjs CHANGED
@@ -132,7 +132,6 @@ for (const weekDir of activeWeeks) {
132
132
  week: hwMd.data.week ?? weekNum,
133
133
  title: hwMd.data.title,
134
134
  subtitle: hwMd.data.subtitle ?? '',
135
- client: hwMd.data.client ?? '',
136
135
  html: marked.parse(hwMd.content ?? ''),
137
136
  deliverables: hwMd.data.deliverables ?? [],
138
137
  criteria: hwMd.data.criteria ?? [],
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@curio-sd/e-module-builder",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "type": "module",
5
5
  "description": "A tool for building e-modules for Curio SD",
6
6
  "license": "MIT",
package/src/css/main.css CHANGED
@@ -23,6 +23,39 @@
23
23
  body {
24
24
  @apply text-zinc-800;
25
25
  }
26
+
27
+ /* Given that markdown is placed inside main, we want some basic styling for headings */
28
+ main h2 {
29
+ @apply mt-8 text-[11px] font-semibold uppercase tracking-[0.18em] text-zinc-400;
30
+ }
31
+
32
+ main h3 {
33
+ @apply mt-4 text-base font-bold text-zinc-900
34
+ }
35
+
36
+ main h4 {
37
+ @apply mt-3 text-sm font-semibold text-zinc-900
38
+ }
39
+
40
+ main h5 {
41
+ @apply mt-2 text-sm font-normal uppercase text-zinc-900
42
+ }
43
+
44
+ main h6 {
45
+ @apply mt-2 text-sm font-light uppercase text-zinc-900
46
+ }
47
+
48
+ main p {
49
+ @apply mt-2 text-sm leading-relaxed text-zinc-700;
50
+ }
51
+
52
+ main ul {
53
+ @apply mt-2 text-sm list-inside list-disc space-y-1.5 pl-1;
54
+ }
55
+
56
+ main ol {
57
+ @apply mt-2 text-sm list-inside list-decimal space-y-1.5 pl-1;
58
+ }
26
59
  }
27
60
 
28
61
  @layer components {
@@ -38,11 +38,6 @@ export function initInleveropdracht(data) {
38
38
  const tipsHtml = data.tips.map((t) => `<li class="text-sm text-zinc-600">${t}</li>`).join('')
39
39
 
40
40
  container.innerHTML = `
41
- <section class="card mb-6">
42
- <p class="text-[11px] font-semibold uppercase tracking-[0.18em] text-zinc-400">Casus</p>
43
- <h2 class="mt-2 text-xl font-medium text-zinc-900">${data.client}</h2>
44
- </section>
45
-
46
41
  <section class="card prose-inleveropdracht mb-6">
47
42
  ${data.html}
48
43
  </section>
@@ -109,8 +104,6 @@ export function initInleveropdracht(data) {
109
104
  data.title,
110
105
  '='.repeat(40),
111
106
  '',
112
- `Klant: ${data.client}`,
113
- '',
114
107
  'Criteria:',
115
108
  ]
116
109
  for (const c of data.criteria) {