mirror of
https://github.com/danbulant/ester_os
synced 2026-07-05 11:00:56 +00:00
Start working on login screen
This commit is contained in:
parent
af4ce7f890
commit
814f67617d
3 changed files with 39 additions and 7 deletions
|
|
@ -9,4 +9,15 @@
|
||||||
|
|
||||||
width: 100%;
|
width: 100%;
|
||||||
height: 50px;
|
height: 50px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.desktop {
|
||||||
|
padding: 15px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.login {
|
||||||
|
transition: backdrop-filter;
|
||||||
|
}
|
||||||
|
.login.active {
|
||||||
|
backdrop-filter: blur(15px);
|
||||||
}
|
}
|
||||||
|
|
@ -1,16 +1,25 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import Navbar from './system/navbar';
|
import Navbar from './system/navbar';
|
||||||
import setBackground from './system/background';
|
import setBackground from './system/utils/background';
|
||||||
|
import Desktop from './system/desktop'
|
||||||
|
import Login from './system/login';
|
||||||
import '../App.css';
|
import '../App.css';
|
||||||
|
|
||||||
function App() {
|
function App() {
|
||||||
setBackground();
|
setBackground();
|
||||||
|
|
||||||
return (
|
if(global.user === undefined){
|
||||||
<>
|
return (
|
||||||
<Navbar />
|
<Login />
|
||||||
</>
|
)
|
||||||
);
|
} else {
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<Desktop />
|
||||||
|
<Navbar />
|
||||||
|
</>
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
export default App;
|
export default App;
|
||||||
|
|
|
||||||
12
client/src/ui/system/login.js
Normal file
12
client/src/ui/system/login.js
Normal file
|
|
@ -0,0 +1,12 @@
|
||||||
|
import React from 'react';
|
||||||
|
import "../../App.css";
|
||||||
|
|
||||||
|
function Login(props){
|
||||||
|
return (
|
||||||
|
<div className="login">
|
||||||
|
Press ENTER to open login
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default Login;
|
||||||
Loading…
Reference in a new issue