forked from anandMohanan/unlockable-content
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCollectionCard.jsx
70 lines (69 loc) · 2.32 KB
/
CollectionCard.jsx
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
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
import Link from "next/link";
import Image from "next/image";
export const CollectionCard = ({ post }) => {
return (
<Link
href={`/collection/${post.metadata_id}`}
className="col-xl-4 col-lg-4 col-sm-6"
>
<div className="nft-item home-4">
<div className="nft-inner">
{/* <!-- nft top part --> */}
<div className="nft-item-top d-flex justify-content-between align-items-center">
<div className="author-part">
<ul className="author-list d-flex">
<li className="single-author d-flex align-items-center">
<Link href="/author" className="veryfied">
<Image
loading="lazy"
src="/assets/images/seller/author.jpg"
alt="author-img"
width={100}
height={100}
/>
</Link>
<h6>
<Link href="#">Allie eve knox</Link>
</h6>
</li>
</ul>
</div>
</div>
{/* <!-- nft-bottom part --> */}
<div className="nft-item-bottom">
<div className="nft-thumb" style={{ width: "100%", height: "260px" }}>
<Image
loading="lazy"
src={post.nftImage}
alt="nft-img"
fill
/>
</div>
<div className="nft-content">
<h4>
<Link href="item-details.html">{post.name}</Link>
</h4>
<div className="price-like d-flex justify-content-between align-items-center">
<p className="nft-price">
Price:{" "}
<span className="yellow-color">
{Math.round(
post.price.toLocaleString("fullwide", {
useGrouping: false,
}) *
10 ** -24
)}{" "}
NEAR
</span>
</p>
{/* <a href="#" className="nft-like">
<i className="icofont-heart"></i> 230
</a> */}
</div>
</div>
</div>
</div>
</div>
</Link>
);
};