How org-45/computer-book-for-kids works
Main Components
a) Frontend Layer (React/Next.js):
• Pages (src/app)
• Home Page
• Dynamic Chapter Pages
• Components (src/components)
• Navigation
• Comments
• UI Elements
• Static Assets (public)
• Images
• Markdown Content
b) Build & Rendering Layer:
• Markdown processing pipeline
• Build-time content generation flow
c) Content Management:
• Markdown files structure (/public/posts)
• Content processing flow
• Static assets management
Data Flow Representation
• Build-time: Markdown → SSG → Static HTML
• Runtime: User → Page Navigation → Dynamic Content Loading
• Static Assets: Public Directory → CDN → Client
Key Technical Elements to Highlight
Create distinct sections for:
• TypeScript Integration
• Tailwind CSS Styling
• Markdown Processing
• Static Site Generation
• Client-side Navigation
┌─────────────────────────────────────────────┐
• Client Browser │
• ┘
• ↑
┌─────────────────────────────────────────────┐
• CDN/Edge Network │
• ┘
• ↑
┌─────────────────────────────────────────────┐
• Next.js Application │
• ┬───────────────────────────┤
• Frontend │ Static Generation │
• Pages │ - Markdown │
• Components │ - Images │
• Routing │ - Assets │
• ┴───────────────────────────┘
Implementation Details
• File-system based routing (/src/app structure)
• Component hierarchy
• Static asset management
• Build process flow