jsonresume-theme-wintermuted 0.1.6 → 0.1.7

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
@@ -251,6 +251,11 @@ Workflows:
251
251
  - `style.css` theme-specific styles
252
252
  - Runtime CSS embedding from `@wintermuted/ui-theme`
253
253
 
254
+ `partials/projects.hbs` owns category grouping and the single lightbox overlay.
255
+ Both categories render `partials/project-entry.hbs`; only work-related entries
256
+ enable relevant-position links. `partials/project-gallery.hbs` renders images
257
+ before diagrams and is included only when either media collection is nonempty.
258
+
254
259
  Toolbar controls, detail disclosures, keyword/project tags, and section navigation
255
260
  use the shared `wm-btn-pill`, `wm-btn-expand`, `wm-tag`, `wm-tag-accent`, and
256
261
  `wm-side-nav` classes. Highlights and separators use `wm-list` and `wm-separator`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "jsonresume-theme-wintermuted",
3
- "version": "0.1.6",
3
+ "version": "0.1.7",
4
4
  "description": "Wintermuted JSON Resume theme extracted from the CV project.",
5
5
  "type": "module",
6
6
  "main": "./index.js",
@@ -0,0 +1,55 @@
1
+ <div class="project-entry" id="project-{{slugify name}}">
2
+ <div class="wm-entry-header role-header">
3
+ <h4>
4
+ {{#if url}}<a href="{{ url }}">{{ name }}</a>{{else}}{{ name }}{{/if}}
5
+ </h4>
6
+ {{#if startDate}}
7
+ <span class="date">
8
+ {{MY startDate}}
9
+ {{#if endDate}} &ndash; {{MY endDate}}{{/if}}
10
+ </span>
11
+ {{/if}}
12
+ </div>
13
+
14
+ {{#if description}}<p>{{ description }}</p>{{/if}}
15
+
16
+ {{#if showPositions}}
17
+ {{#with (positionsForProject this @root.resume.work) as |positions|}}
18
+ {{#if positions.length}}
19
+ <div class="role-projects">
20
+ <span class="role-projects-label">Relevant Positions</span>
21
+ <ul class="role-projects-list">
22
+ {{#each positions}}
23
+ <li class="wm-tag-accent"><a href="#{{ id }}" class="project-ref">{{ label }}</a></li>
24
+ {{/each}}
25
+ </ul>
26
+ </div>
27
+ {{/if}}
28
+ {{/with}}
29
+ {{/if}}
30
+
31
+ <button class="wm-btn wm-btn-expand expand-toggle" aria-expanded="false" aria-label="Expand details" type="button">Show details<span class="toggle-meta">{{{projectMetaSummary this}}}</span></button>
32
+ <div class="detail-content">
33
+ {{#if images.length}}
34
+ {{> project-gallery}}
35
+ {{else if diagrams.length}}
36
+ {{> project-gallery}}
37
+ {{/if}}
38
+
39
+ {{#if highlights.length}}
40
+ <ul class="wm-list highlights">
41
+ {{#each highlights}}
42
+ <li>{{ this }}</li>
43
+ {{/each}}
44
+ </ul>
45
+ {{/if}}
46
+
47
+ {{#if keywords.length}}
48
+ <ul class="keywords">
49
+ {{#each keywords}}
50
+ <li class="wm-tag">{{ this }}</li>
51
+ {{/each}}
52
+ </ul>
53
+ {{/if}}
54
+ </div>
55
+ </div>
@@ -0,0 +1,14 @@
1
+ <div class="wm-gallery project-gallery">
2
+ {{#each images}}
3
+ <figure class="wm-gallery-item wm-gallery-item-figure project-screenshot">
4
+ <img src="{{assetSrc src}}" alt="{{ alt }}" loading="lazy" />
5
+ {{#if caption}}<figcaption>{{ caption }}</figcaption>{{/if}}
6
+ </figure>
7
+ {{/each}}
8
+ {{#each diagrams}}
9
+ <figure class="wm-gallery-item wm-gallery-item-figure wm-gallery-item-diagram project-diagram">
10
+ <pre class="wm-mermaid mermaid">{{ definition }}</pre>
11
+ {{#if title}}<figcaption>{{ title }}</figcaption>{{/if}}
12
+ </figure>
13
+ {{/each}}
14
+ </div>
@@ -6,81 +6,7 @@
6
6
  {{#if workProjects.length}}
7
7
  <h3 class="projects-subheading">Work-Related Projects</h3>
8
8
  {{#each workProjects}}
9
- <div class="project-entry" id="project-{{slugify name}}">
10
- <div class="wm-entry-header role-header">
11
- <h4>
12
- {{#if url}}<a href="{{ url }}">{{ name }}</a>{{else}}{{ name }}{{/if}}
13
- </h4>
14
- {{#if startDate}}
15
- <span class="date">
16
- {{MY startDate}}
17
- {{#if endDate}} &ndash; {{MY endDate}}{{/if}}
18
- </span>
19
- {{/if}}
20
- </div>
21
-
22
- {{#if description}}<p>{{ description }}</p>{{/if}}
23
-
24
- {{#with (positionsForProject this @root.resume.work) as |positions|}}
25
- {{#if positions.length}}
26
- <div class="role-projects">
27
- <span class="role-projects-label">Relevant Positions</span>
28
- <ul class="role-projects-list">
29
- {{#each positions}}
30
- <li class="wm-tag-accent"><a href="#{{ id }}" class="project-ref">{{ label }}</a></li>
31
- {{/each}}
32
- </ul>
33
- </div>
34
- {{/if}}
35
- {{/with}}
36
-
37
- <button class="wm-btn wm-btn-expand expand-toggle" aria-expanded="false" aria-label="Expand details" type="button">Show details<span class="toggle-meta">{{{projectMetaSummary this}}}</span></button>
38
- <div class="detail-content">
39
- {{#if images.length}}
40
- <div class="wm-gallery project-gallery">
41
- {{#each images}}
42
- <figure class="wm-gallery-item wm-gallery-item-figure project-screenshot">
43
- <img src="{{assetSrc src}}" alt="{{ alt }}" loading="lazy" />
44
- {{#if caption}}<figcaption>{{ caption }}</figcaption>{{/if}}
45
- </figure>
46
- {{/each}}
47
- {{#each diagrams}}
48
- <figure class="wm-gallery-item wm-gallery-item-figure wm-gallery-item-diagram project-diagram">
49
- <pre class="wm-mermaid mermaid">{{ definition }}</pre>
50
- {{#if title}}<figcaption>{{ title }}</figcaption>{{/if}}
51
- </figure>
52
- {{/each}}
53
- </div>
54
- {{else}}
55
- {{#if diagrams.length}}
56
- <div class="wm-gallery project-gallery">
57
- {{#each diagrams}}
58
- <figure class="wm-gallery-item wm-gallery-item-figure wm-gallery-item-diagram project-diagram">
59
- <pre class="wm-mermaid mermaid">{{ definition }}</pre>
60
- {{#if title}}<figcaption>{{ title }}</figcaption>{{/if}}
61
- </figure>
62
- {{/each}}
63
- </div>
64
- {{/if}}
65
- {{/if}}
66
-
67
- {{#if highlights.length}}
68
- <ul class="wm-list highlights">
69
- {{#each highlights}}
70
- <li>{{ this }}</li>
71
- {{/each}}
72
- </ul>
73
- {{/if}}
74
-
75
- {{#if keywords.length}}
76
- <ul class="keywords">
77
- {{#each keywords}}
78
- <li class="wm-tag">{{ this }}</li>
79
- {{/each}}
80
- </ul>
81
- {{/if}}
82
- </div>
83
- </div>
9
+ {{> project-entry showPositions=true}}
84
10
  {{/each}}
85
11
  {{/if}}
86
12
  {{/with}}
@@ -89,68 +15,7 @@
89
15
  {{#if openSourceProjects.length}}
90
16
  <h3 class="projects-subheading">Open Source Projects</h3>
91
17
  {{#each openSourceProjects}}
92
- <div class="project-entry" id="project-{{slugify name}}">
93
- <div class="wm-entry-header role-header">
94
- <h4>
95
- {{#if url}}<a href="{{ url }}">{{ name }}</a>{{else}}{{ name }}{{/if}}
96
- </h4>
97
- {{#if startDate}}
98
- <span class="date">
99
- {{MY startDate}}
100
- {{#if endDate}} &ndash; {{MY endDate}}{{/if}}
101
- </span>
102
- {{/if}}
103
- </div>
104
-
105
- {{#if description}}<p>{{ description }}</p>{{/if}}
106
-
107
- <button class="wm-btn wm-btn-expand expand-toggle" aria-expanded="false" aria-label="Expand details" type="button">Show details<span class="toggle-meta">{{{projectMetaSummary this}}}</span></button>
108
- <div class="detail-content">
109
- {{#if images.length}}
110
- <div class="wm-gallery project-gallery">
111
- {{#each images}}
112
- <figure class="wm-gallery-item wm-gallery-item-figure project-screenshot">
113
- <img src="{{assetSrc src}}" alt="{{ alt }}" loading="lazy" />
114
- {{#if caption}}<figcaption>{{ caption }}</figcaption>{{/if}}
115
- </figure>
116
- {{/each}}
117
- {{#each diagrams}}
118
- <figure class="wm-gallery-item wm-gallery-item-figure wm-gallery-item-diagram project-diagram">
119
- <pre class="wm-mermaid mermaid">{{ definition }}</pre>
120
- {{#if title}}<figcaption>{{ title }}</figcaption>{{/if}}
121
- </figure>
122
- {{/each}}
123
- </div>
124
- {{else}}
125
- {{#if diagrams.length}}
126
- <div class="wm-gallery project-gallery">
127
- {{#each diagrams}}
128
- <figure class="wm-gallery-item wm-gallery-item-figure wm-gallery-item-diagram project-diagram">
129
- <pre class="wm-mermaid mermaid">{{ definition }}</pre>
130
- {{#if title}}<figcaption>{{ title }}</figcaption>{{/if}}
131
- </figure>
132
- {{/each}}
133
- </div>
134
- {{/if}}
135
- {{/if}}
136
-
137
- {{#if highlights.length}}
138
- <ul class="wm-list highlights">
139
- {{#each highlights}}
140
- <li>{{ this }}</li>
141
- {{/each}}
142
- </ul>
143
- {{/if}}
144
-
145
- {{#if keywords.length}}
146
- <ul class="keywords">
147
- {{#each keywords}}
148
- <li class="wm-tag">{{ this }}</li>
149
- {{/each}}
150
- </ul>
151
- {{/if}}
152
- </div>
153
- </div>
18
+ {{> project-entry showPositions=false}}
154
19
  {{/each}}
155
20
  {{/if}}
156
21
  {{/with}}