diff --git a/app/components/loading-spinner/template.hbs b/app/components/loading-spinner/template.hbs index a6458bc..f52a577 100644 --- a/app/components/loading-spinner/template.hbs +++ b/app/components/loading-spinner/template.hbs @@ -1,3 +1,14 @@ +
+ +
Loading data from Ethereum...
diff --git a/app/router.js b/app/router.js index cdc2578..23c14c6 100644 --- a/app/router.js +++ b/app/router.js @@ -7,6 +7,7 @@ const Router = Ember.Router.extend({ }); Router.map(function() { + this.route('spinner'); }); export default Router; diff --git a/app/routes/spinner.js b/app/routes/spinner.js new file mode 100644 index 0000000..26d9f31 --- /dev/null +++ b/app/routes/spinner.js @@ -0,0 +1,4 @@ +import Ember from 'ember'; + +export default Ember.Route.extend({ +}); diff --git a/app/styles/components/_loading-spinner.scss b/app/styles/components/_loading-spinner.scss index 239e3c6..b9ce28b 100644 --- a/app/styles/components/_loading-spinner.scss +++ b/app/styles/components/_loading-spinner.scss @@ -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; + } + } } + diff --git a/app/templates/spinner.hbs b/app/templates/spinner.hbs new file mode 100644 index 0000000..7b99811 --- /dev/null +++ b/app/templates/spinner.hbs @@ -0,0 +1 @@ +{{loading-spinner}} diff --git a/public/img/comet.svg b/public/img/comet.svg new file mode 100644 index 0000000..be65bd7 --- /dev/null +++ b/public/img/comet.svg @@ -0,0 +1,9 @@ + diff --git a/tests/unit/routes/spinner-test.js b/tests/unit/routes/spinner-test.js new file mode 100644 index 0000000..061dcec --- /dev/null +++ b/tests/unit/routes/spinner-test.js @@ -0,0 +1,11 @@ +import { moduleFor, test } from 'ember-qunit'; + +moduleFor('route:spinner', 'Unit | Route | spinner', { + // Specify the other units that are required for this test. + // needs: ['controller:foo'] +}); + +test('it exists', function(assert) { + let route = this.subject(); + assert.ok(route); +});