This is an automated email from the ASF dual-hosted git repository.

piotr pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/iggy-website.git


The following commit(s) were added to refs/heads/main by this push:
     new 4cff49c1 Add missing menus
4cff49c1 is described below

commit 4cff49c16afca82455922e3aca6dc70afe218997
Author: spetz <[email protected]>
AuthorDate: Tue Feb 10 10:39:52 2026 +0100

    Add missing menus
---
 src/components/asf-mobile-links.tsx | 64 +++++++++++++++++++++++++++++++++++++
 src/lib/layout.shared.tsx           |  7 +++-
 2 files changed, 70 insertions(+), 1 deletion(-)

diff --git a/src/components/asf-mobile-links.tsx 
b/src/components/asf-mobile-links.tsx
new file mode 100644
index 00000000..26c25092
--- /dev/null
+++ b/src/components/asf-mobile-links.tsx
@@ -0,0 +1,64 @@
+"use client";
+
+import { useState } from "react";
+import Link from "next/link";
+
+const asfLinks = [
+  { text: "Foundation", url: "https://www.apache.org/"; },
+  { text: "License", url: "https://www.apache.org/licenses/"; },
+  { text: "Events", url: "https://www.apache.org/events/current-event"; },
+  { text: "Security", url: "https://www.apache.org/security/"; },
+  {
+    text: "Sponsorship",
+    url: "https://www.apache.org/foundation/sponsorship.html";,
+  },
+  {
+    text: "Privacy",
+    url: "https://privacy.apache.org/policies/privacy-policy-public.html";,
+  },
+  { text: "Thanks", url: "https://www.apache.org/foundation/thanks.html"; },
+];
+
+export function ASFMobileLinks() {
+  const [open, setOpen] = useState(false);
+
+  return (
+    <div className="border-t border-fd-border pt-2">
+      <button
+        onClick={() => setOpen(!open)}
+        className="flex w-full items-center justify-between rounded-md px-2 
py-1.5 text-sm font-medium text-fd-muted-foreground transition-colors 
hover:text-fd-foreground"
+      >
+        ASF
+        <svg
+          width="10"
+          height="10"
+          viewBox="0 0 10 10"
+          className={`transition-transform ${open ? "rotate-180" : ""}`}
+        >
+          <path
+            d="M2 4l3 3 3-3"
+            fill="none"
+            stroke="currentColor"
+            strokeWidth="1.5"
+            strokeLinecap="round"
+            strokeLinejoin="round"
+          />
+        </svg>
+      </button>
+      {open && (
+        <div className="flex flex-col gap-0.5 pl-2 pt-1">
+          {asfLinks.map((link) => (
+            <Link
+              key={link.url}
+              href={link.url}
+              target="_blank"
+              className="rounded-md px-2 py-1.5 text-sm 
text-fd-muted-foreground transition-colors hover:text-fd-foreground"
+            >
+              {link.text}
+            </Link>
+          ))}
+        </div>
+      )}
+    </div>
+  );
+}
diff --git a/src/lib/layout.shared.tsx b/src/lib/layout.shared.tsx
index 351ae7f8..1429dc0a 100644
--- a/src/lib/layout.shared.tsx
+++ b/src/lib/layout.shared.tsx
@@ -3,6 +3,7 @@ import Image from "next/image";
 import { Logo } from "@/components/logo";
 import { GitHubStars } from "@/components/github-stars";
 import { ASFDropdown } from "@/components/asf-dropdown";
+import { ASFMobileLinks } from "@/components/asf-mobile-links";
 
 const sharedLinks: BaseLayoutProps["links"] = [
   { text: "Docs", url: "/docs" },
@@ -26,7 +27,11 @@ const sharedLinks: BaseLayoutProps["links"] = [
   },
   {
     type: "custom",
-    on: "nav",
+    on: "menu",
+    children: <ASFMobileLinks />,
+  },
+  {
+    type: "custom",
     secondary: true,
     children: <GitHubStars />,
   },

Reply via email to