跳到主要内容

src/pages/

Docusaurus page routes.

OVERVIEW

Route definitions for homepage, showcase, download, playground, tutorial, MVP, video, and community features.

WHERE TO LOOK

Public Pages

RouteFilePurpose
/index.tsxHomepage with hero, features
/showcaseshowcase.tsxComponent showcase with design tokens
/downloaddownload.tsxDownload page
/playgroundplayground.tsxInteractive playground
/tutorialtutorial.tsxTutorial listing
/mvpmvp.tsxMVP showcase
/videovideo.tsxVideo content
/debug-authdebug-auth.tsxAuth debugging (dev only)

Community Subdirectory

src/pages/community/ contains authenticated features:

  • auth.tsx - Login/signup page
  • quick-login.tsx - Magic link authentication
  • forgot-password.tsx / reset-password.tsx - Password recovery
  • level-progress.tsx - User level tracking
  • contributions.tsx / contribution-detail.tsx - Contribution listing/detail
  • leaderboard.tsx - Community rankings
  • redemptions.tsx - Points redemption store
  • gifts.tsx - Gift catalog
  • new-contribution.tsx - Submit new contributions
  • admin.tsx - Community admin panel

CONVENTIONS

  • PascalCase components
  • Docusaurus page plugin for route generation
  • Define routes in navigation.config.ts first

ANTI-PATTERNS

  • DO NOT add links not in navigation.config.ts
  • DO NOT hardcode navigation in components