Closed OmkarPh closed 3 years ago
Deploy preview for layer5ng ready!
Built with commit 44e49ac05d952261db2d7b505b4433ab8492adc1
Hi @Jashpatel1 I realized that react-slick is already in use by component slick.slider.js in reusecore
In the preview, I've shown carousel using both react slick and swiper JS(2nd one)
React slick ( 1st one ) looks better to me.
I tried shifting arrows in Swiper JS outward but it has a overflow hidden property (necessary) which forces to conjest arrows.
Hi @Jashpatel1 I realized that react-slick is already in use by component slick.slider.js in reusecore
In the preview, I've shown carousel using both react slick and swiper JS(2nd one)
React slick ( 1st one ) looks better to me.
I tried shifting arrows in Swiper JS outward but it has a overflow hidden property (necessary) which forces to conjest arrows.
@leecalcote @Nikhil-Ladha @Tanuj22 ^^
I am not seeing any difference in both of them :sweat_smile:. If you say so we can go with the 1st one. Though the arrows are not looking nice currently. Also, the mobile view needs to be taken care of.
I prefer 1st one not because of styling, it can be manipulated as we want ( I'll try to change em and make minimal )
But in 2nd one the arrows and corner cards are so close and pose problems in wider corner cards
Okay, so I have a different opinion here. In mobile, the second is better because of the feel/animation while swiping the cards. But again in desktop view, the animation is better for 1st one, not sure if that can be changed :thinking:
But in 2nd one the arrows and corner cards are so close and pose problems in wider corner cards
I think there should be a way to manipulate that as well, if not directly then you can refer to the class that is being used by inspecting and then add CSS for it. That will work.
But in 2nd one the arrows and corner cards are so close and pose problems in wider corner cards
There were 2 ways to solve this:
Provide a margin for arrows Coz of this, arrows eventually become invisible partially because of hidden overflow.
Reduce size of cards wrapper This cards wrapper width is way more than screen width and overflowed by default in component so modifying its width is useless.
I tried many other things but unsuccessful ☹️
I agree that the 1st one has a smoother, more desirable swiping animation and that we should try to retain this animation whether the 1st or 2nd one is used.
Should i make the arrow of first one like second one? Plain blue or layer5's green
Layer5 green
Can you tell me how to view this on mobile within same network ( not available on PC's ip now ) ? I usually test with dev tools but for proper swipe feeling, wanted to test on my mobile
Note - I've used window object for toggling arrows, dots and no. of cards to show, so reload after changing resolution in dev tools :)
Regarding the first implementation, note that the righthand arrow flickers and half hides itself on hover.
I think we would want to use the colors in the following way?
I think we would want to use the colors in the following way?
@Tanuj22 @Jashpatel1 @leecalcote ^^
I think we would want to use the colors in the following way?
@Tanuj22 @Jashpatel1 @leecalcote ^^
I agree with @Nikhil-Ladha . Rest looks great!. Do remember to take care of the mobile view :)
Is current disabled color ok for arrows? Also, these dots for mobile:
Not sure if we want to keep the dots or not, is there any way to remove them? Also, hide the arrow if it's disabled.
Not sure if we want to keep the dots or not, is there any way to remove them? Also, hide the arrow if it's disabled.
In mobile view, user would generally prefer swiping so I disabled arrows there. Without dots, users might not understand if this is a carousel at all and they can swipe too. So kept dots only for mobile.
In mobile view, user would generally prefer swiping so I disabled arrows there. Without dots, users might not understand if this is a carousel at all and they can swipe too. So kept dots only for mobile.
For mobile view, we might keep that. But not for desktop view. Also, please check the alignment of carousel in mobile view. It's not center aligned.
The mobile view is left ...
The mobile view is left ...
I fixed that, the cards are centred and take up maximum possible space horizontally now.
The mobile view is left ...
I fixed that, the cards are centred and take up maximum possible space horizontally now.
Why I am seeing this :thinking:
Nevermind it was due to directly switching to mobile from desktop view without reloading :sweat_smile:
Also this tablet view is taken care of:
Nevermind it was due to directly switching to mobile from desktop view without reloading
Ya that is a problem due to window obj😅 Do we have anything else that can be used to get innerwidth in gatsby?
Nevermind it was due to directly switching to mobile from desktop view without reloading
Ya that is a problem due to window obj Do we have anything else that can be used to get innerwidth in gatsby?
Not at the top of my head. Will let you know if I find anything
Signed-off-by: OmkarPh omkarphansopkar@gmail.com
Description
This PR fixes #
Notes for Reviewers
Signed commits