blob: cca73ed65550817345a1f73977d1b9795b631d38 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
import React from "react";
import {
AppBar,
Tabs,
Tab,
Typography
} from "@material-ui/core";
import styled from 'styled-components';
const Header = ({ setPage }) => {
const handleChange = (event, newPage) => {
setPage(newPage);
};
return (
<AppBar position="static">
<TabsWrapper onChange={handleChange}>
<Typography variant="h4" id="logo"> ChronoCube </Typography>
<Tab label="Home" value="home"/>
<Tab label="App" value="app"/>
<Tab label="Scoreboard" value="scoreboard"/>
<Tab label="News" value="news"/>
</TabsWrapper>
</AppBar>
);
};
const TabsWrapper = styled(Tabs)`
border-bottom: 1px solid black;
& .MuiTab-wrapper {
padding: 10px;
}
& .MuiTypography-root {
font-weight: bold;
padding: 10px;
margin-right: 50px;
margin-left: 30px;
}
`;
export default Header;
|