databag/net/web/src/App.js

21 lines
689 B
JavaScript
Raw Normal View History

2022-03-10 22:28:50 +00:00
import login from './login.png';
2022-03-15 03:45:54 +00:00
import { AppContextProvider } from './context/AppContext';
import { Root } from './components/Root';
2022-03-15 08:05:44 +00:00
import 'antd/dist/antd.css';
2022-03-11 21:40:29 +00:00
2022-03-10 18:54:09 +00:00
function App() {
2022-03-10 22:28:50 +00:00
2022-03-15 03:45:54 +00:00
return (
<AppContextProvider>
2022-03-15 08:05:44 +00:00
<div style={{ width: '100%', height: '100vh', backgroundColor: '#8fbea7' }}>
<img src={login} alt="" style={{ position: 'absolute', width: '33%', bottom: 0, right: 0 }}/>
</div>
<div style={{ position: 'absolute', display: 'flex', flexDirection: 'column', alignItems: 'center', justifyContent: 'center', top: 0, left: 0, width: '100%', height: '100%' }}>
<Root />
</div>
2022-03-15 03:45:54 +00:00
</AppContextProvider>
);
2022-03-10 18:54:09 +00:00
}
export default App;