Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: update loading page #1173

Draft
wants to merge 1 commit into
base: dev
Choose a base branch
from
Draft
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
133 changes: 31 additions & 102 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,123 +2,52 @@
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="Expires" content="0">
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="Cache-control" content="no-cache">
<meta http-equiv="Cache" content="no-cache">
<meta content="0" http-equiv="Expires">
<meta content="no-cache" http-equiv="Pragma">
<meta content="no-cache" http-equiv="Cache-control">
<meta content="no-cache" http-equiv="Cache">
<title></title>
<base href="/luna">

<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
<meta content="width=device-width, initial-scale=1" name="viewport">
<link href="favicon.ico" rel="icon" type="image/x-icon">
<style>
:root {
--primary-color: #1ab394
}
.lds-spinner {
display: inline-block;
position: relative;
width: 64px;
height: 64px;
}

.lds-spinner div {
transform-origin: 32px 32px;
animation: lds-spinner 1.2s linear infinite;
}

.lds-spinner div:after {
content: " ";
display: block;
position: absolute;
top: 3px;
left: 29px;
width: 5px;
height: 14px;
border-radius: 20%;
background: #000;
}

.lds-spinner div:nth-child(1) {
transform: rotate(0deg);
animation-delay: -1.1s;
}

.lds-spinner div:nth-child(2) {
transform: rotate(30deg);
animation-delay: -1s;
}

.lds-spinner div:nth-child(3) {
transform: rotate(60deg);
animation-delay: -0.9s;
}

.lds-spinner div:nth-child(4) {
transform: rotate(90deg);
animation-delay: -0.8s;
}

.lds-spinner div:nth-child(5) {
transform: rotate(120deg);
animation-delay: -0.7s;
}

.lds-spinner div:nth-child(6) {
transform: rotate(150deg);
animation-delay: -0.6s;
}

.lds-spinner div:nth-child(7) {
transform: rotate(180deg);
animation-delay: -0.5s;
}

.lds-spinner div:nth-child(8) {
transform: rotate(210deg);
animation-delay: -0.4s;
}

.lds-spinner div:nth-child(9) {
transform: rotate(240deg);
animation-delay: -0.3s;
}

.lds-spinner div:nth-child(10) {
transform: rotate(270deg);
animation-delay: -0.2s;
}

.lds-spinner div:nth-child(11) {
transform: rotate(300deg);
animation-delay: -0.1s;
}

.lds-spinner div:nth-child(12) {
transform: rotate(330deg);
animation-delay: 0s;
}

@keyframes lds-spinner {
0% {
opacity: 1;
}
100% {
opacity: 0;
}
}

#loading {
position: fixed;
top: calc(50% - 32px);
left: calc(50% - 32px);
top: 0;
left: 0;
width: 100vw;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background-color: white;
z-index: 9999;
}

.spinner {
width: 50px;
height: 50px;
border: 5px solid rgba(0, 0, 0, 0.1);
border-radius: 50%;
border-top-color: #3498db;
animation: spin 1s infinite linear;
}

@keyframes spin {
to {
transform: rotate(360deg);
}
}
</style>
</head>
<body>
<app-root>
<div id="loading">
<div class="lds-spinner"><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div><div></div></div>
<div class="spinner"></div>
</div>
</app-root>
<span id="marker" style="display: none;font-size: 14px">marker</span>
Expand Down