feat: Header 추가
This commit is contained in:
parent
02687ba6a0
commit
0d2af6aec6
38
frontend/src/components/Header/Header.jsx
Normal file
38
frontend/src/components/Header/Header.jsx
Normal file
@ -0,0 +1,38 @@
|
||||
import { Link } from 'react-router-dom';
|
||||
import styles from './Header.module.css';
|
||||
|
||||
export default function Header() {
|
||||
return (
|
||||
<header className={styles.header}>
|
||||
<nav className={styles.nav}>
|
||||
<ul className={styles.group}>
|
||||
<li>
|
||||
<Link
|
||||
to={'/'}
|
||||
className={styles.logo}
|
||||
>
|
||||
Logo
|
||||
</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to={'/'}>전체 강의</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to={'/'}>수강중인 강의</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to={'/'}>내 학습</Link>
|
||||
</li>
|
||||
</ul>
|
||||
<ul className={styles.group}>
|
||||
<li>
|
||||
<Link to={'/'}>마이페이지</Link>
|
||||
</li>
|
||||
<li>
|
||||
<Link to={'/'}>로그인</Link>
|
||||
</li>
|
||||
</ul>
|
||||
</nav>
|
||||
</header>
|
||||
);
|
||||
}
|
35
frontend/src/components/Header/Header.module.css
Normal file
35
frontend/src/components/Header/Header.module.css
Normal file
@ -0,0 +1,35 @@
|
||||
.header {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 80px;
|
||||
background-color: var(--background);
|
||||
border-bottom: 1px solid var(--border-color);
|
||||
}
|
||||
|
||||
.nav {
|
||||
display: flex;
|
||||
justify-content: space-between;
|
||||
align-items: center;
|
||||
gap: 20px;
|
||||
width: 100%;
|
||||
max-width: 1320px;
|
||||
padding: 0 40px;
|
||||
margin: 0 auto;
|
||||
font-size: 16px;
|
||||
line-height: 1.4;
|
||||
font-weight: 700;
|
||||
color: var(--text-color);
|
||||
}
|
||||
|
||||
.group {
|
||||
display: flex;
|
||||
align-items: center;
|
||||
gap: 24px;
|
||||
list-style: none;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
}
|
1
frontend/src/components/Header/index.js
Normal file
1
frontend/src/components/Header/index.js
Normal file
@ -0,0 +1 @@
|
||||
export { default as Header } from './Header';
|
Loading…
Reference in New Issue
Block a user