Skip to content

Commit 35bde15

Browse files
committed
feat: Layout 컴포넌트 개발
1 parent 72db544 commit 35bde15

File tree

2 files changed

+26
-0
lines changed

2 files changed

+26
-0
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import styled from '@emotion/styled';
2+
import { breakpoints } from '@meme_wiki/ui';
3+
4+
const Layout = styled.main`
5+
display: flex;
6+
flex-direction: column;
7+
width: 100%;
8+
height: 100vh;
9+
max-width: ${breakpoints.mobile};
10+
border: 1px solid ${({ theme }) => theme.palette.gray[800]};
11+
margin: 0 auto;
12+
`;
13+
14+
export { Layout };
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
import * as S from './Layout.styles';
2+
3+
interface LayoutProps {
4+
children: React.ReactNode;
5+
layoutStyle?: React.CSSProperties;
6+
}
7+
8+
const Layout = ({ children, layoutStyle }: LayoutProps) => {
9+
return <S.Layout style={layoutStyle}>{children}</S.Layout>;
10+
};
11+
12+
export default Layout;

0 commit comments

Comments
 (0)