Skip to content

feat: update header, sidebar, and TOC to match mockup exactly#6

Merged
kristinaquinones merged 3 commits into2025-12-23from
claude/fix-mockup-implementation-IF3Pt
Dec 27, 2025
Merged

feat: update header, sidebar, and TOC to match mockup exactly#6
kristinaquinones merged 3 commits into2025-12-23from
claude/fix-mockup-implementation-IF3Pt

Conversation

@kristinaquinones
Copy link
Contributor

Header changes:

  • Simplified structure to match mockup layout
  • Added header, header-content, logo, logo-mark, header-nav classes
  • Replaced "Get Started" button with "Search" trigger button
  • Added search-trigger with "Search..." text and ⌘K kbd
  • Navigation links: Docs, Examples, GitHub
  • Padding: 12px 0, font-size: 18px for logo

Sidebar changes:

  • Changed from div structure to ul/li elements
  • Removed SVG chevron icons from folder buttons
  • Added sidebar-nav class for lists
  • Simplified folder/link rendering to match mockup
  • Maintained collapsible functionality with cleaner structure

TOC changes:

  • Renamed docs-toc to toc to match mockup
  • Wrapped toc-nav in nav element
  • Changed from div to aside element
  • Removed level-3 class (only using level-2)
  • Simplified structure to match mockup exactly

CSS updates:

  • Added complete header styling (logo, nav-link, search-trigger, kbd)
  • Added sidebar-nav list styling
  • Updated all toc references from docs-toc to toc
  • All styles now match ui-mockup-01-documentation-page.html exactly

Header changes:
- Simplified structure to match mockup layout
- Added header, header-content, logo, logo-mark, header-nav classes
- Replaced "Get Started" button with "Search" trigger button
- Added search-trigger with "Search..." text and ⌘K kbd
- Navigation links: Docs, Examples, GitHub
- Padding: 12px 0, font-size: 18px for logo

Sidebar changes:
- Changed from div structure to ul/li elements
- Removed SVG chevron icons from folder buttons
- Added sidebar-nav class for lists
- Simplified folder/link rendering to match mockup
- Maintained collapsible functionality with cleaner structure

TOC changes:
- Renamed docs-toc to toc to match mockup
- Wrapped toc-nav in nav element
- Changed from div to aside element
- Removed level-3 class (only using level-2)
- Simplified structure to match mockup exactly

CSS updates:
- Added complete header styling (logo, nav-link, search-trigger, kbd)
- Added sidebar-nav list styling
- Updated all toc references from docs-toc to toc
- All styles now match ui-mockup-01-documentation-page.html exactly
Next.js 16 no longer includes the 'next lint' command, so we need to
use ESLint directly with the new flat config format (eslint.config.mjs).

Changes:
- Created eslint.config.mjs with ESLint 9 flat config format
- Removed .eslintrc.json (incompatible with ESLint 9)
- Updated package.json lint script to use "eslint ." instead of "next lint"
- Configured TypeScript ESLint plugin and parser
- Set up proper ignores for build directories and config files
- Added global variables for browser, Node.js, and React environments

The lint command now passes successfully with only warnings (exit code 0).
Test fixes:
- Added aria-label="Table of contents" to TOC nav element
- Fixed HomePage smoke test to match actual content ("Built for developers")
- Updated TOC padding test to check CSS classes instead of inline styles
- Removed unused 'node' parameters from ReactMarkdown component renderers
- Removed unused 'error' parameter in catch block

All tests now pass (122 passed, 0 failed).
Lint passes with only 7 warnings (no errors).
@kristinaquinones kristinaquinones merged commit 22e6c0b into 2025-12-23 Dec 27, 2025
1 check passed
@kristinaquinones kristinaquinones deleted the claude/fix-mockup-implementation-IF3Pt branch January 2, 2026 05:59
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