# vaibhavsaigandi/portfolio_new architecture

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

- Interactive diagram: https://gitdiagram.com/vaibhavsaigandi/portfolio_new
- Repository: https://github.com/vaibhavsaigandi/portfolio_new

## Overview

##### Main Components
- Entry Point & Configuration:
- index.html: Serves as the root HTML file that loads the application.
- src/main.jsx: This is the main JavaScript entry file where React renders the App.
- vite.config.js, tailwind.config.js, and jsconfig.json: Represent build configurations, styling (Tailwind CSS), and project-level settings.
- Core Application Structure:
- src/App.jsx and src/App.css: The main application component and its styling.
- components/ and its subdirectories under src/components/ui: These house the primary UI components such as Navbar, Home, Experience, Projects, Skills, Resume, Contact, Footer, ThemeProvider, and data components like skillsData and ExperiencData. Each component forms a logical, reusable piece of the UI.
- Assets and Utilities:
- src/lib/utils.js: Contains utility functions, likely used across different components.

##### Relationships and Interactions
- The entry point in src/main.jsx handles the application’s initialization and renders the App component.
- The App component acts as the container for various UI components (e.g., Navbar, Home, Projects, etc.), forming the overall user interface.
- The ThemeProvider (found within the UI components) likely handles theme management and context propagation across the application.
- The utility functions in src/lib/utils.js are referenced by various components to encapsulate common logic.
- There is a clear flow from configuration (build tools and ESLint rules from package.json and eslint.config.js) to the runtime execution via Vite, ensuring quick development refreshes (HMR) as indicated in the README.

##### Architectural Patterns
- Component-Based Architecture: By dividing the UI into many discrete components (in the src/components/ui directory), the project follows a clear component-driven approach.
- Separation of Concerns: The file tree organizes components, assets, styles, and utility functions into distinct directories.
- Development Toolchain Integration: Use of Vite as the bundler and hot module reloading mechanism, along with configuration files for Tailwind CSS and ESLint to enforce code quality.

##### Technologies, Frameworks, and Libraries
- React: For building the UI.
- Vite: As the bundler and development server.
- Tailwind CSS: Indicated by tailwind.config.js, used for styling.
- ESLint: Configured via eslint.config.js and package.json to maintain code quality.
- Babel/SWC: Mentioned in the README via plugins, guiding the approach for fast refresh during development.

## Diagram (Mermaid)

```mermaid
graph TD
    %% Application Initialization
    subgraph "Application Initialization"
        indexHTML["index.html"]:::entry
        mainJSX["src/main.jsx"]:::entry
        AppJSX["src/App.jsx"]:::app
        AppCSS["src/App.css"]:::app
        indexHTML -->|"loads"| mainJSX
        mainJSX -->|"renders"| AppJSX
        AppJSX ---|"styles"| AppCSS
    end

    %% Configuration & Build Tools
    subgraph "Configuration & Build Tools"
        Vite["vite.config.js"]:::config
        Tailwind["tailwind.config.js"]:::config
        Jsconfig["jsconfig.json"]:::config
        ESLint["eslint.config.js"]:::config
        Vite -->|"configures"| mainJSX
        Tailwind -->|"styles setup"| mainJSX
        Jsconfig -->|"project settings"| mainJSX
        ESLint -->|"code quality"| mainJSX
    end

    %% UI Components
    subgraph "UI Components"
        Navbar["Navbar Component"]:::ui
        Home["Home Component"]:::ui
        Experience["Experience Component"]:::ui
        Projects["Projects Component"]:::ui
        Skills["Skills Component"]:::ui
        Resume["Resume Component"]:::ui
        Contact["Contact Component"]:::ui
        Footer["Footer Component"]:::ui
        ThemeProvider["ThemeProvider"]:::ui
        SkillsData["Skills Data"]:::ui
        ExperiencData["Experience Data"]:::ui
        AppJSX -->|"includes"| Navbar
        AppJSX -->|"includes"| Home
        AppJSX -->|"includes"| Experience
        AppJSX -->|"includes"| Projects
        AppJSX -->|"includes"| Skills
        AppJSX -->|"includes"| Resume
        AppJSX -->|"includes"| Contact
        AppJSX -->|"includes"| Footer
        AppJSX -->|"manages-theme"| ThemeProvider
        ThemeProvider -->|"provides"| SkillsData
        ThemeProvider -->|"provides"| ExperiencData
    end

    %% Assets & Utilities
    subgraph "Assets & Utilities"
        Assets["Assets"]:::asset
        Utils["Utility Functions"]:::util
        AppJSX -->|"utilizes"| Utils
        AppJSX -->|"renders assets"| Assets
    end

    %% Click Events
    click indexHTML "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/index.html"
    click mainJSX "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/main.jsx"
    click AppJSX "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/App.jsx"
    click AppCSS "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/App.css"
    click Vite "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/vite.config.js"
    click Tailwind "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/tailwind.config.js"
    click Jsconfig "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/jsconfig.json"
    click ESLint "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/eslint.config.js"
    click Navbar "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/Navbar.jsx"
    click Home "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/Home.jsx"
    click Experience "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/Experience.jsx"
    click Projects "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/Projects.jsx"
    click Skills "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/Skills.jsx"
    click Resume "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/Resume.jsx"
    click Contact "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/Contact.jsx"
    click Footer "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/Footer.jsx"
    click ThemeProvider "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/ThemeProvider.jsx"
    click SkillsData "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/skillsData.jsx"
    click ExperiencData "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/components/ui/ExperiencData.jsx"
    click Assets "https://github.com/vaibhavsaigandi/portfolio_new/tree/master/src/assets"
    click Utils "https://github.com/vaibhavsaigandi/portfolio_new/blob/master/src/lib/utils.js"

    %% Styles
    classDef entry fill:#d4f4dd,stroke:#333,stroke-width:2px;
    classDef config fill:#ffe6cc,stroke:#333,stroke-width:2px;
    classDef app fill:#cce5ff,stroke:#333,stroke-width:2px;
    classDef ui fill:#f9d1d1,stroke:#333,stroke-width:2px;
    classDef asset fill:#e6e6fa,stroke:#333,stroke-width:2px;
    classDef util fill:#d1e7dd,stroke:#333,stroke-width:2px;
```
