diff --git a/apps/docs/components/docs/nextui-pro-callout.tsx b/apps/docs/components/docs/nextui-pro-callout.tsx new file mode 100644 index 0000000000..31c7575d81 --- /dev/null +++ b/apps/docs/components/docs/nextui-pro-callout.tsx @@ -0,0 +1,46 @@ +"use client"; + +import {usePostHog} from "posthog-js/react"; +import NextLink from "next/link"; + +export const NextUIProCallout = () => { + const posthog = usePostHog(); + + const handleClick = () => { + posthog.capture("NextUI Pro Banner", { + action: "click", + category: "nextui-callout", + }); + }; + + return ( +
+
+

+ Ship  + + faster + +
+ with beautiful +
+ components +

+

+ Discover 210+ stunning components by NextUI +

+
+
+ +
+ Explore Components +
+
+ +
+ ); +}; diff --git a/apps/docs/components/docs/toc.tsx b/apps/docs/components/docs/toc.tsx index b8f1bd456f..54eb10cd4c 100644 --- a/apps/docs/components/docs/toc.tsx +++ b/apps/docs/components/docs/toc.tsx @@ -6,6 +6,8 @@ import {Divider, Spacer} from "@nextui-org/react"; import {ChevronCircleTopLinearIcon} from "@nextui-org/shared-icons"; import scrollIntoView from "scroll-into-view-if-needed"; +import {NextUIProCallout} from "./nextui-pro-callout"; + import {Heading} from "@/libs/docs/utils"; import {useScrollSpy} from "@/hooks/use-scroll-spy"; import {useScrollPosition} from "@/hooks/use-scroll-position"; @@ -65,64 +67,64 @@ export const DocsToc: FC = ({headings}) => { }, []); return ( -
30 ? "90%" : "100%" - }, transparent 100%)`, - }} - > -

On this page

- +
+ ); };