# imdarifulrony/imdariful architecture

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

- Interactive diagram: https://gitdiagram.com/imdarifulrony/imdariful
- Repository: https://github.com/imdarifulrony/imdariful

## Overview

##### Project Type Analysis
This is a single-page application (SPA) portfolio website built using React and Vite, with a focus on showcasing the developer's work and skills.

##### Main Components

A. Frontend Architecture (Primary Focus):
- Client-Side Routing Layer
- Component Layer
- Layout Layer
- Data Layer
- Asset Management
- Build/Development Environment

##### Layer Representation (From Top to Bottom)

a. Client Layer:
- It to Vite Dev Server during development
- It to Static Host (e.g., Netlify/Vercel) for production

- [Routing Layer]
- ↓
- [Layout Layer]
- ↓
- [Component Layer]
- ↓
- [Data Layer]

- [Main Layout]
- ↓
- [Navbar Component]
- [Pages]
- [Home Page]
- [About Page]
- [Projects Page]
- [Contact Page]
- [Project Component]
- [Timeline Component]
- [Footer Component]

- JSON data flow from projectLists.json to Project components
- State management patterns
- Routing transitions

Styling Guidelines:

##### Important Elements to Highlight
- Vite build process
- Static asset handling
- Component hierarchy
- Routing system
- SCSS/CSS styling system

##### Additional Notes
- Deployment flow to hosting platforms
- Integration with social media APIs
- Technology stack used (React, SCSS, Vite)

Level of Detail:
1. Component hierarchy
2. Build/deployment pipeline
3. Data flow patterns

Remember to:
- Use clear, consistent labeling
- Related components
- Both development and production flows
- Important configuration points (vite.config.js, package.json)
- Where static assets are served from

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Client
        Browser["Web Browser"]
    end

    subgraph "Development Environment"
        ViteServer["Vite Dev Server"]:::devenv
        BuildConfig["Build Configuration"]:::config
    end

    subgraph "Production Environment"
        StaticHost["Static Host<br/>(Netlify/Vercel)"]:::hosting
    end

    subgraph "Application Architecture"
        Entry["Application Entry"]:::core
        App["Main Application Container"]:::core
        
        subgraph "Routing Layer"
            Router["Client-Side Router"]:::routing
        end

        subgraph "Layout Layer"
            MainLayout["Main Layout"]:::layout
            Nav["Navigation Component"]:::component
            Footer["Footer Component"]:::component
        end

        subgraph "Page Components"
            Home["Home Page"]:::page
            About["About Page"]:::page
            Projects["Projects Page"]:::page
            Contact["Contact Page"]:::page
        end

        subgraph "Feature Components"
            ProjectComp["Project Component"]:::component
            TimelineComp["Timeline Component"]:::component
        end

        subgraph "Data Layer"
            ProjectData["Project Data (JSON)"]:::data
            Styles["Styling (SCSS/CSS)"]:::styling
        end
    end

    %% Connections
    Browser --> ViteServer
    Browser --> StaticHost
    ViteServer --> Entry
    Entry --> App
    App --> Router
    Router --> MainLayout
    MainLayout --> Nav
    MainLayout --> Footer
    Router --> Home
    Router --> About
    Router --> Projects
    Router --> Contact
    Projects --> ProjectComp
    ProjectData --> ProjectComp
    About --> TimelineComp

    %% Click Events
    click App "https://github.com/imdarifulrony/imdariful/blob/main/src/App.jsx"
    click Entry "https://github.com/imdarifulrony/imdariful/blob/main/src/main.jsx"
    click MainLayout "https://github.com/imdarifulrony/imdariful/blob/main/src/layouts/main.layout.jsx"
    click Nav "https://github.com/imdarifulrony/imdariful/blob/main/src/components/navbar/navbar.component.jsx"
    click Footer "https://github.com/imdarifulrony/imdariful/blob/main/src/components/footer/footer.component.jsx"
    click ProjectComp "https://github.com/imdarifulrony/imdariful/blob/main/src/components/project/project.component.jsx"
    click TimelineComp "https://github.com/imdarifulrony/imdariful/blob/main/src/components/timeline/timeline.component.jsx"
    click Home "https://github.com/imdarifulrony/imdariful/blob/main/src/pages/home.page.jsx"
    click About "https://github.com/imdarifulrony/imdariful/blob/main/src/pages/about.page.jsx"
    click Projects "https://github.com/imdarifulrony/imdariful/blob/main/src/pages/projects.page.jsx"
    click Contact "https://github.com/imdarifulrony/imdariful/blob/main/src/pages/contact.page.jsx"
    click ProjectData "https://github.com/imdarifulrony/imdariful/blob/main/src/data/projectLists.json"
    click BuildConfig "https://github.com/imdarifulrony/imdariful/blob/main/vite.config.js"
    click Styles "https://github.com/imdarifulrony/imdariful/blob/main/src/index.scss"

    %% Styles
    classDef core fill:#2d7dd2,color:white
    classDef routing fill:#97cc04,color:black
    classDef layout fill:#eeb902,color:black
    classDef component fill:#f45d01,color:white
    classDef page fill:#6c464f,color:white
    classDef data fill:#0a9396,color:white
    classDef styling fill:#9b5de5,color:white
    classDef devenv fill:#00b4d8,color:white
    classDef hosting fill:#023e8a,color:white
    classDef config fill:#fb8500,color:black
```
