feat: PageLayout 추가
This commit is contained in:
parent
7e8d94727d
commit
ec14c6368d
15
frontend/src/components/Layout/PageLayout.jsx
Normal file
15
frontend/src/components/Layout/PageLayout.jsx
Normal 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>
|
||||
</>
|
||||
);
|
||||
}
|
10
frontend/src/components/Layout/PageLayout.module.css
Normal file
10
frontend/src/components/Layout/PageLayout.module.css
Normal file
@ -0,0 +1,10 @@
|
||||
.body {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
justify-content: space-between;
|
||||
min-height: 100vh;
|
||||
}
|
||||
|
||||
.contents {
|
||||
margin-top: 100px;
|
||||
}
|
1
frontend/src/components/Layout/index.js
Normal file
1
frontend/src/components/Layout/index.js
Normal file
@ -0,0 +1 @@
|
||||
export { default as PageLayout } from './PageLayout';
|
Loading…
Reference in New Issue
Block a user