# divyanka-20/divyanka_barnwal_portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/divyanka-20/divyanka_barnwal_portfolio
- Repository: https://github.com/divyanka-20/divyanka_barnwal_portfolio

## Overview

##### Project type and purpose
- This is a front-end, single-page portfolio website built with React and Bootstrap.
- It showcases projects, skills, and a downloadable resume, with theme toggling, responsive layout, and animated transitions.

##### File structure
- Top-level assets:
- src/ – React source code
- Inside src/:
- components/ – shared UI pieces (Navbar, Footer)
- pages/ – route-level components (Home, About, Projects, Contact)
- App.js – root component orchestrating theme, layout, and page routing
- index.js – entry point rendering App into public/index.html

##### README for additional insights
- Features: resume download, project showcase, responsive design, theme toggle, “Hire Me” button

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Build & Configuration
    Build["npm run build"]:::build
    Package["package.json"]:::build
    Docs["README.md"]:::build

    %% Hosting Layer
    Host["CDN / Static Host"]:::hosting

    %% Client
    Browser["Browser / Client"]:::client

    %% HTTP Flow
    Build -->|build output| Host
    Browser -->|HTTP GET| Host
    Host -->|serve index.html + bundle| Browser

    %% Static Files Served
    subgraph "Public Assets"
        HTML["index.html"]:::hosting
        Manifest["manifest.json"]:::assets
        Resume["resume.pdf"]:::assets
        Robots["robots.txt"]:::assets
    end
    Host --> HTML
    Host --> Manifest
    Host --> Resume
    Host --> Robots
    click HTML "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/public/index.html"
    click Manifest "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/public/manifest.json"
    click Resume "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/public/resume.pdf"
    click Robots "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/public/robots.txt"

    %% React Application Runtime
    Browser -->|loads bundle| ReactApp["React App"]:::core

    subgraph "React Application"
        EntryPoint["index.js"]:::core
        Styles["App.css"]:::core
        AppShell["App.js"]:::core

        subgraph "Shared UI Components"
            Navbar["Navbar"]:::ui
            Footer["Footer"]:::ui
        end

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

    ReactApp --> EntryPoint
    ReactApp --> Styles
    EntryPoint --> AppShell
    AppShell --> Navbar
    AppShell --> Footer
    AppShell --> Home
    AppShell --> About
    AppShell --> Projects
    AppShell --> Contact

    %% User Interactions & Data Flow
    Navbar -->|route change| Home
    Navbar -->|route change| About
    Navbar -->|route change| Projects
    Navbar -->|route change| Contact
    Home -->|download resume| Resume
    Contact -->|link| Resume

    %% Click Events
    click EntryPoint "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/src/index.js"
    click Styles "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/src/App.css"
    click AppShell "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/src/App.js"
    click Navbar "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/src/components/Navbar.js"
    click Footer "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/src/components/Footer.js"
    click Home "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/src/pages/Home.js"
    click About "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/src/pages/About.js"
    click Projects "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/src/pages/Projects.js"
    click Contact "https://github.com/divyanka-20/divyanka_barnwal_portfolio/blob/main/src/pages/Contact.js"

    %% Styling
    classDef build fill:#E0F7FA,stroke:#006064,color:#004D40
    classDef hosting fill:#E3F2FD,stroke:#1E88E5,color:#0D47A1
    classDef client fill:#FFF3E0,stroke:#FB8C00,color:#E65100
    classDef core fill:#E8F5E9,stroke:#43A047,color:#1B5E20
    classDef ui fill:#FFFDE7,stroke:#FDD835,color:#F57F17
    classDef pages fill:#F3E5F5,stroke:#8E24AA,color:#4A148C
    classDef assets fill:#E1F5FE,stroke:#039BE5,color:#01579B
```
