Skip to content

Commit

Permalink
Merge pull request #7 from BQXBQX/dev-bqx
Browse files Browse the repository at this point in the history
feat(ui): carousel #5
  • Loading branch information
BQXBQX authored Jan 29, 2024
2 parents b0edba4 + 6d452ce commit 6a58363
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 5 deletions.
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> },
],
},
};

0 comments on commit 6a58363

Please sign in to comment.