How muhammedsuhaib/my-portfolio works
Main Components Identification
a) Frontend Layer (Next.js Application)
• Client-side components
• Server-side components
• App Router structure
b) CMS Layer (Sanity)
• Studio
• Content Management
• Schema definitions
c) Integration Layer
• API connections
• Image pipeline
• Live preview functionality
┌─ Next.js Application ─────────────────┐
• ┌─ Pages/Routes ─┐ ┌─ Components ──┐ │
• Home │ │ - Header │ │
• About │ │ - Hero │ │
• Studio │ │ - Projects │ │
• ┘ │ - Technologies │ │
• ┘ │
• ┘
┌─ Sanity CMS ────────────────────────┐
• ┌─ Schema ─────┐ ┌─ Studio ───────┐ │
• Types │ │ - Content │ │
• Structure │ │ - Live Preview │ │
• ┘ └───────────────┘ │
• ┘
Connection Flows
• Data flow between Next.js and Sanity
• Client-side to server-side communication
• Image optimization pipeline
• Live preview data streams
Technical Stack Indicators
• Next.js
• Sanity
• TypeScript
• TailwindCSS
• React
Implementation Notes
• The app directory structure following Next.js 13+ conventions
• Integration between Next.js and Sanity Studio
• Component hierarchy and reusability
• Data flow patterns