-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* refactor: recipeItem 디자인 수정 * feat: disk 아이콘 추가 * refactor: type 및 속성 원상복구 * feat: recipeProductButton 구현 * refactor: recipeProductButton 컴포넌트 추가 * refactor: 스타일 재구성 및 바닐라 마이그레이션 진행 * refactor: 스크롤, 레시피 작성 버튼 스타일 변경 * refactor: recipe 컴포넌트 스타일 수정 * refactor: product type 추가 * refactor: recipe page layout 변경 * refactor: sort button 디자인 수정 및 바닐라 마이그레이션 * feat: arrowUpDown 추가 * refactor: favoriteCount type 추가 * refactor: recipe page 디자인 변경 * feat: ProductOverviewList 구현 * refactor: type 및 데이터 값 변경 * refactor: 빠진 속성, 띄어쓰기 추가 * refactor: 사용한 상품 바텀시트 구현 * refactor: productOverviewList로 대체 * refactor: 링크 이동 기능 내부 버튼에는 적용 안되도록 수정 * chore: lint 적용 * refactor: null ??로 처리 * chore: 잘못 작성한 코드 삭제 * refactor: recipe product type 정의 * refactor: 스켈레톤 조건 추가 * refactor: 간격 디자인 수정 * refactor: member가 아닐 때는 button -> div로 변경 * refactor: favorite count 삭제 * refactor: 상품 상세 변경 * refactor: 스크롤 높이 적용
- Loading branch information
Showing
42 changed files
with
643 additions
and
387 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,11 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const container = style({ | ||
position: 'sticky', | ||
// 임의로 작성한 값. 추후 수정 예정 | ||
bottom: 100, | ||
right: 20, | ||
width: 40, | ||
height: 40, | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
background: '#F9F9F9', | ||
borderRadius: '50%', | ||
float: 'right', | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const container = style({ | ||
display: 'flex', | ||
alignItems: 'center', | ||
gap: 2, | ||
color: '#3D3D3D', | ||
fontSize: 14, | ||
fontWeight: 600, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
src/components/Product/ProductOverviewList/ProductOverviewList.stories.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import type { Meta, StoryObj } from '@storybook/react'; | ||
|
||
import ProductOverviewList from './ProductOverviewList'; | ||
|
||
import mockProducts from '@/mocks/data/recipes.json'; | ||
|
||
const meta: Meta<typeof ProductOverviewList> = { | ||
title: 'product/ProductOverviewList', | ||
component: ProductOverviewList, | ||
args: { | ||
products: mockProducts.recipes[0].products, | ||
}, | ||
}; | ||
|
||
export default meta; | ||
type Story = StoryObj<typeof meta>; | ||
|
||
export const Default: Story = {}; |
27 changes: 27 additions & 0 deletions
27
src/components/Product/ProductOverviewList/ProductOverviewList.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import { Link } from 'react-router-dom'; | ||
|
||
import { container } from './productOverviewList.css'; | ||
import ProductOverviewItem from '../ProductOverviewItem/ProductOverviewItem'; | ||
|
||
import { PATH } from '@/constants/path'; | ||
import type { Product } from '@/types/product'; | ||
|
||
interface ProductOverviewListProps { | ||
products: Product[]; | ||
} | ||
|
||
const ProductOverviewList = ({ products }: ProductOverviewListProps) => { | ||
return ( | ||
<ul className={container}> | ||
{products.map(({ id, image, name, price, averageRating }) => ( | ||
<li key={id}> | ||
<Link to={`${PATH.PRODUCT_LIST}/detail/${id}`}> | ||
<ProductOverviewItem image={image} name={name} price={price} rate={averageRating} /> | ||
</Link> | ||
</li> | ||
))} | ||
</ul> | ||
); | ||
}; | ||
|
||
export default ProductOverviewList; |
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
7 changes: 4 additions & 3 deletions
7
src/components/Rank/RecipeRankingList/recipeRankingList.css.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
|
||
export const container = style({ | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
display: 'grid', | ||
gridTemplateColumns: 'repeat(2, 1fr)', | ||
gridAutoRows: 'auto', | ||
columnGap: 10, | ||
rowGap: 20, | ||
flexWrap: 'wrap', | ||
padding: '0 20px', | ||
}); |
Oops, something went wrong.