yoda-common-boilerplate
Version:
Repository of all JCP reusable atoms, molecules and organisms
44 lines (41 loc) • 1.72 kB
JSX
import { Card, Image } from 'atoms';
import React, { Component } from 'react';
import styles from './ProductCard.css';
class ProductCard extends Component {
render() {
return (
<div className={styles.galleryProduct}>
<Card>
<div>
<a href="/liz-claiborne-34-sleeve-crew-neck-pullover-sweater/prod.jump?ppId=ppr5007162237&Ntt=&Ns=featured&N=&page=1" />
<div className={styles.imgBlock}>
<Image src={this.props.image} alt="" width="100%" height="100%" />
</div>
<div className={styles.detailsWrapper}>
<div >
<h6 className={styles.title}>
<a className={styles.titleLink} href="/liz-claiborne-34-sleeve-crew-neck-pullover-sweater/prod.jump?ppId=ppr5007162237&Ntt=&Ns=featured&N=&page=1">
Liz Claiborne 3/4 Sleeve Crew Neck Pullover Sweater</a>
</h6>
<ul className={styles.swatches}>
<li className={styles.swatchesInfo}>
<Image src="http://m.jcpenney.com/b/assets/img/swatches-info.svg" />
<span className={styles.swatchText}>2 Colors Available</span>
</li>
</ul>
<div className={styles.pricing}>
<p className={styles.price}>
<span>{this.props.price} </span>
<span> SALE</span>
</p>
<p className={styles.strike}>Original ${this.props.originalPrice}</p>
</div>
</div>
</div>
</div>
</Card>
</div>
);
}
}
export default ProductCard;