# rithick-11/portfolio architecture

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

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

## Overview

##### Main Application Architecture Layer
- Entry points (index.js and App.js) at the top

##### State Management Layer
- PortfolioContext (from Context/PortfolioContext.js)
- UseDataStore (from store/useDataStore.js)

##### Component Structure Layer
Divide components into three categories:

a. Container Components (use orange):
- About
- Contact
- Education
- Projects
- Skills

b. Presentational Components (use green):
- Home
- LoginCard
- Navbar
- ProjectCard
- Title
- UserData

c. Asset Management (use yellow):
- Content
- Project Images

##### External Integration Layer
- API integration (apiServer.js) in a separate section
- External services or APIs

##### Components
- Use rectangles for components
- Nest child components within parents
- Component hierarchy with clear visual grouping

##### Data Flow
- Bidirectional data flow where applicable

##### Hierarchy
- Clear parent-child relationships between components
- Main navigation flow through the application
- Role of the Context API in state management

##### Interactions
- How LoginCard interacts with user authentication
- Demonstrate project data flow through ProjectCard components
- How the Navbar controls navigation

##### State Management
- How PortfolioContext provides global state
- UseDataStore's role in data management
- State update patterns

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Main
        App["App.js"]:::main
        Index["index.js"]:::main
        Index --> App
    end

    subgraph StateManagement
        Context["PortfolioContext"]:::state
        DataStore["useDataStore"]:::state
        Context <--> DataStore
    end

    subgraph ContainerComponents
        About["About Container"]:::container
        Contact["Contact Container"]:::container
        Education["Education Container"]:::container
        Projects["Projects Container"]:::container
        Skills["Skills Container"]:::container
    end

    subgraph PresentationalComponents
        Home["Home Component"]:::presentational
        Login["LoginCard"]:::presentational
        Navbar["Navigation Bar"]:::presentational
        ProjectCard["Project Card"]:::presentational
        Title["Title Component"]:::presentational
        UserData["User Data"]:::presentational
    end

    subgraph ExternalIntegration
        API["API Service"]:::external
    end

    subgraph AssetManagement
        Content["Content Management"]:::asset
        Images["Project Images"]:::asset
    end

    subgraph Styling
        TailwindConfig["Tailwind Config"]:::config
        PostCSSConfig["PostCSS Config"]:::config
        GlobalStyles["Global Styles"]:::config
    end

    App --> Context
    Context --> |State Updates| ContainerComponents
    Context --> |State Updates| PresentationalComponents
    API <-.-> Context
    Content --> ContainerComponents
    Images --> ProjectCard
    TailwindConfig --> App
    PostCSSConfig --> App
    GlobalStyles --> App

    %% Component Mappings
    click App "https://github.com/rithick-11/portfolio/blob/main/src/App.js"
    click Index "https://github.com/rithick-11/portfolio/blob/main/src/index.js"
    click Context "https://github.com/rithick-11/portfolio/blob/main/src/Context/PortfolioContext.js"
    click DataStore "https://github.com/rithick-11/portfolio/blob/main/src/store/useDataStore.js"
    click About "https://github.com/rithick-11/portfolio/blob/main/src/Container/About/About.jsx"
    click Contact "https://github.com/rithick-11/portfolio/blob/main/src/Container/Contact/Contact.jsx"
    click Education "https://github.com/rithick-11/portfolio/blob/main/src/Container/Education/Education.jsx"
    click Projects "https://github.com/rithick-11/portfolio/blob/main/src/Container/Projects/Projects.jsx"
    click Skills "https://github.com/rithick-11/portfolio/blob/main/src/Container/Skills/Skills.jsx"
    click Home "https://github.com/rithick-11/portfolio/blob/main/src/components/Home/Home.jsx"
    click Login "https://github.com/rithick-11/portfolio/blob/main/src/components/LoginCard/LoginCard.jsx"
    click Navbar "https://github.com/rithick-11/portfolio/blob/main/src/components/Navbar/Navbar.jsx"
    click ProjectCard "https://github.com/rithick-11/portfolio/blob/main/src/components/ProjectCard/ProjectCard.jsx"
    click Title "https://github.com/rithick-11/portfolio/blob/main/src/components/Tittle/Tittle.jsx"
    click UserData "https://github.com/rithick-11/portfolio/blob/main/src/components/UserData/UserData.jsx"
    click API "https://github.com/rithick-11/portfolio/blob/main/src/lib/apiServer.js"
    click Content "https://github.com/rithick-11/portfolio/blob/main/src/Asserts/content.js"
    click Images "https://github.com/rithick-11/portfolio/tree/main/src/Asserts/projectImages"
    click TailwindConfig "https://github.com/rithick-11/portfolio/blob/main/tailwind.config.js"
    click PostCSSConfig "https://github.com/rithick-11/portfolio/blob/main/postcss.config.js"
    click GlobalStyles "https://github.com/rithick-11/portfolio/blob/main/src/index.css"

    classDef main fill:#a8dadc
    classDef state fill:#9b5de5
    classDef container fill:#ff9770
    classDef presentational fill:#90be6d
    classDef external fill:#4cc9f0
    classDef asset fill:#f9c74f
    classDef config fill:#adb5bd
```
