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
Binary file not shown.

Before

Width:  |  Height:  |  Size: 18 KiB

After

Width:  |  Height:  |  Size: 22 KiB

+6
View File
@@ -0,0 +1,6 @@
<svg width="40" height="40" viewBox="0 0 40 40" fill="none" xmlns="http://www.w3.org/2000/svg">
<path d="M34.0917 8.84524C38.9286 20.6518 34.0917 27 30 30.5C31 34 27.0143 34.722 25.5 33C21.0433 34.5368 11.9875 34.4875 5.5 28C2 24.5 4.7308 16.7139 14 11.5C22 7 30 4.5 34.0917 8.84524Z" fill="#FFDB1E"/>
<path d="M14 11.5C20.8476 7.00325 29.025 5.11919 32.3678 8.03042C37.5 12.5 21.5 22.6116 15.5 25C9 27.5875 12.5 33.5 9 33.5C6 33.5 6.5 29.5 3.81696 25.7499C2.23241 23.5352 6.15993 16.6485 14 11.5Z" fill="white" stroke="#FFDB1E"/>
<path d="M28.5346 8.77191C33.1798 10.0224 28.17 14.4667 24.2319 17.3078C20.5 20 17.6264 21.518 16.309 22.1382C15.9427 22.3107 14.6919 19.886 14.6919 21.1382C14.6919 21.5551 13.992 23.3763 13.7575 23.4641C12.393 23.9755 9.53467 24.7533 7.92324 24.7533C4.43179 24.7533 6 20 10.9375 15.6319C11.8293 14.843 12.4147 14.9874 13.2204 14.9874C12.6833 14.2139 12.6865 14.0698 13.6233 13.4405C17.789 10.6418 23 8.77191 25.2119 8.4209C25.578 8.43491 26.0317 8.77191 26.0317 9.04977C26.4416 8.91082 28.1273 8.66229 28.5346 8.77191Z" fill="#FFE600"/>
<path d="M14.2975 16.4906C15.2816 15.7429 15.9414 15.4802 16.3956 13.9644C16.9621 14.0852 17.2375 13.8849 17.6868 13.2627C18.0104 13.7291 19.3428 13.8714 20.1393 13.9644C19.4237 14.4155 19.0817 14.8162 18.6868 16.0695C17.2226 15.4585 15.5199 15.7678 14.2975 16.4906Z" fill="white"/>
</svg>

After

Width:  |  Height:  |  Size: 1.3 KiB