diff --git a/src/components/Product/ProductItem/ProductItem.tsx b/src/components/Product/ProductItem/ProductItem.tsx index ebcec338..69923ba0 100644 --- a/src/components/Product/ProductItem/ProductItem.tsx +++ b/src/components/Product/ProductItem/ProductItem.tsx @@ -1,17 +1,10 @@ import { Skeleton } from '@fun-eat/design-system'; import { memo, useState } from 'react'; -import { - container, - preview, - previewWrapper, - productImage, - productName, - productPrice, - summaryWrapper, -} from './productItem.css'; +import { container, previewWrapper, productImage, summaryWrapper } from './productItem.css'; -import { SvgIcon } from '@/components/Common'; +import { SvgIcon, Text } from '@/components/Common'; +import { ellipsis } from '@/styles/common.css'; import { vars } from '@/styles/theme.css'; import type { Product } from '@/types/product'; @@ -39,22 +32,27 @@ const ProductItem = ({ product }: ProductItemProps) => { )}
-

{name}

+ + {name} +
-

{price.toLocaleString('ko-KR')}원

+ {/* 추후 bold로 변경 */} + + {price.toLocaleString('ko-KR')}원 +
- + {averageRating.toFixed(1)} - +
- + {reviewCount} - +
diff --git a/src/components/Product/ProductItem/productItem.css.ts b/src/components/Product/ProductItem/productItem.css.ts index 8533c335..949d5ff3 100644 --- a/src/components/Product/ProductItem/productItem.css.ts +++ b/src/components/Product/ProductItem/productItem.css.ts @@ -12,19 +12,6 @@ export const productImage = style({ aspectRatio: '1 / 1', }); -export const productName = style({ - fontWeight: 600, - lineHeight: 1.4, - whiteSpace: 'nowrap', - overflow: 'hidden', - textOverflow: 'ellipsis', -}); - -export const productPrice = style({ - fontWeight: 500, - lineHeight: 1.4, -}); - export const summaryWrapper = style({ display: 'flex', gap: 12, diff --git a/src/components/Product/ProductList/productList.css.ts b/src/components/Product/ProductList/productList.css.ts index 7d17c4f7..3b85ccd8 100644 --- a/src/components/Product/ProductList/productList.css.ts +++ b/src/components/Product/ProductList/productList.css.ts @@ -2,7 +2,7 @@ import { style } from '@vanilla-extract/css'; export const container = style({ display: 'grid', - gridTemplateColumns: 'repeat(2, 1fr)', + gridTemplateColumns: 'minmax(0, 1fr) 1fr', gridAutoRows: 'auto', columnGap: 10, rowGap: 20, diff --git a/src/components/Product/ProductPreviewList/ProductPreviewList.tsx b/src/components/Product/ProductPreviewList/ProductPreviewList.tsx index e49c5bb7..d86a3959 100644 --- a/src/components/Product/ProductPreviewList/ProductPreviewList.tsx +++ b/src/components/Product/ProductPreviewList/ProductPreviewList.tsx @@ -1,6 +1,6 @@ import { Link } from 'react-router-dom'; -import { container } from './productPreviewList.css'; +import { container, productItemWrapper } from './productPreviewList.css'; import ProductItem from '../ProductItem/ProductItem'; import { PATH } from '@/constants/path'; @@ -23,7 +23,7 @@ const ProductPreviewList = ({ categoryId }: ProductPreviewListProps) => { return (