-
Notifications
You must be signed in to change notification settings - Fork 2
/
site-header.tsx
48 lines (46 loc) · 1.52 KB
/
site-header.tsx
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
42
43
44
45
46
47
48
import Link from "next/link"
import { buttonVariants } from "@/components/ui/button"
import { Icons } from "@/components/icons"
import { MainNav } from "@/components/main-nav"
import { ThemeToggle } from "@/components/theme-toggle"
import kit from "@/goldrush.config"
export function Header() {
return (
<header className="bg-background-light dark:bg-background-dark sticky top-0 z-40 w-full border-b">
<div className="container flex h-16 items-center space-x-4 sm:justify-between sm:space-x-0">
<MainNav />
<div className="flex flex-1 items-center justify-end space-x-4">
<nav className="flex items-center space-x-1">
<Link
href={kit.brand.github}
target="_blank"
rel="noreferrer"
>
<div
className={buttonVariants({
size: "icon",
variant: "ghost",
})}
>
<Icons.gitHub className="h-5 w-5" />
<span className="sr-only">GitHub</span>
</div>
</Link>
<Link href="/settings">
<div
className={buttonVariants({
size: "icon",
variant: "ghost",
})}
>
<Icons.Settings className="h-5 w-5" />
<span className="sr-only">Settings</span>
</div>
</Link>
<ThemeToggle />
</nav>
</div>
</div>
</header>
)
}