-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathheader.tsx
More file actions
41 lines (39 loc) · 1.7 KB
/
Copy pathheader.tsx
File metadata and controls
41 lines (39 loc) · 1.7 KB
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
36
37
38
39
40
41
import Link from 'next/link';
import { HeaderLink } from '@/components/header-link';
import { MobileMenu } from '@/components/mobile-menu/mobile-menu';
import { ThemeChanger } from '@/components/theme-changer';
import { Routes } from '@/lib/routes';
export function Header() {
return (
<header className="flex flex-col justify-center px-8">
<nav
aria-label="Main"
className="relative mx-auto flex w-full max-w-3xl items-center justify-between border-gray-200 bg-gray-50 bg-opacity-60 pt-8 pb-8 text-gray-900 dark:border-gray-700 dark:bg-gray-900 dark:text-gray-100 sm:pb-16"
>
<a href="#skip" className="skip-nav">
Skip to main content
</a>
<div className="ml-[-0.60rem]">
<MobileMenu />
<HeaderLink href={Routes.Home()} text="Home" />
<HeaderLink href={Routes.Blog()} text="Blog" />
<HeaderLink href={Routes.About()} text="About" />
<HeaderLink href={Routes.Dashboard()} text="Dashboard" />
<HeaderLink href={Routes.Snippets()} text="Snippets" />
<HeaderLink href={Routes.Bookmarks()} text="Bookmarks" />
</div>
<div className="flex items-center justify-center">
<Link
href={Routes.Resume()}
download
title="PDF document. Serhii Shramko - Resume. 105 KB"
className="ml-12 hidden rounded-lg border border-gray-200 p-1 transition-[color,background-color,transform] duration-200 ease-out-expo hover:bg-gray-200 active:scale-[0.97] sm:px-3 sm:py-2 md:inline-block dark:border-gray-800 dark:hover:bg-gray-800"
>
Resume
</Link>
<ThemeChanger />
</div>
</nav>
</header>
);
}