2018-03-13 20:10:06 +00:00
|
|
|
import React from 'react';
|
|
|
|
import Media from 'react-media';
|
|
|
|
import { Col, Navbar, Row } from 'react-bootstrap';
|
|
|
|
import FCCSearchBar from 'react-freecodecamp-search';
|
2018-05-15 05:12:05 +00:00
|
|
|
import { NavLogo, NavLinks } from './components';
|
2018-03-13 20:10:06 +00:00
|
|
|
|
|
|
|
import propTypes from './navPropTypes';
|
|
|
|
|
2018-05-15 05:12:05 +00:00
|
|
|
function LargeNav({ clickOnLogo }) {
|
2018-03-13 20:10:06 +00:00
|
|
|
return (
|
|
|
|
<Media
|
|
|
|
query='(min-width: 956px)'
|
|
|
|
render={
|
|
|
|
() => (
|
|
|
|
<Row>
|
2018-04-09 09:39:20 +00:00
|
|
|
<Col className='nav-component' sm={ 5 } xs={ 6 }>
|
2018-03-13 20:10:06 +00:00
|
|
|
<Navbar.Header>
|
|
|
|
<NavLogo clickOnLogo={ clickOnLogo } />
|
2018-03-23 23:41:07 +00:00
|
|
|
<FCCSearchBar />
|
2018-03-13 20:10:06 +00:00
|
|
|
</Navbar.Header>
|
|
|
|
</Col>
|
2018-05-15 05:12:05 +00:00
|
|
|
<Col className='nav-component bins' sm={ 3 } xs={ 6 }/>
|
2018-03-13 20:10:06 +00:00
|
|
|
<Col className='nav-component nav-links' sm={ 4 } xs={ 0 }>
|
|
|
|
<Navbar.Collapse>
|
2018-05-15 05:12:05 +00:00
|
|
|
<NavLinks />
|
2018-03-13 20:10:06 +00:00
|
|
|
</Navbar.Collapse>
|
|
|
|
</Col>
|
|
|
|
</Row>
|
|
|
|
)
|
|
|
|
}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
LargeNav.displayName = 'LargeNav';
|
|
|
|
LargeNav.propTypes = propTypes;
|
|
|
|
|
|
|
|
export default LargeNav;
|