-
Notifications
You must be signed in to change notification settings - Fork 135
feat: Added Carousel to PerformersSection in sistent #960
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
Conversation
Signed-off-by: Vidit Kushwaha <viditkushwaha530@gmail.com>
Signed-off-by: Vidit Kushwaha <viditkushwaha530@gmail.com>
Signed-off-by: Vidit Kushwaha <viditkushwaha530@gmail.com>
|
||
export const CarouselContainer = styled('div')({ | ||
display: 'flex', | ||
overflow: 'hidden', | ||
scrollBehavior: 'smooth', | ||
scrollSnapType: 'x mandatory', | ||
gap: '1rem', | ||
padding: '1rem 0', | ||
width: '100%', | ||
'&::-webkit-scrollbar': { | ||
display: 'none' | ||
}, | ||
scrollbarWidth: 'none', | ||
'.carousel-item': { | ||
flex: '0 0 auto', | ||
scrollSnapAlign: 'center', | ||
width: 'auto' | ||
} | ||
}); | ||
|
||
export const CarouselButton = styled('button')(({ theme }) => ({ | ||
position: 'absolute', | ||
top: '50%', | ||
transform: 'translateY(-50%)', | ||
zIndex: '1', | ||
fill: theme.palette.icon.default, | ||
borderColor: theme.palette.border.normal, | ||
border: 'none', | ||
cursor: 'pointer', | ||
padding: '0.5rem', | ||
borderRadius: '50%', | ||
boxShadow: '0 2px 4px rgba(0, 0, 0, 0.2)', | ||
'&:hover': { | ||
fill: theme.palette.icon.secondary | ||
}, | ||
'&:first-of-type': { | ||
left: '-2rem' | ||
}, | ||
'&:last-of-type': { | ||
right: '-2rem' | ||
} | ||
})); | ||
|
||
export const CarouselWrapper = styled('div')({ | ||
display: 'flex', | ||
alignItems: 'center', | ||
width: '100%', | ||
position: 'relative' | ||
}); |
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.
Why in your PR are you not using this new added styled 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.
If it is not used then we don't need that.
@Vidit-Kushwaha adding this to websites' meeting agenda items |
Notes for Reviewers
This PR introduces a carousel component to the top performer cards, enhancing the user experience by allowing seamless navigation through multiple top-performing profiles. The carousel will improve content organization, making it easier for users to view and engage with featured performers.
Screen.Recording.2025-03-04.at.6.01.48.PM.mov
Signed commits