Add animated loading graphic

This commit is contained in:
2017-02-05 11:43:36 +08:00
parent 2002f2feba
commit 1d9f510bb4
7 changed files with 68 additions and 2 deletions
@@ -1,3 +1,14 @@
<p>
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"
version="1.1" x="0px" y="0px" viewBox="0 0 132 100"
enable-background="new 0 0 100 100" xml:space="preserve">
<path id="path-comet"
d="M79.062,24.173L79.062,24.173l-0.021-0.011c-0.068-0.03-0.137-0.062-0.204-0.093L42.392,7.337
c0,0,3.065,14.104,4.458,18.019l0,0c0,0-41.754-12.481-46.85-13.67c1.67,6.52,30.607,62.492,30.607,62.492
c5.848,11.873,19.394,18.485,33.522,18.485c19.811,0,35.87-16.059,35.87-35.869C100,42.313,91.418,29.837,79.062,24.173z">
</path>
</svg>
</p>
<p>
Loading data from Ethereum...
</p>
+1
View File
@@ -7,6 +7,7 @@ const Router = Ember.Router.extend({
});
Router.map(function() {
this.route('spinner');
});
export default Router;
+4
View File
@@ -0,0 +1,4 @@
import Ember from 'ember';
export default Ember.Route.extend({
});
+31 -2
View File
@@ -1,8 +1,37 @@
.loading-spinner {
@keyframes pulse {
from {
opacity: 0.2;
}
to {
opacity: 0.6;
}
}
margin-top: 14rem;
.loading-spinner {
margin-top: 12rem;
text-align: center;
font-size: 1.4rem;
color: lightblue;
@include media($mobile) {
margin-top: 6rem;
}
svg {
width: 200px;
height: 200px;
margin-bottom: 2rem;
#path-comet {
fill: lightblue;
opacity: 0.6;
-moz-animation-name: pulse;
-moz-animation-iteration-count: infinite;
-moz-animation-timing-function: ease-in-out;
-moz-animation-direction: alternate;
-moz-animation-duration: 1s;
}
}
}
+1
View File
@@ -0,0 +1 @@
{{loading-spinner}}