-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathindex.html
99 lines (85 loc) · 2.16 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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>GlueSQL Javascript example</title>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Noto+Sans:wght@400;600&family=Roboto+Mono&display=swap" rel="stylesheet">
<script type="module" src="./index.js"></script>
</head>
<style>
body {
--quiz-list-width: 200px;
--quiz-content-width: calc((100vw - var(--quiz-list-width)) / 2);
--control-bar-height: 50px;
--code-editor-height: calc(50vh - var(--control-bar-height));
padding: 0;
margin: 0;
width: 100%;
height: 100vh;
overflow: hidden;
font-family: 'Noto Sans', sans-serif;
/* font-family: 'Roboto Mono', monospace; */
background-color: #ddd;
display: grid;
grid-template-areas:
"quiz-list quiz-content code-editor"
"quiz-list quiz-content query-result"
"control-bar control-bar control-bar";
grid-template-columns:
var(--quiz-list-width)
var(--quiz-content-width)
1fr;
grid-template-rows:
var(--code-editor-height)
1fr
var(--control-bar-height);
}
#box {
display: none;
padding: 90px 20px 80px 20px;
background-color: #222;
color: white;
}
code {
display: block;
margin: 10px;
padding: 10px 16px;
font-size: 14px;
font-family: monospace;
border: 1px solid white;
border-radius: 8px;
}
glue-quiz-list {
grid-area: quiz-list;
}
glue-quiz-content {
grid-area: quiz-content;
}
glue-code-editor.main {
grid-area: code-editor;
}
glue-query-result {
grid-area: query-result;
}
glue-control-bar {
grid-area: control-bar;
}
glue-solution-modal {
z-index: 10;
}
</style>
<body>
<glue-quiz-list></glue-quiz-list>
<glue-quiz-content></glue-quiz-content>
<glue-code-editor class="main"></glue-code-editor>
<glue-query-result></glue-query-result>
<glue-control-bar></glue-control-bar>
<glue-solution-modal></glue-solution-modal>
<div id="box">
</div>
</body>
</html>