From 1d26dccc4025898e5ff2406bec15229325cdeaa2 Mon Sep 17 00:00:00 2001 From: Johnson Mao <86179381+JohnsonMao@users.noreply.github.com> Date: Sun, 4 Aug 2024 19:21:10 +0800 Subject: [PATCH] feature: carousel v2 component (#402) * feat: add carousel v2 component * chore: update tailwind shadow and style * feat: add carousel v2 to home page * feat: carousel v2 transition animation --- .../shared/Carousel/v2/Carousel.stories.tsx | 47 +++++++ components/shared/Carousel/v2/Carousel.tsx | 93 ++++++++++++++ components/shared/Carousel/v2/index.tsx | 5 + components/shared/Chat/v2/Chat.tsx | 2 +- components/shared/Icon/v2/icons/index.ts | 4 +- pages/index.tsx | 117 +++++++++++++++--- tailwind.config.js | 12 +- 7 files changed, 258 insertions(+), 22 deletions(-) create mode 100644 components/shared/Carousel/v2/Carousel.stories.tsx create mode 100644 components/shared/Carousel/v2/Carousel.tsx create mode 100644 components/shared/Carousel/v2/index.tsx diff --git a/components/shared/Carousel/v2/Carousel.stories.tsx b/components/shared/Carousel/v2/Carousel.stories.tsx new file mode 100644 index 00000000..ec6d9e42 --- /dev/null +++ b/components/shared/Carousel/v2/Carousel.stories.tsx @@ -0,0 +1,47 @@ +import type { Meta, StoryObj } from "@storybook/react"; +import Carousel from "./"; + +const Card = (props: any) => ( +