react-appstore-button
Version:
An react component which allows you to place an App Store Download button in few seconds
28 lines (23 loc) • 585 B
JSX
import React from "react"
class AppStoreButton extends React.Component {
render() {
const imgUrl = "http://linkmaker.itunes.apple.com/images/badges/en-us/badge_appstore-lrg.svg";
const aStyle = {
display: 'inline-block',
overflow: 'hidden',
background: 'url(' + imgUrl + ') no-repeat',
width: this.props.width || 165,
height: this.props.height || 40,
};
return (
<div>
<a
style = {aStyle}
href = {this.props.url}
>
</a>
</div>
)
}
}
export default AppStoreButton