# zoyaamrit/portfolio architecture

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

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

## Overview

This repository is a personal creative portfolio website. Visitors browse project work in grid or list form, open project details and media, and view an about section; the site also presents a shuffled image gallery and animated cursor/loader effects. The principal runtime behavior is concentrated in one JavaScript file, which stores portfolio content and builds the interactive UI. The README is empty, and the HTML and CSS were not excerpted, so their specific wiring and styling responsibilities cannot be detailed further.

Main entry points: [`includes/script.js`](https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js) (Profile and projects), [`index.html`](https://github.com/zoyaamrit/portfolio/blob/main/index.html) (Portfolio page), [`imgs`](https://github.com/zoyaamrit/portfolio/tree/main/imgs) (Portfolio images)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio browsing"]
  node_site["Portfolio page<br/>[index.html]"]
  node_content["Profile and projects<br/>[script.js]"]
  node_project_views["Grid and list views<br/>[script.js]"]
end

subgraph group_interaction["Visitor interactions"]
  node_project_modal["Project detail modal<br/>[script.js]"]
  node_about["About overlay<br/>[script.js]"]
  node_navigation["View navigation<br/>[script.js]"]
end

subgraph group_presentation["Visual presentation"]
  node_cursor_loader["Cursor and loader<br/>[script.js]"]
  node_image_bank["Portfolio images"]
end

node_visitor(("Visitor"))

node_visitor -.->|"views"| node_site
node_content -->|"renders projects"| node_project_views
node_project_views -->|"opens selected"| node_project_modal
node_navigation -->|"switches view"| node_project_views
node_navigation -->|"opens about"| node_about
node_content -->|"supplies project data"| node_project_modal
node_content -->|"references images"| node_image_bank
node_cursor_loader -->|"updates page elements"| node_site

click node_site "https://github.com/zoyaamrit/portfolio/blob/main/index.html"
click node_content "https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js"
click node_project_views "https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js"
click node_project_modal "https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js"
click node_about "https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js"
click node_navigation "https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js"
click node_cursor_loader "https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js"
click node_image_bank "https://github.com/zoyaamrit/portfolio/tree/main/imgs"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_site,node_content,node_project_views toneBlue
class node_project_modal,node_about,node_navigation toneAmber
class node_cursor_loader,node_image_bank toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio browsing

- [Portfolio page](https://github.com/zoyaamrit/portfolio/blob/main/index.html): `index.html`
- [Profile and projects](https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js): `includes/script.js`
- [Grid and list views](https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js): `includes/script.js`

### Visitor interactions

- [Project detail modal](https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js): `includes/script.js`
- [About overlay](https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js): `includes/script.js`
- [View navigation](https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js): `includes/script.js`

### Visual presentation

- [Cursor and loader](https://github.com/zoyaamrit/portfolio/blob/main/includes/script.js): `includes/script.js`
- [Portfolio images](https://github.com/zoyaamrit/portfolio/tree/main/imgs): `imgs`

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio page: views
- Profile and projects → Grid and list views: renders projects (evidence: `includes/script.js`)
- Grid and list views → Project detail modal: opens selected (evidence: `includes/script.js`)
- View navigation → Grid and list views: switches view (evidence: `includes/script.js`)
- View navigation → About overlay: opens about (evidence: `includes/script.js`)
- Profile and projects → Project detail modal: supplies project data (evidence: `includes/script.js`)
- Profile and projects → Portfolio images: references images (evidence: `includes/script.js`)
- Cursor and loader → Portfolio page: updates page elements (evidence: `includes/script.js`)
