-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCards.js
32 lines (26 loc) · 872 Bytes
/
Cards.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
import Button from "react-bootstrap/Button";
import Card from "react-bootstrap/Card";
import Products from "./Product_Page";
const CardsPage1 = () => {
return (
<>
{Products.map((currEle) => {
return (
<Card className="col-md-4 mb-2" style={{ marginRight: '1rem' }} id="cards">
<Card.Title className="mt-2" >{currEle.name}</Card.Title>
<Card.Img variant="top" id="cardImg" src={currEle.image} />
<Card.Body >
<Card.Text>
<s>{currEle.old_price}</s>
<br />
{currEle.new_price}
</Card.Text >
<Button id="btn2" style={{marginLeft:"-1rem"}} >Quick Purchase</Button>
</Card.Body>
</Card>
);
})}
</>
);
};
export default CardsPage1;