# drishtantr/portfolio architecture

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

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

## Overview

##### Main Components
- Client / Browser: This is where users interact with the portfolio.
- HTML Layer: The index.html file serves as the main entry point.
- CSS Layer: Custom styles (in the css folder) and responsive design (responsive.css, style.css) dictate the look and feel.
- JavaScript & Libraries: The lib folder contains various libraries such as Bootstrap, jQuery, Isotope, OwlCarousel, Magnific Popup, and Typed.js that enrich the user experience.
- Assets: The images folder contains visual assets that are used within the site.
- External Configuration: The CNAME file indicates a custom domain is used, suggesting a hosting/deployment detail.

##### File Structure for Architectural Insights
- The project is structured as a static website where the index.html ties together all the CSS and JavaScript functionality.
- The libraries are segregated into a clear subdirectory structure, making it evident which assets provide specific features (e.g., carousel functions from OwlCarousel, responsive behavior via Bootstrap, interactive popups via Magnific Popup).
- There is no backend logic or API endpoints, so the focus is entirely on presentation and client-side interactions.

- Integration of multiple libraries and how they collectively enhance the interactivity of the portfolio.

## Diagram (Mermaid)

```mermaid
flowchart TD
    A["User's Browser"]:::client
    B["index.html (Main Entry Point)"]:::html
    A -->|"Requests"| B

    subgraph "CSS Layer"
        CSS1["Style.css"]:::css
        CSS2["Responsive.css"]:::css
    end
    B -->|"loads"| CSS1
    B -->|"loads"| CSS2

    subgraph "JS Libraries"
        JS1["Bootstrap"]:::js
        JS2["jQuery"]:::js
        JS3["Isotope"]:::js
        JS4["OwlCarousel"]:::js
        JS5["Magnific Popup"]:::js
        JS6["Typed.js"]:::js
    end
    B -->|"calls"| JS1
    B -->|"calls"| JS2
    B -->|"calls"| JS3
    B -->|"calls"| JS4
    B -->|"calls"| JS5
    B -->|"calls"| JS6

    F["Media Assets (Images)"]:::assets
    B -->|"displays"| F

    G["Custom Domain/Hosting (CNAME)"]:::hosting
    B -->|"hosted_on"| G

    click B "https://github.com/drishtantr/portfolio/blob/master/index.html"
    click CSS1 "https://github.com/drishtantr/portfolio/blob/master/css/style.css"
    click CSS2 "https://github.com/drishtantr/portfolio/blob/master/css/responsive.css"
    click JS1 "https://github.com/drishtantr/portfolio/tree/master/lib/bootstrap"
    click JS2 "https://github.com/drishtantr/portfolio/tree/master/lib/jquery"
    click JS3 "https://github.com/drishtantr/portfolio/blob/master/lib/isotope/isotope.pkgd.js"
    click JS4 "https://github.com/drishtantr/portfolio/tree/master/lib/owlcarousel"
    click JS5 "https://github.com/drishtantr/portfolio/tree/master/lib/magnific-popup"
    click JS6 "https://github.com/drishtantr/portfolio/blob/master/lib/typed/typed.js"
    click F "https://github.com/drishtantr/portfolio/tree/master/images"
    click G "https://github.com/drishtantr/portfolio/tree/master/CNAME"

    classDef client fill:#FAD7A0,stroke:#333,stroke-width:2px;
    classDef html fill:#AED6F1,stroke:#333,stroke-width:2px;
    classDef css fill:#A9DFBF,stroke:#333,stroke-width:2px;
    classDef js fill:#F5B7B1,stroke:#333,stroke-width:2px;
    classDef assets fill:#F9E79F,stroke:#333,stroke-width:2px;
    classDef hosting fill:#D7BDE2,stroke:#333,stroke-width:2px;
```
