-
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.
- Loading branch information
Showing
2 changed files
with
66 additions
and
0 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
frontend/src/components/layouts/ReviewLinkManagementLayout/index.tsx
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,18 @@ | ||
import * as S from './styles'; | ||
|
||
interface ReviewLinkManagementLayoutProps { | ||
leftContent: React.ReactNode; | ||
rightContent: React.ReactNode; | ||
} | ||
|
||
const ReviewLinkManagementLayout = ({ leftContent, rightContent }: ReviewLinkManagementLayoutProps) => { | ||
return ( | ||
<S.Layout> | ||
<S.LeftWrapper>{leftContent}</S.LeftWrapper> | ||
<S.Separator /> | ||
<S.RightWrapper>{rightContent}</S.RightWrapper> | ||
</S.Layout> | ||
); | ||
}; | ||
|
||
export default ReviewLinkManagementLayout; |
48 changes: 48 additions & 0 deletions
48
frontend/src/components/layouts/ReviewLinkManagementLayout/styles.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,48 @@ | ||
import styled from '@emotion/styled'; | ||
|
||
import media from '@/utils/media'; | ||
|
||
export const Layout = styled.section` | ||
width: 100%; | ||
display: flex; | ||
${media.small} { | ||
flex-direction: column; | ||
padding: 0 3rem; | ||
} | ||
`; | ||
|
||
export const LeftWrapper = styled.div` | ||
width: 30%; | ||
padding: 10rem 0; | ||
${media.small} { | ||
width: 100%; | ||
} | ||
`; | ||
|
||
export const Separator = styled.div` | ||
width: 0.1rem; | ||
min-height: calc(100vh - 13rem); // 전체 영역에서 헤더와 푸터 영역 제외 | ||
background-color: ${({ theme }) => theme.colors.lightGray}; | ||
margin: 0 10rem; | ||
${media.small} { | ||
display: none; | ||
} | ||
`; | ||
|
||
export const RightWrapper = styled.div` | ||
width: 70%; | ||
padding: 10rem 0; | ||
${media.small} { | ||
width: 100%; | ||
} | ||
`; |