Skip to content

Commit cdae6ab

Browse files
committed
feat: add logo
1 parent 269651c commit cdae6ab

File tree

2 files changed

+6
-9
lines changed

2 files changed

+6
-9
lines changed

apps/developer-hub/src/config/layout.config.tsx

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
import { Logo } from "@pythnetwork/component-library/Header";
12
import type { DocsLayoutProps } from "fumadocs-ui/layouts/docs";
23
import type { BaseLayoutProps } from "fumadocs-ui/layouts/shared";
34

@@ -7,16 +8,8 @@ export const baseOptions: BaseLayoutProps = {
78
nav: {
89
enabled: true,
910
title: (
10-
// todo change the logo here
1111
<>
12-
<svg
13-
width="24"
14-
height="24"
15-
xmlns="http://www.w3.org/2000/svg"
16-
aria-label="Logo"
17-
>
18-
<circle cx={12} cy={12} r={12} fill="currentColor" />
19-
</svg>
12+
<Logo width="1em" height="1em" />
2013
Developer Hub
2114
</>
2215
),

packages/component-library/src/Header/index.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ import { Card } from "../Card/index.jsx";
2020
import { Link } from "../Link/index.jsx";
2121
import type { Link as UnstyledLink } from "../unstyled/Link/index.jsx";
2222

23+
export { default as Logo } from "./logo.svg";
24+
2325
type Props = ComponentProps<"header"> & {
2426
appName: string;
2527
mainCta?:
@@ -239,3 +241,5 @@ export const SupportDrawer = {
239241
</>
240242
),
241243
};
244+
245+
export { default as HeaderLogo } from "./logo.svg";

0 commit comments

Comments
 (0)