component: add Toolbar component

master
oscarzhou 2020-12-13 13:41:00 +13:00
parent 3ec3df773d
commit bfa2370f51
4 changed files with 39 additions and 2 deletions

View File

@ -1,3 +1,3 @@
.Content{ .Content{
margin-top: 16px; margin-top: 72px;
} }

View File

@ -2,10 +2,11 @@ import React from 'react';
import Aux from '../../hoc/Auxiliary'; import Aux from '../../hoc/Auxiliary';
import classes from './Layout.css'; import classes from './Layout.css';
import Toolbar from '../UI/Navigation/Toolbar/Toolbar';
const layout = (props) => ( const layout = (props) => (
<Aux> <Aux>
<div>Toolbar, SideDrawer, Backdrop</div> <Toolbar />
<main className={classes.Content}> <main className={classes.Content}>
{props.children} {props.children}
</main> </main>

View File

@ -0,0 +1,18 @@
.Toolbar {
height: 56px;
width: 100%;
position: fixed;
top: 0;
left: 0;
background-color: #703B09;
display: flex;
justify-content: space-between;
align-items: center;
padding: 0 20px;
box-sizing: border-box;
z-index: 90;
}
.Toolbar nav{
height: 100%;
}

View File

@ -0,0 +1,18 @@
import React from 'react';
import classes from './Toolbar.css';
const toolbar = () => {
return (
<header className={classes.Toolbar}>
<div>MENU</div>
<div>LOGO</div>
<nav>
...
</nav>
</header>
)
}
export default toolbar;