Last active
August 6, 2016 19:06
-
-
Save mikeyamadeo/84eaec3ec48b28d8acfce2c18085a0c4 to your computer and use it in GitHub Desktop.
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
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