Skip to content

Commit 49a707f

Browse files
committed
Replace "Components" link in main nav with "Plus"
1 parent 49b71ea commit 49a707f

File tree

1 file changed

+42
-25
lines changed

1 file changed

+42
-25
lines changed

src/components/header.tsx

Lines changed: 42 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,18 @@ export function Header(props: React.PropsWithChildren) {
144144
Ctrl K
145145
</kbd>
146146
</SearchButton>
147-
{[
148-
["Docs", "/docs"],
149-
["Components", "https://tailwindui.com/?ref=top"],
150-
["Blog", "/blog"],
151-
["Showcase", "/showcase"],
152-
].map(([text, href]) => (
153-
<Link href={href} key={href} className="text-sm/6 text-gray-950 dark:text-white">
154-
{text}
155-
</Link>
156-
))}
147+
<Link href="/docs" className="text-sm/6 text-gray-950 dark:text-white">
148+
Docs
149+
</Link>
150+
<a href="/plus?ref=top" className="text-sm/6 text-gray-950 dark:text-white">
151+
Plus
152+
</a>
153+
<Link href="/blog" className="text-sm/6 text-gray-950 dark:text-white">
154+
Blog
155+
</Link>
156+
<Link href="/showcase" className="text-sm/6 text-gray-950 dark:text-white">
157+
Showcase
158+
</Link>
157159
<Link href="https://github.com/tailwindlabs/tailwindcss" aria-label="GitHub repository">
158160
<GitHubLogo className="size-5 fill-black/40 dark:fill-gray-400" />
159161
</Link>
@@ -190,21 +192,36 @@ export function Header(props: React.PropsWithChildren) {
190192
</IconButton>
191193
</div>
192194
<div className="grid grid-cols-1 gap-1 px-1 pb-1 sm:px-3 sm:pb-3">
193-
{[
194-
["Docs", "/docs"],
195-
["Components", "https://tailwindui.com/?ref=top"],
196-
["Blog", "/blog"],
197-
["Showcase", "/showcase"],
198-
["GitHub", "https://github.com/tailwindlabs/tailwindcss"],
199-
].map(([text, href]) => (
200-
<Link
201-
href={href}
202-
key={href}
203-
className="rounded-lg px-3 py-2 text-xl/9 font-medium text-gray-950 data-active:bg-gray-950/5 dark:text-white dark:hover:bg-white/10"
204-
>
205-
{text}
206-
</Link>
207-
))}
195+
<Link
196+
href="/docs"
197+
className="rounded-lg px-3 py-2 text-xl/9 font-medium text-gray-950 data-active:bg-gray-950/5 dark:text-white dark:hover:bg-white/10"
198+
>
199+
Docs
200+
</Link>
201+
<a
202+
href="/plus/?ref=top"
203+
className="rounded-lg px-3 py-2 text-xl/9 font-medium text-gray-950 data-active:bg-gray-950/5 dark:text-white dark:hover:bg-white/10"
204+
>
205+
Plus
206+
</a>
207+
<Link
208+
href="/blog"
209+
className="rounded-lg px-3 py-2 text-xl/9 font-medium text-gray-950 data-active:bg-gray-950/5 dark:text-white dark:hover:bg-white/10"
210+
>
211+
Blog
212+
</Link>
213+
<Link
214+
href="/showcase"
215+
className="rounded-lg px-3 py-2 text-xl/9 font-medium text-gray-950 data-active:bg-gray-950/5 dark:text-white dark:hover:bg-white/10"
216+
>
217+
Showcase
218+
</Link>
219+
<Link
220+
href="https://github.com/tailwindlabs/tailwindcss"
221+
className="rounded-lg px-3 py-2 text-xl/9 font-medium text-gray-950 data-active:bg-gray-950/5 dark:text-white dark:hover:bg-white/10"
222+
>
223+
GitHub
224+
</Link>
208225
</div>
209226
</DialogPanel>
210227
</Dialog>

0 commit comments

Comments
 (0)