# rafibinwores/portfolio architecture

> Architecture diagram of the GitHub repository rafibinwores/portfolio, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-11). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/rafibinwores/portfolio
- Repository: https://github.com/rafibinwores/portfolio

## Overview

##### Project Type Analysis
This is a Single Page Application (SPA) built with React and Vite, focusing on frontend architecture. The project follows a component-based architecture with clear separation of concerns through its directory structure.

##### Main Components

A. Application Layer Components:
- Main Application Entry Point (main.jsx)
- App.jsx as the root component

B. Architectural Layers (organize vertically from top to bottom):
1. Layouts Layer
- MainLayout component (handles the overall page structure)

2. Pages Layer
- Home
- Article

3. Feature Components Layer
- Hero
- About
- Articles
- Expertise
- Contact

4. Shared Components Layer
- Navbar
- Footer

C. Supporting Elements:
- Assets Service
- Constants
- Styling (Tailwind CSS configuration)

**┌─ Vite Dev Server ──────────────────────────┐**

- ┌─ Main Entry (main.jsx) ─────────────┐   │

- ┌─ App.jsx ──────────────────┐     │   │

- MainLayout              │     │   │
- Navbar              │     │   │
- Footer              │     │   │

- Pages                  │     │   │
- Home               │     │   │
- Article            │     │   │

- Components            │     │   │
- Hero              │     │   │
- About             │     │   │
- Articles          │     │   │
- Expertise         │     │   │
- Contact           │     │   │
- ┘     │   │
- ┘   │

- Supporting Services                       │
- Assets Service                        │
- Constants                             │
- Styling (Tailwind CSS)                │
- ┘

##### Key Elements to Emphasize
- Component hierarchy and relationships
- Routing structure between pages
- Shared components' reusability
- How the styling system (Tailwind) applies globally

##### Technical Stack Indicators
- React (Core Framework)
- Vite (Build Tool)
- Tailwind CSS (Styling)
- ESLint (Code Quality)
- PostCSS (CSS Processing)

Remember to:
- Use consistent styling for similar components
- Brief descriptions for major components
- Primary data flow directions

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph ViteServer["Vite Development Server"]
        ViteConfig["Vite Config"]
        PostConfig["PostCSS Config"]
        ESLintConfig["ESLint Config"]
        
        subgraph AppCore["Application Core"]
            MainEntry["Main Entry Point"]
            App["App Root Component"]
            
            subgraph Layouts["Layouts Layer"]
                MainLayout["Main Layout"]
            end
            
            subgraph Pages["Pages Layer"]
                Home["Home Page"]
                Article["Article Page"]
            end
            
            subgraph Features["Feature Components"]
                Hero["Hero Component"]
                About["About Component"]
                Articles["Articles Component"]
                Expertise["Expertise Component"]
                Contact["Contact Component"]
            end
            
            subgraph Shared["Shared Components"]
                Navbar["Navbar"]
                Footer["Footer"]
            end
        end
        
        subgraph Support["Supporting Services"]
            Assets["Assets Service"]
            Constants["Constants"]
            TailwindConfig["Tailwind CSS Config"]
        end
    end
    
    %% Relationships
    MainEntry --> App
    App --> MainLayout
    MainLayout --> Navbar
    MainLayout --> Footer
    MainLayout --> Pages
    
    Home --> Hero
    Home --> About
    Home --> Articles
    Home --> Expertise
    Home --> Contact
    
    %% Support Services Connections
    TailwindConfig -.-> AppCore
    Constants -.-> AppCore
    Assets -.-> AppCore
    
    %% Configuration Connections
    ViteConfig -.-> AppCore
    PostConfig -.-> AppCore
    ESLintConfig -.-> AppCore
    
    %% Styling
    classDef config fill:#d4d4d4,stroke:#333
    classDef core fill:#b3e0ff,stroke:#333
    classDef layout fill:#98fb98,stroke:#333
    classDef feature fill:#ffd700,stroke:#333
    classDef shared fill:#dda0dd,stroke:#333
    classDef support fill:#f0f0f0,stroke:#333
    
    class ViteConfig,PostConfig,ESLintConfig config
    class MainEntry,App core
    class MainLayout layout
    class Hero,About,Articles,Expertise,Contact feature
    class Navbar,Footer shared
    class Assets,Constants,TailwindConfig support
    
    %% Click Events
    click MainEntry "https://github.com/RafiBinWores/portfolio/blob/main/src/main.jsx"
    click App "https://github.com/RafiBinWores/portfolio/blob/main/src/App.jsx"
    click MainLayout "https://github.com/RafiBinWores/portfolio/blob/main/src/layouts/MainLayout.jsx"
    click Home "https://github.com/RafiBinWores/portfolio/blob/main/src/pages/home/Home.jsx"
    click Article "https://github.com/RafiBinWores/portfolio/blob/main/src/pages/article/Article.jsx"
    click Hero "https://github.com/RafiBinWores/portfolio/blob/main/src/components/hero/Hero.jsx"
    click About "https://github.com/RafiBinWores/portfolio/blob/main/src/components/about/About.jsx"
    click Articles "https://github.com/RafiBinWores/portfolio/blob/main/src/components/articles/Articles.jsx"
    click Expertise "https://github.com/RafiBinWores/portfolio/blob/main/src/components/expertise/Expertise.jsx"
    click Contact "https://github.com/RafiBinWores/portfolio/blob/main/src/components/contact/Contact.jsx"
    click Navbar "https://github.com/RafiBinWores/portfolio/blob/main/src/share/Navbar.jsx"
    click Footer "https://github.com/RafiBinWores/portfolio/blob/main/src/share/Footer.jsx"
    click Assets "https://github.com/RafiBinWores/portfolio/tree/main/src/assets/service"
    click Constants "https://github.com/RafiBinWores/portfolio/blob/main/src/constants/index.js"
    click TailwindConfig "https://github.com/RafiBinWores/portfolio/blob/main/tailwind.config.js"
    click ViteConfig "https://github.com/RafiBinWores/portfolio/blob/main/vite.config.js"
    click PostConfig "https://github.com/RafiBinWores/portfolio/blob/main/postcss.config.js"
    click ESLintConfig "https://github.com/RafiBinWores/portfolio/blob/main/eslint.config.js"
```
