Skip to content

Commit

Permalink
feat: 리뷰 링크 관리 페이지 레이아웃 구현
Browse files Browse the repository at this point in the history
  • Loading branch information
soosoo22 committed Dec 27, 2024
1 parent 47e8253 commit 8580927
Show file tree
Hide file tree
Showing 2 changed files with 66 additions and 0 deletions.
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;
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%;
}
`;

0 comments on commit 8580927

Please sign in to comment.