mirror of
https://github.com/danbulant/ester_os
synced 2026-05-20 20:58:31 +00:00
Move to static as file-loader wasn't working correctly
This commit is contained in:
parent
a5c021fff5
commit
b9a52175fd
3 changed files with 12 additions and 3 deletions
10
client/src/renderers/styles/welcome.css
Normal file
10
client/src/renderers/styles/welcome.css
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
.welcome-page {
|
||||
position: fixed;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
top: 0;
|
||||
left: 0;
|
||||
|
||||
background: url("/static/images/backgrounds/nightTime.jpg");
|
||||
background-size: cover;
|
||||
}
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
import RenderDef from '../defs/renderer';
|
||||
import RenderStates from '../defs/renderStates';
|
||||
import Background from './images/backgrounds/nightTime.jpg';
|
||||
import './styles/welcome.css';
|
||||
|
||||
class Welcome implements RenderDef {
|
||||
name = "welcome";
|
||||
|
|
@ -17,9 +17,8 @@ class Welcome implements RenderDef {
|
|||
async prepare(){
|
||||
this.element = document.createElement("div");
|
||||
var el = this.element;//LAZYNESS
|
||||
el.className = "welcome-page";
|
||||
el.className = "welcome-page";
|
||||
|
||||
el.style.background = Background;
|
||||
this.state = RenderStates.Ready;
|
||||
}
|
||||
eject(){
|
||||
|
|
|
|||
|
Before Width: | Height: | Size: 1.5 MiB After Width: | Height: | Size: 1.5 MiB |
Loading…
Reference in a new issue