-
Notifications
You must be signed in to change notification settings - Fork 592
/
DocsHeader.tsx
48 lines (46 loc) · 1.06 KB
/
DocsHeader.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 DocsTitle from "./DocsTitle.tsx";
export default function DocsHeader() {
return (
<div class="bg-green-300">
<header class="mx-auto max-w-screen-lg flex gap-3 justify-between">
<div class="p-4 flex">
<Logo />
<div>
<DocsTitle />
</div>
</div>
<label
for="docs_sidebar"
class="px-4 py-4 md:hidden border(l-2 green-200) flex items-center hover:bg-green-100"
>
<svg
class="h-6 w-6"
stroke="currentColor"
fill="none"
viewBox="0 0 24 24"
>
<path
strokeLinecap="round"
strokeLinejoin="round"
strokeWidth="2"
d="M4 6h16M4 12h16M4 18h7"
>
</path>
</svg>
</label>
</header>
</div>
);
}
function Logo() {
return (
<a href="/" class="flex mr-3 items-center">
<img
src="/logo.svg"
alt="Fresh logo"
width={40}
height={40}
/>
</a>
);
}