jsonresume-theme-brutalist 0.2.0

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/CHANGELOG.md ADDED
@@ -0,0 +1,7 @@
1
+ # jsonresume-theme-brutalist
2
+
3
+ ## 0.2.0
4
+
5
+ ### Minor Changes
6
+
7
+ - 536adbf: Add the Brutalist theme: raw concrete brutalism with heavy 4px black rules, oversized uppercase Archivo Black headings, hard edges, monospace spec labels, numbered sections, offset block-shadows, and a single harsh safety-yellow accent. Renders all JSON Resume sections. (#275)
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2014-2026 JSON Resume contributors
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,17 @@
1
+ # jsonresume-theme-brutalist
2
+
3
+ Raw concrete brutalism for JSON Resume. Heavy 4px black rules, oversized
4
+ UPPERCASE Archivo Black / Space Grotesk headings, hard edges (zero rounded
5
+ corners), stark black-on-white with a single harsh safety-yellow accent,
6
+ monospace spec labels, numbered sections, and hard offset block-shadows that
7
+ make the structural grid literal.
8
+
9
+ ## Usage
10
+
11
+ ```bash
12
+ resume export resume.html --theme brutalist
13
+ ```
14
+
15
+ Renders every JSON Resume section: basics/summary, work, education, skills,
16
+ projects, volunteer, awards, certificates, publications, languages, interests,
17
+ and references.
package/index.jsx ADDED
@@ -0,0 +1,24 @@
1
+ import { renderToString } from 'react-dom/server';
2
+ import { ServerStyleSheet } from 'styled-components';
3
+ import Resume from './src/Resume.jsx';
4
+
5
+ export function render(resume) {
6
+ const sheet = new ServerStyleSheet();
7
+ const html = renderToString(sheet.collectStyles(<Resume resume={resume} />));
8
+ const styles = sheet.getStyleTags();
9
+ const title = (resume.basics && resume.basics.name) || 'Resume';
10
+
11
+ return `<!DOCTYPE html>
12
+ <html lang="en">
13
+ <head>
14
+ <meta charset="utf-8">
15
+ <title>${title}</title>
16
+ <meta name="viewport" content="width=device-width, initial-scale=1">
17
+ <link rel="preconnect" href="https://fonts.googleapis.com">
18
+ <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
19
+ <link href="https://fonts.googleapis.com/css2?family=Archivo+Black&family=Space+Grotesk:wght@400;500;700&family=Space+Mono:wght@400;700&display=swap" rel="stylesheet">
20
+ ${styles}
21
+ </head>
22
+ <body>${html}</body>
23
+ </html>`;
24
+ }
package/package.json ADDED
@@ -0,0 +1,31 @@
1
+ {
2
+ "name": "jsonresume-theme-brutalist",
3
+ "version": "0.2.0",
4
+ "type": "module",
5
+ "main": "./index.jsx",
6
+ "peerDependencies": {
7
+ "react": "^18.0.0 || ^19.0.0",
8
+ "react-dom": "^18.0.0 || ^19.0.0"
9
+ },
10
+ "dependencies": {
11
+ "styled-components": "^6.1.19",
12
+ "@jsonresume/core": "0.1.0"
13
+ },
14
+ "exports": {
15
+ ".": {
16
+ "import": "./index.jsx",
17
+ "default": "./index.jsx"
18
+ },
19
+ "./dist": {
20
+ "import": "./dist/index.js",
21
+ "default": "./dist/index.js"
22
+ }
23
+ },
24
+ "devDependencies": {
25
+ "@vitejs/plugin-react": "^4.3.4",
26
+ "vite": "^5.4.21"
27
+ },
28
+ "scripts": {
29
+ "build": "vite build"
30
+ }
31
+ }
package/src/Resume.jsx ADDED
@@ -0,0 +1,717 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import {
4
+ Section,
5
+ SectionTitle,
6
+ DateRange,
7
+ Badge,
8
+ BadgeList,
9
+ ContactInfo,
10
+ Link,
11
+ safeUrl,
12
+ } from '@jsonresume/core';
13
+
14
+ // ---------------------------------------------------------------------------
15
+ // BRUTALIST — raw concrete. Heavy 4px black rules, oversized UPPERCASE
16
+ // grotesque/mono headings, hard edges (zero border-radius), stark
17
+ // black-on-white with ONE harsh accent: safety yellow (#FFE600). A visible
18
+ // structural grid and hard offset block-shadows make the structure literal.
19
+ // styled-components are defined INLINE (a separate styles.js crashes the
20
+ // registry webpack with "withConfig undefined").
21
+ // ---------------------------------------------------------------------------
22
+
23
+ const INK = '#0a0a0a';
24
+ const PAPER = '#ffffff';
25
+ const ACCENT = '#ffe600'; // safety yellow
26
+ const RULE = '4px solid #0a0a0a';
27
+ const HAIR = '2px solid #0a0a0a';
28
+
29
+ const Page = styled.div`
30
+ max-width: 900px;
31
+ margin: 0 auto;
32
+ background: ${PAPER};
33
+ color: ${INK};
34
+ font-family: 'Space Grotesk', 'Helvetica Neue', Arial, sans-serif;
35
+ font-size: 15px;
36
+ line-height: 1.5;
37
+ padding: 0;
38
+ border-left: ${RULE};
39
+ border-right: ${RULE};
40
+
41
+ @media print {
42
+ border: none;
43
+ }
44
+ `;
45
+
46
+ const Masthead = styled.header`
47
+ border-bottom: ${RULE};
48
+ background: ${PAPER};
49
+ `;
50
+
51
+ const SpecBar = styled.div`
52
+ display: flex;
53
+ justify-content: space-between;
54
+ align-items: stretch;
55
+ border-bottom: ${HAIR};
56
+ font-family: 'Space Mono', monospace;
57
+ font-size: 11px;
58
+ text-transform: uppercase;
59
+ letter-spacing: 1px;
60
+
61
+ span {
62
+ padding: 8px 16px;
63
+ }
64
+
65
+ span + span {
66
+ border-left: ${HAIR};
67
+ }
68
+ `;
69
+
70
+ const SpecTag = styled.span`
71
+ background: ${ACCENT};
72
+ font-weight: 700;
73
+ `;
74
+
75
+ const NameBlock = styled.div`
76
+ padding: 36px 32px 28px 32px;
77
+ `;
78
+
79
+ const Name = styled.h1`
80
+ font-family: 'Archivo Black', 'Space Grotesk', sans-serif;
81
+ font-size: clamp(40px, 9vw, 76px);
82
+ line-height: 0.92;
83
+ margin: 0;
84
+ text-transform: uppercase;
85
+ letter-spacing: -1px;
86
+ word-break: break-word;
87
+ `;
88
+
89
+ const Label = styled.div`
90
+ display: inline-block;
91
+ margin-top: 16px;
92
+ background: ${INK};
93
+ color: ${PAPER};
94
+ font-family: 'Space Mono', monospace;
95
+ font-weight: 700;
96
+ text-transform: uppercase;
97
+ letter-spacing: 2px;
98
+ font-size: 13px;
99
+ padding: 6px 12px;
100
+ `;
101
+
102
+ const ContactRow = styled.div`
103
+ border-top: ${HAIR};
104
+ padding: 14px 32px;
105
+ background: ${PAPER};
106
+ `;
107
+
108
+ const StyledContactInfo = styled(ContactInfo)`
109
+ display: flex;
110
+ flex-wrap: wrap;
111
+ gap: 10px 22px;
112
+ font-family: 'Space Mono', monospace;
113
+ font-size: 12px;
114
+ text-transform: uppercase;
115
+ letter-spacing: 0.5px;
116
+
117
+ a,
118
+ span {
119
+ color: ${INK};
120
+ text-decoration: none;
121
+ font-weight: 700;
122
+ }
123
+
124
+ a {
125
+ border-bottom: 3px solid ${ACCENT};
126
+ padding-bottom: 1px;
127
+ }
128
+ `;
129
+
130
+ const Summary = styled.p`
131
+ margin: 0;
132
+ padding: 24px 32px;
133
+ border-top: ${HAIR};
134
+ font-size: 18px;
135
+ font-weight: 500;
136
+ line-height: 1.45;
137
+ `;
138
+
139
+ const Body = styled.main`
140
+ padding: 0;
141
+ `;
142
+
143
+ const Block = styled(Section)`
144
+ border-bottom: ${RULE};
145
+ padding: 28px 32px 32px 32px;
146
+
147
+ &:last-child {
148
+ border-bottom: none;
149
+ }
150
+ `;
151
+
152
+ const Heading = styled(SectionTitle)`
153
+ font-family: 'Archivo Black', 'Space Grotesk', sans-serif;
154
+ font-size: clamp(22px, 4vw, 32px);
155
+ text-transform: uppercase;
156
+ letter-spacing: -0.5px;
157
+ margin: 0 0 22px 0;
158
+ display: flex;
159
+ align-items: baseline;
160
+ gap: 14px;
161
+
162
+ &::before {
163
+ content: attr(data-index);
164
+ font-family: 'Space Mono', monospace;
165
+ font-size: 14px;
166
+ background: ${ACCENT};
167
+ color: ${INK};
168
+ padding: 4px 8px;
169
+ letter-spacing: 0;
170
+ align-self: center;
171
+ }
172
+ `;
173
+
174
+ const Entry = styled.div`
175
+ border: ${HAIR};
176
+ box-shadow: 8px 8px 0 ${INK};
177
+ background: ${PAPER};
178
+ padding: 18px 20px;
179
+ margin-bottom: 26px;
180
+
181
+ &:last-child {
182
+ margin-bottom: 0;
183
+ }
184
+ `;
185
+
186
+ const EntryHead = styled.div`
187
+ display: flex;
188
+ flex-wrap: wrap;
189
+ justify-content: space-between;
190
+ align-items: baseline;
191
+ gap: 6px 16px;
192
+ border-bottom: ${HAIR};
193
+ padding-bottom: 10px;
194
+ margin-bottom: 12px;
195
+ `;
196
+
197
+ const EntryTitle = styled.h3`
198
+ font-family: 'Space Grotesk', sans-serif;
199
+ font-size: 21px;
200
+ font-weight: 700;
201
+ text-transform: uppercase;
202
+ letter-spacing: -0.3px;
203
+ margin: 0;
204
+
205
+ a {
206
+ color: ${INK};
207
+ text-decoration: none;
208
+ box-shadow: inset 0 -8px 0 ${ACCENT};
209
+ }
210
+ `;
211
+
212
+ const EntryMeta = styled.div`
213
+ font-family: 'Space Mono', monospace;
214
+ font-size: 12px;
215
+ font-weight: 700;
216
+ text-transform: uppercase;
217
+ letter-spacing: 0.5px;
218
+ white-space: nowrap;
219
+ `;
220
+
221
+ const EntrySub = styled.div`
222
+ font-family: 'Space Mono', monospace;
223
+ font-size: 13px;
224
+ font-weight: 700;
225
+ text-transform: uppercase;
226
+ letter-spacing: 0.5px;
227
+ margin-bottom: 8px;
228
+
229
+ a {
230
+ color: ${INK};
231
+ text-decoration: none;
232
+ box-shadow: inset 0 -6px 0 ${ACCENT};
233
+ }
234
+ `;
235
+
236
+ const Para = styled.p`
237
+ margin: 0 0 10px 0;
238
+ font-size: 15px;
239
+ line-height: 1.5;
240
+
241
+ &:last-child {
242
+ margin-bottom: 0;
243
+ }
244
+ `;
245
+
246
+ const Bullets = styled.ul`
247
+ list-style: none;
248
+ margin: 12px 0 0 0;
249
+ padding: 0;
250
+
251
+ li {
252
+ position: relative;
253
+ padding-left: 26px;
254
+ margin-bottom: 8px;
255
+ line-height: 1.45;
256
+
257
+ &::before {
258
+ content: '';
259
+ position: absolute;
260
+ left: 0;
261
+ top: 6px;
262
+ width: 12px;
263
+ height: 12px;
264
+ background: ${ACCENT};
265
+ border: 2px solid ${INK};
266
+ }
267
+ }
268
+ `;
269
+
270
+ const SkillGrid = styled.div`
271
+ display: grid;
272
+ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
273
+ gap: 0;
274
+ border: ${HAIR};
275
+
276
+ @media print {
277
+ grid-template-columns: repeat(2, 1fr);
278
+ }
279
+ `;
280
+
281
+ const SkillCell = styled.div`
282
+ border: ${HAIR};
283
+ margin: -1px;
284
+ padding: 14px 16px;
285
+
286
+ h4 {
287
+ font-family: 'Archivo Black', sans-serif;
288
+ font-size: 14px;
289
+ text-transform: uppercase;
290
+ letter-spacing: 0.5px;
291
+ margin: 0 0 10px 0;
292
+ }
293
+ `;
294
+
295
+ const StyledBadgeList = styled(BadgeList)`
296
+ display: flex;
297
+ flex-wrap: wrap;
298
+ gap: 6px;
299
+ `;
300
+
301
+ const StyledBadge = styled(Badge)`
302
+ font-family: 'Space Mono', monospace;
303
+ font-size: 11px;
304
+ font-weight: 700;
305
+ text-transform: uppercase;
306
+ letter-spacing: 0.5px;
307
+ background: ${PAPER};
308
+ color: ${INK};
309
+ border: 2px solid ${INK};
310
+ border-radius: 0;
311
+ padding: 3px 8px;
312
+ `;
313
+
314
+ const PlainGrid = styled.div`
315
+ display: grid;
316
+ grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
317
+ gap: 18px;
318
+ `;
319
+
320
+ const PlainCard = styled.div`
321
+ border: ${HAIR};
322
+ border-left: ${RULE};
323
+ padding: 14px 16px;
324
+
325
+ h4 {
326
+ font-family: 'Space Grotesk', sans-serif;
327
+ font-size: 16px;
328
+ font-weight: 700;
329
+ text-transform: uppercase;
330
+ margin: 0 0 6px 0;
331
+
332
+ a {
333
+ color: ${INK};
334
+ text-decoration: none;
335
+ box-shadow: inset 0 -7px 0 ${ACCENT};
336
+ }
337
+ }
338
+
339
+ p {
340
+ margin: 0 0 6px 0;
341
+ font-size: 14px;
342
+
343
+ &:last-child {
344
+ margin-bottom: 0;
345
+ }
346
+ }
347
+ `;
348
+
349
+ const MetaTag = styled.span`
350
+ font-family: 'Space Mono', monospace;
351
+ font-size: 11px;
352
+ font-weight: 700;
353
+ text-transform: uppercase;
354
+ letter-spacing: 0.5px;
355
+ color: ${INK};
356
+ display: block;
357
+ `;
358
+
359
+ function pad(n) {
360
+ return String(n).padStart(2, '0');
361
+ }
362
+
363
+ function Resume({ resume }) {
364
+ const {
365
+ basics = {},
366
+ work = [],
367
+ education = [],
368
+ skills = [],
369
+ projects = [],
370
+ volunteer = [],
371
+ awards = [],
372
+ certificates = [],
373
+ publications = [],
374
+ languages = [],
375
+ interests = [],
376
+ references = [],
377
+ } = resume || {};
378
+
379
+ const loc = basics.location || {};
380
+ const locParts = [loc.city, loc.region, loc.countryCode].filter(Boolean);
381
+ const locLine = locParts.join(', ');
382
+
383
+ let section = 0;
384
+ const next = () => pad(++section);
385
+
386
+ return (
387
+ <Page>
388
+ <Masthead>
389
+ <SpecBar>
390
+ <SpecTag>Curriculum Vitae</SpecTag>
391
+ {locLine && <span>{locLine}</span>}
392
+ <span>Rev. 0.1</span>
393
+ </SpecBar>
394
+ <NameBlock>
395
+ {basics.name && <Name>{basics.name}</Name>}
396
+ {basics.label && <Label>{basics.label}</Label>}
397
+ </NameBlock>
398
+ {(basics.email ||
399
+ basics.phone ||
400
+ basics.url ||
401
+ (basics.profiles && basics.profiles.length > 0)) && (
402
+ <ContactRow>
403
+ <StyledContactInfo basics={basics} />
404
+ </ContactRow>
405
+ )}
406
+ {basics.summary && <Summary>{basics.summary}</Summary>}
407
+ </Masthead>
408
+
409
+ <Body>
410
+ {work.length > 0 && (
411
+ <Block>
412
+ <Heading data-index={next()}>Experience</Heading>
413
+ {work.map((job, i) => (
414
+ <Entry key={i}>
415
+ <EntryHead>
416
+ <EntryTitle>{job.position || job.name || 'Role'}</EntryTitle>
417
+ {(job.startDate || job.endDate) && (
418
+ <EntryMeta>
419
+ <DateRange
420
+ startDate={job.startDate}
421
+ endDate={job.endDate}
422
+ />
423
+ </EntryMeta>
424
+ )}
425
+ </EntryHead>
426
+ {job.name && job.position && (
427
+ <EntrySub>
428
+ {job.url ? (
429
+ <Link href={safeUrl(job.url)}>{job.name}</Link>
430
+ ) : (
431
+ job.name
432
+ )}
433
+ {job.location ? ` // ${job.location}` : ''}
434
+ </EntrySub>
435
+ )}
436
+ {job.summary && <Para>{job.summary}</Para>}
437
+ {job.highlights && job.highlights.length > 0 && (
438
+ <Bullets>
439
+ {job.highlights.map((h, hi) => (
440
+ <li key={hi}>{h}</li>
441
+ ))}
442
+ </Bullets>
443
+ )}
444
+ </Entry>
445
+ ))}
446
+ </Block>
447
+ )}
448
+
449
+ {education.length > 0 && (
450
+ <Block>
451
+ <Heading data-index={next()}>Education</Heading>
452
+ {education.map((edu, i) => (
453
+ <Entry key={i}>
454
+ <EntryHead>
455
+ <EntryTitle>{edu.institution || 'Institution'}</EntryTitle>
456
+ {(edu.startDate || edu.endDate) && (
457
+ <EntryMeta>
458
+ <DateRange
459
+ startDate={edu.startDate}
460
+ endDate={edu.endDate}
461
+ />
462
+ </EntryMeta>
463
+ )}
464
+ </EntryHead>
465
+ {(edu.studyType || edu.area) && (
466
+ <EntrySub>
467
+ {[edu.studyType, edu.area].filter(Boolean).join(' // ')}
468
+ </EntrySub>
469
+ )}
470
+ {edu.score && <Para>GPA: {edu.score}</Para>}
471
+ {edu.courses && edu.courses.length > 0 && (
472
+ <Bullets>
473
+ {edu.courses.map((c, ci) => (
474
+ <li key={ci}>{c}</li>
475
+ ))}
476
+ </Bullets>
477
+ )}
478
+ </Entry>
479
+ ))}
480
+ </Block>
481
+ )}
482
+
483
+ {skills.length > 0 && (
484
+ <Block>
485
+ <Heading data-index={next()}>Skills</Heading>
486
+ <SkillGrid>
487
+ {skills.map((skill, i) => (
488
+ <SkillCell key={i}>
489
+ <h4>
490
+ {skill.name || 'Skills'}
491
+ {skill.level ? ` — ${skill.level}` : ''}
492
+ </h4>
493
+ {skill.keywords && skill.keywords.length > 0 && (
494
+ <StyledBadgeList>
495
+ {skill.keywords.map((kw, ki) => (
496
+ <StyledBadge key={ki}>{kw}</StyledBadge>
497
+ ))}
498
+ </StyledBadgeList>
499
+ )}
500
+ </SkillCell>
501
+ ))}
502
+ </SkillGrid>
503
+ </Block>
504
+ )}
505
+
506
+ {projects.length > 0 && (
507
+ <Block>
508
+ <Heading data-index={next()}>Projects</Heading>
509
+ {projects.map((project, i) => (
510
+ <Entry key={i}>
511
+ <EntryHead>
512
+ <EntryTitle>
513
+ {project.url ? (
514
+ <Link href={safeUrl(project.url)}>
515
+ {project.name || 'Project'}
516
+ </Link>
517
+ ) : (
518
+ project.name || 'Project'
519
+ )}
520
+ </EntryTitle>
521
+ {(project.startDate || project.endDate) && (
522
+ <EntryMeta>
523
+ <DateRange
524
+ startDate={project.startDate}
525
+ endDate={project.endDate}
526
+ />
527
+ </EntryMeta>
528
+ )}
529
+ </EntryHead>
530
+ {(project.entity || project.type) && (
531
+ <EntrySub>
532
+ {[project.entity, project.type]
533
+ .filter(Boolean)
534
+ .join(' // ')}
535
+ </EntrySub>
536
+ )}
537
+ {project.description && <Para>{project.description}</Para>}
538
+ {project.highlights && project.highlights.length > 0 && (
539
+ <Bullets>
540
+ {project.highlights.map((h, hi) => (
541
+ <li key={hi}>{h}</li>
542
+ ))}
543
+ </Bullets>
544
+ )}
545
+ {project.keywords && project.keywords.length > 0 && (
546
+ <StyledBadgeList>
547
+ {project.keywords.map((kw, ki) => (
548
+ <StyledBadge key={ki}>{kw}</StyledBadge>
549
+ ))}
550
+ </StyledBadgeList>
551
+ )}
552
+ </Entry>
553
+ ))}
554
+ </Block>
555
+ )}
556
+
557
+ {volunteer.length > 0 && (
558
+ <Block>
559
+ <Heading data-index={next()}>Volunteer</Heading>
560
+ {volunteer.map((vol, i) => (
561
+ <Entry key={i}>
562
+ <EntryHead>
563
+ <EntryTitle>{vol.position || 'Volunteer'}</EntryTitle>
564
+ {(vol.startDate || vol.endDate) && (
565
+ <EntryMeta>
566
+ <DateRange
567
+ startDate={vol.startDate}
568
+ endDate={vol.endDate}
569
+ />
570
+ </EntryMeta>
571
+ )}
572
+ </EntryHead>
573
+ {vol.organization && (
574
+ <EntrySub>
575
+ {vol.url ? (
576
+ <Link href={safeUrl(vol.url)}>{vol.organization}</Link>
577
+ ) : (
578
+ vol.organization
579
+ )}
580
+ </EntrySub>
581
+ )}
582
+ {vol.summary && <Para>{vol.summary}</Para>}
583
+ {vol.highlights && vol.highlights.length > 0 && (
584
+ <Bullets>
585
+ {vol.highlights.map((h, hi) => (
586
+ <li key={hi}>{h}</li>
587
+ ))}
588
+ </Bullets>
589
+ )}
590
+ </Entry>
591
+ ))}
592
+ </Block>
593
+ )}
594
+
595
+ {awards.length > 0 && (
596
+ <Block>
597
+ <Heading data-index={next()}>Awards</Heading>
598
+ <PlainGrid>
599
+ {awards.map((award, i) => (
600
+ <PlainCard key={i}>
601
+ <h4>{award.title || 'Award'}</h4>
602
+ {(award.awarder || award.date) && (
603
+ <MetaTag>
604
+ {[award.awarder, award.date].filter(Boolean).join(' // ')}
605
+ </MetaTag>
606
+ )}
607
+ {award.summary && <p>{award.summary}</p>}
608
+ </PlainCard>
609
+ ))}
610
+ </PlainGrid>
611
+ </Block>
612
+ )}
613
+
614
+ {certificates.length > 0 && (
615
+ <Block>
616
+ <Heading data-index={next()}>Certificates</Heading>
617
+ <PlainGrid>
618
+ {certificates.map((cert, i) => (
619
+ <PlainCard key={i}>
620
+ <h4>
621
+ {cert.url ? (
622
+ <Link href={safeUrl(cert.url)}>
623
+ {cert.name || 'Certificate'}
624
+ </Link>
625
+ ) : (
626
+ cert.name || 'Certificate'
627
+ )}
628
+ </h4>
629
+ {(cert.issuer || cert.date) && (
630
+ <MetaTag>
631
+ {[cert.issuer, cert.date].filter(Boolean).join(' // ')}
632
+ </MetaTag>
633
+ )}
634
+ </PlainCard>
635
+ ))}
636
+ </PlainGrid>
637
+ </Block>
638
+ )}
639
+
640
+ {publications.length > 0 && (
641
+ <Block>
642
+ <Heading data-index={next()}>Publications</Heading>
643
+ <PlainGrid>
644
+ {publications.map((pub, i) => (
645
+ <PlainCard key={i}>
646
+ <h4>
647
+ {pub.url ? (
648
+ <Link href={safeUrl(pub.url)}>
649
+ {pub.name || 'Publication'}
650
+ </Link>
651
+ ) : (
652
+ pub.name || 'Publication'
653
+ )}
654
+ </h4>
655
+ {(pub.publisher || pub.releaseDate) && (
656
+ <MetaTag>
657
+ {[pub.publisher, pub.releaseDate]
658
+ .filter(Boolean)
659
+ .join(' // ')}
660
+ </MetaTag>
661
+ )}
662
+ {pub.summary && <p>{pub.summary}</p>}
663
+ </PlainCard>
664
+ ))}
665
+ </PlainGrid>
666
+ </Block>
667
+ )}
668
+
669
+ {languages.length > 0 && (
670
+ <Block>
671
+ <Heading data-index={next()}>Languages</Heading>
672
+ <StyledBadgeList>
673
+ {languages.map((lang, i) => (
674
+ <StyledBadge key={i}>
675
+ {lang.language || 'Language'}
676
+ {lang.fluency ? ` — ${lang.fluency}` : ''}
677
+ </StyledBadge>
678
+ ))}
679
+ </StyledBadgeList>
680
+ </Block>
681
+ )}
682
+
683
+ {interests.length > 0 && (
684
+ <Block>
685
+ <Heading data-index={next()}>Interests</Heading>
686
+ <PlainGrid>
687
+ {interests.map((interest, i) => (
688
+ <PlainCard key={i}>
689
+ <h4>{interest.name || 'Interest'}</h4>
690
+ {interest.keywords && interest.keywords.length > 0 && (
691
+ <p>{interest.keywords.join(', ')}</p>
692
+ )}
693
+ </PlainCard>
694
+ ))}
695
+ </PlainGrid>
696
+ </Block>
697
+ )}
698
+
699
+ {references.length > 0 && (
700
+ <Block>
701
+ <Heading data-index={next()}>References</Heading>
702
+ <PlainGrid>
703
+ {references.map((ref, i) => (
704
+ <PlainCard key={i}>
705
+ <h4>{ref.name || 'Reference'}</h4>
706
+ {ref.reference && <p>{ref.reference}</p>}
707
+ </PlainCard>
708
+ ))}
709
+ </PlainGrid>
710
+ </Block>
711
+ )}
712
+ </Body>
713
+ </Page>
714
+ );
715
+ }
716
+
717
+ export default Resume;
package/vite.config.js ADDED
@@ -0,0 +1,33 @@
1
+ import { defineConfig } from 'vite';
2
+ import react from '@vitejs/plugin-react';
3
+
4
+ export default defineConfig({
5
+ plugins: [react()],
6
+ build: {
7
+ ssr: true,
8
+ target: 'node18',
9
+ outDir: './dist',
10
+ emptyOutDir: true,
11
+ minify: false,
12
+ lib: {
13
+ entry: './index.jsx',
14
+ formats: ['es'],
15
+ fileName: 'index',
16
+ },
17
+ rollupOptions: {
18
+ external: ['react', 'react-dom', 'react-dom/server', 'react/jsx-runtime'],
19
+ output: {
20
+ exports: 'named',
21
+ },
22
+ },
23
+ },
24
+ ssr: {
25
+ // Force bundle these packages instead of externalizing
26
+ noExternal: [
27
+ 'styled-components',
28
+ '@emotion/is-prop-valid',
29
+ 'stylis',
30
+ 'shallowequal',
31
+ ],
32
+ },
33
+ });