Skip to content

Commit 6b81d69

Browse files
committed
[Site Header] Tweaks based on feedback
1 parent dbaab3e commit 6b81d69

File tree

2 files changed

+14
-9
lines changed

2 files changed

+14
-9
lines changed

src/components/HeaderDropdowns.tsx

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ import { useState } from "react";
1111
import { PiCaretDownBold } from "react-icons/pi";
1212

1313
const dropdowns = Object.entries({
14-
"API & SDKs": [
15-
{
16-
label: "API documentation",
17-
href: "https://developers.cloudflare.com/api/",
18-
},
19-
{ label: "SDKs", href: "/fundamentals/api/reference/sdks/" },
20-
],
2114
Help: [
2215
{ label: "Help center", href: "https://support.cloudflare.com/" },
2316
{ label: "Cloudflare status", href: "https://www.cloudflarestatus.com/" },
@@ -85,7 +78,19 @@ export default function HeaderDropdownsComponent() {
8578
href="/products/"
8679
className="flex items-center justify-center rounded p-2 font-medium text-black no-underline hover:bg-cl1-white hover:shadow-md dark:hover:bg-cl1-gray-0"
8780
>
88-
Docs Directory
81+
Products
82+
</a>
83+
<a
84+
href="https://developers.cloudflare.com/api/"
85+
className="flex items-center justify-center rounded p-2 font-medium text-black no-underline hover:bg-cl1-white hover:shadow-md dark:hover:bg-cl1-gray-0"
86+
>
87+
APIs
88+
</a>
89+
<a
90+
href="/fundamentals/api/reference/sdks/"
91+
className="flex items-center justify-center rounded p-2 font-medium text-black no-underline hover:bg-cl1-white hover:shadow-md dark:hover:bg-cl1-gray-0"
92+
>
93+
SDKs
8994
</a>
9095
{dropdowns.map((dropdown) => (
9196
<Dropdown key={dropdown[0]} dropdown={dropdown} />

src/components/overrides/Header.astro

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ import HeaderDropdowns from "../HeaderDropdowns.tsx";
2121
href="https://dash.cloudflare.com/"
2222
class="flex items-center justify-center rounded bg-cl1-brand-orange px-6 font-medium text-cl1-black no-underline"
2323
>
24-
Sign up / Log in
24+
Log in
2525
</a>
2626
<div id="social-icons" class="flex items-center gap-4">
2727
<SocialIcons />

0 commit comments

Comments
 (0)