@@ -8,6 +8,7 @@ import { SiDiscord, SiGithub } from 'react-icons/si';
8
8
import { motion } from 'framer-motion' ;
9
9
import ThemeToggleButton from './ThemeToggleButton' ;
10
10
// import Banner from './Banner';
11
+ import Link from '@docusaurus/Link' ;
11
12
12
13
const products = [
13
14
{
@@ -77,8 +78,8 @@ export default function LandingHeader() {
77
78
< div className = "w-full fixed z-[1000] backdrop-blur-sm bg-white/80 dark:bg-gray-950/80 shadow-sm" >
78
79
< Popover className = "relative bg-opacity-90 z-50 max-w-7xl mx-auto py-3 px-3 sm:px-6 lg:px-8" >
79
80
< div className = "flex items-center justify-between md:justify-start md:space-x-10" >
80
- < a
81
- href = "/"
81
+ < Link
82
+ to = "/"
82
83
className = "flex justify-start items-center gap-2 h-full lg:w-0 lg:flex-1 group !no-underline cursor-pointer w-min"
83
84
onMouseEnter = { ( ) => setHoverLogo ( true ) }
84
85
onMouseLeave = { ( ) => setHoverLogo ( false ) }
@@ -94,7 +95,7 @@ export default function LandingHeader() {
94
95
< div className = "font-semibold text-xl text-blue-500 dark:text-white subpixel-antialiased " >
95
96
Windmill
96
97
</ div >
97
- </ a >
98
+ </ Link >
98
99
< div className = "-my-2 -mr-2 md:hidden" >
99
100
< Popover . Button className = "inline-flex items-center justify-center rounded-md bg-white dark:bg-gray-800 p-2 text-gray-400 dark:text-gray-200 hover:bg-gray-100 hover:text-gray-500 focus:outline-none focus:ring-2 focus:ring-inset focus:ring-blue-500" >
100
101
< span className = "sr-only" > Open menu</ span >
@@ -134,9 +135,9 @@ export default function LandingHeader() {
134
135
< div className = "overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5" >
135
136
< div className = "relative grid gap-6 bg-white dark:bg-gray-800 px-5 py-6 sm:gap-8 sm:p-8" >
136
137
{ products . map ( ( product ) => (
137
- < a
138
+ < Link
138
139
key = { product . name }
139
- href = { product . href }
140
+ to = { product . href }
140
141
className = "-m-3 block rounded-md p-3 hover:bg-gray-50 dark:hover:bg-gray-700 !no-underline"
141
142
target = { product . newtab ? '_blank' : undefined }
142
143
rel = { product . newtab ? 'noopener noreferrer' : undefined }
@@ -147,7 +148,7 @@ export default function LandingHeader() {
147
148
< p className = "mt-1 text-sm text-gray-500 dark:text-gray-300" >
148
149
{ product . description }
149
150
</ p >
150
- </ a >
151
+ </ Link >
151
152
) ) }
152
153
</ div >
153
154
</ div >
@@ -156,19 +157,19 @@ export default function LandingHeader() {
156
157
</ >
157
158
) }
158
159
</ Popover >
159
- < a
160
- href = "/docs/intro"
161
- onClick = { ( ) => window . plausible ( 'read-docs' ) }
160
+ < Link
161
+ to = "/docs/intro"
162
+ onClick = { ( ) => window . plausible ?. ( 'read-docs' ) }
162
163
className = "font-medium text-gray-500 hover:text-gray-900 !no-underline dark:text-gray-200 dark:hover:text-gray-300"
163
164
>
164
165
Docs
165
- </ a >
166
- < a
167
- href = "/pricing"
166
+ </ Link >
167
+ < Link
168
+ to = "/pricing"
168
169
className = "font-medium text-gray-500 hover:text-gray-900 !no-underline dark:text-gray-200 dark:hover:text-gray-300"
169
170
>
170
171
Pricing
171
- </ a >
172
+ </ Link >
172
173
173
174
< a
174
175
href = "https://hub.windmill.dev"
0 commit comments