How hadil-ben-abdallah/my-portfolio works
Main Components Identification
a) Page Layer
• Entry points (/pages)
• Document and App configuration
• Main index page
b) Component Layer (Organized by feature)
• Navigation
• Hero Section
• About Section
• Skills Display
• Projects Section
• Services Section
• Contact Section
• Blog Section
• Footer
c) Supporting Layers
• Context Management
• Theme Management
• Static Assets
• Styling System
[Browser] ←→ [Next.js Runtime]
• ↓
• [Application Architecture]
Pages Layer (Entry Points)
• ↓
Context Provider (State Management)
• ↓
Component Architecture
• ↓
Static Assets & Styling
Component Relationships
Following relationships:
• ContextProvider to components that consume it
• Link ThemeToggler to the context system
• How shared components (CustomButton, MyImage, Anchor) are used across features
Skills Feature:
• Skills.jsx
• SkillsSphere.jsx
• SkillsCard.jsx
Technical Stack Indicators
Technology badges or labels:
• Next.js
• React.js
• Tailwind CSS
• CSS Modules
• PWA capabilities (due to presence of sw.js)
Specific Implementation Details
Architectural patterns:
• Component composition pattern (e.g., Hero section components)
• Higher-order components (e.g., MyImage with Fallback)
• Context-based state management
• CSS Modules for component-scoped styling
Additional Elements
Supporting elements:
• SEO configuration (robots.txt, sitemap.xml)
• Static file handling (public directory)
• Build configuration (next.config.js)
• Style system (Tailwind + CSS Modules)