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

added a loader during the initial app start-up, issue #1108 #1312

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
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
33 changes: 33 additions & 0 deletions public/index.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
.loader {
border: 16px solid #f3f3f3;
border-top: 16px solid #3498db;
border-radius: 50%;
box-sizing: border-box;
width: 120px;
height: 120px;
animation: spin 2s linear infinite;
margin: auto;
text-align: center;
position: absolute;
top: 50%;
left: 50%;
}

/* .background {
height: 100%;
padding: 1.5rem;
position: relative;
color: #eceff1;
overflow: auto;
background: url('/images/bg/bg-pattern.png'),
linear-gradient(to right, rgb(121, 22, 254), rgb(172, 47, 138));
} */

@keyframes spin {
0% {
transform: rotate(0deg);
}
100% {
transform: rotate(360deg);
}
}
7 changes: 6 additions & 1 deletion public/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
img-src * data: filesystem: blob: ;
">

<!-- Link CSS for the load screen -->
<link rel="stylesheet" href="index.css">

<!--
manifest.json provides metadata used when your web app is added to the
homescreen on Android. See https://developers.google.com/web/fundamentals/engage-and-retain/web-app-manifest/
Expand Down Expand Up @@ -72,7 +75,9 @@
<noscript>
You need to enable JavaScript to run this app.
</noscript>
<div id="root"></div>
<div id="root">
<div class="loader"></div>
</div>
<!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
Expand Down