-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathheader.js
35 lines (34 loc) · 1.61 KB
/
header.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
import Link from 'next/link';
import DarkModeToggleButton from './dark-mode-toggle-button';
export default function Header() {
return (
<>
<header className="text-gray-600 body-font">
<div className="container mx-auto flex flex-wrap p-5 flex-col md:flex-row items-center">
<Link href="/" legacyBehavior>
<a className="flex title-font font-medium items-center text-gray-900 mb-4 md:mb-0">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" stroke="currentColor" strokeLinecap="round" strokeLinejoin="round" strokeWidth="2" className="w-10 h-10 text-white p-2 bg-indigo-500 rounded-full" viewBox="0 0 24 24">
<path d="M12 2L2 7l10 5 10-5-10-5zM2 17l10 5 10-5M2 12l10 5 10-5"></path>
</svg>
<span className="ml-3 text-xl">최인영 포트폴리오</span>
</a>
</Link>
<nav className="md:ml-auto flex flex-wrap items-center text-base justify-center">
<Link href="/" legacyBehavior>
<a className="mr-5 hover:text-gray-900">홈</a>
</Link>
<Link href="/projects" legacyBehavior>
<a className="mr-5 hover:text-gray-900">프로젝트</a>
</Link>
<Link href="/" legacyBehavior>
<a className="mr-5 hover:text-gray-900">연락하기</a>
</Link>
{/* <a className="mr-5 hover:text-gray-900">Fourth Link</a> */}
</nav>
{/* 다크모드 토글 버튼 작업해야함 */}
<DarkModeToggleButton/>
</div>
</header>
</>
);
}