@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 +0 -1
- package/build.mjs +0 -1
- package/package.json +1 -1
- package/src/css/main.css +33 -0
- package/src/js/inleveropdracht.js +0 -7
package/README.md
CHANGED
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
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) {
|