-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #105 from YAPP-Github/feature/FE-069
Feature/fe-069 메인페이지 반응형 적용 및 필터 추가
- Loading branch information
Showing
45 changed files
with
903 additions
and
91 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import { useSuspenseQuery } from '@suspensive/react-query'; | ||
import { boardAPI } from '@/api/board/api'; | ||
import { boardKeys } from '@/api/board/queryKeys'; | ||
|
||
const useBoardRegions = () => useSuspenseQuery(boardKeys.regions(), () => boardAPI.getBoardRegions()); | ||
|
||
export default useBoardRegions; |
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,5 +1,6 @@ | ||
export const boardKeys = { | ||
all: ['board'] as const, | ||
list: () => [...boardKeys.all, 'list'] as const, | ||
list: (cityId?: number, provinceId?: number) => [...boardKeys.all, 'list', cityId, provinceId] as const, | ||
detail: (boardId: number) => [...boardKeys.all, 'detail', boardId] as const, | ||
regions: () => [...boardKeys.all, 'regions'] as const, | ||
}; |
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,7 +1,34 @@ | ||
'use client'; | ||
|
||
const error = () => { | ||
return <div>error</div>; | ||
import { Header } from '@/components/server'; | ||
import { useIsMobile } from '@/hooks'; | ||
import { BottomButton, Button, Content, ErrorMessage } from '@/components'; | ||
import { useRouter } from 'next/navigation'; | ||
|
||
const ErrorPage = ({ reset }: { reset: () => void }) => { | ||
const router = useRouter(); | ||
const isMobile = useIsMobile(); | ||
|
||
const handleClickRetry = () => { | ||
reset(); | ||
router.push('/'); | ||
}; | ||
|
||
return ( | ||
<> | ||
<Header actionRequired={false} /> | ||
<Content> | ||
<ErrorMessage title="에러가 발생했습니다." subTitle="다시 한번 시도해 주세요."> | ||
{!isMobile && ( | ||
<Button size="large" onClick={handleClickRetry}> | ||
홈으로 돌아가기 | ||
</Button> | ||
)} | ||
<BottomButton onClick={handleClickRetry}>홈으로 돌아가기</BottomButton> | ||
</ErrorMessage> | ||
</Content> | ||
</> | ||
); | ||
}; | ||
|
||
export default error; | ||
export default ErrorPage; |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,29 @@ | ||
import { style } from '@vanilla-extract/css'; | ||
import { themeTokens } from '@/styles/theme.css'; | ||
import { screenMQ, themeTokens } from '@/styles/theme.css'; | ||
|
||
const { space } = themeTokens; | ||
|
||
export const listGrid = style({ | ||
display: 'grid', | ||
gridTemplateColumns: '1fr 1fr', | ||
gap: space['2xl'], | ||
|
||
'@media': { | ||
[screenMQ.m]: { | ||
padding: `0 ${space['2xl']}`, | ||
justifyContent: 'center', | ||
gridTemplateColumns: '1fr', | ||
gap: space['md'], | ||
}, | ||
}, | ||
}); | ||
|
||
export const noBoard = style({ | ||
flexGrow: 1, | ||
height: '100%', | ||
display: 'flex', | ||
justifyContent: 'center', | ||
alignItems: 'center', | ||
flexDirection: 'column', | ||
gap: space.lg, | ||
}); |
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
Oops, something went wrong.