-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
60 additions
and
1 deletion.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
export const PageWrapper = styled.div` | ||
margin: -50px -16px 0 -16px; | ||
padding: 50px 16px 80px 16px; | ||
background-color: ${({ theme }) => theme.PALETTE.GRAY_100}; | ||
display: flex; | ||
flex-direction: column; | ||
gap: 16px; | ||
`; |
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,47 @@ | ||
import { Header } from '@components/shared/Header'; | ||
import { MatchItem } from '@components/shared/MatchItem'; | ||
import { Text } from '@components/shared/Text'; | ||
|
||
import { useHeaderTitle } from '@hooks/useHeaderTitle'; | ||
|
||
import { PageWrapper } from './GamesNearPage.styles'; | ||
|
||
export const GamesNearPage = () => { | ||
const { entryRef, showHeaderTitle } = useHeaderTitle<HTMLDivElement>(); | ||
|
||
return ( | ||
<> | ||
<Header title={showHeaderTitle ? '내 근처 게스트 매치' : ''} /> | ||
<PageWrapper> | ||
<div ref={entryRef}> | ||
{showHeaderTitle || ( | ||
<Text size={20} weight={700}> | ||
내 근처 게스트 매치 | ||
</Text> | ||
)} | ||
</div> | ||
{Array(20) | ||
.fill(null) | ||
.map((_, i) => ( | ||
<MatchItem | ||
key={i} | ||
matchId="1" | ||
startTime={new Date()} | ||
timeMinutes={60} | ||
mainAddress="서울특별시 송파구 송파나루길 206" | ||
memberCount={6} | ||
maxMemberCount={10} | ||
membersProfileImageUrls={[ | ||
'https://picsum.photos/500', | ||
'https://picsum.photos/500', | ||
'https://picsum.photos/500', | ||
'https://picsum.photos/500', | ||
'https://picsum.photos/500', | ||
'https://picsum.photos/500', | ||
]} | ||
/> | ||
))} | ||
</PageWrapper> | ||
</> | ||
); | ||
}; |
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 @@ | ||
export * from './GamesNearPage'; |
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