Skip to content

Instantly share code, notes, and snippets.

@bnhansn
Last active October 21, 2016 14:09
Show Gist options
  • Save bnhansn/9ac579261c7e782025f8316fe28e95da to your computer and use it in GitHub Desktop.
Save bnhansn/9ac579261c7e782025f8316fe28e95da to your computer and use it in GitHub Desktop.
// @flow
import React from 'react';
import { Link } from 'react-router';
import { css, StyleSheet } from 'aphrodite';
const styles = StyleSheet.create({
navbar: {
display: 'flex',
alignItems: 'center',
padding: '0 1rem',
height: '70px',
background: '#fff',
boxShadow: '0 1px 1px rgba(0,0,0,.1)',
},
link: {
color: '#555459',
fontSize: '22px',
fontWeight: 'bold',
':hover': {
textDecoration: 'none',
},
':focus': {
textDecoration: 'none',
},
},
});
const Navbar = () =>
<nav className={css(styles.navbar)}>
<Link to="/" className={css(styles.link)}>Sling</Link>
</nav>;
export default Navbar;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment