jsonresume-theme-art-deco 0.2.2 → 0.2.4
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 +13 -0
- package/index.jsx +10 -19
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# jsonresume-theme-art-deco
|
|
2
2
|
|
|
3
|
+
## 0.2.4
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies [ff09f75]
|
|
8
|
+
- @jsonresume/core@0.3.1
|
|
9
|
+
|
|
10
|
+
## 0.2.3
|
|
11
|
+
|
|
12
|
+
### Patch Changes
|
|
13
|
+
|
|
14
|
+
- 68e336e: use @jsonresume/core/ssr renderResumeDocument
|
|
15
|
+
|
|
3
16
|
## 0.2.2
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/index.jsx
CHANGED
|
@@ -1,24 +1,15 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { ServerStyleSheet } from 'styled-components';
|
|
1
|
+
import { renderResumeDocument } from '@jsonresume/core/ssr';
|
|
3
2
|
import Resume from './src/Resume.jsx';
|
|
4
3
|
|
|
5
4
|
export function render(resume) {
|
|
6
|
-
const sheet = new ServerStyleSheet();
|
|
7
|
-
const html = renderToString(sheet.collectStyles(<Resume resume={resume} />));
|
|
8
|
-
const styles = sheet.getStyleTags();
|
|
9
5
|
const title = (resume.basics && resume.basics.name) || 'Resume';
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
<link href="https://fonts.googleapis.com/css2?family=Cinzel:wght@500;700&family=Poiret+One&family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&display=swap" rel="stylesheet">
|
|
20
|
-
${styles}
|
|
21
|
-
</head>
|
|
22
|
-
<body>${html}</body>
|
|
23
|
-
</html>`;
|
|
6
|
+
return renderResumeDocument(<Resume resume={resume} />, {
|
|
7
|
+
fonts: [
|
|
8
|
+
'Cinzel:wght@500;700',
|
|
9
|
+
'Poiret One',
|
|
10
|
+
'Cormorant Garamond:ital,wght@0,400;0,500;0,600;1,400',
|
|
11
|
+
],
|
|
12
|
+
title,
|
|
13
|
+
includeTokensCss: false,
|
|
14
|
+
});
|
|
24
15
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "jsonresume-theme-art-deco",
|
|
3
|
-
"version": "0.2.
|
|
3
|
+
"version": "0.2.4",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"main": "./index.jsx",
|
|
6
6
|
"peerDependencies": {
|
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
},
|
|
10
10
|
"dependencies": {
|
|
11
11
|
"styled-components": "^6.1.19",
|
|
12
|
-
"@jsonresume/core": "0.3.
|
|
12
|
+
"@jsonresume/core": "0.3.1"
|
|
13
13
|
},
|
|
14
14
|
"exports": {
|
|
15
15
|
".": {
|