Skip to content

Commit fdcfd49

Browse files
committed
use link where relevant
1 parent cad274e commit fdcfd49

File tree

2 files changed

+18
-19
lines changed

2 files changed

+18
-19
lines changed

src/landing/AppSection.tsx

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -114,14 +114,12 @@ const tabs = [
114114
data: [
115115
{
116116
title: 'Database Studio',
117-
description: 'From a SQL resource, display, edit, add rows, delete rows ... and connect to other components.',
117+
description:
118+
'From a SQL resource, display, edit, add rows, delete rows ... and connect to other components.',
118119
icon: Database,
119120
caption: (
120121
<div>
121-
<a
122-
href="/docs/apps/app_configuration_settings/database_studio"
123-
target="_blank"
124-
>
122+
<a href="/docs/apps/app_configuration_settings/database_studio" target="_blank">
125123
From a SQL resource
126124
</a>
127125
, display, edit, add rows, delete rows ... and connect to other components.
@@ -232,7 +230,7 @@ const tabs = [
232230
}
233231
}
234232
]
235-
},
233+
}
236234
];
237235

238236
const examples = [

src/landing/LandingHeader.jsx

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { SiDiscord, SiGithub } from 'react-icons/si';
88
import { motion } from 'framer-motion';
99
import ThemeToggleButton from './ThemeToggleButton';
1010
// import Banner from './Banner';
11+
import Link from '@docusaurus/Link';
1112

1213
const products = [
1314
{
@@ -77,8 +78,8 @@ export default function LandingHeader() {
7778
<div className="w-full fixed z-[1000] backdrop-blur-sm bg-white/80 dark:bg-gray-950/80 shadow-sm">
7879
<Popover className="relative bg-opacity-90 z-50 max-w-7xl mx-auto py-3 px-3 sm:px-6 lg:px-8">
7980
<div className="flex items-center justify-between md:justify-start md:space-x-10">
80-
<a
81-
href="/"
81+
<Link
82+
to="/"
8283
className="flex justify-start items-center gap-2 h-full lg:w-0 lg:flex-1 group !no-underline cursor-pointer w-min"
8384
onMouseEnter={() => setHoverLogo(true)}
8485
onMouseLeave={() => setHoverLogo(false)}
@@ -94,7 +95,7 @@ export default function LandingHeader() {
9495
<div className="font-semibold text-xl text-blue-500 dark:text-white subpixel-antialiased ">
9596
Windmill
9697
</div>
97-
</a>
98+
</Link>
9899
<div className="-my-2 -mr-2 md:hidden">
99100
<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">
100101
<span className="sr-only">Open menu</span>
@@ -134,9 +135,9 @@ export default function LandingHeader() {
134135
<div className="overflow-hidden rounded-lg shadow-lg ring-1 ring-black ring-opacity-5">
135136
<div className="relative grid gap-6 bg-white dark:bg-gray-800 px-5 py-6 sm:gap-8 sm:p-8">
136137
{products.map((product) => (
137-
<a
138+
<Link
138139
key={product.name}
139-
href={product.href}
140+
to={product.href}
140141
className="-m-3 block rounded-md p-3 hover:bg-gray-50 dark:hover:bg-gray-700 !no-underline"
141142
target={product.newtab ? '_blank' : undefined}
142143
rel={product.newtab ? 'noopener noreferrer' : undefined}
@@ -147,7 +148,7 @@ export default function LandingHeader() {
147148
<p className="mt-1 text-sm text-gray-500 dark:text-gray-300">
148149
{product.description}
149150
</p>
150-
</a>
151+
</Link>
151152
))}
152153
</div>
153154
</div>
@@ -156,19 +157,19 @@ export default function LandingHeader() {
156157
</>
157158
)}
158159
</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')}
162163
className="font-medium text-gray-500 hover:text-gray-900 !no-underline dark:text-gray-200 dark:hover:text-gray-300"
163164
>
164165
Docs
165-
</a>
166-
<a
167-
href="/pricing"
166+
</Link>
167+
<Link
168+
to="/pricing"
168169
className="font-medium text-gray-500 hover:text-gray-900 !no-underline dark:text-gray-200 dark:hover:text-gray-300"
169170
>
170171
Pricing
171-
</a>
172+
</Link>
172173

173174
<a
174175
href="https://hub.windmill.dev"

0 commit comments

Comments
 (0)