-
-
Notifications
You must be signed in to change notification settings - Fork 360
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
feat: Top collections - landing page v3 #9336
Conversation
✅ Deploy Preview for koda-canary ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
…into issue-9309
no fancy layout talked with @exezbcz on telegram |
@hassnian sure |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be good if we can delete this file
@@ -0,0 +1,37 @@ | |||
.top-collection-card, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Create a shared component instead of shared scss files?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done pls check
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
prefer something like this, then we can inline tailwind classes
<template>
<div
class="top-collection-card w-full border border-card-border-color hover:border-border-color bg-background-color group">
<nuxt-link
class="flex flex-col hover:text-text-color"
rel="nofollow noopener noreferrer"
:to="`${collection?.id && `/${urlPrefix}/collection/${collection.id}`}`">
<div
class="top-collection-card-banner group-hover:opacity-[0.85] bg-center bg-cover"
:style="{ backgroundImage: `url(${collection?.image})` }"
:class="`${!collection && 'bg-k-shade animate-pulse'}`">
<div class="top-collection-card-banner-avatar-container">
<BasicImage
custom-class="top-collection-card-banner-avatar-inner [&>img]:border [&>img]:border-card-border-color !p-0"
:src="collection?.image || placeholder" />
</div>
</div>
<div class="top-collection-card-info border-t border-card-border-color">
<p
class="collection-name font-bold text-base whitespace-nowrap text-center truncate">
<span v-if="collection?.name">{{ collection.name }}</span>
<span v-else class="inline-block">
<NeoSkeleton no-margin :rounded="false" width="160" height="24" />
</span>
</p>
<div class="info-fields">
<div>
<p class="capitalize text-k-grey text-xs">
<span v-if="collection?.floorPrice || collection?.floor">
{{ $t('price') }}
</span>
<NeoSkeleton
v-else
no-margin
:rounded="false"
width="40"
height="12" />
</p>
<div
v-if="collection?.floorPrice || collection?.floor"
class="flex gap-2 items-center max-md:flex-row-reverse">
<CommonTokenMoney
:value="collection.floorPrice || collection.floor"
inline
:round="2" />
<div v-if="formattedDiffPercent" :class="color" class="text-xs">
{{ formattedDiffPercent }}
</div>
</div>
<NeoSkeleton
v-else
no-margin
:rounded="false"
width="80"
height="20"
class="mt-1" />
</div>
<div>
<p class="capitalize text-k-grey text-end text-xs">
<span v-if="collection">{{ $t('volume') }}</span>
<NeoSkeleton
v-else
no-margin
:rounded="false"
width="40"
height="12" />
</p>
<div class="flex gap-2 items-center">
<CommonTokenMoney
v-if="collection"
:value="volume"
inline
:round="1" />
<NeoSkeleton
v-else
no-margin
:rounded="false"
width="80"
height="20" />
</div>
</div>
</div>
</div>
</nuxt-link>
</div>
</template>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
that one is TopCollectionsCard
component
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
oh yeah much cleaner, let me fix it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed 1b02f8f
it does not, ty |
indeed, for me it changed explore-items: explore-items.mp4edit: other than the mentioned above(also affects profile), works for me, not sure of how problematic it is, wdyt @exezbcz ? |
green check for me! good job |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No a fan of DynamicGrid js, should be doable with only css but can be in a follow up.
otherwise lgtm
Quality Gate passedIssues Measures |
Code Climate has analyzed commit 6ddc7ca and detected 0 issues on this pull request. View more on Code Climate. |
related? #9336 (comment)
sure , let's do that |
Thanks! |
😍 Perfect, I’ve sent the payout 🪅 Let’s grab another issue and get rewarded! |
PR Type
Context
Needs Design check
Did your issue had any of the "$" label on it?
Screenshot 📸