-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
137 lines (129 loc) · 3.96 KB
/
index.js
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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
import React from 'react';
import ReactDOM from 'react-dom';
import { MuiThemeProvider, createMuiTheme } from '@material-ui/core/styles';
import 'typeface-roboto';
import '../node_modules/bootstrap/dist/css/bootstrap.css';
import '../node_modules/font-awesome/css/font-awesome.min.css';
import HomepageLayout from './containers/HomepageLayout';
import AboutLayout from './containers/AboutLayout';
import GoalsLayout from './containers/GoalsLayout';
import SkillsLayout from './containers/SkillsLayout';
import ProjectsLayout from './containers/ProjectsLayout';
import ContactLayout from './containers/ContactLayout';
import AnchorLink from 'react-anchor-link-smooth-scroll';
import { slide as Menu } from 'react-burger-menu';
import { Typography, Grid } from '../node_modules/@material-ui/core';
import Hamburger from './assets/icons/hamburger.png';
const mainTheme = createMuiTheme({
palette: {
primary: {
main: '#2d80c4',
},
secondary: {
main: '#ffffff',
light: '#2d80c4',
contrastText: '#ffcc00',
},
},
});
var styles = {
bmBurgerButton: {
position: 'fixed',
width: '50px',
height: '50px',
left: '25px',
top: '30px'
},
bmBurgerBars: {
background: '#ffffff'
},
bmCrossButton: {
height: '24px',
width: '24px'
},
bmCross: {
background: '#ffffff'
},
bmMenu: {
background: '#2d80c4',
padding: '2.5em 1.5em 0',
fontSize: '1.15em',
borderRadius: '15px solid',
},
bmMorphShape: {
fill: '#ffffff'
},
bmItemList: {
color: '#ffffff',
padding: '0.8em'
},
bmItem: {
display: 'inline-block',
color: '#ffffff'
},
bmOverlay: {
background: 'rgba(0, 0, 0, 0.3)'
}
};
class App extends React.Component {
constructor(props) {
super(props);
this.state = {
openMenu: false
};
}
render() {
return (<div>
<Menu styles={styles} customBurgerIcon={<img src={Hamburger} />} >
<Grid container
direction='column'
justify='space-around'>
<AnchorLink id="home" className="menu-item" href="#homepage">
<Typography variant='display1'>Home</Typography>
</AnchorLink>
<br />
<AnchorLink className="menu-item" href="#about">
<Typography variant='display1'>About</Typography>
</AnchorLink>
<br />
<AnchorLink className="menu-item" href="#values">
<Typography variant='display1'>Values</Typography>
</AnchorLink>
<br />
<AnchorLink className="menu-item" href="#projects">
<Typography variant='display1'>Projects</Typography>
</AnchorLink>
<br />
<AnchorLink className="menu-item" href="#contact">
<Typography variant='display1'>Contact</Typography>
</AnchorLink>
</Grid>
</Menu>
<section id='homepage'>
<HomepageLayout />
</section>
<section id='about'>
<AboutLayout />
</section>
<section id='values'>
<GoalsLayout />
</section>
<section id='skills'>
<SkillsLayout />
</section>
<section id='projects'>
<ProjectsLayout />
</section>
<section id='contact'>
<ContactLayout />
</section>
</div>
);
}
}
ReactDOM.render(
<MuiThemeProvider theme={mainTheme}>
<App />
</MuiThemeProvider>
, document.getElementById('root'));
export default App;