component: add Logo component
This commit is contained in:
parent
bfa2370f51
commit
a76289a7bc
BIN
src/assets/images/burger-logo.png
Normal file
BIN
src/assets/images/burger-logo.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 14 KiB |
11
src/components/Logo/Logo.css
Normal file
11
src/components/Logo/Logo.css
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
.Logo {
|
||||||
|
background-color: white;
|
||||||
|
padding: 8px;
|
||||||
|
height: 80%;
|
||||||
|
box-sizing: border-box;
|
||||||
|
border-radius: 5px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.Logo img{
|
||||||
|
height: 100%;
|
||||||
|
}
|
14
src/components/Logo/Logo.js
Normal file
14
src/components/Logo/Logo.js
Normal 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;
|
@ -1,12 +1,13 @@
|
|||||||
import React from 'react';
|
import React from 'react';
|
||||||
|
|
||||||
import classes from './Toolbar.css';
|
import classes from './Toolbar.css';
|
||||||
|
import Logo from '../../../Logo/Logo';
|
||||||
|
|
||||||
const toolbar = () => {
|
const toolbar = () => {
|
||||||
return (
|
return (
|
||||||
<header className={classes.Toolbar}>
|
<header className={classes.Toolbar}>
|
||||||
<div>MENU</div>
|
<div>MENU</div>
|
||||||
<div>LOGO</div>
|
<Logo />
|
||||||
<nav>
|
<nav>
|
||||||
...
|
...
|
||||||
</nav>
|
</nav>
|
||||||
|
Loading…
Reference in New Issue
Block a user