Skip to content

Commit

Permalink
💄 Add collection default cover
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraHuang22 authored and williamchong committed Feb 19, 2024
1 parent fef2900 commit a055200
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 1 deletion.
Binary file added src/assets/images/nft/collection.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/components/NFTCollection/ItemCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
:should-resize-src="shouldResizeSrc"
:video-src="videoSrc"
:size="300"
:is-collection="true"
:alt="collectionName"
/>
<Label
Expand Down
10 changes: 9 additions & 1 deletion src/components/NFTCover.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,11 @@
v-if="!isShowVideo && (!isShowImage || !isLoaded)"
v-bind="imgProps"
:class="imgClassNameForPlaceholder"
src="~/assets/images/nft/primitive-nft.jpg"
:src="
isCollection
? '~/assets/images/nft/collection.png'
: '~/assets/images/nft/primitive-nft.jpg'
"
/>
</div>
<template v-if="isNftBook">
Expand Down Expand Up @@ -93,6 +97,10 @@ export default {
type: Boolean,
default: false,
},
isCollection: {
type: Boolean,
default: false,
},
spineColor1: {
type: String,
default: '',
Expand Down

0 comments on commit a055200

Please sign in to comment.