mirror of
https://github.com/warmbly/warmbly.git
synced 2026-10-13 16:02:42 +00:00
50 lines
1.4 KiB
TypeScript
50 lines
1.4 KiB
TypeScript
import type { BaseLayoutProps } from 'fumadocs-ui/layouts/shared';
|
|
|
|
// The Warmbly mark (same path as site/'s Logo.astro), monochrome via currentColor.
|
|
function Mark() {
|
|
return (
|
|
<svg width="20" height="20" viewBox="0 0 746 764" fill="none" aria-hidden="true">
|
|
<path
|
|
d="M222.805 644.772L186.274 108.881L704.5 451.158L484.5 451.158L245.5 196.158L444 463.5L222.805 644.772Z"
|
|
fill="currentColor"
|
|
/>
|
|
</svg>
|
|
);
|
|
}
|
|
|
|
export function baseOptions(): BaseLayoutProps {
|
|
return {
|
|
nav: {
|
|
url: '/guides/',
|
|
title: (
|
|
<div className="flex items-center gap-2">
|
|
<Mark />
|
|
<span className="font-extrabold tracking-tight text-[15px]">Warmbly</span>
|
|
<span className="text-[15px] font-normal text-fd-muted-foreground">Docs</span>
|
|
</div>
|
|
),
|
|
},
|
|
githubUrl: 'https://github.com/warmbly/warmbly',
|
|
themeSwitch: { mode: 'light-dark' },
|
|
links: [
|
|
{
|
|
text: 'warmbly.com',
|
|
url: 'https://warmbly.com',
|
|
},
|
|
{
|
|
type: 'custom',
|
|
on: 'nav',
|
|
secondary: true,
|
|
children: (
|
|
<a
|
|
href="https://app.warmbly.com"
|
|
className="inline-flex h-8 items-center whitespace-nowrap rounded-full bg-fd-foreground px-3.5 text-[13px] font-medium text-fd-background transition-opacity hover:opacity-85"
|
|
>
|
|
Open dashboard
|
|
</a>
|
|
),
|
|
},
|
|
],
|
|
};
|
|
}
|