-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
71 lines (59 loc) · 1.6 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
68
69
70
71
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width">
<title>weeact example</title>
<script type="module" src="main.js" defer></script>
<style>
body {
margin: 0;
}
.container {
height: 100vh;
display: grid;
grid-template-columns: 50% 50%;
grid-template-rows: 10% 50% 40%;
grid-template-areas:
"prerender-header vdom-header"
"prerender vdom"
"root root";
}
@media screen and (min-width: 960px) {
.container {
grid-template-columns: 30% 30% 40%;
grid-template-rows: 10% 90%;
grid-template-areas:
"prerender-header vdom-header root"
"prerender vdom root";
}
}
.prerender-header {
grid-area: prerender-header;
}
.prerender-tree {
grid-area: prerender;
overflow: scroll;
}
.vdom-header{
grid-area: vdom-header;
}
.vdom{
grid-area: vdom;
overflow: scroll;
}
#root {
grid-area: root
}
</style>
</head>
<body>
<div class="container">
<h4 class="prerender-header">PreRender Tree</h4>
<pre class="prerender-tree"></pre>
<h4 class="vdom-header">Virtual Dom</h4>
<pre class="vdom"></pre>
<div id="root"></div>
</div>
</body>
</html>