Add css app loading page

This commit is contained in:
Reckless_Satoshi 2022-03-25 03:07:29 -07:00
parent 6ce9957694
commit d5e5879340
No known key found for this signature in database
GPG Key ID: 9C4585B561315571
2 changed files with 33 additions and 1 deletions

View File

@ -18,6 +18,32 @@ body {
height: 100%;
}
.loaderCenter{
margin:0 auto;
position: absolute;
left:50%;
top:50%;
margin-left:-76px;
margin-top:-60px;
width:170px;
height:120px;
}
.loaderSpinner {
position: relative;
border: 16px solid #f3f3f3;
border-top: 16px solid #1976d2;
border-bottom: 16px solid #9c27b0;
border-radius: 50%;
width: 120px;
height: 120px;
animation: spin 4s linear infinite;
}
@keyframes spin {
0% { transform: rotate(0deg); }
100% { transform: rotate(360deg); }
}
.appCenter {
position: absolute;
top: 50%;

View File

@ -23,7 +23,13 @@
</div>
</noscript>
<div id="main">
<div id="app"></div>
<div id="app">
<div class="loaderCenter">
<div class="loaderSpinner"></div>
<br/>
<div>Fetching robot parts ...</div>
</div>
</div>
</div>
<script src="{% static "frontend/main.js" %}"></script>