-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[FEAT] 마이페이지 입찰 내역, 경매 출품 내역 구현 (#117)
* feat: 카테고리 mock 데이터 세팅 * feat: 헤더 수정 및 카테고리 헤더 추가 * feat: 헤더 구현 * feat: 임시 좌측 카테고리 구현 * design: searchBar 섹션 이동 * design: chevron 방향 수정 * feat: 카테고리 ui 구현 * feat: api 연동 * chore: 불필요 파일 제거 * chore: 불필요 코드 삭제 * feat: 카테고리 api 연동 * feat: 카테고리 페이지 이동 * feat: getCategory hook 수정 * feat: 카테고리 선택시 색상 변경 * chore: 불필요 로직 필요 * fix: 카테고리 전체보기시 url 수정 * fix: lint 수정 * fix: tsc error * feat: mock 데이터 연결 * fix: 코드 리뷰 반영 * fix: env 파일 재정의 * feat: 베너 로고 파비콘 수정 * feat: 입찰 내역 Collapsible추가 * chore: 링크 수정 * feat: 거래내역 입찰 내역 구현 * chore: 키워드 임시 삭제 * feat: 마이페이지 경매올린 상품 입찰 건 상품 list 렌더링 및 없을 떄 컴포넌트 구현 * fix: button 섹션 수정 * fix: lint 에러 수정 * fix: type 에러 수정 * fix: QA 반영 * fix: tsc 수정
- Loading branch information
Showing
38 changed files
with
725 additions
and
383 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 |
---|---|---|
@@ -0,0 +1,14 @@ | ||
import { useQuery } from '@tanstack/react-query'; | ||
|
||
import { getAuctionHistories } from '@/apis/queryFunctions/User'; | ||
|
||
function useGetAuctionHistories() { | ||
const { data } = useQuery({ | ||
queryKey: ['getAuctionHistories'], | ||
queryFn: () => getAuctionHistories(), | ||
}); | ||
|
||
return { data: data?.result_data }; | ||
} | ||
|
||
export default useGetAuctionHistories; |
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,14 @@ | ||
import { useQuery } from '@tanstack/react-query'; | ||
|
||
import { getBidAuctionHistories } from '@/apis/queryFunctions/User'; | ||
|
||
function useGetBidAuctionHistories() { | ||
const { data } = useQuery({ | ||
queryKey: ['bidAuctionHistories'], | ||
queryFn: () => getBidAuctionHistories(), | ||
}); | ||
|
||
return { data: data?.result_data }; | ||
} | ||
|
||
export default useGetBidAuctionHistories; |
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,15 @@ | ||
import { useQuery } from '@tanstack/react-query'; | ||
|
||
import { getBidAuctionHistoriesUnit } from '@/apis/queryFunctions/User'; | ||
|
||
function useGetBidAuctionHistoriesUnit(auctionId: number | null) { | ||
const { data } = useQuery({ | ||
queryKey: ['bidAuctionHistories', auctionId], | ||
queryFn: () => getBidAuctionHistoriesUnit(auctionId), | ||
enabled: !!auctionId, | ||
}); | ||
|
||
return { data: data?.result_data }; | ||
} | ||
|
||
export default useGetBidAuctionHistoriesUnit; |
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
Binary file not shown.
Binary file not shown.
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
127 changes: 127 additions & 0 deletions
127
src/app/mypage/record/components/BasicBidAuction.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 |
---|---|---|
@@ -0,0 +1,127 @@ | ||
import { style, globalStyle, styleVariants, keyframes } from '@vanilla-extract/css'; | ||
|
||
import colors from '@/styles/color'; | ||
|
||
export const list = style({ | ||
position: 'relative', | ||
display: 'flex', | ||
gap: '15px', | ||
cursor: 'pointer', | ||
padding: '20px 10px', | ||
transition: 'background-color 0.3s, transform 0.2s', | ||
borderBottom: '1px solid rgba(0, 0, 0, 0.1)', | ||
':hover': { | ||
transform: 'scale(1.02)', | ||
}, | ||
}); | ||
|
||
const blinkAnimation = keyframes({ | ||
'0%': { opacity: 1 }, | ||
'50%': { opacity: 0.3 }, | ||
'100%': { opacity: 1 }, | ||
}); | ||
|
||
export const bidding = style({ | ||
fontSize: '12px', | ||
position: 'absolute', | ||
padding: '5px 10px', | ||
borderRadius: '20px', | ||
border: '1.5px solid red', | ||
right: '30px', | ||
top: '20px', | ||
animation: `${blinkAnimation} 1.5s ease-in-out infinite`, | ||
}); | ||
|
||
globalStyle(`${list}:nth-last-child(1)`, { | ||
borderBottom: 'none', | ||
}); | ||
|
||
export const image = style({ | ||
maxWidth: '120px', | ||
width: '100%', | ||
maxHeight: '120px', | ||
height: '100%', | ||
objectFit: 'contain', | ||
borderRadius: '4px', | ||
boxShadow: '0 1px 4px rgba(0, 0, 0, 0.1)', | ||
}); | ||
|
||
export const listRight = style({ | ||
display: 'flex', | ||
width: '100%', | ||
flexDirection: 'column', | ||
alignItems: 'baseline', | ||
gap: '10px', | ||
listStyle: 'none', | ||
}); | ||
|
||
export const bidTitle = style({ | ||
display: 'flex', | ||
justifyContent: 'space-between', | ||
alignItems: 'center', | ||
width: '140px', | ||
fontSize: '15px', | ||
padding: '5px 10px', | ||
borderRadius: '4px', | ||
border: `1px solid ${colors.gray7} `, | ||
cursor: 'pointer', | ||
}); | ||
|
||
export const listName = style({ | ||
fontSize: '14px', | ||
width: '70px', | ||
marginRight: '10px', | ||
fontWeight: '600', | ||
}); | ||
|
||
export const listValue = style({ | ||
fontWeight: '500', | ||
}); | ||
|
||
export const bidStatus = styleVariants({ | ||
default: [ | ||
listValue, | ||
{ | ||
color: 'black', | ||
}, | ||
], | ||
bidding: [ | ||
listValue, | ||
{ | ||
color: 'red', | ||
}, | ||
], | ||
concluded: [ | ||
listValue, | ||
{ | ||
color: 'rgb(35, 167, 80)', | ||
}, | ||
], | ||
defeat: [ | ||
listValue, | ||
{ | ||
color: 'rgb(95, 99, 104)', | ||
}, | ||
], | ||
}); | ||
|
||
export const myBidStatus = styleVariants({ | ||
default: [ | ||
listValue, | ||
{ | ||
color: 'black', | ||
}, | ||
], | ||
concluded: [ | ||
listValue, | ||
{ | ||
color: 'rgb(35, 167, 80)', | ||
}, | ||
], | ||
defeat: [ | ||
listValue, | ||
{ | ||
color: 'rgb(95, 99, 104)', | ||
}, | ||
], | ||
}); |
Oops, something went wrong.