How tanselberkant/personalwebapp works
Main Components
A. Frontend Layer:
• Next.js Application (Client-Side)
• Pages/Routes (/dashboard, /posts, /resume)
• Components (Layout, Home, Dashboard, Posts, Resume)
• Client-Side Utilities
B. Backend Layer:
• Next.js API Routes
• Sanity CMS Integration
• GitHub API Integration
C. External Services:
• Sanity.io (Headless CMS)
• GitHub API
• Content Delivery Network (for images/assets)
┌─────────────────────────────────────┐
• Client Layer │
• (Next.js Pages & React Components) │
• ┘
• ↕
┌─────────────────────────────────────┐
• Application Layer │
• (Next.js API & Sanity Client) │
• ┘
• ↕
┌─────────────────────────────────────┐
• External Services │
• (Sanity CMS & GitHub API) │
• ┘
Component Details
• Blue: Next.js/React components
• Green: Data services (Sanity, GitHub)
• Orange: API layers
• Purple: External services
Key Relationships to Highlight
a. Client-Side Flow:
• How pages (/dashboard, /posts, /resume) connect to their respective components
• Shared layout structure
• Demonstrate theme switching functionality
b. Data Flow:
• Sanity client integration for content management
• GitHub service integration for activity data
• Image optimization and delivery pipeline
Technical Stack Callouts
• Next.js 13+ (App Router)
• TypeScript
• Tailwind CSS
• Sanity CMS
• GitHub API
Implementation Notes
• The app directory structure (new Next.js 13+ pattern)
• Component organization
• Service integration points
• Data flow between components
Recommended Tools
Use tools like:
• Lucidchart
• Or any other professional diagramming tool that supports:
• Nested components
Remember to maintain a balance between detail and clarity, focusing on the architectural decisions that make this project unique, such as the integration of Sanity CMS and the GitHub API for the dashboard features.