# anshika21m/portfolio_anshika architecture

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

- Interactive diagram: https://gitdiagram.com/anshika21m/portfolio_anshika
- Repository: https://github.com/anshika21m/portfolio_anshika

## Overview

##### Project type and purpose
- This is a single-page front-end application (a portfolio or marketing site) built with React, TypeScript, Vite, Tailwind CSS, and the shadcn-ui component library. There is no backend code in the repo.

##### File structure
- Top-level files:
- index.html – the SPA shell
- vite.config.ts, tsconfig.json, tailwind.config.ts – build and tooling config
- package.json / bun.lockb / lockfiles – dependency manifests
- src/
- main.tsx – React entrypoint
- App.tsx / App.css – root component
- pages/ – page components (Index, NotFound)
- components/ – feature components (About, Hero, Projects, etc.)
– ui/ – low-level UI primitives (accordion, button, dialog, etc.)
- hooks/ – custom React hooks
- lib/ – shared utilities
- public/ – static assets (robots.txt)

##### README for additional insights
- Tech stack: Vite, TS, React, shadcn-ui, Tailwind CSS.
- Deployment via “Lovable” platform (automated CI/CD).

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Build & Deployment Pipeline
    subgraph "Build & Deployment Pipeline"
        direction TB
        Dev["Developer Workstation"]:::external
        GitHub["GitHub Repo"]:::service
        CICD["Lovable CI/CD"]:::service
        Build["Vite Build Tool"]:::service

        Dev -->|"pushes code"| GitHub
        GitHub -->|"triggers build"| CICD
        CICD -->|"runs npm install & vite build"| Build

        subgraph "Configuration & Code"
            direction TB
            HTML["index.html"]:::code
            ViteConfig["vite.config.ts"]:::config
            TSConfig["tsconfig.json"]:::config
            TailwindConfig["tailwind.config.ts"]:::config
            PostCSSConfig["postcss.config.js"]:::config
            PackageJSON["package.json"]:::config
            PackageLock["package-lock.json"]:::config
            BunLock["bun.lockb"]:::config
            Robots["public/robots.txt"]:::code
            HTML --> Build
            ViteConfig --> Build
            TSConfig --> Build
            TailwindConfig --> Build
            PostCSSConfig --> Build
            PackageJSON --> Build
            PackageLock --> Build
            BunLock --> Build
            Robots --> Build
        end

        CDN["Hosting/CDN"]:::service
        Build -->|"deploy artifacts"| CDN
    end

    %% Runtime Architecture
    subgraph "Runtime Architecture"
        direction TB
        Browser["User Browser"]:::runtime
        CDN -->|"servesassets"| Browser

        subgraph "React SPA"    
            direction TB
            Main["src/main.tsx"]:::code
            GlobalCSS["src/index.css"]:::code
            Main --> GlobalCSS

            subgraph "Root App"
                direction TB
                AppComp["src/App.tsx"]:::code
                AppStyle["src/App.css"]:::code
                AppComp --> AppStyle
            end
            Main --> AppComp

            subgraph "Pages Layer"
                direction TB
                IndexPage["src/pages/Index.tsx"]:::component
                NotFoundPage["src/pages/NotFound.tsx"]:::component
            end
            AppComp --> PagesLayer["Pages Layer"]
            PagesLayer --> IndexPage
            PagesLayer --> NotFoundPage

            subgraph "Feature Components"
                direction TB
                About["src/components/About.tsx"]:::component
                Contact["src/components/Contact.tsx"]:::component
                Education["src/components/Education.tsx"]:::component
                Experience["src/components/Experience.tsx"]:::component
                Footer["src/components/Footer.tsx"]:::component
                Hero["src/components/Hero.tsx"]:::component
                Navbar["src/components/Navbar.tsx"]:::component
                Projects["src/components/Projects.tsx"]:::component
                Skills["src/components/Skills.tsx"]:::component
            end
            PagesLayer --> FeatureComponents["Feature Components"]
            FeatureComponents --> About
            FeatureComponents --> Contact
            FeatureComponents --> Education
            FeatureComponents --> Experience
            FeatureComponents --> Footer
            FeatureComponents --> Hero
            FeatureComponents --> Navbar
            FeatureComponents --> Projects
            FeatureComponents --> Skills

            subgraph "UI Primitives (shadcn-ui)"
                direction TB
                UIAccordion["src/components/ui/accordion.tsx"]:::primitive
                UIButton["src/components/ui/button.tsx"]:::primitive
                UIDialog["src/components/ui/dialog.tsx"]:::primitive
                UIInput["src/components/ui/input.tsx"]:::primitive
                UIToast["src/components/ui/toast.tsx"]:::primitive
                UIUseToast["src/components/ui/use-toast.ts"]:::primitive
            end
            FeatureComponents --> UIPrimitives["UI Primitives"]
            UIPrimitives --> UIAccordion
            UIPrimitives --> UIButton
            UIPrimitives --> UIDialog
            UIPrimitives --> UIInput
            UIPrimitives --> UIToast
            UIPrimitives --> UIUseToast

            subgraph "Custom Hooks"
                direction TB
                HookMobile["src/hooks/use-mobile.tsx"]:::hook
                HookToast["src/hooks/use-toast.ts"]:::hook
            end
            AppComp --> Hooks["Custom Hooks"]
            Hooks --> HookMobile
            Hooks --> HookToast

            subgraph "Shared Utilities"
                direction TB
                Utils["src/lib/utils.ts"]:::util
            end
            AppComp --> Utils

        end
        Browser -->|"executes"| ReactSPA["React SPA"]
    end

    %% Click Events
    click HTML "https://github.com/anshika21m/portfolio_anshika/blob/main/index.html"
    click ViteConfig "https://github.com/anshika21m/portfolio_anshika/blob/main/vite.config.ts"
    click TSConfig "https://github.com/anshika21m/portfolio_anshika/blob/main/tsconfig.json"
    click TailwindConfig "https://github.com/anshika21m/portfolio_anshika/blob/main/tailwind.config.ts"
    click PostCSSConfig "https://github.com/anshika21m/portfolio_anshika/blob/main/postcss.config.js"
    click PackageJSON "https://github.com/anshika21m/portfolio_anshika/blob/main/package.json"
    click PackageLock "https://github.com/anshika21m/portfolio_anshika/blob/main/package-lock.json"
    click BunLock "https://github.com/anshika21m/portfolio_anshika/blob/main/bun.lockb"
    click Robots "https://github.com/anshika21m/portfolio_anshika/blob/main/public/robots.txt"
    click Main "https://github.com/anshika21m/portfolio_anshika/blob/main/src/main.tsx"
    click GlobalCSS "https://github.com/anshika21m/portfolio_anshika/blob/main/src/index.css"
    click AppComp "https://github.com/anshika21m/portfolio_anshika/blob/main/src/App.tsx"
    click AppStyle "https://github.com/anshika21m/portfolio_anshika/blob/main/src/App.css"
    click IndexPage "https://github.com/anshika21m/portfolio_anshika/blob/main/src/pages/Index.tsx"
    click NotFoundPage "https://github.com/anshika21m/portfolio_anshika/blob/main/src/pages/NotFound.tsx"
    click About "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/About.tsx"
    click Contact "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/Contact.tsx"
    click Education "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/Education.tsx"
    click Experience "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/Experience.tsx"
    click Footer "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/Footer.tsx"
    click Hero "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/Hero.tsx"
    click Navbar "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/Navbar.tsx"
    click Projects "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/Projects.tsx"
    click Skills "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/Skills.tsx"
    click UIAccordion "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/ui/accordion.tsx"
    click UIButton "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/ui/button.tsx"
    click UIDialog "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/ui/dialog.tsx"
    click UIInput "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/ui/input.tsx"
    click UIToast "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/ui/toast.tsx"
    click UIUseToast "https://github.com/anshika21m/portfolio_anshika/blob/main/src/components/ui/use-toast.ts"
    click HookMobile "https://github.com/anshika21m/portfolio_anshika/blob/main/src/hooks/use-mobile.tsx"
    click HookToast "https://github.com/anshika21m/portfolio_anshika/blob/main/src/hooks/use-toast.ts"
    click Utils "https://github.com/anshika21m/portfolio_anshika/blob/main/src/lib/utils.ts"

    %% Styles
    classDef external fill:#f9f,stroke:#333,stroke-width:1px
    classDef service fill:#bbf,stroke:#333,stroke-width:1px
    classDef config fill:#ff9,stroke:#333,stroke-width:1px
    classDef code fill:#cff,stroke:#333,stroke-width:1px
    classDef runtime fill:#9fc,stroke:#333,stroke-width:1px
    classDef component fill:#fcf,stroke:#333,stroke-width:1px
    classDef primitive fill:#fbb,stroke:#333,stroke-width:1px
    classDef hook fill:#bfb,stroke:#333,stroke-width:1px
    classDef util fill:#ffb,stroke:#333,stroke-width:1px
```
