-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
73 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,39 @@ | ||
import React from 'react'; | ||
import PropTypes from 'prop-types'; | ||
import { Link } from 'gatsby'; | ||
import cx from 'classnames'; | ||
import styles from './Footer.module.scss'; | ||
|
||
const Footer = () => ( | ||
const Footer = ({ showEdit }) => ( | ||
<footer className={styles.footer}> | ||
<div className={styles.leftColumn}> | ||
<Link to="/" className={`${styles.logo} logo`} /> | ||
<div className={styles.copyright}> | ||
Copyright © 2020 New Relic Inc. | ||
<div className={cx('container', styles.container)}> | ||
<div className={styles.left}> | ||
<Link to="/" className={`${styles.logo} logo`} /> | ||
<div className={styles.copyright}> | ||
Copyright © 2020 New Relic Inc. | ||
</div> | ||
</div> | ||
|
||
<div className={styles.right}> | ||
{showEdit && ( | ||
<Link to="/" className={styles.edit}> | ||
Edit this page | ||
</Link> | ||
)} | ||
<Link to="/" className={styles.issue}> | ||
Create an issue | ||
</Link> | ||
</div> | ||
</div> | ||
</footer> | ||
); | ||
|
||
Footer.propTypes = { | ||
showEdit: PropTypes.bool, | ||
}; | ||
|
||
Footer.defaultProps = { | ||
showEdit: true, | ||
}; | ||
|
||
export default Footer; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -184,4 +184,9 @@ code { | |
font-size: 1.125rem; | ||
line-height: 2rem; | ||
} | ||
|
||
.container { | ||
max-width: 1200px; | ||
margin: auto; | ||
} | ||
} |