Skip to content

Revamps docs landing page and component overview - #335

Merged
razorfever merged 10 commits into
mainfrom
development
Nov 26, 2026
Merged

razorfever merged 10 commits into
mainfrom
development

Conversation

@razorfever

Copy link
Copy Markdown
Contributor

This change introduces a comprehensive landing page at the root (/) of the documentation site, replacing the previous bare component grid. The component overview is moved to /components and significantly enhanced with visual previews and logical grouping. The site's navigation is also updated to reflect these component groups, and overall site branding and SEO are improved.

Changes Made

  • New Landing Page (/): A dedicated page to pitch the CSC Design System, featuring an interactive demo card, key benefits, and a "Getting Started" snippet.
  • Enhanced Component Overview (/components): The component listing is now organized by logical groups and includes live visual previews for each standalone component, supporting both light and dark modes.
  • Grouped Side Navigation: The documentation's side navigation now lists components under logical groups for improved discoverability.
  • Automated Component Previews: New scripts automatically generate and update component preview images, with CI checks to ensure they remain consistent with the latest component renders.
  • Improved SEO & Branding: Adds a new favicon, Open Graph image, and comprehensive SEO metadata. The site's typeface is updated to Noto Sans, self-hosted for performance and brand consistency.
  • Glossary Updates: Clarifies definitions for CSC Design System, CSC UI, Component group, and Component preview in CONTEXT.md.
  • Layout Refactoring: Extracts AppToolbar, AppSideNavigation, and AppFooter into reusable components and introduces default and landing layouts to structure the site.
  • New Tests: Adds Vitest tests for the landing page's interactive elements and ensures the integrity of component preview generation and grouping.

Why These Changes?

The previous documentation landing page offered minimal context, making it challenging for new users to understand the value proposition of the CSC Design System. This revamp aims to provide an engaging and informative entry point, guiding users to relevant sections, while also improving the usability and aesthetics of the component catalog itself. The automated previews and CI checks ensure the visual documentation remains accurate and up-to-date with component changes.

Checks

  • Unit tests cover the changes.
  • New/updated documentation is clear and accurate.
  • Code is clean and readable.
  • Dependencies are updated or added as needed.
  • Backward compatibility is maintained.
  • Migrations are provided if necessary.
  • Performance and security are considered.

Relates to docs-landing-page

razorfever and others added 8 commits November 24, 2026 07:01
The site's `/` becomes a landing page: a hero with a live "Request compute
resources" card of form-associated fields, an upgrade strip to the migration
guide, four proof pillars with inline brand colours, a snippet in the reader's
flavor and an overview of the components by group. The component grid moves
to /components, linked from an Overview item in the side navigation.

The page has a `landing` layout (the toolbar, full width, the side navigation
as a drawer at every width); the toolbar, side navigation and footer move out
of app.vue into components the docs layout shares. The site self-hosts Noto
Sans and gains a favicon, a description and Open Graph tags with a generated
og-image.png. A spec covers the hero card and the group map, and the viewport
smoke runs axe on `/` in both theme modes.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`pnpm previews` screenshots each component's example on the generated site in
both theme modes, with pickers and openable fields open, and each card on
/components shows the picture for the current mode. A spec fails when a
standalone component has no pictures or a picture names an unknown tag.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
/components has a section per component group, the side navigation lists the
components under their group's title, and each group card on the landing page
links to its section. Components are listed alphabetically within a group,
which the landing spec checks.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
`pnpm test:previews` (component-previews.mjs --check) re-renders every
component preview from the generated site after the viewport smoke and
compares it with the committed picture through pixelmatch: a picture fails
when any 16px square has more than 5% of its pixels differing (OKLab
threshold 0.05, anti-aliased pixels skipped), so a small component's
one-step token change (23-100% of a square) fails while repeat renders
(0%) pass. CI uploads the fresh pictures on failure. A plain
`pnpm previews` now rewrites only the pictures that no longer match. The
page clock is reset per component, so the time picker no longer shows
whatever minute the run had reached.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@netlify

netlify Bot commented Nov 26, 2026 •

Copy link
Copy Markdown

✅ Deploy Preview for csc-design-system ready!

Name Link
🔨 Latest commit bfd1092
🔍 Latest deploy log https://app.netlify.com/projects/csc-design-system/deploys/6b083620a8eeb02ce88d124c
😎 Deploy Preview https://deploy-preview-335--csc-design-system.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

razorfever and others added 2 commits November 26, 2026 13:36
…hine

The first CI run of `pnpm test:previews` failed 64 of 102 pictures, by up
to 57% of a square, on glyph edges alone: the pinned fonts.conf includes
the system's fontconfig, which turns on subpixel (LCD) text on Ubuntu and
not on Debian, so CI's text had coloured edges. The script now launches
Chromium with --disable-lcd-text. With fontconfig forced to subpixel text
locally the pictures matched CI's within 3% of a square, and with the flag
both that run and a plain one match 102/102, no picture re-taken; the
tolerance is unchanged.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@razorfever
razorfever merged commit e73bf74 into main Nov 26, 2026
8 checks passed
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.

2 participants