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

fix: 4956 move by 3 slides #4967

Merged
merged 9 commits into from
Feb 13, 2023

Conversation

maderi21
Copy link
Contributor

Thank you for your contribution to the KodaDot NFT gallery.

👇 _ Let's make a quick check before the contribution.

PR Type

  • Bugfix
  • Feature
  • Refactoring

Context

Before submitting pull request, please make sure:

  • My contribution builds clean without any errors or warnings
  • I've merged recent default branch -- main and I've no conflicts
  • I've tried to respect high code quality standards
  • I've didn't break any original functionality
  • I've posted a screenshot of demonstrated change in this PR

Optional

  • I've tested it at </bsx/collection>
  • I've tested PR on mobile
  • I've written unit tests 🧪
  • I've found edge cases

Had issue bounty label?

  • Fill up your KSM address: Payout

Community participation

Screenshot 📸

  • My fix has changed something on UI; a screenshot is best to understand changes for others.
Urban.23._.Low.Carbon.NFTs.-.Google.Chrome.2023-02-10.16-39-06.mp4

@maderi21 maderi21 requested a review from a team as a code owner February 10, 2023 15:40
@maderi21 maderi21 requested review from roiLeo and vikiival and removed request for a team February 10, 2023 15:40
@kodabot
Copy link
Collaborator

kodabot commented Feb 10, 2023

SUCCESS @maderi21 PR for issue #4956 which is assigned to you. Please wait for review and don't hesitate to grab another issue in the meantime!

@netlify
Copy link

netlify bot commented Feb 10, 2023

Deploy Preview for koda-nuxt ready!

Name Link
🔨 Latest commit 231fed7
🔍 Latest deploy log https://app.netlify.com/sites/koda-nuxt/deploys/63e9ef35e94c5a000835d44c
😎 Deploy Preview https://deploy-preview-4967--koda-nuxt.netlify.app/
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@exezbcz
Copy link
Member

exezbcz commented Feb 11, 2023

hey hey, good job

Lets remove the carousel indicator, now its misleading on which stage of the carousel you are and it does not even work on dark mode :D

Next thing are the arrows.

  • hide them when you reach the end

I suppose we'll apply this behavior to all carousels.

@yangwao yangwao mentioned this pull request Feb 11, 2023
@maderi21
Copy link
Contributor Author

@exezbcz arrows are hiding now at the end, I'm only not sure about the last sentence

I suppose we'll apply this behavior to all carousels.

I've applied the arrow hiding to all carousels, however the slideIndex is set to 3 only for gallery item, quote from the issue spec:

Now I would suggest try it just at gallery item for now.

One note, maybe it would be good idea to set the sliding not based on an arbitrary number (3) but on the perView setting based on the breakpoints:

breakpoints: {
      '(min-width: 640px)': {
        slides: { perView: 1.5, spacing: 32 },
      },
      '(min-width: 768px)': {
        slides: { perView: 2.5, spacing: 32 },
      },
      '(min-width: 1024px)': {
        slides: { perView: 3, spacing: 32 },
      },
      '(min-width: 1280px)': {
        slides: { perView: 4, spacing: 32 },
      },
    },

set at 3 for now though, let me know if more adjustments are needed.

@exezbcz
Copy link
Member

exezbcz commented Feb 12, 2023

@exezbcz arrows are hiding now at the end, I'm only not sure about the last sentence

I suppose we'll apply this behavior to all carousels.

I've applied the arrow hiding to all carousels, however the slideIndex is set to 3 only for gallery item, quote from the issue spec:

Now I would suggest try it just at gallery item for now.

One note, maybe it would be good idea to set the sliding not based on an arbitrary number (3) but on the perView setting based on the breakpoints:

breakpoints: {
      '(min-width: 640px)': {
        slides: { perView: 1.5, spacing: 32 },
      },
      '(min-width: 768px)': {
        slides: { perView: 2.5, spacing: 32 },
      },
      '(min-width: 1024px)': {
        slides: { perView: 3, spacing: 32 },
      },
      '(min-width: 1280px)': {
        slides: { perView: 4, spacing: 32 },
      },
    },

set at 3 for now though, let me know if more adjustments are needed.

yup, correct, looks ok

We will put it on the landing page as well. The spec was restricted to gallery so we can decide whether its better :D

Changes:

  • Can we add an opacity animation to the arrow so it doesn't disappear instantly?

otherwise good, nice job!

@maderi21
Copy link
Contributor Author

Can we add an opacity animation to the arrow so it doesn't disappear instantly?

added 👍

Copy link
Contributor

@roiLeo roiLeo left a comment

Choose a reason for hiding this comment

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

Wouldn't it be better to create a step prop for CarouselIndex?
So that we can easily change the value

components/carousel/module/CarouselAgnostic.vue Outdated Show resolved Hide resolved
@codeclimate
Copy link

codeclimate bot commented Feb 13, 2023

Code Climate has analyzed commit 231fed7 and detected 0 issues on this pull request.

View more on Code Climate.

Copy link
Contributor

@roiLeo roiLeo left a comment

Choose a reason for hiding this comment

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

✅ wfm

@roiLeo roiLeo added the S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked label Feb 13, 2023
@yangwao
Copy link
Member

yangwao commented Feb 13, 2023

pay 60 usd

@yangwao yangwao merged commit 264ed01 into kodadot:main Feb 13, 2023
@yangwao
Copy link
Member

yangwao commented Feb 13, 2023

😍 Perfect, I’ve sent the payout
💵 $60 @ 30.69 USD/KSM ~ 1.955 $KSM
🧗 JHJGu2aWyAFBfcso8bR7ma82p15YAavyN6vQfJyWuhniNGa
🔗 0x377309e03da58dca69f07bd9e0358102b73d61ae19bb0d06bfb5810626b6cb01

🪅 Let’s grab another issue and get rewarded!
🪄 github.com/kodadot/nft-gallery/issues

@yangwao yangwao added the paid pull-request has been paid label Feb 13, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
paid pull-request has been paid S-works-for-me-✅ qa-guild has tested PR from end user perspective and functionality worked
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Scrolling carousel by whole page
5 participants