Skip to content

Open source personal finance application

Add styles for loader before js loaded

ilkome8fabc1f20f20
diff --git a/public/index.html b/public/index.html
index f068a2de..c315d4a6 100644
--- a/public/index.html
+++ b/public/index.html
@@ -5,6 +5,100 @@
<meta name="viewport" content="width=device-width,initial-scale=1.0">
<link rel="icon" href="<%= BASE_URL %>/img/icons/favicon.ico">
<title>Finapp</title>
+ <style>
+ .loader {
+ z-index: 100;
+ position: fixed;
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ flex-flow: column wrap;
+ left: 0;
+ top: 0;
+ width: 100%;
+ height: 100%;
+ background: rgba(10, 10, 10, 1);
+ }
+ .loader__wrap {
+ display: flex;
+ flex-flow: column nowrap;
+ align-items: center;
+ }
+ .appName {
+ font-family: Roboto, sans-serif;
+ color: rgba(220, 220, 220, 1);
+ font-size: 38px;
+ font-weight: 500;
+ line-height: 38px
+ }
+ .appName:first-letter {
+ color: rgba(184, 20, 20, 1);
+ }
+ .appName:not(:first-child) {
+ margin-top: 26px
+ }
+
+ .spinner {
+ display: flex;
+ align-items: center;
+ height: 100%;
+ text-align: center;
+ }
+ .spinner._hidden {
+ visibility: hidden;
+ }
+ .spinner__b {
+ display: inline-block;
+ width: 18px;
+ height: 18px;
+ margin-right: 6px;
+ border-radius: 100%;
+ background-color: rgba(184, 20, 20, 1);
+ animation: sk-bouncedelay 1.3s infinite ease-in-out both;
+ opacity: 0.8;
+ }
+ .spinner__b._b1 {
+ animation-delay: -0.32s;
+ }
+ .spinner__b._b2 {
+ animation-delay: -0.16s;
+ }
+ .spinner__b._b3 {
+ margin-right: 0;
+ }
+ @-moz-keyframes sk-bouncedelay {
+ 0%, 80%, 100% {
+ transform: scale(0.2);
+ }
+ 40% {
+ transform: scale(1);
+ }
+ }
+ @-webkit-keyframes sk-bouncedelay {
+ 0%, 80%, 100% {
+ transform: scale(0.2);
+ }
+ 40% {
+ transform: scale(1);
+ }
+ }
+ @-o-keyframes sk-bouncedelay {
+ 0%, 80%, 100% {
+ transform: scale(0.2);
+ }
+ 40% {
+ transform: scale(1);
+ }
+ }
+ @keyframes sk-bouncedelay {
+ 0%, 80%, 100% {
+ transform: scale(0.2);
+ }
+ 40% {
+ transform: scale(1);
+ }
+ }
+ </style>
</head>
<body class="body theme-dark">
@@ -20,7 +114,7 @@
<div class="spinner__b _b2"></div>
<div class="spinner__b _b3"></div>
</div>
- <div class="appName">Finapp</div>
+ <div class="appName">Finapp Next</div>
</div>
</div>
</div>