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(ui): carousel #5 #7

Merged
merged 1 commit into from
Jan 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/ui/lib/Carousel/Carousel.module.scss
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
.base {
height: 200px;
width: 400px;
height: 200px;
overflow: hidden;
.carouselAll {
display: grid;
Expand Down
14 changes: 10 additions & 4 deletions packages/ui/lib/Carousel/Carousel.stories.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,13 @@ const test = (value: number) => {
const styles = {
width: '280px',
height: '280px',
border: '1px solid black',
display: 'flex',
justifyContent: 'center',
alignItems: 'center',
borderRadius: '10px',
fontSize: '40px',
fontWeight: '1000',
boxShadow: '0px 3px 10px #808080',
boxShadow: '0px 3px 10px #e3e3e6',
};

const meta = {
Expand All @@ -39,8 +38,8 @@ const defaultProps: CarouselProps = {};
export const DefaultCarousel: Story = {
args: {
...defaultProps,
width: 300,
height: 300,
width: 400,
height: 400,
CarouselItems: [
{ children: <div style={styles}>1</div> },
{ children: <div style={styles}>2</div> },
Expand All @@ -57,5 +56,12 @@ export const DefaultCarousel: Story = {
export const ExampleCarousel: Story = {
args: {
...defaultProps,
CarouselItems: [
{ children: <div>1</div> },
{ children: <div>2</div> },
{ children: <div>3</div> },
{ children: <div>4</div> },
{ children: <div>5</div> },
],
},
};
Loading