# coderapurba/new-portfolio architecture

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

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

## Overview

##### Main Components Structure

First, let's outline how to represent the core architectural components:

a) Create a high-level container representing the React Application, with these main sections:

**┌─ React Application ──────────────────────┐**

- ┌─ Components ─────┐  ┌─ Data Layer ─┐ │

- Sections     │  │  - About     │ │
- Elements     │  │  - Blogs     │ │
- Portfolio │ │
- ┘  │  - Resume   │ │
- Contact   │ │
- ┘ │

- ┘

##### Component Hierarchy

Hierarchical structure of components:

**┌─ Sections ──────────────────────────────┐**

- Header                                 │
- Hero                                   │
- About                                  │
- Portfolio                              │
- Resume                                 │
- Blogs                                  │
- Contact                                │
- Footer                                 │
- ┘

**┌─ Elements ──────────────────────────────┐**

- BlogCard                             │
- PortfolioCard                        │
- ResumeCard                           │
- ContactForm                          │
- TypeWriter                           │
- SkillProgress                        │
- ProjectDetails                       │
- Modals                             │
- BlogModal                         │
- PortfolioModal                    │
- ┘

##### Implementation Details

Technical implementations:

**┌─ Technical Stack ────────────────────────┐**

- React (Frontend Framework)           │
- Tailwind CSS (Styling)              │
- CSS Modules (Component Styling)      │
- React Hooks (State Management)       │
- ┘

##### Data Flow

How data flows through the application:

**┌─ Data Flow ──────────────────────────────┐**

- Data Layer → Components → UI Elements   │

- Static Data Files (.js) → Section      │
- Components → Element Components         │
- ┘

Important Considerations:

##### How Tailwind CSS integrates with components

- High-level architecture (component organization)
- Component relationships (parent-child relationships)
- Data flow patterns (how content moves through the application)
- UI/UX elements (modal systems, forms, cards)

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph React["React Application"]
        direction TB
        
        subgraph Components["Components Layer"]
            direction TB
            
            subgraph Sections["Section Components"]
                direction TB
                Header["Header"]:::section
                Hero["Hero"]:::section
                About["About"]:::section
                Portfolio["Portfolio"]:::section
                Resume["Resume"]:::section
                Blogs["Blogs"]:::section
                Contact["Contact"]:::section
                Footer["Footer"]:::section
            end

            subgraph Elements["Element Components"]
                direction TB
                BlogCard["BlogCard"]:::element
                PortfolioCard["PortfolioCard"]:::element
                ResumeCard["ResumeCard"]:::element
                ContactForm["ContactForm"]:::element
                TypeWriter["TypeWriter"]:::element
                SkillProgress["SkillProgress"]:::element
                ProjectDetails["ProjectDetails"]:::element
                
                subgraph Modals["Modal Components"]
                    BlogModal["BlogModal"]:::modal
                    PortfolioModal["PortfolioModal"]:::modal
                end
            end
        end

        subgraph Data["Data Layer"]
            direction TB
            AboutData["About Data"]:::data
            BlogsData["Blogs Data"]:::data
            PortfolioData["Portfolio Data"]:::data
            ResumeData["Resume Data"]:::data
            ContactData["Contact Data"]:::data
        end

        subgraph Tech["Technical Stack"]
            direction TB
            ReactApp["React"]:::tech
            TailwindCSS["Tailwind CSS"]:::tech
            CSSModules["CSS Modules"]:::tech
            ReactHooks["React Hooks"]:::tech
        end
    end

    %% Data Flow Connections
    AboutData --> About
    BlogsData --> Blogs
    PortfolioData --> Portfolio
    ResumeData --> Resume
    ContactData --> Contact

    %% Component Relationships
    Blogs --> BlogCard
    Blogs --> BlogModal
    Portfolio --> PortfolioCard
    Portfolio --> PortfolioModal
    Portfolio --> ProjectDetails
    Resume --> ResumeCard
    Resume --> SkillProgress
    Contact --> ContactForm
    Hero --> TypeWriter

    %% Styling
    classDef section fill:#2563eb,color:white
    classDef element fill:#f97316,color:white
    classDef modal fill:#9333ea,color:white
    classDef data fill:#22c55e,color:white
    classDef tech fill:#64748b,color:white

    %% Click Events
    click Components "https://github.com/coderapurba/new-portfolio/tree/main/src/app/components/"
    click Data "https://github.com/coderapurba/new-portfolio/tree/main/src/app/data/"
    click Header "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/sections/Header/index.js"
    click Hero "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/sections/Hero/index.js"
    click About "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/sections/About/index.js"
    click Portfolio "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/sections/Portfolio/index.js"
    click Resume "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/sections/Resume/index.js"
    click Blogs "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/sections/Blogs/index.js"
    click Contact "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/sections/Contact/index.js"
    click Footer "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/sections/Footer/index.js"
    click BlogCard "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/elements/BlogCard/index.js"
    click PortfolioCard "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/elements/PortfolioCard/index.js"
    click ResumeCard "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/elements/ResumeCard/index.js"
    click ContactForm "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/elements/ContactForm/index.js"
    click TypeWriter "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/elements/TypeWriter/index.js"
    click SkillProgress "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/elements/SkillProgress/index.js"
    click ProjectDetails "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/elements/ProjectDetails/index.js"
    click BlogModal "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/elements/BlogModal/index.js"
    click PortfolioModal "https://github.com/coderapurba/new-portfolio/blob/main/src/app/components/elements/PortfolioModal/index.js"
    click AboutData "https://github.com/coderapurba/new-portfolio/blob/main/src/app/data/about.js"
    click BlogsData "https://github.com/coderapurba/new-portfolio/blob/main/src/app/data/blogs.js"
    click PortfolioData "https://github.com/coderapurba/new-portfolio/blob/main/src/app/data/portfolio.js"
    click ResumeData "https://github.com/coderapurba/new-portfolio/blob/main/src/app/data/resume.js"
    click ContactData "https://github.com/coderapurba/new-portfolio/blob/main/src/app/data/contact.js"
    click ReactApp "https://github.com/coderapurba/new-portfolio/blob/main/src/App.js"
    click TailwindCSS "https://github.com/coderapurba/new-portfolio/blob/main/tailwind.config.js"
    click CSSModules "https://github.com/coderapurba/new-portfolio/blob/main/src/index.css"
```
