-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathindex.html
198 lines (171 loc) · 5.18 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
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
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
<!DOCTYPE html>
<html lang="en" dir="ltr">
<head>
<% if (process.env.APP_ENV==='prod' ) { %>
<!-- Google Tag Manager -->
<script>
(function(w,d,s,l,i) {
w[l] = w[l] || []; w[l].push({
'gtm.start':
new Date().getTime(),event: 'gtm.js'
}); var f = d.getElementsByTagName(s)[0],
j = d.createElement(s),dl = l != 'dataLayer' ? '&l=' + l : ''; j.async = true; j.src =
'https://www.googletagmanager.com/gtm.js?id=' + i + dl; f.parentNode.insertBefore(j,f)
})(window,document,'script','dataLayer','GTM-MBVP9WJH');
</script>
<!-- End Google Tag Manager -->
<% } %>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=0" />
<title>Subsquid Network App</title>
<link rel="icon" type="image/png" href="/favicon.v3.png" />
<meta property="og:title" content="Subsquid Network App" />
<!-- <meta property="og:image" content="/aquarium-social.png"/>-->
<!-- <meta property="og:description" content="Join thousands of developers who use Subsquid Cloud to deploy GraphQL APIs and sophisticated indexers for Web3 apps"/>-->
<!-- <meta property="og:image:width" content="1200"/>-->
<!-- <meta property="og:image:height" content="630"/>-->
<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=Inter:wght@400;500;700&display=swap" rel="stylesheet">
<!-- <link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono&display=swap" rel="stylesheet"> -->
<style>
#loader {
position: absolute;
top: 0;
left: 0;
right: 0;
bottom: 0;
align-items: center;
justify-content: center;
z-index: 100000;
display: none;
transition: all 100ms ease-out;
}
#loader.show {
display: flex;
opacity: 0;
}
#loader.visible {
opacity: 1;
background: rgba(255, 255, 255, 0.4);
}
.subsquid-loader {
width: 48px;
height: 48px;
margin: auto;
position: relative;
}
.subsquid-loader:before {
content: '';
width: 48px;
height: 5px;
background: #d5d8dd;
opacity: 0.25;
position: absolute;
top: 60px;
left: 0;
border-radius: 50%;
animation: shadow 0.5s linear infinite;
}
.subsquid-loader:after {
content: '';
font-size: 60px;
width: 100%;
height: 100%;
background: #d5d8dd;
animation: bxSpin 0.5s linear infinite;
position: absolute;
top: 0;
left: 0;
border-radius: 4px;
}
@keyframes bxSpin {
17% {
border-bottom-right-radius: 3px;
}
25% {
transform: translateY(9px) rotate(22.5deg);
}
50% {
transform: translateY(18px) scale(1, .9) rotate(45deg);
border-bottom-right-radius: 40px;
}
75% {
transform: translateY(9px) rotate(67.5deg);
}
100% {
transform: translateY(0) rotate(90deg);
}
}
@keyframes shadow {
0%,
100% {
transform: scale(1, 1);
}
50% {
transform: scale(1.2, 1);
}
}
@font-face {
font-family: 'Matter';
font-weight: 500;
src:
url(/fonts/Matter-Medium.woff2) format('woff2'),
url(/fonts/Matter-Medium.woff) format('woff'),
url(/fonts/Matter-Medium.otf) format('opentype'),
url(/fonts/Matter-Medium.ttf) format('truetype');
letter-spacing: normal;
}
@font-face {
font-family: 'Matter';
font-weight: 400;
src:
url(/fonts/Matter-Regular.woff2) format('woff2'),
url(/fonts/Matter-Regular.woff) format('woff'),
url(/fonts/Matter-Regular.otf) format('opentype'),
url(/fonts/Matter-Regular.ttf) format('truetype');
letter-spacing: normal;
}
@font-face {
font-family: 'Matter';
font-weight: 600;
src:
url(/fonts/Matter-SemiBold.woff2) format('woff2'),
url(/fonts/Matter-SemiBold.woff) format('woff'),
url(/fonts/Matter-SemiBold.otf) format('opentype'),
url(/fonts/Matter-SemiBold.ttf) format('truetype');
letter-spacing: normal;
}
body,
html,
#root {
min-height: 100%;
height: 100%;
font-family: 'Matter', 'Inter', sans-serif;
background: #fff;
}
</style>
</head>
<body>
<% if (process.env.APP_ENV==='prod' ) { %>
<!-- Google Tag Manager (noscript) -->
<noscript><iframe src="https://www.googletagmanager.com/ns.html?id=GTM-MBVP9WJH" height="0" width="0"
style="display:none;visibility:hidden"></iframe></noscript>
<!-- End Google Tag Manager (noscript) -->
<% } %>
<div id="root"></div>
<div id="loader" class="show visible">
<div class="subsquid-loader"></div>
</div>
<script>
const theme = localStorage.getItem("theme") || 'light'
const loader = document.getElementById('loader')
if(theme === 'dark') {
loader?.classList.add("dark")
} else {
loader?.classList.remove("dark")
}
</script>
<script type="module" src="/src/index.tsx"></script>
</body>
</html>