component: replace word menu with three rows

This commit is contained in:
oscarzhou 2020-12-13 17:53:50 +13:00
parent 4deeab8324
commit e6f0d986dc
2 changed files with 29 additions and 1 deletions

View File

@ -0,0 +1,23 @@
.DrawerToggle {
width: 40px;
height: 100%;
display: flex;
flex-flow: column;
justify-content: space-around;
align-items: center;
padding: 10px 0;
box-sizing: border-box;
cursor: pointer;
}
.DrawerToggle div {
width: 90%;
height: 3px;
background-color: white;
}
@media (min-width: 500px) {
.DrawerToggle {
display: none;
}
}

View File

@ -1,8 +1,13 @@
import React from 'react';
import classes from './DrawerToggle.css';
const drawerToggle = (props) => (
<div onClick={props.clicked}>MENU</div>
<div className={classes.DrawerToggle} onClick={props.clicked}>
<div></div>
<div></div>
<div></div>
</div>
)
export default drawerToggle;