From 448eaed81419b9032f6f462d016fa8412e8c05dc Mon Sep 17 00:00:00 2001 From: Soam Desai Date: Wed, 9 Sep 2026 22:35:39 -0700 Subject: [PATCH 1/8] docs(nav): add Resources and Support menu tabs, restyle tab bar to design pills Docs 3.0 QA: add the Resources and Support dropdown tabs from the new header design (their menus absorb the old global sidebar anchors), separate them from the page tabs with a hairline divider, and restyle the tab bar to the design language: ink labels, black pill for the active tab (inverted in dark mode), no underline indicator, search entry as a quiet bordered pill. --- cspell.json | 1 + docs.json | 59 ++++++++++++++++++++++++------------- tailwind.css | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 123 insertions(+), 20 deletions(-) diff --git a/cspell.json b/cspell.json index 247d844..61daf8c 100644 --- a/cspell.json +++ b/cspell.json @@ -159,6 +159,7 @@ "testnet", "testnets", "thirdweb", + "topbar", "touchpoints", "tunnelmole", "tute", diff --git a/docs.json b/docs.json index 8e3bfc9..05990a4 100644 --- a/docs.json +++ b/docs.json @@ -379,27 +379,46 @@ ] } ] + }, + { + "tab": "Resources", + "menu": [ + { + "item": "World Tech Blog", + "href": "https://world.org/blog?blog_type=world-tech" + }, + { + "item": "Open Source", + "href": "https://github.com/worldcoin" + }, + { + "item": "Whitepaper", + "href": "https://whitepaper.world.org" + }, + { + "item": "Ecosystem", + "href": "https://world.org/ecosystem" + } + ] + }, + { + "tab": "Support", + "menu": [ + { + "item": "Telegram Support Channel", + "href": "https://t.me/worlddevelopersupport" + }, + { + "item": "Email Support", + "href": "mailto:developers@toolsforhumanity.com" + }, + { + "item": "Mini Apps FAQ", + "href": "/mini-apps/more/faq" + } + ] } - ], - "global": { - "anchors": [ - { - "anchor": "Telegram Support Channel", - "href": "https://t.me/worlddevelopersupport", - "icon": "telegram" - }, - { - "anchor": "Email Support", - "href": "mailto:developers@toolsforhumanity.com", - "icon": "envelope" - }, - { - "anchor": "GitHub", - "href": "https://github.com/worldcoin", - "icon": "github" - } - ] - } + ] }, "logo": { "light": "/logo/world-developers.svg", diff --git a/tailwind.css b/tailwind.css index d3bd1ae..7563126 100644 --- a/tailwind.css +++ b/tailwind.css @@ -60,6 +60,89 @@ color: #e5e7eb; /* gray-200 */ } + /* ------------------------------------------------------------------ */ + /* Tab bar (Docs 3.0 header) — pill tabs in the design language: ink */ + /* labels, black pill for the active tab (inverted in dark mode), no */ + /* underline indicator, hairline divider before the menu tabs. */ + /* ------------------------------------------------------------------ */ + #navbar .nav-tabs { + align-items: center; + gap: 4px !important; + } + #navbar .nav-tabs-item { + height: 32px !important; + padding: 6px 14px; + border-radius: 42px; + color: #181818 !important; + transition: background-color 0.15s ease; + } + #navbar .nav-tabs-item:hover { + color: #181818 !important; + background-color: #F3F2F0; + } + #navbar .nav-tabs-item[data-active="true"] { + background-color: #181818; + color: #F9F9F8 !important; + text-shadow: none; + } + #navbar .nav-tabs-item[data-active="true"]:hover { + color: #F9F9F8 !important; + background-color: #181818; + } + /* The theme's active-tab underline indicator */ + #navbar .nav-tabs-item > div.absolute { + display: none; + } + /* Hairline divider between the page tabs and the Resources/Support + menus (the menu tabs render as