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

💄 [_classId/] Add <NFTBookEditionCover/> #1136

Merged
merged 13 commits into from
Jun 21, 2023

Conversation

AuroraHuang22
Copy link
Contributor

@AuroraHuang22 AuroraHuang22 commented Jun 19, 2023

網頁擷取_19-6-2023_22822_rinkeby liker land

2023-06-19.10.05.37.mov

AuroraHuang22 added a commit that referenced this pull request Jun 19, 2023
AuroraHuang22 added a commit that referenced this pull request Jun 19, 2023
@AuroraHuang22 AuroraHuang22 marked this pull request as ready for review June 19, 2023 14:09
nwingt added a commit that referenced this pull request Jun 19, 2023
AuroraHuang22 added a commit that referenced this pull request Jun 20, 2023
src/components/NFTBook/EditionCover.vue Outdated Show resolved Hide resolved
src/mixins/nft.js Outdated Show resolved Hide resolved
src/pages/nft/class/_classId/index.vue Outdated Show resolved Hide resolved
src/components/NFTEditionSelect.vue Show resolved Hide resolved
src/components/NFTBook/EditionCover.vue Outdated Show resolved Hide resolved
src/components/NFTBook/EditionCover.vue Outdated Show resolved Hide resolved
const style = {
spineColor1: edition.spineColor1 || '#EBEBEB',
spineColor2: edition.spineColor2 || '#9B9B9B',
themeColor: edition.themeColor || defaultThemeColor[index],
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't think there should be a default theme color indexes, since there is no constraint in pricing tiers that state they must have increasing rarity

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's unrelated to rarity, just that there can be a clear distinction on the UI.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hmm what do we expect to see if there is more than 3 edition?
Also what is the use of defaultEdition ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • @nwingt Do you think we should keep defaultThemeColor, or do you have any other suggestions?

  • defaultEdition is to ensure that listings in the secondary market won't break the UI.

Copy link
Member

@williamchong williamchong Jun 20, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

But the info of the defaultEdition would be wrong on production for any book with listing but without a price
Can we just the ui component we don't have price info on?

Copy link
Member

@williamchong williamchong Jun 21, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If we are to keep defaultThemeColor, index % defaultThemeColor.length should be used

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Agree with William's

AuroraHuang22 added a commit that referenced this pull request Jun 21, 2023
src/mixins/nft.js Outdated Show resolved Hide resolved
src/mixins/nft.js Outdated Show resolved Hide resolved
@nwingt nwingt merged commit 046da01 into likecoin:feature/stripe Jun 21, 2023
nwingt pushed a commit that referenced this pull request Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants