# sanchiitvijay/portfolio_sanchit_vijay architecture

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

- Interactive diagram: https://gitdiagram.com/sanchiitvijay/portfolio_sanchit_vijay
- Repository: https://github.com/sanchiitvijay/portfolio_sanchit_vijay

## Overview

##### Main Components
- Entry/Bootstrapping: Start with the index.html and main.jsx, which serve as the entry points of the application.
- Application Layer: Represent the App.jsx component, which is the central container for the webpage.
- UI & Visual Components: Break down the UI into Main Pages (under src/components/Pages) like HomeMobile.jsx, LandingPageMd.jsx, and LandingPageMobile.jsx.
- Common Components: Include reusable components found under src/components/common (e.g., Certificates, LogoMarquee, MyButton, MyCard) that provide standardized styles and functions.
- Special UI Elements (MagicUI): Include a separate grouping for components under src/components/magicui that provide animated and dynamic effects (e.g., animated-shiny-text, marquee, number-ticker, sparkles-text, word-rotate).
- Modals: Add a block for modal components (e.g., CertificatesModal, ContactModal, EducationModal, etc.) that are used to display supplementary or detailed information.
- Assets & Resources: Represent the assets folder (Pics, fonts) that contains visual resources. Also include the lib folder (with constants.js and utils.js) which provides helper functions and configuration constants.

