component: add Logo component

This commit is contained in:
oscarzhou 2020-12-13 15:15:54 +13:00
parent bfa2370f51
commit a76289a7bc
4 changed files with 27 additions and 1 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

View File

@ -0,0 +1,11 @@
.Logo {
background-color: white;
padding: 8px;
height: 80%;
box-sizing: border-box;
border-radius: 5px;
}
.Logo img{
height: 100%;
}

View File

@ -0,0 +1,14 @@
import React from 'react';
import burgerLogo from '../../assets/images/burger-logo.png';
import classes from './Logo.css';
const logo = (props) => {
return (
<div className={classes.Logo}>
<img src={burgerLogo} alt="burger" />
</div>
)
}
export default logo;

View File

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