@@ -5,9 +5,6 @@ import {clsx} from "@nextui-org/shared-utils";
5
5
import { Divider , Spacer } from "@nextui-org/react" ;
6
6
import { ChevronCircleTopLinearIcon } from "@nextui-org/shared-icons" ;
7
7
import scrollIntoView from "scroll-into-view-if-needed" ;
8
- import { usePostHog } from "posthog-js/react" ;
9
-
10
- import { title } from "../primitives" ;
11
8
12
9
import { Heading } from "@/libs/docs/utils" ;
13
10
import { useScrollSpy } from "@/hooks/use-scroll-spy" ;
@@ -67,20 +64,11 @@ export const DocsToc: FC<DocsTocProps> = ({headings}) => {
67
64
} ;
68
65
} , [ ] ) ;
69
66
70
- const posthog = usePostHog ( ) ;
71
-
72
- const handleClick = ( ) => {
73
- posthog . capture ( "NextUI Pro Banner" , {
74
- action : "click" ,
75
- category : "nextui-callout" ,
76
- } ) ;
77
- } ;
78
-
79
67
return (
80
68
< div
81
69
ref = { tocRef }
82
70
className = { clsx (
83
- "fixed w-full max-w-[12rem] flex flex-col gap-4 text-left pb-28 h-[calc(100vh-121px )] scrollbar-hide overflow-y-scroll" ,
71
+ "fixed w-full max-w-[12rem] flex flex-col gap-4 text-left pb-28 h-[calc(100vh-440px )] scrollbar-hide overflow-y-scroll" ,
84
72
isProBannerVisible ? "top-32" : "top-20" ,
85
73
) }
86
74
style = { {
@@ -135,35 +123,6 @@ export const DocsToc: FC<DocsTocProps> = ({headings}) => {
135
123
</ a >
136
124
</ li >
137
125
</ ul >
138
- < div className = "w-full border border-default/60 hover:shadow-inner hover:border-default/80 rounded-md p-2 cursor-pointer" >
139
- < a
140
- className = "flex flex-col items-center"
141
- href = "https://nextui.pro?utm_source=nextui.org& utm_medium = callout "
142
- rel = "noopener noreferrer"
143
- onClick = { handleClick }
144
- >
145
- < div className = "flex flex-col sm:flex-row" >
146
- < h1 className = { title ( { size : "xs" } ) } > Ship </ h1 >
147
- < h1 className = { title ( { size : "xs" , color : "blue" } ) } > faster </ h1 >
148
- </ div >
149
- < div className = "flex flex-col sm:flex-row" >
150
- < h1 className = { title ( { size : "xs" } ) } > with </ h1 >
151
- < h1 className = { title ( { size : "xs" } ) } > beautiful </ h1 >
152
- </ div >
153
- < div className = "flex flex-col sm:flex-row" >
154
- < h1 className = { title ( { size : "xs" } ) } > components</ h1 >
155
- </ div >
156
- < p className = "text-center text-xs m-2 font-medium text-default-500" >
157
- Discover 210+ stunning, responsive components crafted by the NextUI team.
158
- </ p >
159
- < div className = "flex group min-w-[120px] items-center font-semibold text-foreground shadow-sm gap-1.5 relative overflow-hidden rounded-full p-[1px]" >
160
- < span className = "absolute inset-[-1000%] animate-[spin_3s_linear_infinite] bg-[conic-gradient(from_90deg_at_50%_50%,#F54180_0%,#338EF7_50%,#F54180_100%)]" />
161
- < div className = "inline-flex h-full w-full cursor-pointer items-center justify-center rounded-full bg-background group-hover:bg-background/70 transition-background px-3 py-1 text-sm font-medium text-foreground backdrop-blur-3xl" >
162
- Explore Components
163
- </ div >
164
- </ div >
165
- </ a >
166
- </ div >
167
126
</ div >
168
127
) ;
169
128
} ;
0 commit comments