Skip to content

Commit 2ecab72

Browse files
committed
QAGDEV-679 - [FE] Fix bug with loading main screen
1 parent c67edb6 commit 2ecab72

File tree

1 file changed

+58
-1
lines changed

1 file changed

+58
-1
lines changed

index.html

Lines changed: 58 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,70 @@
11
<!DOCTYPE html>
2-
<html lang="en">
2+
<html lang="ru">
33
<head>
44
<meta charset="UTF-8" />
55
<link rel="icon" type="image/svg+xml" href="/src/favicon.svg" />
66
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
77
<title>QA Guru</title>
8+
<style>
9+
#loader {
10+
position: absolute;
11+
top: 50%;
12+
left: 50%;
13+
transform: translate(-50%, -50%);
14+
}
15+
16+
@keyframes spin {
17+
0% {
18+
transform: rotate(0deg);
19+
}
20+
100% {
21+
transform: rotate(360deg);
22+
}
23+
}
24+
25+
.loader {
26+
animation: spin 1.4s linear infinite;
27+
width: 40px;
28+
height: 40px;
29+
}
30+
31+
.loader circle {
32+
stroke: #20aee3;
33+
stroke-width: 4;
34+
stroke-linecap: round;
35+
fill: none;
36+
stroke-dasharray: 90;
37+
stroke-dashoffset: 0;
38+
transform-origin: center;
39+
}
40+
41+
#root {
42+
display: none;
43+
}
44+
45+
.loaded #loader {
46+
display: none;
47+
}
48+
49+
.loaded #root {
50+
display: block;
51+
}
52+
</style>
853
</head>
954
<body>
55+
<div id="loader">
56+
<svg class="loader" viewBox="0 0 50 50">
57+
<circle cx="25" cy="25" r="20"></circle>
58+
</svg>
59+
</div>
60+
1061
<div id="root"></div>
62+
1163
<script type="module" src="/src/index.tsx"></script>
64+
<script>
65+
window.addEventListener("load", function () {
66+
document.body.classList.add("loaded");
67+
});
68+
</script>
1269
</body>
1370
</html>

0 commit comments

Comments
 (0)