-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathindex.html
More file actions
143 lines (126 loc) · 3.51 KB
/
index.html
File metadata and controls
143 lines (126 loc) · 3.51 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<link rel="icon" href="/favicon.ico" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="theme-color" content="#000000" />
<meta name="description" content="Online code editor and compiler" />
<link rel="apple-touch-icon" href="/images/logo192.png" />
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.1/css/all.min.css"
crossorigin="anonymous" />
<script type="importmap">
{
"imports": {
"react": "https://esm.sh/react@17.0.1",
"react-dom": "https://esm.sh/react-dom@17.0.1",
"react-monaco-editor": "https://esm.sh/react-monaco-editor@0.58.0",
"react-resize-detector": "https://esm.sh/react-resize-detector@5.2.0"
}
}
</script>
<!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
<link rel="manifest" href="/manifest.json" />
<link href="https://fonts.googleapis.com/css2?family=Comfortaa:wght@700&display=swap" rel="stylesheet">
<!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
Unlike "/favicon.ico" or "favicon.ico", "%PUBLIC_URL%/favicon.ico" will
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
<title>Codeditor</title>
<style type="text/css">
body {
margin: 0;
padding: 0;
font-family: sans-serif;
}
#root {
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.splash-container {
height: 100%;
width: 100%;
display: flex;
flex-direction: column;
align-items: center;
justify-content: center;
font-family: 'Comfortaa', sans-serif;
background-color: #131516;
}
.loading {
font-weight: 300;
font-size: 1.2em;
letter-spacing: 1em;
color: #888888;
}
div.line {
width: 100%;
margin: 0 10px;
max-width: 300px;
height: 10px;
position: relative;
}
div.line::after,
div.line::before {
height: 100%;
width: 40%;
position: absolute;
content: '';
border-radius: 5px;
animation-duration: 1s;
animation-iteration-count: infinite;
animation-timing-function: linear;
}
div.line::before {
background-color: rgba(40, 255, 255, 0.5);
animation-name: line-before;
}
div.line::after {
background-color: rgba(255, 30, 255, 0.5);
animation-name: line-after;
}
@keyframes line-before {
0% {
right: 0%;
}
50% {
right: 60%;
}
100% {
right: 0;
}
}
@keyframes line-after {
0% {
left: 0%;
}
50% {
left: 60%;
}
100% {
left: 0;
}
}
</style>
</head>
<body>
<noscript style="font-family:'Times New Roman', Times, serif;">You need to enable JavaScript to run this
app.</noscript>
<div id="root">
<div class="splash-container">
<h1 class="loading">LOADING</h1>
<div class="line"></div>
</div>
</div>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>