From bb35eaed5c9096e9b56cf8f4991b23d429b7c11e Mon Sep 17 00:00:00 2001 From: yann300 Date: Sat, 15 Feb 2020 15:18:36 +0100 Subject: [PATCH] show app upon css load & add splashscreen --- index.html | 1 - src/app.js | 36 +++++++++++++++++++++++++++++++++--- src/app/tabs/theme-module.js | 16 ++++++++++++++++ 3 files changed, 49 insertions(+), 4 deletions(-) diff --git a/index.html b/index.html index 9cf2e13472..c694a541c4 100644 --- a/index.html +++ b/index.html @@ -28,7 +28,6 @@ --> Remix - Ethereum IDE - diff --git a/src/app.js b/src/app.js index dc61a21b26..a638c2a74d 100644 --- a/src/app.js +++ b/src/app.js @@ -98,12 +98,38 @@ var css = csjs` background-color : var(--info); opacity : 0.5; } + .centered { + position : fixed; + top : 50%; + left : 50%; + width : 200px; + height : 200px; + } + .centered svg path { + fill: var(--secondary); + } + .centered svg polygon { + fill: var(--secondary); + } ` class App { constructor (api = {}, events = {}, opts = {}) { var self = this self._components = {} + self._view = {} + self._view.splashScreen = yo`
+ remix_logo1 + + + + +
+ REMIX IDE +
+
` + document.body.appendChild(self._view.splashScreen) + // setup storage var configStorage = new Storage('config-v0.8:') @@ -126,8 +152,6 @@ class App { registry.put({api: self._components.filesProviders['localhost'], name: 'fileproviders/localhost'}) registry.put({api: self._components.filesProviders, name: 'fileproviders'}) - self._view = {} - migrateFileSystem(self._components.filesProviders['browser']) } @@ -163,7 +187,7 @@ class App { self._components.resizeFeature = new PanelsResize(self._view.sidepanel) self._view.el = yo` -
+