-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtestCard.txt
39 lines (39 loc) · 1.34 KB
/
testCard.txt
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
33
34
35
36
37
38
39
const testCard = () => {
return (
<div className="card text-white bg-dark border border-info ">
<div className="card-header lead">A photo from pexels</div>
<div className="card-body">
<div className="rounded border border-success p-2">
<img
src="https://images.pexels.com/photos/3561339/pexels-photo-3561339.jpeg?auto=compress&cs=tinysrgb&dpr=2&h=650&w=940"
alt="photo"
style={{ maxHeight: "100%", maxWidth: "100%" }}
className="mb-3 rounded"
/>
</div>
<p className="lead bg-success font-weight-normal text-wrap">
this photo looks great
</p>
<p className="btn btn-success rounded btn-sm px-4">$ 5</p>
<div className="row">
<div className="col-12">
<button
onClick={() => {}}
className="btn btn-block btn-outline-success mt-2 mb-2"
>
Add to Cart
</button>
</div>
<div className="col-12">
<button
onClick={() => {}}
className="btn btn-block btn-outline-danger mt-2 mb-2"
>
Remove from cart
</button>
</div>
</div>
</div>
</div>
);
};