From 3cf5ec0403e35179a95f205972bfd42ca7e90304 Mon Sep 17 00:00:00 2001 From: callumalpass Date: Sun, 15 Nov 2026 16:29:05 +1100 Subject: [PATCH] Tidy the site's header, docs type and developer start path MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - One header on every page: wordmark, Search, theme and a boxed Sign up on the top row, the five section links below. Home leaves the list (the wordmark links home). The current section carries a short bar on the lower rule. Below 28rem the links fold behind a Menu button; header controls keep 44px-high targets. - Fix the homepage skip link, whose text matched its box when focused. - Turn off Azeret Mono's ligatures in code ("fırst"), raise code to 14px, and lift the docs sidebar meta, group labels, step numbers and table headers to 12px or more. - Keep paragraphs to about 75 characters a line. - SDK: "Build an app" comes first; the in-memory quickstart is now "Try the SDK in memory" and ends by pointing to the tutorial. "Where to start" opens the overview. - Downloads: mark the packages for the visitor's system and keep the size from wrapping on its own. - Homepage: explain where apps are approved; tab to Pause motion after the content. - Match the docs menu's collapse to the layout breakpoint; add a search shortcut hint; record the header and measure rules in DESIGN.md. --- DESIGN.md | 14 +++- src/components/DocsLayout.astro | 2 +- src/components/SiteHeader.astro | 50 +++++++++--- src/components/SiteSearch.astro | 6 +- src/data/docs-sections.ts | 2 +- src/pages/apps/index.astro | 2 +- src/pages/downloads/index.astro | 22 +++++- src/pages/index.astro | 4 +- src/pages/sdk/index.astro | 75 +++++++++--------- src/pages/sdk/quickstart/index.astro | 12 ++- src/styles/global.css | 20 +++-- src/styles/home.css | 16 ++-- src/styles/shell.css | 110 +++++++++++++++++++++++---- src/styles/spec.css | 2 +- 14 files changed, 245 insertions(+), 92 deletions(-) diff --git a/DESIGN.md b/DESIGN.md index 83ba8b9..bcd99d8 100644 --- a/DESIGN.md +++ b/DESIGN.md @@ -46,9 +46,11 @@ they read against the sky. ## Typography Atkinson Hyperlegible is the reading and display face. Azeret Mono is reserved -for paths, package names, versions, operations, and structural labels. Page -titles are large and regular (about 2.4rem); section headings are 1.3rem -semibold; body text is 17px. Reading columns use a 72ch measure. +for paths, package names, versions, operations, and structural labels, with +ligatures off so code shows every character as typed. Page titles are large +and regular (about 2.4rem); section headings are 1.3rem semibold; body text is +17px. Paragraphs keep to about 75 characters a line (`34em`), and no text +that carries meaning is set below 12px. ## Layout @@ -58,6 +60,12 @@ visible title and lede (`.page-intro`) under a still band of sky at the top right; documentation pages keep their three-column layout. Navigation, buttons, tables, callouts, and footer links remain visually quiet. +The header is the same on every page: the wordmark (the link home), then +Search, the theme control and a boxed "Sign up" on one row, and the five +section links on a ruled row below. The current section is not underlined +and carries a short bar on the lower rule. Below 28rem the section links fold behind a "Menu" button. Header +controls keep a 44px-high target. + ## Motion Only the homepage moves: the sky drifts and the particle field explains the diff --git a/src/components/DocsLayout.astro b/src/components/DocsLayout.astro index 4b5df82..4a387f0 100644 --- a/src/components/DocsLayout.astro +++ b/src/components/DocsLayout.astro @@ -69,7 +69,7 @@ const { label, navLabel, headerCurrent, sourcePath, meta, groups: docGroups } = const docsNavigation = document.querySelector("[data-docs-nav]"); if ( docsNavigation instanceof HTMLDetailsElement - && window.matchMedia("(max-width: 60rem)").matches + && window.matchMedia("(max-width: 68rem)").matches ) { docsNavigation.open = false; } diff --git a/src/components/SiteHeader.astro b/src/components/SiteHeader.astro index c21dbbc..17caa63 100644 --- a/src/components/SiteHeader.astro +++ b/src/components/SiteHeader.astro @@ -8,8 +8,8 @@ interface Props { const { current } = Astro.props; const section = current === "sdk" || current === "runtime" || current === "spec" ? "developers" : current; +// The wordmark is the link home, so the list starts with the product pages. const links = [ - { href: "/", label: "Home", key: "home" }, { href: "/connect/", label: "Connect", key: "connect" }, { href: "/downloads/", label: "Downloads", key: "downloads" }, { href: "/apps/", label: "Apps", key: "apps" }, @@ -18,13 +18,25 @@ const links = [ ] as const; --- -