Skip to content

Consolidate site styles and fix site navigation - #56

Merged
olujicz merged 2 commits into
mainfrom
docs/site-improvements
Aug 7, 2026
Merged

Consolidate site styles and fix site navigation#56
olujicz merged 2 commits into
mainfrom
docs/site-improvements

Conversation

@olujicz

@olujicz olujicz commented Aug 7, 2026

Copy link
Copy Markdown
Owner

Review pass over the published site (documentation/), fixing the issues it turned up.

Styles

The four page templates each carried a near-copy of the same CSS, and they had already drifted: different skip-link colours, body line heights, and mobile breakpoints. All of it is now one site.css, scoped by a body class per page type (.page-home, .page-guide, .page-doc). guides.css and the three inline <style> blocks are gone.

Search and metadata

  • The home page had the same H1 and near-identical description as the external monitor guide, so the two competed for one query. Home now has its own H1, title, and description; the guide keeps the exact phrase.
  • FAQPage data on Support, TechArticle data on both guides.
  • lastmod in the sitemap, og:locale and full Open Graph tags on every page.

Navigation

  • The same navigation and footer on every page. Support and Privacy had no link to the guides at all, which is where people troubleshooting DDC/CI land first. Support also gained an inline row linking both guides after the troubleshooting section.
  • The header stacks on small screens so the navigation keeps all four links on one row down to 320 pixels. It previously hid the first link outright.
  • Added a branded 404 page.

Hero screenshot

The menu panel is 300 points wide, so images/image1.png at 600 pixels is already a 2x capture. The site was stretching it to 420 CSS pixels, which is what made it look soft. It now renders at 300 CSS pixels, mapping exactly to the Retina grid, with a stage behind it so the hero column keeps its visual weight.

Accessibility

The Homebrew command blocks were named with an aria-label on the pre, which has no role to hold the name. They are now a role="group" wrapper with the label, and the scrollable pre is keyboard reachable. A copy button is added by script so pages without JavaScript do not show a dead control.

Verification

Ran the Pages prepare step locally and served the result. All internal links resolve, all JSON-LD parses, one H1 per page with no heading-level jumps, no inline styles remain. In the browser: no horizontal scroll from 320 to 1440, no console errors, tab order matches visual order, the copy button writes the correct text, the screenshot renders at an effective 2x or better at every breakpoint, and light and dark both render correctly.

olujicz added 2 commits August 7, 2026 19:52
The four page templates each carried a near-copy of the same CSS, and they
had already drifted apart: different skip-link colours, body line heights,
and mobile breakpoints. Replace all of it with a single site.css, scoped by
a body class per page type.

Other site fixes:

- Give the home page its own H1 and title. It previously duplicated the
  external monitor guide word for word, so the two pages competed for the
  same query.
- Serve the hero screenshot through srcset so a 2x capture can be dropped in
  later. Until images/image1@2x.png exists, the workflow publishes the 1x
  file under the 2x name.
- Use the same navigation and footer everywhere. Support and Privacy had no
  link to the guides at all, which is where people troubleshooting DDC/CI
  land first.
- Stop hiding the first navigation link on small screens. The navigation
  wraps instead.
- Add FAQPage data to Support and TechArticle data to both guides.
- Name the Homebrew command blocks with a group role instead of an aria-label
  on the pre, which carries no role to hold the name, and make them keyboard
  scrollable. A copy button is added by script, so pages without JavaScript
  do not show a dead control.
- Add a branded 404 page.
- Add lastmod to the sitemap and og:locale to every page.
The menu panel is 300 points wide, so images/image1.png at 600 pixels is
already a 2x capture and macOS will not produce a sharper one. The site was
stretching it to 420 CSS pixels, which is what made it look soft.

Render the screenshot at 300 CSS pixels, where it maps exactly to the Retina
grid, and give the figure a stage so the hero column keeps its visual weight
at the smaller image size. This also removes the srcset and the workflow's
optional 2x asset, which cannot exist.

Stack the header on small screens while here. The navigation now has the full
width and keeps all four links on one row down to 320 pixels.
@olujicz
olujicz merged commit a5438c6 into main Aug 7, 2026
7 checks passed
@olujicz
olujicz deleted the docs/site-improvements branch August 7, 2026 18:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant