@jsonresume/jsonresume-theme-creative-studio 1.0.0 → 1.0.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.
@@ -0,0 +1,447 @@
1
+ import React from 'react';
2
+ import styled from 'styled-components';
3
+ import {
4
+ Section,
5
+ SectionTitle,
6
+ DateRange,
7
+ ContactInfo,
8
+ } from '@jsonresume/core';
9
+
10
+ // Creative Studio Theme - Artistic yet professional
11
+ // Rounded sans-serif with slightly taller line height
12
+ // Color: #ff6363 (warm coral)
13
+
14
+ const Layout = styled.div`
15
+ max-width: 820px;
16
+ margin: 0 auto;
17
+ padding: 50px 40px;
18
+ background: white;
19
+ font-family: 'Nunito', 'Quicksand', 'Rounded Mplus', -apple-system,
20
+ BlinkMacSystemFont, 'Segoe UI', sans-serif;
21
+ color: #2d3748;
22
+ line-height: 1.8;
23
+
24
+ @media print {
25
+ padding: 40px;
26
+ }
27
+ `;
28
+
29
+ const Header = styled.header`
30
+ margin-bottom: 50px;
31
+ padding-bottom: 30px;
32
+ border-bottom: 3px solid #ff6363;
33
+ background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
34
+ padding: 40px;
35
+ border-radius: 16px;
36
+ `;
37
+
38
+ const Name = styled.h1`
39
+ font-size: 44px;
40
+ font-weight: 800;
41
+ color: #ff6363;
42
+ margin: 0 0 10px 0;
43
+ letter-spacing: -0.5px;
44
+ `;
45
+
46
+ const Label = styled.div`
47
+ font-size: 18px;
48
+ color: #718096;
49
+ margin-bottom: 20px;
50
+ font-weight: 600;
51
+ `;
52
+
53
+ const StyledContactInfo = styled(ContactInfo)`
54
+ font-size: 15px;
55
+
56
+ a {
57
+ font-size: 15px;
58
+ color: #ff6363;
59
+ text-decoration: none;
60
+
61
+ &:hover {
62
+ text-decoration: underline;
63
+ }
64
+ }
65
+ `;
66
+
67
+ const Summary = styled.p`
68
+ font-size: 16px;
69
+ line-height: 1.9;
70
+ color: #4a5568;
71
+ margin: 20px 0 0 0;
72
+ `;
73
+
74
+ const StyledSectionTitle = styled(SectionTitle)`
75
+ font-size: 26px;
76
+ font-weight: 700;
77
+ color: #ff6363;
78
+ margin: 45px 0 25px 0;
79
+ padding-bottom: 12px;
80
+ border-bottom: 2px solid #ffb3b3;
81
+ position: relative;
82
+
83
+ &:before {
84
+ content: '';
85
+ position: absolute;
86
+ bottom: -2px;
87
+ left: 0;
88
+ width: 80px;
89
+ height: 2px;
90
+ background: #ff6363;
91
+ }
92
+ `;
93
+
94
+ const WorkItem = styled.div`
95
+ margin-bottom: 35px;
96
+ padding: 25px;
97
+ background: linear-gradient(135deg, #fff9f9 0%, #ffffff 100%);
98
+ border-radius: 12px;
99
+ border-left: 4px solid #ff6363;
100
+
101
+ &:last-child {
102
+ margin-bottom: 0;
103
+ }
104
+ `;
105
+
106
+ const WorkHeader = styled.div`
107
+ display: flex;
108
+ justify-content: space-between;
109
+ align-items: baseline;
110
+ margin-bottom: 12px;
111
+ gap: 20px;
112
+
113
+ @media (max-width: 640px) {
114
+ flex-direction: column;
115
+ align-items: flex-start;
116
+ gap: 6px;
117
+ }
118
+ `;
119
+
120
+ const Position = styled.h3`
121
+ font-size: 20px;
122
+ font-weight: 700;
123
+ color: #2d3748;
124
+ margin: 0;
125
+ `;
126
+
127
+ const Company = styled.div`
128
+ font-size: 17px;
129
+ color: #ff6363;
130
+ font-weight: 600;
131
+ margin-top: 6px;
132
+ `;
133
+
134
+ const DateText = styled.div`
135
+ font-size: 14px;
136
+ color: #a0aec0;
137
+ font-weight: 600;
138
+ white-space: nowrap;
139
+ `;
140
+
141
+ const WorkSummary = styled.p`
142
+ margin: 14px 0;
143
+ color: #4a5568;
144
+ line-height: 1.9;
145
+ font-size: 15px;
146
+ `;
147
+
148
+ const Highlights = styled.ul`
149
+ margin: 14px 0 0 0;
150
+ padding-left: 24px;
151
+ list-style-type: none;
152
+
153
+ li {
154
+ margin: 10px 0;
155
+ color: #4a5568;
156
+ line-height: 1.9;
157
+ font-size: 15px;
158
+ padding-left: 8px;
159
+ position: relative;
160
+
161
+ &:before {
162
+ content: '◆';
163
+ position: absolute;
164
+ left: -20px;
165
+ color: #ff6363;
166
+ font-size: 12px;
167
+ }
168
+ }
169
+ `;
170
+
171
+ const EducationItem = styled.div`
172
+ margin-bottom: 28px;
173
+ padding: 20px;
174
+ background: #fafafa;
175
+ border-radius: 10px;
176
+
177
+ &:last-child {
178
+ margin-bottom: 0;
179
+ }
180
+ `;
181
+
182
+ const Institution = styled.h3`
183
+ font-size: 18px;
184
+ font-weight: 700;
185
+ color: #2d3748;
186
+ margin: 0 0 8px 0;
187
+ `;
188
+
189
+ const Degree = styled.div`
190
+ font-size: 16px;
191
+ color: #4a5568;
192
+ margin-bottom: 6px;
193
+ font-weight: 600;
194
+ `;
195
+
196
+ const EducationDate = styled.div`
197
+ font-size: 14px;
198
+ color: #a0aec0;
199
+ font-weight: 600;
200
+ `;
201
+
202
+ const SkillsGrid = styled.div`
203
+ display: grid;
204
+ grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
205
+ gap: 20px;
206
+ `;
207
+
208
+ const SkillCategory = styled.div`
209
+ padding: 20px;
210
+ background: linear-gradient(135deg, #fff9f9 0%, #ffffff 100%);
211
+ border-radius: 12px;
212
+ border: 2px solid #ffe4e4;
213
+ transition: transform 0.2s, box-shadow 0.2s;
214
+
215
+ &:hover {
216
+ transform: translateY(-2px);
217
+ box-shadow: 0 4px 12px rgba(255, 99, 99, 0.15);
218
+ }
219
+ `;
220
+
221
+ const SkillName = styled.h4`
222
+ font-size: 16px;
223
+ font-weight: 700;
224
+ color: #ff6363;
225
+ margin: 0 0 10px 0;
226
+ `;
227
+
228
+ const SkillTags = styled.div`
229
+ font-size: 14px;
230
+ color: #718096;
231
+ line-height: 1.7;
232
+ `;
233
+
234
+ function Resume({ resume }) {
235
+ const {
236
+ basics = {},
237
+ work = [],
238
+ education = [],
239
+ skills = [],
240
+ projects = [],
241
+ volunteer = [],
242
+ awards = [],
243
+ publications = [],
244
+ languages = [],
245
+ interests = [],
246
+ references = [],
247
+ } = resume;
248
+
249
+ return (
250
+ <Layout>
251
+ <Header>
252
+ {basics.name && <Name>{basics.name}</Name>}
253
+ {basics.label && <Label>{basics.label}</Label>}
254
+ <StyledContactInfo basics={basics} />
255
+ {basics.summary && <Summary>{basics.summary}</Summary>}
256
+ </Header>
257
+
258
+ {work?.length > 0 && (
259
+ <Section>
260
+ <StyledSectionTitle>Work Experience</StyledSectionTitle>
261
+ {work.map((job, index) => (
262
+ <WorkItem key={index}>
263
+ <WorkHeader>
264
+ <div>
265
+ <Position>{job.position}</Position>
266
+ {job.name && <Company>{job.name}</Company>}
267
+ </div>
268
+ <DateText>
269
+ <DateRange startDate={job.startDate} endDate={job.endDate} />
270
+ </DateText>
271
+ </WorkHeader>
272
+ {job.summary && <WorkSummary>{job.summary}</WorkSummary>}
273
+ {job.highlights?.length > 0 && (
274
+ <Highlights>
275
+ {job.highlights.map((highlight, i) => (
276
+ <li key={i}>{highlight}</li>
277
+ ))}
278
+ </Highlights>
279
+ )}
280
+ </WorkItem>
281
+ ))}
282
+ </Section>
283
+ )}
284
+
285
+ {skills?.length > 0 && (
286
+ <Section>
287
+ <StyledSectionTitle>Skills</StyledSectionTitle>
288
+ <SkillsGrid>
289
+ {skills.map((skill, index) => (
290
+ <SkillCategory key={index}>
291
+ <SkillName>{skill.name}</SkillName>
292
+ {skill.keywords?.length > 0 && (
293
+ <SkillTags>{skill.keywords.join(' • ')}</SkillTags>
294
+ )}
295
+ </SkillCategory>
296
+ ))}
297
+ </SkillsGrid>
298
+ </Section>
299
+ )}
300
+
301
+ {education?.length > 0 && (
302
+ <Section>
303
+ <StyledSectionTitle>Education</StyledSectionTitle>
304
+ {education.map((edu, index) => (
305
+ <EducationItem key={index}>
306
+ <Institution>{edu.institution}</Institution>
307
+ <Degree>
308
+ {edu.studyType} in {edu.area}
309
+ {edu.score && ` • ${edu.score}`}
310
+ </Degree>
311
+ <EducationDate>
312
+ <DateRange startDate={edu.startDate} endDate={edu.endDate} />
313
+ </EducationDate>
314
+ </EducationItem>
315
+ ))}
316
+ </Section>
317
+ )}
318
+
319
+ {projects?.length > 0 && (
320
+ <Section>
321
+ <StyledSectionTitle>Projects</StyledSectionTitle>
322
+ {projects.map((project, index) => (
323
+ <WorkItem key={index}>
324
+ <Position>{project.name}</Position>
325
+ {project.description && (
326
+ <WorkSummary>{project.description}</WorkSummary>
327
+ )}
328
+ {project.highlights?.length > 0 && (
329
+ <Highlights>
330
+ {project.highlights.map((highlight, i) => (
331
+ <li key={i}>{highlight}</li>
332
+ ))}
333
+ </Highlights>
334
+ )}
335
+ </WorkItem>
336
+ ))}
337
+ </Section>
338
+ )}
339
+
340
+ {volunteer?.length > 0 && (
341
+ <Section>
342
+ <StyledSectionTitle>Volunteer Work</StyledSectionTitle>
343
+ {volunteer.map((vol, index) => (
344
+ <WorkItem key={index}>
345
+ <WorkHeader>
346
+ <div>
347
+ <Position>{vol.position}</Position>
348
+ {vol.organization && <Company>{vol.organization}</Company>}
349
+ </div>
350
+ {(vol.startDate || vol.endDate) && (
351
+ <DateText>
352
+ <DateRange
353
+ startDate={vol.startDate}
354
+ endDate={vol.endDate}
355
+ />
356
+ </DateText>
357
+ )}
358
+ </WorkHeader>
359
+ {vol.summary && <WorkSummary>{vol.summary}</WorkSummary>}
360
+ {vol.highlights?.length > 0 && (
361
+ <Highlights>
362
+ {vol.highlights.map((highlight, i) => (
363
+ <li key={i}>{highlight}</li>
364
+ ))}
365
+ </Highlights>
366
+ )}
367
+ </WorkItem>
368
+ ))}
369
+ </Section>
370
+ )}
371
+
372
+ {awards?.length > 0 && (
373
+ <Section>
374
+ <StyledSectionTitle>Awards & Recognition</StyledSectionTitle>
375
+ {awards.map((award, index) => (
376
+ <EducationItem key={index}>
377
+ <Institution>{award.title}</Institution>
378
+ {award.awarder && <Degree>Awarded by {award.awarder}</Degree>}
379
+ {award.date && <EducationDate>{award.date}</EducationDate>}
380
+ {award.summary && <WorkSummary>{award.summary}</WorkSummary>}
381
+ </EducationItem>
382
+ ))}
383
+ </Section>
384
+ )}
385
+
386
+ {publications?.length > 0 && (
387
+ <Section>
388
+ <StyledSectionTitle>Publications</StyledSectionTitle>
389
+ {publications.map((pub, index) => (
390
+ <EducationItem key={index}>
391
+ <Institution>{pub.name}</Institution>
392
+ {pub.publisher && <Degree>Published by {pub.publisher}</Degree>}
393
+ {pub.releaseDate && (
394
+ <EducationDate>{pub.releaseDate}</EducationDate>
395
+ )}
396
+ {pub.summary && <WorkSummary>{pub.summary}</WorkSummary>}
397
+ </EducationItem>
398
+ ))}
399
+ </Section>
400
+ )}
401
+
402
+ {languages?.length > 0 && (
403
+ <Section>
404
+ <StyledSectionTitle>Languages</StyledSectionTitle>
405
+ <SkillsGrid>
406
+ {languages.map((lang, index) => (
407
+ <SkillCategory key={index}>
408
+ <SkillName>{lang.language}</SkillName>
409
+ {lang.fluency && <SkillTags>{lang.fluency}</SkillTags>}
410
+ </SkillCategory>
411
+ ))}
412
+ </SkillsGrid>
413
+ </Section>
414
+ )}
415
+
416
+ {interests?.length > 0 && (
417
+ <Section>
418
+ <StyledSectionTitle>Interests</StyledSectionTitle>
419
+ <SkillsGrid>
420
+ {interests.map((interest, index) => (
421
+ <SkillCategory key={index}>
422
+ <SkillName>{interest.name}</SkillName>
423
+ {interest.keywords?.length > 0 && (
424
+ <SkillTags>{interest.keywords.join(' • ')}</SkillTags>
425
+ )}
426
+ </SkillCategory>
427
+ ))}
428
+ </SkillsGrid>
429
+ </Section>
430
+ )}
431
+
432
+ {references?.length > 0 && (
433
+ <Section>
434
+ <StyledSectionTitle>References</StyledSectionTitle>
435
+ {references.map((ref, index) => (
436
+ <EducationItem key={index}>
437
+ <Institution>{ref.name}</Institution>
438
+ {ref.reference && <WorkSummary>{ref.reference}</WorkSummary>}
439
+ </EducationItem>
440
+ ))}
441
+ </Section>
442
+ )}
443
+ </Layout>
444
+ );
445
+ }
446
+
447
+ export default Resume;
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import Section from './Section';
2
+ import Section from './Section.jsx';
3
3
 
