feat: PageLayout 추가

This commit is contained in:
jhynsoo 2024-07-15 16:53:25 +09:00
parent 7e8d94727d
commit ec14c6368d
3 changed files with 26 additions and 0 deletions

View File

@ -0,0 +1,15 @@
import { Footer } from '../Footer';
import { Header } from '../Header';
import styles from './PageLayout.module.css';
export default function PageLayout({ children }) {
return (
<>
<Header />
<div className={styles.body}>
<div className={styles.contents}>{children}</div>
<Footer />
</div>
</>
);
}

View File

@ -0,0 +1,10 @@
.body {
display: flex;
flex-direction: column;
justify-content: space-between;
min-height: 100vh;
}
.contents {
margin-top: 100px;
}

View File

@ -0,0 +1 @@
export { default as PageLayout } from './PageLayout';