diff options
author | Eug-VS <eug-vs@keemail.me> | 2019-12-31 16:13:55 +0300 |
---|---|---|
committer | Eug-VS <eug-vs@keemail.me> | 2019-12-31 16:13:55 +0300 |
commit | 7be26fd020c7a77143fbe1caebed45adcdc53809 (patch) | |
tree | 4e1de18e62868c5aa31ee77d4f0a353a394ec093 /src | |
parent | 11f4a2cff3068cdb27bf5da0054d8204a3ee5070 (diff) | |
download | chrono-cube-ui-7be26fd020c7a77143fbe1caebed45adcdc53809.tar.gz |
Use MUI in Header
Diffstat (limited to 'src')
-rw-r--r-- | src/components/Header.js | 35 |
1 files changed, 26 insertions, 9 deletions
diff --git a/src/components/Header.js b/src/components/Header.js index 47da527..4eceb6d 100644 --- a/src/components/Header.js +++ b/src/components/Header.js @@ -1,15 +1,32 @@ import React from "react"; +import { Tab, Tabs, Typography } from "@material-ui/core"; +import styled from 'styled-components'; const Header = () => ( - <div> - <span> ChronoCube </span> - <ul> - <li> Home </li> - <li> App </li> - <li> Scoreboard </li> - <li> News </li> - </ul> - </div> + <HeaderWrapper> + <Tabs> + <Typography variant="h4" id="logo"> ChronoCube </Typography> + <Tab label="Home" /> + <Tab label="App" /> + <Tab label="Scoreboard" /> + <Tab label="News" /> + </Tabs> + </HeaderWrapper> + ); +const HeaderWrapper = styled.div` + border-bottom: 1px solid black; + background-color: darkgrey; + & .MuiTab-wrapper { + padding: 10px; + } + & .MuiTypography-root { + font-weight: bold; + padding: 10px; + margin-right: 50px; + margin-left: 30px; + } +`; + export default Header; |