diff --git a/public/svg/ic_ circle_arrow_right_42.svg b/public/svg/ic_ circle_arrow_right_42.svg new file mode 100644 index 00000000..7872223f --- /dev/null +++ b/public/svg/ic_ circle_arrow_right_42.svg @@ -0,0 +1,18 @@ + + + + + + + + + + + + + + + + + + diff --git a/src/assets/svgs/IcCircleArrowRight42.tsx b/src/assets/svgs/IcCircleArrowRight42.tsx new file mode 100644 index 00000000..5e1102bf --- /dev/null +++ b/src/assets/svgs/IcCircleArrowRight42.tsx @@ -0,0 +1,52 @@ +import type { SVGProps } from 'react'; +const SvgIcCircleArrowRight42 = (props: SVGProps) => ( + + + + + + + + + + + + + + + + + + +); +export default SvgIcCircleArrowRight42; diff --git a/src/assets/svgs/index.ts b/src/assets/svgs/index.ts index 26b72105..9b95a600 100644 --- a/src/assets/svgs/index.ts +++ b/src/assets/svgs/index.ts @@ -1,3 +1,4 @@ +export { default as IcCircleArrowRight42 } from './IcCircleArrowRight42'; export { default as IcArrowDown20 } from './IcArrowDown20'; export { default as IcArrowRight24 } from './IcArrowRight24'; export { default as IcArrowUp20 } from './IcArrowUp20'; diff --git a/src/pages/designList/components/Carousel.css.ts b/src/pages/designList/components/Carousel.css.ts new file mode 100644 index 00000000..7c47dc5e --- /dev/null +++ b/src/pages/designList/components/Carousel.css.ts @@ -0,0 +1,28 @@ +import { style } from '@vanilla-extract/css'; + +import { flexGenerator } from '@styles/generator.css'; +import { vars } from '@styles/theme.css'; + +export const container = style([ + flexGenerator('row', 'flex-start'), + { + gap: '1.2rem', + overflowX: 'scroll', + }, +]); + +export const imageStyle = style({ + width: '31rem', + height: '31rem', + flexShrink: 0, +}); + +export const moreButtonStyle = style([ + flexGenerator('column'), + { gap: '0.8rem' }, +]); + +export const moreTextStyle = style([ + vars.fonts.body07_r_14, + { color: vars.colors.gray500 }, +]); diff --git a/src/pages/designList/components/Carousel.tsx b/src/pages/designList/components/Carousel.tsx new file mode 100644 index 00000000..e6cb65ea --- /dev/null +++ b/src/pages/designList/components/Carousel.tsx @@ -0,0 +1,50 @@ +import { Image } from '@components'; + +import { IcCircleArrowRight42 } from '@svgs'; + +import { + container, + imageStyle, + moreButtonStyle, + moreTextStyle, +} from './Carousel.css'; + +interface DesignCardDetailType { + cakeId: number; + cakeImageUrl: string; + isLiked: boolean; +} + +interface CarouselProps { + designs: DesignCardDetailType[]; + storeId: number; +} + +const Carousel = ({ designs, storeId }: CarouselProps) => { + const handleButtonClick = () => { + console.log(storeId); + }; + + return ( + + ); +}; + +export default Carousel;