www: add showcase page (#699)
Co-authored-by: Luca Casonato <hello@lcas.dev>
This commit is contained in:
co-authored by
Luca Casonato
parent
28ae07da35
commit
8e9658cae5
@@ -0,0 +1,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>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user