feat: Header 추가

This commit is contained in:
jhynsoo 2024-07-15 16:52:53 +09:00
parent 02687ba6a0
commit 0d2af6aec6
3 changed files with 74 additions and 0 deletions

View 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>
);
}

View 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;
}

View File

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