Skip to content

Instantly share code, notes, and snippets.

@mikeyamadeo
Last active August 6, 2016 19:06
Show Gist options
  • Save mikeyamadeo/84eaec3ec48b28d8acfce2c18085a0c4 to your computer and use it in GitHub Desktop.
Save mikeyamadeo/84eaec3ec48b28d8acfce2c18085a0c4 to your computer and use it in GitHub Desktop.
import { StyleSheet, css } from 'aphrodite'
import { colors } from 'App/style/settings'
import Media from 'App/shared/obj.Media'
const PokemonListing = ({name, num, loc, imgSrc}) =>
<div className={css(styles.root)}>
<Media img={imgSrc}>
<h2>{name}</h2> <h4>#{num}</h4>
<Media
align='center'
img='/assets/location.svg'
>{loc}</Media>
</Media>
</div>
// styles can be placed below where they are used if you wish
const styles = StyleSheet.create({
root: {
backgroundColor: colors.secondaryBg,
color: white
}
})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment