-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtemplate.js
26 lines (26 loc) · 934 Bytes
/
template.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
export default ({ markup, css }) => {
return `
<!DOCYPE html>
<html lang="en">
<head>
<title>Socialize</title>
<link rel="preconnect" href="https://fonts.gstatic.com">
<link href="https://fonts.googleapis.com/css2?family=Roboto:wght@300&display=swap"
rel="stylesheet">
<link href="https://fonts.googleapis.com/icon?family=Material+Icons"
rel="stylesheet">
<style>
a {
text-decoration: none;
color: #061d95;
}
</style>
</head>
<body>
<div id="root">${markup}</div>
<style id="jss-server-side>${css}</style>
<script type="text/javascript" src="/dist/bundle.js"></script>
</body>
</html>
`;
};