www: add logo to docs header (#162)

This commit is contained in:
hashrock
2022-04-23 21:05:31 +02:00
committed by GitHub
parent 12a9839cf2
commit b36f2c1a43
3 changed files with 19 additions and 2 deletions
+13 -2
View File
@@ -59,14 +59,25 @@ export default function DocsPage(props: PageProps<Data>) {
);
}
function Logo() {
return (
<a href="/" class={tw`flex mr-2`}>
<img src="/fresh-logo.svg" alt="Fresh logo" width={40} height={40} />
</a>
);
}
function Header() {
const header = tw`mx-auto max-w-screen-lg flex gap-3 justify-between`;
const sidebarButton = tw
`px-4 py-4 md:hidden border(l-2 gray-100) flex items-center hover:bg-gray-50`;
return (
<header class={header}>
<div class={tw`p-4`}>
<Title />
<div class={tw`p-4 flex`}>
<Logo />
<div>
<Title />
</div>
</div>
<label for="docs_sidebar" class={sidebarButton}>
<svg