forked from Nutlope/llamacoder
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathHeader.tsx
25 lines (24 loc) · 858 Bytes
/
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
import Image from "next/image";
import Link from "next/link";
import logo from "../public/logo.png";
import GithubIcon from "./github-icon";
export default function Header() {
return (
<header className="relative mx-auto mt-5 flex w-full items-center justify-center px-2 pb-7 sm:px-4">
<Link href="/" className="absolute flex items-center gap-2">
<Image alt="header text" src={logo} className="h-5 w-5" />
<h1 className="text-xl tracking-tight">
<span className="text-blue-600">Llama</span>Coder
</h1>
</Link>
<a
href="https://github.com/nutlope/llamacoder"
target="_blank"
className="ml-auto hidden items-center gap-3 rounded-2xl bg-white px-6 py-2 sm:flex"
>
<GithubIcon className="h-4 w-4" />
<span>GitHub Repo</span>
</a>
</header>
);
}