diff --git a/src/index.ejs b/src/index.ejs index c429954a..41fc793a 100644 --- a/src/index.ejs +++ b/src/index.ejs @@ -24,9 +24,32 @@ z-index: 100; } - #preload video { - height: 144px; - width: 256px; + #preload .logo { + height: 100px; + width: 100px; + animation: logo 4s infinite 1s; + transform-origin: 50% 50%; + } + + @keyframes logo { + from, to { + transform: rotate(0deg); + } + 10% { + transform: rotate(0deg); + } + 30% { + transform: rotate(360deg); + } + 40% { + transform: rotate(360deg); + } + 60% { + transform: rotate(720deg); + } + 70% { + transform: rotate(720deg); + } } @@ -41,45 +64,40 @@
-
+if (name === 'MainWindow') { + preloadEl.style.display = 'flex' + const startTime = Date.now() + const PRELOAD_WAIT_TIME_MIN = 2000 + window.onAppReady = () => { + const delay = Math.max(0, PRELOAD_WAIT_TIME_MIN - (Date.now() - startTime)) + setTimeout(initApp, delay) + } +} else { + initApp({ force: true }) +} + diff --git a/static/images/tmp_logo_will_be_svg_later.png b/static/images/tmp_logo_will_be_svg_later.png new file mode 100644 index 00000000..4abece1e Binary files /dev/null and b/static/images/tmp_logo_will_be_svg_later.png differ diff --git a/static/videos/loader.mp4 b/static/videos/loader.mp4 deleted file mode 100644 index da3ac218..00000000 Binary files a/static/videos/loader.mp4 and /dev/null differ