mirror of
https://github.com/AtHeartEngineer/website-v2.git
synced 2026-01-09 21:07:55 -05:00
53 lines
1.6 KiB
TypeScript
53 lines
1.6 KiB
TypeScript
import Link from "next/link"
|
|
|
|
import { siteConfig } from "@/config/site"
|
|
import { buttonVariants } from "@/components/ui/button"
|
|
import { Icons } from "@/components/icons"
|
|
import { MainNav } from "@/components/main-nav"
|
|
import { ThemeToggle } from "@/components/theme-toggle"
|
|
|
|
export function SiteHeader() {
|
|
return (
|
|
<header className="sticky top-0 z-40 w-full border-b bg-background">
|
|
<div className="container flex h-16 items-center space-x-4 sm:justify-between sm:space-x-0">
|
|
<MainNav items={siteConfig.mainNav} />
|
|
<div className="flex flex-1 items-center justify-end space-x-4">
|
|
<nav className="flex items-center space-x-1">
|
|
<Link
|
|
href={siteConfig.links.github}
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
>
|
|
<div
|
|
className={buttonVariants({
|
|
size: "sm",
|
|
variant: "ghost",
|
|
})}
|
|
>
|
|
<Icons.gitHub className="h-5 w-5" />
|
|
<span className="sr-only">GitHub</span>
|
|
</div>
|
|
</Link>
|
|
<Link
|
|
href={siteConfig.links.twitter}
|
|
target="_blank"
|
|
rel="noreferrer"
|
|
>
|
|
<div
|
|
className={buttonVariants({
|
|
size: "sm",
|
|
variant: "ghost",
|
|
})}
|
|
>
|
|
<Icons.twitter className="h-5 w-5 fill-current" />
|
|
<span className="sr-only">Twitter</span>
|
|
</div>
|
|
</Link>
|
|
<ThemeToggle />
|
|
</nav>
|
|
</div>
|
|
</div>
|
|
</header>
|
|
)
|
|
}
|