-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.html
67 lines (54 loc) · 1.8 KB
/
index.html
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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<base href="/" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons&display=block">
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="description" content="Web site created using create-snowpack-app" />
<link rel="stylesheet" type="text/css" href="/index.css" />
<link rel="stylesheet" type="text/css" href="/tokens.custom-properties.css" />
<title>Form Demo</title>
<script src="/webcomponents/webcomponents-loader.js"></script>
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin="anonymous" />
<link rel="stylesheet" href="https://fonts.googleapis.com/icon?family=Material+Icons&display=block"
crossorigin="anonymous" />
<link
href="https://fonts.googleapis.com/css2?family=Roboto+Mono:wght@400;700&family=Roboto:ital,wght@0,300;0,400;0,500;0,700;1,300;1,400;1,500;1,700&display=swap"
rel="stylesheet" crossorigin="anonymous" />
<style>
body {
background: #fafafa;
margin: 0;
}
body, html {
font-family: 'Roboto', 'Noto', sans-serif;
}
</style>
</head>
<body>
<div id="demo">
</div>
<script type="module">
import { html, LitElement } from 'lit-element';
import '/index.js';
class Demo extends LitElement {
static get properties () {
return {
route: {
type: Object
}
}
}
render() {
return html `
<pblog-app id="app" .route="${this.route}" base-url="/demo/"></pblog-app>
`;
}
}
window.customElements.define('app-demo', Demo);
document.querySelector('#demo').appendChild(document.createElement('app-demo'));
</script>
</body>
</html>