mirror of
https://github.com/danbulant/ester_os
synced 2026-06-18 22:01:17 +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%;
|
||||
height: 50px;
|
||||
}
|
||||
|
||||
.desktop {
|
||||
padding: 15px;
|
||||
}
|
||||
|
||||
.login {
|
||||
transition: backdrop-filter;
|
||||
}
|
||||
.login.active {
|
||||
backdrop-filter: blur(15px);
|
||||
}
|
||||
|
|
@ -1,16 +1,25 @@
|
|||
import React from 'react';
|
||||
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';
|
||||
|
||||
function App() {
|
||||
setBackground();
|
||||
|
||||
return (
|
||||
<>
|
||||
<Navbar />
|
||||
</>
|
||||
);
|
||||
|
||||
if(global.user === undefined){
|
||||
return (
|
||||
<Login />
|
||||
)
|
||||
} else {
|
||||
return (
|
||||
<>
|
||||
<Desktop />
|
||||
<Navbar />
|
||||
</>
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
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