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

feat: Added Carousel to PerformersSection in sistent #960

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

Vidit-Kushwaha
Copy link
Contributor

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

  • Yes, I signed my commits.

Signed-off-by: Vidit Kushwaha <viditkushwaha530@gmail.com>
Signed-off-by: Vidit Kushwaha <viditkushwaha530@gmail.com>
Comment on lines +268 to +316

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'
});
Copy link
Contributor

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?

Copy link
Contributor

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants