Last active
April 26, 2017 19:03
-
-
Save JonathanZWhite/c22a460f27818b9bdb2551348cfabc4d to your computer and use it in GitHub Desktop.
This file contains hidden or 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
import React, { PropTypes } from 'react'; | |
import { StyleSheet, css } from 'aphrodite/no-important'; | |
import { spacing } from '../../styles/base/spacing'; | |
function Card(props) { | |
return ( | |
<div className={css(styles.card)}> | |
{props.children} | |
</div> | |
); | |
} | |
export default Card; | |
export const styles = StyleSheet.create({ | |
card: { | |
padding: spacing.space4}, // using spacing constants as padding | |
background: 'rgba(255, 255, 255, 1.0)', | |
boxShadow: '0 3px 17px 2px rgba(0, 0, 0, .05)', | |
borderRadius: '3px', | |
}, | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
You have exces brace in 17 line
padding: spacing.space4},