Skip to content

Instantly share code, notes, and snippets.

@mathisonian
Last active July 11, 2019 05:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mathisonian/5fc107f2dc691aaf80110abdce4f04b0 to your computer and use it in GitHub Desktop.
Save mathisonian/5fc107f2dc691aaf80110abdce4f04b0 to your computer and use it in GitHub Desktop.
Nav Component
const React = require('react');
class CustomComponent extends React.Component {
render() {
const { hasError, idyll, updateProps, ...props } = this.props;
return (
<div style={{position: 'fixed', top: 0, left: 0, right: 0, display: 'flex', padding: '1em', background: '#000', justifyContent: 'space-between'}}>
<div style={{fontWeight: 'bold', fontSize: '2em', color: '#fff'}}>MY BLOG</div>
<div style={{display: 'flex'}}>
<div style={{fontSize: '1.5em', color: '#fff', marginRight: '1em'}}>A Link</div>
<div style={{fontSize: '1.5em', color: '#fff'}}>Another Link</div>
</div>
</div>
);
}
}
module.exports = CustomComponent;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment