Start working on login screen

This commit is contained in:
danbulant 2020-02-07 20:40:08 +01:00
parent af4ce7f890
commit 814f67617d
3 changed files with 39 additions and 7 deletions

View file

@ -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);
} }

View file

@ -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;

View 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;