diff --git a/app/assets/styles.css b/app/assets/styles.css index 0d842d1..717944c 100644 --- a/app/assets/styles.css +++ b/app/assets/styles.css @@ -71,6 +71,26 @@ } } +.loading-indicator { + display: flex; + min-height: 100vh; + + svg { + @apply fill-base-2; + margin: auto; + animation: loading-indicator 0.45s infinite linear; + + @keyframes loading-indicator { + 0% { + transform: rotate(0deg); + } + 100% { + transform: rotate(359deg); + } + } + } +} + body { &.sidebar-is-opened { overflow: hidden; diff --git a/app/controllers/application.js b/app/controllers/application.js new file mode 100644 index 0000000..ca7dd56 --- /dev/null +++ b/app/controllers/application.js @@ -0,0 +1,11 @@ +import Controller from '@ember/controller'; + +export default class ApplicationController extends Controller { + loadingIndicatorRemover() { + const el = document.querySelector('.loading-indicator'); + + if (el) { + el.parentNode.removeChild(el); + } + } +} diff --git a/app/index.html b/app/index.html index 5815049..072eed3 100644 --- a/app/index.html +++ b/app/index.html @@ -14,6 +14,12 @@ {{content-for "head-footer"}}
+