-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathProduct.js
37 lines (26 loc) · 956 Bytes
/
Product.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
33
34
35
36
37
import React from 'react'
import './Product.css';
import DOUGH from './img/IMAGE1.png'
import { FaEthereum } from "react-icons/fa";
function product({title, image, price, rating }) {
return (
<div className='product'>
<div className="productinfo">
<a href="#">
<h3>{ title }</h3>
<p className="productprice">
<span className='pricefont'>{ price }</span>
<FaEthereum />
<strong>ETH</strong>
</p></a>
<div className="productrating">
{Array(rating).fill().map((_,i) => ( <p>⭐️</p>))}
</div>
</div>
<a href="#"><img src={ image } alt="" /></a>
<button>Buy NFT</button>
<button className='secondbutton'>details</button>
</div>
)
}
export default product;