From ebbbef15738efd04e1af2987615981f523248af0 Mon Sep 17 00:00:00 2001 From: dbshaejin Date: Thu, 21 Nov 2024 14:20:24 +0900 Subject: [PATCH 1/7] =?UTF-8?q?fix:=20QA=20=EC=B9=B4=ED=85=8C=EA=B3=A0?= =?UTF-8?q?=EB=A6=AC=20padding,=20sort=20=EC=98=B5=EC=85=98=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/page.tsx | 10 +++++++++- src/components/AuctionCategory/CategoryUnit.css.ts | 2 +- 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/app/page.tsx b/src/app/page.tsx index 74830703..defaec12 100644 --- a/src/app/page.tsx +++ b/src/app/page.tsx @@ -15,6 +15,14 @@ export default function Home() { size: 4, }); + const { data: end } = useGetBasicAuctionList({ + title: '', + sort: 'endDate', + direction: 'ASC', + page: 0, + size: 4, + }); + if (!data) return null; return ( @@ -23,7 +31,7 @@ export default function Home() { - + {/* 특정 유저의 상품 모아 놓기(필수 아님) */} {/* */} diff --git a/src/components/AuctionCategory/CategoryUnit.css.ts b/src/components/AuctionCategory/CategoryUnit.css.ts index 02607f77..5b80de37 100644 --- a/src/components/AuctionCategory/CategoryUnit.css.ts +++ b/src/components/AuctionCategory/CategoryUnit.css.ts @@ -56,7 +56,7 @@ export const unitContent = style({ export const unitContentForSpan = style({ cursor: 'pointer', - + padding: '4px 0 4px 4px', ':hover': { fontWeight: '700', }, From 5f138350e683beded098e5385d2d297324deb0c9 Mon Sep 17 00:00:00 2001 From: dbshaejin Date: Thu, 21 Nov 2024 14:32:07 +0900 Subject: [PATCH 2/7] =?UTF-8?q?fix:=20QA=20=EB=B0=98=EC=98=81=20=EA=B2=BD?= =?UTF-8?q?=EB=A7=A4=20=EC=A2=85=EB=A3=8C=20=EC=8B=9C=20=ED=83=80=EC=9D=B4?= =?UTF-8?q?=EB=A8=B8=EB=A5=BC=200?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/AuctionInfo/AuctionCountdown.tsx | 2 +- src/hooks/useCountdownTimer.ts | 7 ++++++- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/components/AuctionInfo/AuctionCountdown.tsx b/src/components/AuctionInfo/AuctionCountdown.tsx index df374785..b06941e9 100644 --- a/src/components/AuctionInfo/AuctionCountdown.tsx +++ b/src/components/AuctionInfo/AuctionCountdown.tsx @@ -11,7 +11,7 @@ interface AuctionCountdownProps { } function AuctionCountdown({ auctionStatus, endTime, setExpired }: AuctionCountdownProps) { - const { isTimeout, day, hour, minute, second } = useCountdownTimer({ endTime }); + const { isTimeout, day, hour, minute, second } = useCountdownTimer({ endTime, auctionStatus }); useEffect(() => { if (auctionStatus === 'CONCLUDED') { diff --git a/src/hooks/useCountdownTimer.ts b/src/hooks/useCountdownTimer.ts index 3cf04fdf..522affe2 100644 --- a/src/hooks/useCountdownTimer.ts +++ b/src/hooks/useCountdownTimer.ts @@ -6,13 +6,14 @@ import calcRemainingTime from '@/utils/calcRemainingTime'; interface UseCountdownTimerProps { endTime: Date | string; + auctionStatus?: string; } const MINUTE_IN_MILLIS = 1000 * 60; const HOUR_IN_MILLIS = MINUTE_IN_MILLIS * 60; const DAY_IN_MILLIS = HOUR_IN_MILLIS * 24; -function useCountdownTimer({ endTime }: UseCountdownTimerProps) { +function useCountdownTimer({ endTime, auctionStatus }: UseCountdownTimerProps) { const [remainingTime, setRemainingTime] = useState(0); useEffect(() => { @@ -40,6 +41,10 @@ function useCountdownTimer({ endTime }: UseCountdownTimerProps) { const second = Math.floor((remainingTime % MINUTE_IN_MILLIS) / 1000) ?? '-'; const isTimeout = remainingTime <= 0; + if (auctionStatus === 'CONCLUDED' || auctionStatus === 'COMPLETE') { + return { isTimeout, remainingTime, day: 0, hour: 0, minute: 0, second: 0 }; + } + return { isTimeout, remainingTime, day, hour, minute, second }; } From d476900d1e98c3d2d9dbf711c8281557ef939e7a Mon Sep 17 00:00:00 2001 From: dbshaejin Date: Thu, 21 Nov 2024 16:50:48 +0900 Subject: [PATCH 3/7] =?UTF-8?q?feat:=20=EB=B0=98=EC=9D=91=ED=98=95=20?= =?UTF-8?q?=EC=A0=81=EC=9A=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../basicauction/[id]/QnAInputSection.css.ts | 20 ++++ src/app/basicauction/[id]/QnAInputSection.tsx | 8 +- src/app/basicauction/[id]/QnAUnit.css.ts | 38 ++++++ .../AuctionInstantBuyConfirmModal.tsx | 4 +- .../MobileSlideNav/MobileSlideNav.css.ts | 109 ++++++++++++++++++ src/components/Modal/Modal.css.ts | 9 +- src/components/Modal/Modal.tsx | 4 +- src/components/Modal/ModalFooter.tsx | 16 ++- src/components/Modal/ModalHeaderFooter.tsx | 4 +- 9 files changed, 194 insertions(+), 18 deletions(-) create mode 100644 src/components/HeaderSection/components/MobileSlideNav/MobileSlideNav.css.ts diff --git a/src/app/basicauction/[id]/QnAInputSection.css.ts b/src/app/basicauction/[id]/QnAInputSection.css.ts index 6dd8ba58..f369346d 100644 --- a/src/app/basicauction/[id]/QnAInputSection.css.ts +++ b/src/app/basicauction/[id]/QnAInputSection.css.ts @@ -47,6 +47,11 @@ export const accordionPostQnAContent = style({ selectors: { '&[data-state="open"]': { padding: '10px 20px', + '@media': { + 'screen and (max-width: 700px)': { + padding: '5px 10px', + }, + }, }, }, }); @@ -139,14 +144,29 @@ export const postQnANoticeSection = style({ display: 'flex', flexDirection: 'column', gap: '10px', + '@media': { + 'screen and (max-width: 700px)': { + marginTop: '15px', + }, + }, }); export const postQnANoticeTitle = style({ fontSize: '14px', fontWeight: 'bold', + '@media': { + 'screen and (max-width: 700px)': { + fontSize: '12px', + }, + }, }); export const postQnANoticeUnit = style({ fontSize: '14px', listStylePosition: 'inside', + '@media': { + 'screen and (max-width: 700px)': { + fontSize: '11px', + }, + }, }); diff --git a/src/app/basicauction/[id]/QnAInputSection.tsx b/src/app/basicauction/[id]/QnAInputSection.tsx index dca3563b..18bb474f 100644 --- a/src/app/basicauction/[id]/QnAInputSection.tsx +++ b/src/app/basicauction/[id]/QnAInputSection.tsx @@ -68,9 +68,11 @@ function QnAInputSection({ id, userId, userEmail }: QnAInputSectionProps) {