make it better

This commit is contained in:
Ray
2017-07-24 18:40:56 +01:00
commit 586fe2bec3
38 changed files with 4127 additions and 0 deletions

View File

@@ -0,0 +1,34 @@
import React from 'react'
import './index.css'
// const Product = ({product, compare}) =>
// <div key={product.id} className="col-3 product-card">
// <Card inverse
// onClick={() => compare(product)}
// color={product.compare ? "success" : "primary"}
// >
// <CardBlock>
// <CardTitle>{product.name}</CardTitle>
// </CardBlock>
// </Card>
// </div>;
const Product = ({product, compare}) =>
<div key={product.id} className="col-3">
<div className={"product " + (product.compare ? "compare" : "")} >
<img src={product.image} alt={product.name} />
<div className="image_overlay"></div>
<div className="view_details" onClick={() => compare(product)}>
{product.compare ? "Remove" : "Compare"}
</div>
<div className="stats">
<div className="stats-container">
<span className="product_price">{product.price}</span>
<span className="product_name">{product.name}</span>
<p>Men's running shirt</p>
</div>
</div>
</div>
</div>;
export default Product;