-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Expand file tree
/
Copy pathLayout.js
More file actions
36 lines (26 loc) · 672 Bytes
/
Layout.js
File metadata and controls
36 lines (26 loc) · 672 Bytes
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
import React from "react";
import { Link } from "react-router";
import Footer from "../components/layout/Footer";
import Nav from "../components/layout/Nav";
import "../../styles.css";
export default class Layout extends React.Component {
render() {
const { location } = this.props;
const containerStyle = {
marginTop: "60px"
};
return (
<div>
<Nav location={location} />
<div class="container" style={containerStyle}>
<div class="row">
<div class="col-lg-12">
{this.props.children}
</div>
</div>
<Footer/>
</div>
</div>
);
}
}