How lukman10a/markazulbayaan works
Main Components
A. Frontend Layer:
• Client-Side Components (src/components/)
• Navigation System (src/components/navBar/)
• Home Page Components (src/components/home/)
• UI Components (src/components/ui/)
• Blog Components (src/components/BlogLayout.tsx)
• Course Components (src/components/CourseDetails.tsx, Coursehero.tsx)
B. Backend Layer:
• API Routes (src/pages/api/)
• CMS Integration (src/cms/)
• Data Fetching Layer (src/lib/getMarkdownData.ts)
C. Content Management:
• NetlifyCMS Integration (public/admin/)
• Markdown Content Storage (public/_posts/, public/_featured/)
┌─────────────────────────────────────────────────────────┐
• Client Browser │
• ┘
• ↕
┌─────────────────────────────────────────────────────────┐
• Next.js Application │
• ┬─────────────────┬───────────────────┤
• Pages Layer │ Components │ CMS Layer │
• (src/pages) │ (src/components│ (src/cms) │
• ┬────────┴────────┬────────┴────────┬──────────┘
• ↓ ↓ ↓
┌────────────────┐ ┌─────────────┐ ┌─────────────────────┐
• API Routes │ │ Static │ │ NetlifyCMS │
• (/api) │ │ Content │ │ Integration │
• ┘ └─────────────┘ └─────────────────────┘
Key Relationships to Highlight
a. Client-Side Flow:
• Next.js Pages → Components
• Components → UI Library
• Pages → API Routes
b. Content Management Flow:
• CMS → Markdown Files
• Markdown Files → Page Generation
• API Routes → External Services
Important Architectural Patterns
• Page-based Routing (Next.js pages directory)
• Component Composition (UI components hierarchy)
• API Routes for Backend Functions
• Static Content Generation (Markdown files)
• CMS Integration Pattern
Technical Stack Elements
• Next.js Framework
• React Components
• NetlifyCMS
• Markdown Processing
• Tailwind CSS (based on configuration files)
• TypeScript Support