##### Architectural Patterns & Design Principles
- Component-Based Design: Emphasize that each UI piece is modular and reusable, which is a central aspect of React.
- Separation of Presentation & Logic: Distinguish between simple presentational components (common and magicui) and more complex or interactive components (core, modals).
- Directory & Layer Organization: The layout of directories illustrates separation by function (assets, components, lib, configurations) and by type of UI element (Pages, common, core, modals, magicui).

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Entry/Bootstrapping
    subgraph "Entry/Bootstrapping"
        idx("index.html"):::boot
        main("main.jsx"):::boot
    end

    %% Application Layer
    subgraph "Application Layer"
        app("App.jsx"):::app
    end

    %% UI & Visual Components
    subgraph "UI & Visual Components"
        home("HomeMobile.jsx"):::pages
        landingMd("LandingPageMd.jsx"):::pages
        landingMobile("LandingPageMobile.jsx"):::pages
    end

    %% Common Components
    subgraph "Common Components"
        cert("Certificates"):::common
        logoMarquee("LogoMarquee"):::common
        logoMarqueeFull("LogoMarqueeFull"):::common
        btn("MyButton"):::common
        card("MyCard"):::common
        commonExtra("OtherCommonComponents"):::common
    end

    %% Core Components
    subgraph "Core Components"
        cta("CTA"):::core
        contact("Contact"):::core
        education("Education"):::core
        info("InfoGraphics"):::core
        nameCard("NameCard"):::core
        otherCircular("OtherCircular"):::core
        services("Services"):::core
        techStack("TechStack"):::core
        workCard("WorkCard"):::core
    end

    %% Special UI Elements (MagicUI)
    subgraph "Special UI Elements (MagicUI)"
        shiny("animated-shiny-text"):::magicui
        marquee("marquee"):::magicui
        numberTicker("number-ticker"):::magicui
        sparkles("sparkles-text"):::magicui
        wordRotate("word-rotate"):::magicui
    end

    %% Modals
    subgraph "Modals"
        certModal("CertificatesModal"):::modal
        contactModal("ContactModal"):::modal
        educationModal("EducationModal"):::modal
        expModal("ExperienceModal"):::modal
        otherCircModal("OtherCircularModal"):::modal
        projectModal("ProjectModal"):::modal
        techStackModal("TechStackModal"):::modal
    end

    %% Assets & Resources
    subgraph "Assets & Resources"
        pics("Pics"):::assets
        fonts("Fonts"):::assets
        lib("Lib (constants & utils)"):::lib
    end

    %% Build & Development Tools
    subgraph "Build & Development Tools"
        vite("vite.config.js"):::build
        postcss("postcss.config.js"):::build
        tailwind("tailwind.config.js"):::build
        pkg("package.json"):::build
    end

    %% Connections - Entry to Application
    idx --> main
    main --> app

    %% Application Layer to UI Components
    app --> home
    app --> landingMd
    app --> landingMobile

    %% Application Layer to Common Components
    app --> cert
    app --> logoMarquee
    app --> logoMarqueeFull
    app --> btn
    app --> card
    app --> commonExtra

    %% Application Layer to Core Components
    app --> cta
    app --> contact
    app --> education
    app --> info
    app --> nameCard
    app --> otherCircular
    app --> services
    app --> techStack
    app --> workCard

    %% Application Layer to Special UI Elements
    app --> shiny
    app --> marquee
    app --> numberTicker
    app --> sparkles
    app --> wordRotate

    %% Core Components trigger Modals (User Interaction)
    cta -->|"UserInteraction"| certModal
    contact -->|"UserInteraction"| contactModal
    education -->|"UserInteraction"| educationModal
    otherCircular -->|"UserInteraction"| otherCircModal
    techStack -->|"UserInteraction"| techStackModal
    workCard -->|"UserInteraction"| projectModal
    cert -->|"UserInteraction"| certModal

    %% Assets & Build Tools support the Application
    pics --> app
    fonts --> app
    lib --> app
    vite --> app
    postcss --> app
    tailwind --> app
    pkg --> app

    %% Click Events
    click idx "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/index.html"
    click main "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/main.jsx"
    click app "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/App.jsx"
    click home "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/Pages/HomeMobile.jsx"
    click landingMd "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/Pages/LandingPageMd.jsx"
    click landingMobile "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/Pages/LandingPageMobile.jsx"
    click cert "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/common/Certificates.jsx"
    click logoMarquee "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/common/LogoMarquee.jsx"
    click logoMarqueeFull "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/common/LogoMarqueeFull.jsx"
    click btn "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/common/MyButton.jsx"
    click card "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/common/MyCard.jsx"
    click cta "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/core/CTA.jsx"
    click contact "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/core/Contact.jsx"
    click education "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/core/Education.jsx"
    click info "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/core/InfoGraphics.jsx"
    click nameCard "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/core/NameCard.jsx"
    click otherCircular "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/core/OtherCircular.jsx"
    click services "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/core/Services.jsx"
    click techStack "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/core/TechStack.jsx"
    click workCard "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/core/WorkCard.jsx"
    click shiny "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/magicui/animated-shiny-text.jsx"
    click marquee "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/magicui/marquee.jsx"
    click numberTicker "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/magicui/number-ticker.jsx"
    click sparkles "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/magicui/sparkles-text.jsx"
    click wordRotate "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/magicui/word-rotate.jsx"
    click certModal "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/modals/CertificatesModal.jsx"
    click contactModal "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/modals/ContactModal.jsx"
    click educationModal "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/modals/EducationModal.jsx"
    click expModal "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/modals/ExperienceModal.jsx"
    click otherCircModal "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/modals/OtherCircularModal.jsx"
    click projectModal "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/modals/ProjectModal.jsx"
    click techStackModal "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/components/modals/TechStackModal.jsx"
    click pics "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/tree/main/src/assets/Pics"
    click fonts "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/tree/main/src/assets/font"
    click lib "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/lib/constants.js"
    click lib "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/src/lib/utils.js"
    click vite "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/vite.config.js"
    click postcss "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/postcss.config.js"
    click tailwind "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/tailwind.config.js"
    click pkg "https://github.com/sanchiitvijay/portfolio_sanchit_vijay/blob/main/package.json"

    %% Styles
    classDef boot fill:#f9a825,stroke:#333,stroke-width:2px;
    classDef app fill:#1565c0,stroke:#333,stroke-width:2px;
    classDef pages fill:#2e7d32,stroke:#333,stroke-width:2px;
    classDef common fill:#6d4c41,stroke:#333,stroke-width:2px;
    classDef core fill:#7b1fa2,stroke:#333,stroke-width:2px;
    classDef magicui fill:#c2185b,stroke:#333,stroke-width:2px;
    classDef modal fill:#d32f2f,stroke:#333,stroke-width:2px;
    classDef assets fill:#00796b,stroke:#333,stroke-width:2px;
    classDef lib fill:#00796b,stroke:#333,stroke-width:2px;
    classDef build fill:#455a64,stroke:#333,stroke-width:2px;
```
