File tree Expand file tree Collapse file tree 2 files changed +26
-0
lines changed
apps/web/src/components/Layout Expand file tree Collapse file tree 2 files changed +26
-0
lines changed Original file line number Diff line number Diff line change 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 } ;
Original file line number Diff line number Diff line change 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 ;
You can’t perform that action at this time.
0 commit comments