-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathHomePage.js
More file actions
28 lines (27 loc) · 817 Bytes
/
HomePage.js
File metadata and controls
28 lines (27 loc) · 817 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
import PropTypes from 'prop-types';
import React from 'react';
import '../../../../assets/stylesheets/homepage.css';
import '../../../../assets/stylesheets/Sidebar.css';
import Sidebar from './Sidebar';
const HomePage = (props) => {
const parks = props.parks
return(
<main>
<div className = "home" id = "outer-container">
<Sidebar parks = {parks} pageWrapId={'page-wrap'} outerContainerId={'outer-container'} />
<div id="page-wrap">
<h1>
Welcome to NattyTracker!
</h1>
<h2>
Please click the button in the top-left, and choose a National Park!
</h2>
</div>
</div>
</main>
);
};
HomePage.propTypes = {
parks: PropTypes.array.isRequired
}
export default HomePage;