-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathHeader.js
More file actions
103 lines (100 loc) · 2.56 KB
/
Header.js
File metadata and controls
103 lines (100 loc) · 2.56 KB
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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
import {
Logo,
Words,
Header as ArwesHeader,
Highlight,
withStyles,
} from "arwes";
import { Link } from "react-router-dom";
import Clickable from "./Clickable";
import Centered from "./Centered";
const styles = theme => ({
root: {
display: "flex",
flexDirection: "row",
lineHeight: "80px",
},
logo: {
display: "inherit",
marginTop: "15px",
},
nav: {
display: "inherit",
},
banner: {
display: "inherit",
fontWeight: "bold",
marginLeft: "10px",
marginRight: "15px",
fontSize: 28,
},
clickable: {
fontSize: 21,
"& i": {
marginRight: theme.padding / 2,
fontSize: 24,
},
},
link: {
color: theme.color.content,
textDecoration: "none",
},
button: {
padding: [0, theme.padding / 2],
},
"@media (max-width: 800px)": {
logo: {
display: "none",
},
img: {
display: "none",
},
banner: {
display: "none",
},
button: {
padding: [0, 8],
},
clickable: {
fontSize: 16,
}
},
});
const Header = props => {
const { classes, onNav, ...rest } = props;
return <ArwesHeader animate>
<Centered className={classes.root} {...rest}>
<img src="/favicon.png" alt="" className={classes.img} style={{
margin: "15px 10px 15px 0",
height: "50px",
width: "auto",
}} />
<Logo animate size={50} className={classes.logo} layer="header" />
<Words animate className={classes.banner}>
NASA Mission Control
</Words>
<nav className={`${classes.nav}`}>
<Clickable className={classes.clickable} onClick={onNav}>
<Highlight className={classes.button} animate layer="header">
<Link className={classes.link} to="/launch">
<i className="material-icons">check_circle_outline</i>Launch
</Link>
</Highlight>
</Clickable>
<Clickable className={classes.clickable} onClick={onNav}>
<Highlight className={classes.button} animate layer="header">
<Link className={classes.link} to="/upcoming">
<i className="material-icons">update</i>Upcoming</Link>
</Highlight>
</Clickable>
<Clickable className={classes.clickable} onClick={onNav}>
<Highlight className={classes.button} animate layer="header">
<Link className={classes.link} to="/history">
<i className="material-icons">history</i>History</Link>
</Highlight>
</Clickable>
</nav>
</Centered>
</ArwesHeader>
};
export default withStyles(styles)(Header);