-
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.
- Loading branch information
Showing
2 changed files
with
26 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 |
---|---|---|
@@ -1,8 +1,24 @@ | ||
import { useParams } from 'react-router-dom'; | ||
import * as S from './styles'; | ||
import usePDetail from '@/hooks/usePDetail'; | ||
import { DetailImageContainer } from '@/components/DetailImageContainer'; | ||
|
||
export default function DetailPage() { | ||
const { id } = useParams<{ id: string }>(); | ||
const { data } = usePDetail({ mt20id: id }); | ||
|
||
return <S.DetailPage>DetailPage {id}</S.DetailPage>; | ||
return ( | ||
<S.DetailPage> | ||
DetailPage {id} | ||
{/* DetailInfoPanel 넣기 */} | ||
<S.Panel> | ||
<S.Title>공연 예고편</S.Title> | ||
{/* Trailer 넣기 */} | ||
</S.Panel> | ||
<S.Panel> | ||
<S.Title>상세 이미지</S.Title> | ||
<DetailImageContainer detailImgList={data?.dbs?.db.styurls.styurl.map(styurl => ({ src: styurl })) || []} /> | ||
</S.Panel> | ||
</S.DetailPage> | ||
); | ||
} |
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,6 +1,15 @@ | ||
import { H24 } from '@/components/Text'; | ||
import { styled } from 'styled-components'; | ||
|
||
export const DetailPage = styled.div` | ||
margin: 0 auto; | ||
max-width: ${({ theme }) => theme.layout.max_width}; | ||
`; | ||
|
||
export const Title = styled(H24)` | ||
margin-bottom: 20px; | ||
`; | ||
|
||
export const Panel = styled.div` | ||
margin-bottom: 100px; | ||
`; |