Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove Sold out text from preview token and add to hover effect #73

Merged
merged 1 commit into from
Jun 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 9 additions & 5 deletions rair-front/src/components/MockUpPage/GeneralCollectionStyles.css
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@
top: 0;
z-index: 2;
cursor: pointer;
background: rgba(0, 0, 0, 0.5);
display: flex;
/* background: rgba(0, 0, 0, 0.5); */
display: none;
justify-content: center;
align-items: center;
}
Expand All @@ -87,15 +87,15 @@
background: rgba(0, 0, 0, 0.6);
color: #fff;
text-transform: uppercase;
padding: 8px 10px;
padding: 1px 10px;
display: flex;
justify-content: center;
align-items: center;
border-radius: 10px;
font-size: 14px;
font-size: 12px;
position: absolute;
top: 10px;
right: 10px;
right: 20px;
}

.zoom-event:hover {
Expand Down Expand Up @@ -611,6 +611,10 @@ img.single-token-block-img {
display: none;
}

.nft-item-collection .description-wrapper:hover .nft-item-collection-sold-out {
display: flex;
}

.nft-item-collection .collection-block-price img {
width: 16px;
height: auto;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,11 +357,6 @@ const NftItemForCollectionViewComponent: React.FC<
metadataFilter && 'with-modal'
}`}
id={id}>
{item && !resaleFlag && item.isMinted && !resalePrice && (
<div className="nft-item-collection-sold-out">
<div className="sold-out-box">Sold out</div>
</div>
)}
<>
{item && resaleFlag && currentUserAddress === userAddress && (
<button
Expand Down Expand Up @@ -582,6 +577,11 @@ const NftItemForCollectionViewComponent: React.FC<
</div>
)}
</div>
{item && !resaleFlag && item.isMinted && !resalePrice && (
<div className="nft-item-collection-sold-out">
<div className="sold-out-box">Sold out</div>
</div>
)}
<div
className="collection-block-price"
style={{ alignItems: 'flex-end' }}>
Expand Down