4
4
  const SkillCategory = styled.div`
5
5
  margin-bottom: 1.5rem;
@@ -1,5 +1,5 @@
1
1
  import styled from 'styled-components';
2
- import Section from './Section';
2
+ import Section from './Section.jsx';
3
3
 
4
4
  const SummaryText = styled.p`
5
5
  font-size: 1.1rem;
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
- import Section from './Section';
3
- import DateRange from './DateRange';
2
+ import Section from './Section.jsx';
3
+ import DateRange from './DateRange.jsx';
4
4
 
5
5
  const VolunteerItem = styled.div`
6
6
  margin-bottom: 2rem;
@@ -1,6 +1,6 @@
1
1
  import styled from 'styled-components';
2
- import Section from './Section';
3
- import DateRange from './DateRange';
2
+ import Section from './Section.jsx';
3
+ import DateRange from './DateRange.jsx';
4
4
 
5
5
  const WorkItem = styled.div`
6
6
  margin-bottom: 2rem;
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
+ });
package/src/ui/Resume.js DELETED
@@ -1,43 +0,0 @@
1
- import styled from 'styled-components';
2
- import Projects from './Projects';
3
- import Hero from './Hero';
4
- import Summary from './Summary';
5
- import Education from './Education';
6
- import Work from './Work';
7
- import Certificates from './Certificates';
8
- import Publications from './Publications';
9
- import Awards from './Awards';
10
- import Skills from './Skills';
11
- import Interests from './Interests';
12
- import Languages from './Languages';
13
- import References from './References';
14
- import Volunteer from './Volunteer';
15
-
16
- const Layout = styled.div`
17
- max-width: 800px;
18
- margin: 0 auto;
19
- padding: 40px 20px;
20
- line-height: 1.9;
21
- `;
22
-
23
- const Resume = ({ resume }) => {
24
- return (
25
- <Layout>
26
- <Hero basics={resume.basics} />
27
- <Summary basics={resume.basics} />
28
- <Work work={resume.work} />
29
- <Projects projects={resume.projects} />
30
- <Education education={resume.education} />
31
- <Certificates certificates={resume.certificates} />
32
- <Publications publications={resume.publications} />
33
- <Awards awards={resume.awards} />
34
- <Volunteer volunteer={resume.volunteer} />
35
- <Languages languages={resume.languages} />
36
- <Skills skills={resume.skills} />
37
- <Interests interests={resume.interests} />
38
- <References references={resume.references} />
39
- </Layout>
40
- );
41
- };
42
-
43
- export default Resume;
File without changes
File without changes
File without changes
File without changes