Skip to content
This repository has been archived by the owner on Jul 10, 2024. It is now read-only.

Commit

Permalink
Added better loading screen
Browse files Browse the repository at this point in the history
  • Loading branch information
IvanJosipovic committed Mar 22, 2020
1 parent 08043d2 commit 50640c6
Show file tree
Hide file tree
Showing 2 changed files with 85 additions and 1 deletion.
74 changes: 74 additions & 0 deletions src/BlazorTable.Sample.Wasm/wwwroot/css/site.css
Original file line number Diff line number Diff line change
Expand Up @@ -181,3 +181,77 @@ app {
display: block;
}
}

.spinner {
margin: 100px auto;
width: 50px;
height: 40px;
text-align: center;
font-size: 10px;
}

.spinner > div {
background-color: #fff;
height: 100%;
width: 6px;
display: inline-block;
-webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;
animation: sk-stretchdelay 1.2s infinite ease-in-out;
}

.spinner .rect2 {
-webkit-animation-delay: -1.1s;
animation-delay: -1.1s;
}

.spinner .rect3 {
-webkit-animation-delay: -1.0s;
animation-delay: -1.0s;
}

.spinner .rect4 {
-webkit-animation-delay: -0.9s;
animation-delay: -0.9s;
}

.spinner .rect5 {
-webkit-animation-delay: -0.8s;
animation-delay: -0.8s;
}

@-webkit-keyframes sk-stretchdelay {
0%, 40%, 100% {
-webkit-transform: scaleY(0.4)
}

20% {
-webkit-transform: scaleY(1.0)
}
}

@keyframes sk-stretchdelay {
0%, 40%, 100% {
transform: scaleY(0.4);
-webkit-transform: scaleY(0.4);
}

20% {
transform: scaleY(1.0);
-webkit-transform: scaleY(1.0);
}
}

.modal-overlay {
position: fixed;
top: 0;
bottom: 0;
left: 0;
right: 0;
background-color: rgba(28,28,28);
z-index: 2000;
display: flex;
align-items: center;
justify-content: center;
flex-direction: column;
--sk-color: white;
}
12 changes: 11 additions & 1 deletion src/BlazorTable.Sample.Wasm/wwwroot/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,17 @@
<link href="css/site.css" rel="stylesheet" />
</head>
<body>
<app>Loading...</app>
<app>
<div class="modal-overlay">
<div class="spinner">
<div class="rect1"></div>
<div class="rect2"></div>
<div class="rect3"></div>
<div class="rect4"></div>
<div class="rect5"></div>
</div>
</div>
</app>

<div id="blazor-error-ui">
An unhandled error has occurred.
Expand Down

0 comments on commit 50640c6

Please sign in to comment.