jsonresume-theme-bold-header-statement 1.0.0 → 1.1.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 +28 -0
- package/LICENSE +21 -0
- package/dist/index.js +6448 -0
- package/dist/style.css +139 -0
- package/package.json +20 -3
- package/src/Resume.jsx +457 -5
- package/vite.config.js +33 -0
- package/src/components/EducationSection.jsx +0 -75
- package/src/components/Header.jsx +0 -80
- package/src/components/ProjectsSection.jsx +0 -96
- package/src/components/SkillsSection.jsx +0 -64
- package/src/components/WorkSection.jsx +0 -119
- /package/src/{index.js → index.jsx} +0 -0
package/dist/style.css
ADDED
|
@@ -0,0 +1,139 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Resume Core Design Tokens
|
|
3
|
+
* Framework-agnostic CSS variables for theming
|
|
4
|
+
* Based on 2025 resume best practices and ATS compatibility research
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
:root {
|
|
8
|
+
/* Typography - ATS-friendly fonts */
|
|
9
|
+
--resume-font-sans: "Helvetica Neue", Helvetica, Arial, sans-serif;
|
|
10
|
+
--resume-font-serif: Cambria, Georgia, "Times New Roman", serif;
|
|
11
|
+
--resume-font-mono: "Courier New", Courier, monospace;
|
|
12
|
+
|
|
13
|
+
/* Font Sizes - Optimal readability */
|
|
14
|
+
--resume-size-name: 36px; /* Large, prominent name */
|
|
15
|
+
--resume-size-heading: 16px; /* Section titles */
|
|
16
|
+
--resume-size-subheading: 14px; /* Job titles, degrees */
|
|
17
|
+
--resume-size-body: 11px; /* Body text, descriptions */
|
|
18
|
+
--resume-size-small: 10px; /* Dates, locations, metadata */
|
|
19
|
+
|
|
20
|
+
/* Font Weights */
|
|
21
|
+
--resume-weight-normal: 400;
|
|
22
|
+
--resume-weight-medium: 500;
|
|
23
|
+
--resume-weight-semibold: 600;
|
|
24
|
+
--resume-weight-bold: 700;
|
|
25
|
+
|
|
26
|
+
/* Line Heights */
|
|
27
|
+
--resume-line-height-tight: 1.2;
|
|
28
|
+
--resume-line-height-normal: 1.5;
|
|
29
|
+
--resume-line-height-relaxed: 1.75;
|
|
30
|
+
|
|
31
|
+
/* Colors - Professional Theme (default) */
|
|
32
|
+
--resume-color-primary: #1a1a1a;
|
|
33
|
+
--resume-color-secondary: #4a4a4a;
|
|
34
|
+
--resume-color-accent: #2563eb;
|
|
35
|
+
--resume-color-background: #ffffff;
|
|
36
|
+
--resume-color-border: #e5e7eb;
|
|
37
|
+
|
|
38
|
+
/* Spacing - Consistent rhythm */
|
|
39
|
+
--resume-space-section: 24px; /* Between major sections */
|
|
40
|
+
--resume-space-item: 16px; /* Between list items */
|
|
41
|
+
--resume-space-tight: 8px; /* Within items */
|
|
42
|
+
--resume-space-margin: 48px; /* Page margins */
|
|
43
|
+
|
|
44
|
+
/* Layout - Optimal line length */
|
|
45
|
+
--resume-max-width: 660px; /* ~80 chars at body size */
|
|
46
|
+
--resume-column-gap: 24px;
|
|
47
|
+
|
|
48
|
+
/* Border Radius */
|
|
49
|
+
--resume-radius-sm: 4px;
|
|
50
|
+
--resume-radius-md: 8px;
|
|
51
|
+
--resume-radius-lg: 12px;
|
|
52
|
+
|
|
53
|
+
/* Shadows - Subtle depth */
|
|
54
|
+
--resume-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
|
|
55
|
+
--resume-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
/* Modern Theme Variant */
|
|
59
|
+
[data-theme="modern"] {
|
|
60
|
+
--resume-color-primary: #0f172a;
|
|
61
|
+
--resume-color-secondary: #475569;
|
|
62
|
+
--resume-color-accent: #8b5cf6;
|
|
63
|
+
--resume-font-sans: "Inter", -apple-system, BlinkMacSystemFont, sans-serif;
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
/* Classic Theme Variant */
|
|
67
|
+
[data-theme="classic"] {
|
|
68
|
+
--resume-color-primary: #000000;
|
|
69
|
+
--resume-color-secondary: #333333;
|
|
70
|
+
--resume-color-accent: #0066cc;
|
|
71
|
+
--resume-font-sans: Georgia, "Times New Roman", serif;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
/* Minimal Theme Variant */
|
|
75
|
+
[data-theme="minimal"] {
|
|
76
|
+
--resume-color-primary: #18181b;
|
|
77
|
+
--resume-color-secondary: #71717a;
|
|
78
|
+
--resume-color-accent: #000000;
|
|
79
|
+
--resume-space-section: 32px;
|
|
80
|
+
--resume-space-item: 20px;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
/* High Contrast Variant (Accessibility) */
|
|
84
|
+
[data-theme="high-contrast"] {
|
|
85
|
+
--resume-color-primary: #000000;
|
|
86
|
+
--resume-color-secondary: #000000;
|
|
87
|
+
--resume-color-accent: #0000ff;
|
|
88
|
+
--resume-color-background: #ffffff;
|
|
89
|
+
--resume-color-border: #000000;
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
/* Print Styles - ATS-Friendly PDF Export */
|
|
93
|
+
@media print {
|
|
94
|
+
:root {
|
|
95
|
+
/* Optimize for print */
|
|
96
|
+
--resume-space-section: 18px;
|
|
97
|
+
--resume-space-item: 12px;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
@page {
|
|
101
|
+
size: A4;
|
|
102
|
+
margin: 0.5in;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/* Prevent awkward breaks */
|
|
106
|
+
.resume-section {
|
|
107
|
+
page-break-inside: avoid;
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
.resume-item {
|
|
111
|
+
break-inside: avoid;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/* Widows and orphans control */
|
|
115
|
+
p, li {
|
|
116
|
+
widows: 3;
|
|
117
|
+
orphans: 3;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
/* Hyphenation for long words */
|
|
121
|
+
.resume-description {
|
|
122
|
+
hyphens: auto;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
/* Hide interactive elements */
|
|
126
|
+
.no-print {
|
|
127
|
+
display: none !important;
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/* RTL Support */
|
|
132
|
+
[dir="rtl"] {
|
|
133
|
+
text-align: right;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
[dir="rtl"] .resume-item {
|
|
137
|
+
padding-left: 0;
|
|
138
|
+
padding-right: var(--resume-space-tight);
|
|
139
|
+
}
|
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsonresume-theme-bold-header-statement",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.1.0",
|
|
4
4
|
"description": "Magazine-inspired layout with commanding header and confident personal brand aesthetic",
|
|
5
|
-
"main": "
|
|
5
|
+
"main": "./dist/index.js",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"license": "MIT",
|
|
8
8
|
"keywords": [
|
|
@@ -20,6 +20,23 @@
|
|
|
20
20
|
},
|
|
21
21
|
"dependencies": {
|
|
22
22
|
"styled-components": "^6.1.19",
|
|
23
|
-
"@
|
|
23
|
+
"@jsonresume/core": "0.1.0"
|
|
24
|
+
},
|
|
25
|
+
"exports": {
|
|
26
|
+
".": {
|
|
27
|
+
"import": "./src/index.jsx",
|
|
28
|
+
"default": "./dist/index.js"
|
|
29
|
+
},
|
|
30
|
+
"./dist": {
|
|
31
|
+
"import": "./dist/index.js",
|
|
32
|
+
"default": "./dist/index.js"
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"devDependencies": {
|
|
36
|
+
"@vitejs/plugin-react": "^4.3.4",
|
|
37
|
+
"vite": "^5.4.21"
|
|
38
|
+
},
|
|
39
|
+
"scripts": {
|
|
40
|
+
"build": "vite build"
|
|
24
41
|
}
|
|
25
42
|
}
|
package/src/Resume.jsx
CHANGED
|
@@ -1,11 +1,13 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import styled from 'styled-components';
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import {
|
|
4
|
+
Section,
|
|
5
|
+
SectionTitle,
|
|
6
|
+
ContactInfo,
|
|
7
|
+
DateRange,
|
|
8
|
+
} from '@jsonresume/core';
|
|
8
9
|
|
|
10
|
+
// Layout
|
|
9
11
|
const Layout = styled.div`
|
|
10
12
|
max-width: 900px;
|
|
11
13
|
margin: 0 auto;
|
|
@@ -28,6 +30,74 @@ const ContentWrapper = styled.div`
|
|
|
28
30
|
}
|
|
29
31
|
`;
|
|
30
32
|
|
|
33
|
+
// Header
|
|
34
|
+
const HeaderSection = styled.header`
|
|
35
|
+
width: 100%;
|
|
36
|
+
background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
|
|
37
|
+
padding: 80px 60px;
|
|
38
|
+
margin-bottom: 60px;
|
|
39
|
+
position: relative;
|
|
40
|
+
overflow: hidden;
|
|
41
|
+
|
|
42
|
+
&::before {
|
|
43
|
+
content: '';
|
|
44
|
+
position: absolute;
|
|
45
|
+
top: 0;
|
|
46
|
+
right: 0;
|
|
47
|
+
width: 300px;
|
|
48
|
+
height: 300px;
|
|
49
|
+
background: rgba(255, 255, 255, 0.05);
|
|
50
|
+
border-radius: 50%;
|
|
51
|
+
transform: translate(30%, -30%);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
@media print {
|
|
55
|
+
padding: 60px 40px;
|
|
56
|
+
background: #0f766e;
|
|
57
|
+
}
|
|
58
|
+
`;
|
|
59
|
+
|
|
60
|
+
const Name = styled.h1`
|
|
61
|
+
font-size: 4rem;
|
|
62
|
+
font-weight: 900;
|
|
63
|
+
color: white;
|
|
64
|
+
margin: 0 0 16px 0;
|
|
65
|
+
letter-spacing: -2px;
|
|
66
|
+
line-height: 1;
|
|
67
|
+
text-transform: uppercase;
|
|
68
|
+
position: relative;
|
|
69
|
+
z-index: 1;
|
|
70
|
+
|
|
71
|
+
@media print {
|
|
72
|
+
font-size: 3.5rem;
|
|
73
|
+
}
|
|
74
|
+
`;
|
|
75
|
+
|
|
76
|
+
const Label = styled.div`
|
|
77
|
+
font-size: 1.5rem;
|
|
78
|
+
color: rgba(255, 255, 255, 0.95);
|
|
79
|
+
margin-bottom: 32px;
|
|
80
|
+
font-weight: 300;
|
|
81
|
+
letter-spacing: 0.5px;
|
|
82
|
+
position: relative;
|
|
83
|
+
z-index: 1;
|
|
84
|
+
`;
|
|
85
|
+
|
|
86
|
+
const StyledContactInfo = styled(ContactInfo)`
|
|
87
|
+
font-size: 16px;
|
|
88
|
+
position: relative;
|
|
89
|
+
z-index: 1;
|
|
90
|
+
|
|
91
|
+
a {
|
|
92
|
+
color: white;
|
|
93
|
+
font-weight: 400;
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
span {
|
|
97
|
+
color: rgba(255, 255, 255, 0.9);
|
|
98
|
+
}
|
|
99
|
+
`;
|
|
100
|
+
|
|
31
101
|
const Summary = styled.p`
|
|
32
102
|
font-size: 18px;
|
|
33
103
|
line-height: 1.8;
|
|
@@ -37,6 +107,376 @@ const Summary = styled.p`
|
|
|
37
107
|
max-width: 800px;
|
|
38
108
|
`;
|
|
39
109
|
|
|
110
|
+
// Section styles
|
|
111
|
+
const StyledSectionTitle = styled(SectionTitle)`
|
|
112
|
+
font-size: 14px;
|
|
113
|
+
font-weight: 700;
|
|
114
|
+
color: #0f766e;
|
|
115
|
+
text-transform: uppercase;
|
|
116
|
+
letter-spacing: 2px;
|
|
117
|
+
margin: 60px 0 32px 0;
|
|
118
|
+
padding-bottom: 12px;
|
|
119
|
+
border-bottom: 3px solid #0f766e;
|
|
120
|
+
`;
|
|
121
|
+
|
|
122
|
+
const ContentBlock = styled.div`
|
|
123
|
+
margin-bottom: 50px;
|
|
124
|
+
background: #fafafa;
|
|
125
|
+
padding: 32px;
|
|
126
|
+
border-radius: 8px;
|
|
127
|
+
border-left: 5px solid #0f766e;
|
|
128
|
+
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
|
|
129
|
+
|
|
130
|
+
&:last-child {
|
|
131
|
+
margin-bottom: 0;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
@media print {
|
|
135
|
+
background: white;
|
|
136
|
+
border: 1px solid #e5e7eb;
|
|
137
|
+
padding: 24px;
|
|
138
|
+
}
|
|
139
|
+
`;
|
|
140
|
+
|
|
141
|
+
// Work section
|
|
142
|
+
const WorkHeader = styled.div`
|
|
143
|
+
margin-bottom: 16px;
|
|
144
|
+
`;
|
|
145
|
+
|
|
146
|
+
const Position = styled.h3`
|
|
147
|
+
font-size: 22px;
|
|
148
|
+
font-weight: 700;
|
|
149
|
+
color: #111827;
|
|
150
|
+
margin: 0 0 8px 0;
|
|
151
|
+
letter-spacing: -0.5px;
|
|
152
|
+
`;
|
|
153
|
+
|
|
154
|
+
const Company = styled.div`
|
|
155
|
+
font-size: 18px;
|
|
156
|
+
color: #0f766e;
|
|
157
|
+
font-weight: 500;
|
|
158
|
+
margin-bottom: 8px;
|
|
159
|
+
`;
|
|
160
|
+
|
|
161
|
+
const DateText = styled.div`
|
|
162
|
+
font-size: 14px;
|
|
163
|
+
color: #6b7280;
|
|
164
|
+
font-weight: 400;
|
|
165
|
+
text-transform: uppercase;
|
|
166
|
+
letter-spacing: 1px;
|
|
167
|
+
`;
|
|
168
|
+
|
|
169
|
+
const WorkSummary = styled.p`
|
|
170
|
+
margin: 16px 0;
|
|
171
|
+
color: #4b5563;
|
|
172
|
+
line-height: 1.7;
|
|
173
|
+
font-size: 16px;
|
|
174
|
+
font-weight: 300;
|
|
175
|
+
`;
|
|
176
|
+
|
|
177
|
+
const Highlights = styled.ul`
|
|
178
|
+
margin: 16px 0 0 0;
|
|
179
|
+
padding-left: 24px;
|
|
180
|
+
list-style-type: none;
|
|
181
|
+
|
|
182
|
+
li {
|
|
183
|
+
margin: 10px 0;
|
|
184
|
+
color: #374151;
|
|
185
|
+
line-height: 1.7;
|
|
186
|
+
font-weight: 300;
|
|
187
|
+
position: relative;
|
|
188
|
+
padding-left: 8px;
|
|
189
|
+
|
|
190
|
+
&::before {
|
|
191
|
+
content: '▸';
|
|
192
|
+
position: absolute;
|
|
193
|
+
left: -16px;
|
|
194
|
+
color: #0f766e;
|
|
195
|
+
font-weight: 700;
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
`;
|
|
199
|
+
|
|
200
|
+
// Skills section
|
|
201
|
+
const SkillsGrid = styled.div`
|
|
202
|
+
display: grid;
|
|
203
|
+
grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
|
|
204
|
+
gap: 28px;
|
|
205
|
+
`;
|
|
206
|
+
|
|
207
|
+
const SkillCategory = styled.div`
|
|
208
|
+
padding: 28px;
|
|
209
|
+
background: white;
|
|
210
|
+
border-radius: 8px;
|
|
211
|
+
border: 2px solid #0f766e;
|
|
212
|
+
transition: transform 0.2s;
|
|
213
|
+
box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
|
|
214
|
+
`;
|
|
215
|
+
|
|
216
|
+
const SkillName = styled.h4`
|
|
217
|
+
font-size: 16px;
|
|
218
|
+
font-weight: 700;
|
|
219
|
+
color: #0f766e;
|
|
220
|
+
margin: 0 0 12px 0;
|
|
221
|
+
text-transform: uppercase;
|
|
222
|
+
letter-spacing: 1px;
|
|
223
|
+
`;
|
|
224
|
+
|
|
225
|
+
const SkillTags = styled.div`
|
|
226
|
+
font-size: 14px;
|
|
227
|
+
color: #6b7280;
|
|
228
|
+
line-height: 1.6;
|
|
229
|
+
font-weight: 300;
|
|
230
|
+
`;
|
|
231
|
+
|
|
232
|
+
// Education section
|
|
233
|
+
const Institution = styled.h3`
|
|
234
|
+
font-size: 20px;
|
|
235
|
+
font-weight: 700;
|
|
236
|
+
color: #111827;
|
|
237
|
+
margin: 0 0 8px 0;
|
|
238
|
+
`;
|
|
239
|
+
|
|
240
|
+
const Degree = styled.div`
|
|
241
|
+
font-size: 16px;
|
|
242
|
+
color: #4b5563;
|
|
243
|
+
margin-bottom: 8px;
|
|
244
|
+
font-weight: 400;
|
|
245
|
+
`;
|
|
246
|
+
|
|
247
|
+
const EducationDate = styled.div`
|
|
248
|
+
font-size: 14px;
|
|
249
|
+
color: #6b7280;
|
|
250
|
+
text-transform: uppercase;
|
|
251
|
+
letter-spacing: 1px;
|
|
252
|
+
`;
|
|
253
|
+
|
|
254
|
+
// Sub-components
|
|
255
|
+
function Header({ basics }) {
|
|
256
|
+
return (
|
|
257
|
+
<HeaderSection>
|
|
258
|
+
<Name>{basics.name}</Name>
|
|
259
|
+
{basics.label && <Label>{basics.label}</Label>}
|
|
260
|
+
<StyledContactInfo basics={basics} />
|
|
261
|
+
</HeaderSection>
|
|
262
|
+
);
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
function WorkSection({ work }) {
|
|
266
|
+
if (!work?.length) return null;
|
|
267
|
+
|
|
268
|
+
return (
|
|
269
|
+
<Section>
|
|
270
|
+
<StyledSectionTitle>Experience</StyledSectionTitle>
|
|
271
|
+
{work.map((job, index) => (
|
|
272
|
+
<ContentBlock key={index}>
|
|
273
|
+
<WorkHeader>
|
|
274
|
+
<Position>{job.position}</Position>
|
|
275
|
+
{job.name && <Company>{job.name}</Company>}
|
|
276
|
+
<DateText>
|
|
277
|
+
<DateRange startDate={job.startDate} endDate={job.endDate} />
|
|
278
|
+
</DateText>
|
|
279
|
+
</WorkHeader>
|
|
280
|
+
{job.summary && <WorkSummary>{job.summary}</WorkSummary>}
|
|
281
|
+
{job.highlights?.length > 0 && (
|
|
282
|
+
<Highlights>
|
|
283
|
+
{job.highlights.map((highlight, i) => (
|
|
284
|
+
<li key={i}>{highlight}</li>
|
|
285
|
+
))}
|
|
286
|
+
</Highlights>
|
|
287
|
+
)}
|
|
288
|
+
</ContentBlock>
|
|
289
|
+
))}
|
|
290
|
+
</Section>
|
|
291
|
+
);
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
function SkillsSection({ skills }) {
|
|
295
|
+
if (!skills?.length) return null;
|
|
296
|
+
|
|
297
|
+
return (
|
|
298
|
+
<Section>
|
|
299
|
+
<StyledSectionTitle>Skills</StyledSectionTitle>
|
|
300
|
+
<SkillsGrid>
|
|
301
|
+
{skills.map((skill, index) => (
|
|
302
|
+
<SkillCategory key={index}>
|
|
303
|
+
<SkillName>{skill.name}</SkillName>
|
|
304
|
+
{skill.keywords?.length > 0 && (
|
|
305
|
+
<SkillTags>{skill.keywords.join(', ')}</SkillTags>
|
|
306
|
+
)}
|
|
307
|
+
</SkillCategory>
|
|
308
|
+
))}
|
|
309
|
+
</SkillsGrid>
|
|
310
|
+
</Section>
|
|
311
|
+
);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
function EducationSection({ education }) {
|
|
315
|
+
if (!education?.length) return null;
|
|
316
|
+
|
|
317
|
+
return (
|
|
318
|
+
<Section>
|
|
319
|
+
<StyledSectionTitle>Education</StyledSectionTitle>
|
|
320
|
+
{education.map((edu, index) => (
|
|
321
|
+
<ContentBlock key={index}>
|
|
322
|
+
<Institution>{edu.institution}</Institution>
|
|
323
|
+
<Degree>
|
|
324
|
+
{edu.studyType} in {edu.area}
|
|
325
|
+
{edu.score && ` • ${edu.score}`}
|
|
326
|
+
</Degree>
|
|
327
|
+
<EducationDate>
|
|
328
|
+
<DateRange startDate={edu.startDate} endDate={edu.endDate} />
|
|
329
|
+
</EducationDate>
|
|
330
|
+
</ContentBlock>
|
|
331
|
+
))}
|
|
332
|
+
</Section>
|
|
333
|
+
);
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
function ProjectsSection({ projects }) {
|
|
337
|
+
if (!projects?.length) return null;
|
|
338
|
+
|
|
339
|
+
return (
|
|
340
|
+
<Section>
|
|
341
|
+
<StyledSectionTitle>Projects</StyledSectionTitle>
|
|
342
|
+
{projects.map((project, index) => (
|
|
343
|
+
<ContentBlock key={index}>
|
|
344
|
+
<Position>{project.name}</Position>
|
|
345
|
+
{project.description && (
|
|
346
|
+
<WorkSummary>{project.description}</WorkSummary>
|
|
347
|
+
)}
|
|
348
|
+
{project.highlights?.length > 0 && (
|
|
349
|
+
<Highlights>
|
|
350
|
+
{project.highlights.map((highlight, i) => (
|
|
351
|
+
<li key={i}>{highlight}</li>
|
|
352
|
+
))}
|
|
353
|
+
</Highlights>
|
|
354
|
+
)}
|
|
355
|
+
</ContentBlock>
|
|
356
|
+
))}
|
|
357
|
+
</Section>
|
|
358
|
+
);
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
function VolunteerSection({ volunteer }) {
|
|
362
|
+
if (!volunteer?.length) return null;
|
|
363
|
+
|
|
364
|
+
return (
|
|
365
|
+
<Section>
|
|
366
|
+
<StyledSectionTitle>Volunteer</StyledSectionTitle>
|
|
367
|
+
{volunteer.map((vol, index) => (
|
|
368
|
+
<ContentBlock key={index}>
|
|
369
|
+
<WorkHeader>
|
|
370
|
+
<Position>{vol.position}</Position>
|
|
371
|
+
{vol.organization && <Company>{vol.organization}</Company>}
|
|
372
|
+
{(vol.startDate || vol.endDate) && (
|
|
373
|
+
<DateText>
|
|
374
|
+
<DateRange startDate={vol.startDate} endDate={vol.endDate} />
|
|
375
|
+
</DateText>
|
|
376
|
+
)}
|
|
377
|
+
</WorkHeader>
|
|
378
|
+
{vol.summary && <WorkSummary>{vol.summary}</WorkSummary>}
|
|
379
|
+
{vol.highlights?.length > 0 && (
|
|
380
|
+
<Highlights>
|
|
381
|
+
{vol.highlights.map((highlight, i) => (
|
|
382
|
+
<li key={i}>{highlight}</li>
|
|
383
|
+
))}
|
|
384
|
+
</Highlights>
|
|
385
|
+
)}
|
|
386
|
+
</ContentBlock>
|
|
387
|
+
))}
|
|
388
|
+
</Section>
|
|
389
|
+
);
|
|
390
|
+
}
|
|
391
|
+
|
|
392
|
+
function AwardsSection({ awards }) {
|
|
393
|
+
if (!awards?.length) return null;
|
|
394
|
+
|
|
395
|
+
return (
|
|
396
|
+
<Section>
|
|
397
|
+
<StyledSectionTitle>Awards</StyledSectionTitle>
|
|
398
|
+
{awards.map((award, index) => (
|
|
399
|
+
<ContentBlock key={index}>
|
|
400
|
+
<Institution>{award.title}</Institution>
|
|
401
|
+
{award.awarder && <Degree>Awarded by {award.awarder}</Degree>}
|
|
402
|
+
{award.date && <EducationDate>{award.date}</EducationDate>}
|
|
403
|
+
{award.summary && <WorkSummary>{award.summary}</WorkSummary>}
|
|
404
|
+
</ContentBlock>
|
|
405
|
+
))}
|
|
406
|
+
</Section>
|
|
407
|
+
);
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
function CertificatesSection({ certificates }) {
|
|
411
|
+
if (!certificates?.length) return null;
|
|
412
|
+
|
|
413
|
+
return (
|
|
414
|
+
<Section>
|
|
415
|
+
<StyledSectionTitle>Certificates</StyledSectionTitle>
|
|
416
|
+
{certificates.map((cert, index) => (
|
|
417
|
+
<ContentBlock key={index}>
|
|
418
|
+
<Institution>{cert.name}</Institution>
|
|
419
|
+
{cert.issuer && <Degree>Issued by {cert.issuer}</Degree>}
|
|
420
|
+
{cert.date && <EducationDate>{cert.date}</EducationDate>}
|
|
421
|
+
</ContentBlock>
|
|
422
|
+
))}
|
|
423
|
+
</Section>
|
|
424
|
+
);
|
|
425
|
+
}
|
|
426
|
+
|
|
427
|
+
function PublicationsSection({ publications }) {
|
|
428
|
+
if (!publications?.length) return null;
|
|
429
|
+
|
|
430
|
+
return (
|
|
431
|
+
<Section>
|
|
432
|
+
<StyledSectionTitle>Publications</StyledSectionTitle>
|
|
433
|
+
{publications.map((pub, index) => (
|
|
434
|
+
<ContentBlock key={index}>
|
|
435
|
+
<Institution>{pub.name}</Institution>
|
|
436
|
+
{pub.publisher && <Degree>Published by {pub.publisher}</Degree>}
|
|
437
|
+
{pub.releaseDate && <EducationDate>{pub.releaseDate}</EducationDate>}
|
|
438
|
+
{pub.summary && <WorkSummary>{pub.summary}</WorkSummary>}
|
|
439
|
+
</ContentBlock>
|
|
440
|
+
))}
|
|
441
|
+
</Section>
|
|
442
|
+
);
|
|
443
|
+
}
|
|
444
|
+
|
|
445
|
+
function LanguagesSection({ languages }) {
|
|
446
|
+
if (!languages?.length) return null;
|
|
447
|
+
|
|
448
|
+
return (
|
|
449
|
+
<Section>
|
|
450
|
+
<StyledSectionTitle>Languages</StyledSectionTitle>
|
|
451
|
+
<SkillsGrid>
|
|
452
|
+
{languages.map((lang, index) => (
|
|
453
|
+
<SkillCategory key={index}>
|
|
454
|
+
<SkillName>{lang.language}</SkillName>
|
|
455
|
+
{lang.fluency && <SkillTags>{lang.fluency}</SkillTags>}
|
|
456
|
+
</SkillCategory>
|
|
457
|
+
))}
|
|
458
|
+
</SkillsGrid>
|
|
459
|
+
</Section>
|
|
460
|
+
);
|
|
461
|
+
}
|
|
462
|
+
|
|
463
|
+
function ReferencesSection({ references }) {
|
|
464
|
+
if (!references?.length) return null;
|
|
465
|
+
|
|
466
|
+
return (
|
|
467
|
+
<Section>
|
|
468
|
+
<StyledSectionTitle>References</StyledSectionTitle>
|
|
469
|
+
{references.map((ref, index) => (
|
|
470
|
+
<ContentBlock key={index}>
|
|
471
|
+
<Institution>{ref.name}</Institution>
|
|
472
|
+
{ref.reference && <WorkSummary>{ref.reference}</WorkSummary>}
|
|
473
|
+
</ContentBlock>
|
|
474
|
+
))}
|
|
475
|
+
</Section>
|
|
476
|
+
);
|
|
477
|
+
}
|
|
478
|
+
|
|
479
|
+
// Main component
|
|
40
480
|
function Resume({ resume }) {
|
|
41
481
|
const {
|
|
42
482
|
basics = {},
|
|
@@ -44,6 +484,12 @@ function Resume({ resume }) {
|
|
|
44
484
|
education = [],
|
|
45
485
|
skills = [],
|
|
46
486
|
projects = [],
|
|
487
|
+
volunteer = [],
|
|
488
|
+
awards = [],
|
|
489
|
+
certificates = [],
|
|
490
|
+
publications = [],
|
|
491
|
+
languages = [],
|
|
492
|
+
references = [],
|
|
47
493
|
} = resume;
|
|
48
494
|
|
|
49
495
|
return (
|
|
@@ -55,6 +501,12 @@ function Resume({ resume }) {
|
|
|
55
501
|
<SkillsSection skills={skills} />
|
|
56
502
|
<EducationSection education={education} />
|
|
57
503
|
<ProjectsSection projects={projects} />
|
|
504
|
+
<VolunteerSection volunteer={volunteer} />
|
|
505
|
+
<AwardsSection awards={awards} />
|
|
506
|
+
<CertificatesSection certificates={certificates} />
|
|
507
|
+
<PublicationsSection publications={publications} />
|
|
508
|
+
<LanguagesSection languages={languages} />
|
|
509
|
+
<ReferencesSection references={references} />
|
|
58
510
|
</ContentWrapper>
|
|
59
511
|
</Layout>
|
|
60
512
|
);
|
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: './src/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
|
+
});
|