-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathhtml-template.js
More file actions
46 lines (46 loc) · 986 Bytes
/
html-template.js
File metadata and controls
46 lines (46 loc) · 986 Bytes
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = function htmlTemplate({ title }) {
return `
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta
name="viewport"
content="width=device-width
initial-scale=1
user-scalable=no"
/>
<title>${ title }</title>
<link
href="https://fonts.googleapis.com/css?family=Lobster+Two:400,700"
rel="stylesheet"
type="text/css"
>
<link
href="https://fonts.googleapis.com/css?family=Open+Sans+Condensed:300,700"
rel="stylesheet"
type="text/css"
>
<link
rel="stylesheet"
type="text/css"
href="https://cdn.jsdelivr.net/prism/1.3.0/themes/prism-tomorrow.css"
>
</head>
<body>
<div id="root"></div>
<script
src="https://cdn.jsdelivr.net/prism/1.3.0/prism.js"
type="text/javascript"
>
</script>
<script
src="https://cdn.jsdelivr.net/prism/1.3.0/components/prism-jsx.min.js"
type="text/javascript"
>
</script>
<script src="bundle.js"></script>
</body>
</html>
`;
};