@jsonresume/jsonresume-theme-professional 1.0.16 → 1.0.19
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/.eslintrc.js +8 -0
- package/.turbo/turbo-build.log +11 -0
- package/README.md +0 -3
- package/dist/index.mjs +1784 -0
- package/package.json +23 -31
- package/src/index.jsx +98 -0
- package/src/ui/Awards.jsx +28 -0
- package/src/ui/Certificates.jsx +27 -0
- package/src/ui/Date.jsx +21 -0
- package/src/ui/DateRange.jsx +20 -0
- package/src/ui/Education.jsx +35 -0
- package/src/ui/Experience.jsx +67 -0
- package/src/ui/Hero.jsx +120 -0
- package/src/ui/Interests.jsx +22 -0
- package/src/ui/Languages.jsx +23 -0
- package/src/ui/List.jsx +33 -0
- package/src/ui/OneLineList.jsx +30 -0
- package/src/ui/Projects.jsx +29 -0
- package/src/ui/Publications.jsx +28 -0
- package/src/ui/References.jsx +33 -0
- package/src/ui/Resume.jsx +43 -0
- package/src/ui/Section.jsx +40 -0
- package/src/ui/Skills.jsx +21 -0
- package/src/ui/SubTitle.jsx +12 -0
- package/src/ui/Summary.jsx +20 -0
- package/src/ui/Volunteer.jsx +30 -0
- package/src/ui/Work.jsx +30 -0
- package/vite.config.js +33 -0
- package/dist/es/index.mjs +0 -520
- package/dist/es/index.mjs.js +0 -520
- package/dist/es/index.mjs.js.map +0 -1
- package/dist/es/index.mjs.map +0 -1
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import Projects from './Projects.jsx';
|
|
3
|
+
import Hero from './Hero.jsx';
|
|
4
|
+
import Summary from './Summary.jsx';
|
|
5
|
+
import Education from './Education.jsx';
|
|
6
|
+
import Work from './Work.jsx';
|
|
7
|
+
import Certificates from './Certificates.jsx';
|
|
8
|
+
import Publications from './Publications.jsx';
|
|
9
|
+
import Awards from './Awards.jsx';
|
|
10
|
+
import Skills from './Skills.jsx';
|
|
11
|
+
import Interests from './Interests.jsx';
|
|
12
|
+
import Languages from './Languages.jsx';
|
|
13
|
+
import References from './References.jsx';
|
|
14
|
+
import Volunteer from './Volunteer.jsx';
|
|
15
|
+
|
|
16
|
+
const Layout = styled.div`
|
|
17
|
+
max-width: 660px;
|
|
18
|
+
margin: 0 auto;
|
|
19
|
+
line-height: calc(1ex / 0.32);
|
|
20
|
+
margin-bottom: 40px;
|
|
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;
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
|
|
3
|
+
const Section = styled.div`
|
|
4
|
+
max-width: 700px;
|
|
5
|
+
margin: 0 auto 18px;
|
|
6
|
+
|
|
7
|
+
h2 {
|
|
8
|
+
margin: 0;
|
|
9
|
+
padding: 0;
|
|
10
|
+
margin-bottom: 3px;
|
|
11
|
+
font-weight: 600;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
hr {
|
|
15
|
+
margin: 0;
|
|
16
|
+
padding: 0;
|
|
17
|
+
margin-top: 7px;
|
|
18
|
+
margin-bottom: 3px;
|
|
19
|
+
}
|
|
20
|
+
`;
|
|
21
|
+
|
|
22
|
+
const Container = styled.div`
|
|
23
|
+
margin: 0 8px;
|
|
24
|
+
`;
|
|
25
|
+
|
|
26
|
+
const SectionComponent = ({ children, title }) => {
|
|
27
|
+
return (
|
|
28
|
+
<Section>
|
|
29
|
+
{title && (
|
|
30
|
+
<>
|
|
31
|
+
<h2>{title}</h2>
|
|
32
|
+
<hr />
|
|
33
|
+
</>
|
|
34
|
+
)}
|
|
35
|
+
<Container>{children}</Container>
|
|
36
|
+
</Section>
|
|
37
|
+
);
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
export default SectionComponent;
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import OneLineList from './OneLineList.jsx';
|
|
2
|
+
|
|
3
|
+
import Section from './Section.jsx';
|
|
4
|
+
|
|
5
|
+
const Skills = ({ skills }) => {
|
|
6
|
+
if (!skills) {
|
|
7
|
+
return null;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
return (
|
|
11
|
+
<div>
|
|
12
|
+
<Section title="Skills">
|
|
13
|
+
{skills.map((w, key) => {
|
|
14
|
+
return <OneLineList key={key} name={w.name} items={w.keywords} />;
|
|
15
|
+
})}
|
|
16
|
+
</Section>
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
};
|
|
20
|
+
|
|
21
|
+
export default Skills;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import styled from 'styled-components';
|
|
2
|
+
import { marked } from 'marked';
|
|
3
|
+
import Section from './Section.jsx';
|
|
4
|
+
|
|
5
|
+
const Summary = styled.div``;
|
|
6
|
+
|
|
7
|
+
const SummaryComponent = ({ basics }) => {
|
|
8
|
+
const { summary } = basics;
|
|
9
|
+
const htmlContent = summary ? marked.parse(summary, { breaks: true }) : '';
|
|
10
|
+
|
|
11
|
+
return (
|
|
12
|
+
<Section>
|
|
13
|
+
<div className="secondary">
|
|
14
|
+
<Summary dangerouslySetInnerHTML={{ __html: htmlContent }} />
|
|
15
|
+
</div>
|
|
16
|
+
</Section>
|
|
17
|
+
);
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default SummaryComponent;
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import Section from './Section.jsx';
|
|
2
|
+
import Experience from './Experience.jsx';
|
|
3
|
+
|
|
4
|
+
const Volunteer = ({ volunteer }) => {
|
|
5
|
+
if (!volunteer) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<div>
|
|
11
|
+
<Section title="Volunteer">
|
|
12
|
+
{volunteer.map((w, key) => {
|
|
13
|
+
return (
|
|
14
|
+
<Experience
|
|
15
|
+
title={w.position}
|
|
16
|
+
subTitle={w.organization}
|
|
17
|
+
startDate={w.startDate}
|
|
18
|
+
endDate={w.endDate}
|
|
19
|
+
summary={w.summary}
|
|
20
|
+
highlights={w.highlights}
|
|
21
|
+
key={key}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
})}
|
|
25
|
+
</Section>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default Volunteer;
|
package/src/ui/Work.jsx
ADDED
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import Section from './Section.jsx';
|
|
2
|
+
import Experience from './Experience.jsx';
|
|
3
|
+
|
|
4
|
+
const Work = ({ work }) => {
|
|
5
|
+
if (!work) {
|
|
6
|
+
return null;
|
|
7
|
+
}
|
|
8
|
+
|
|
9
|
+
return (
|
|
10
|
+
<div>
|
|
11
|
+
<Section title="Experience">
|
|
12
|
+
{work.map((w, key) => {
|
|
13
|
+
return (
|
|
14
|
+
<Experience
|
|
15
|
+
title={w.position}
|
|
16
|
+
subTitle={w.name}
|
|
17
|
+
startDate={w.startDate}
|
|
18
|
+
endDate={w.endDate}
|
|
19
|
+
summary={w.summary}
|
|
20
|
+
highlights={w.highlights}
|
|
21
|
+
key={key}
|
|
22
|
+
/>
|
|
23
|
+
);
|
|
24
|
+
})}
|
|
25
|
+
</Section>
|
|
26
|
+
</div>
|
|
27
|
+
);
|
|
28
|
+
};
|
|
29
|
+
|
|
30
|
+
export default Work;
|
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
|
+
});
|