forked from rbardini/jsonresume-theme-even
-
Notifications
You must be signed in to change notification settings - Fork 0
/
resume.js
28 lines (26 loc) · 920 Bytes
/
resume.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
import ResumeArticle from './components/ResumeArticle/index.js'
import HeadMeta from './components/utils/html-meta.js'
import colors from './components/utils/colors.js'
import html from './components/utils/html.js'
/**
* @param {import('./schema.d.ts').ResumeSchema} resume
* @param {string} css
* @returns
*/
export default function Resume(resume, css) {
return html`<!doctype html>
<html lang="en" style="${colors(resume.meta)}">
<head>
<meta charset="utf-8" />
${HeadMeta(resume.basics)}
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Lato:400,700&display=swap" />
<style>
${css}
</style>
</head>
<body itemscope itemtype="https://schema.org/ProfilePage" part="jsonresume">
${ResumeArticle(resume)}
</body>
</html>`
}