From 77748ae0093ff5bc2b856b5a019c4a4e667e2dbd Mon Sep 17 00:00:00 2001 From: Aditya Arora Date: Thu, 13 Nov 2025 14:45:27 -0500 Subject: [PATCH] feat(dev-hub) Footer --- .../src/components/Footer/index.tsx | 31 ++++++++++++ .../src/components/Root/index.tsx | 48 +++++++++++-------- 2 files changed, 58 insertions(+), 21 deletions(-) create mode 100644 apps/developer-hub/src/components/Footer/index.tsx diff --git a/apps/developer-hub/src/components/Footer/index.tsx b/apps/developer-hub/src/components/Footer/index.tsx new file mode 100644 index 0000000000..2a1743b1d5 --- /dev/null +++ b/apps/developer-hub/src/components/Footer/index.tsx @@ -0,0 +1,31 @@ +"use client"; + +import { OverlayVisibleContext } from "@pythnetwork/component-library/overlay-visible-context"; +import { AlertProvider } from "@pythnetwork/component-library/useAlert"; +import { DrawerProvider } from "@pythnetwork/component-library/useDrawer"; +import type { CSSProperties, ReactNode } from "react"; +import { useState } from "react"; + +type Props = { + children: ReactNode; +}; + +export function FooterProviders({ children }: Props) { + const overlayState = useState(false); + const [offset, setOffset] = useState(0); + + return ( + + + +
+ {children} +
+
+
+
+ ); +} diff --git a/apps/developer-hub/src/components/Root/index.tsx b/apps/developer-hub/src/components/Root/index.tsx index e723ce9fd8..7eecbb5f0a 100644 --- a/apps/developer-hub/src/components/Root/index.tsx +++ b/apps/developer-hub/src/components/Root/index.tsx @@ -1,8 +1,11 @@ import { RootProviders } from "@pythnetwork/component-library/AppShell"; +import { Footer as PythNetworkFooter } from "@pythnetwork/component-library/Footer"; import { NuqsAdapter } from "@pythnetwork/react-hooks/nuqs-adapters-next"; import { RootProvider as FumadocsRootProvider } from "fumadocs-ui/provider"; import type { ReactNode } from "react"; +import { FooterProviders } from "../Footer"; + import "./global.css"; export const TABS = [ @@ -20,28 +23,31 @@ export const Root = ({ children }: Props) => ( - + + {/* commenting out the app body because we don't have the app shell anymore + } + mainCta={{ + label: "Developer Forum", + href: "https://dev-forum.pyth.network/", }} - > - {/* commenting out the app body because we don't have the app shell anymore - } - mainCta={{ - label: "Developer Forum", - href: "https://dev-forum.pyth.network/", - }} - tabs={TABS} - > */} - {children} - {/* */} - + tabs={TABS} + > */} + {children} + + {/* */} + +