# jagadeeshwar634-coder/codealpha_my-gallery architecture

> Architecture diagram of the GitHub repository jagadeeshwar634-coder/codealpha_my-gallery, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jagadeeshwar634-coder/codealpha_my-gallery
- Repository: https://github.com/jagadeeshwar634-coder/codealpha_my-gallery

## Overview

This is a small browser image-gallery experience. Users can browse images, open a lightbox, navigate with buttons or arrow keys, close it with Escape, and filter gallery items by category. The JavaScript excerpt shows the lightbox and filtering behavior, but not how opening or filtering is triggered from the page; those connections are therefore omitted.

Main entry points: [`index.html`](https://github.com/jagadeeshwar634-coder/codealpha_my-gallery/blob/main/index.html) (Gallery page), [`work.js`](https://github.com/jagadeeshwar634-coder/codealpha_my-gallery/blob/main/work.js) (Gallery behavior)

## Diagram (Mermaid)

```mermaid
flowchart TD

node_user(("Visitor"))
node_page["Gallery page<br/>[index.html]"]
node_gallery["Gallery behavior<br/>[work.js]"]

node_user -->|"browses"| node_page
node_gallery -->|"updates DOM"| node_page

click node_page "https://github.com/jagadeeshwar634-coder/codealpha_my-gallery/blob/main/index.html"
click node_gallery "https://github.com/jagadeeshwar634-coder/codealpha_my-gallery/blob/main/work.js"

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_user toneIndigo
class node_page,node_gallery toneTeal
```

## Components

### Other components

- **Visitor**
- [Gallery page](https://github.com/jagadeeshwar634-coder/codealpha_my-gallery/blob/main/index.html): `index.html`
- [Gallery behavior](https://github.com/jagadeeshwar634-coder/codealpha_my-gallery/blob/main/work.js): `work.js`

## Connections

- Visitor → Gallery page: browses
- Gallery behavior → Gallery page: updates DOM (evidence: `work.js`)
