# vitngu/photography-portfolio architecture

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

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

## Overview

##### Main components
- Browser Client: Represents the end-user’s web browser where the application runs.
- index.html: Serves as the entry point of the web application.
- main.js: Contains the application’s JavaScript logic, handling interactivity and dynamic content updates.
- style.css: Provides the styling and layout details for the HTML elements.
- README: Although minimal, it provides metadata that might be useful for versioning or project identification.

##### Relationships and interactions
- Browser Client loading index.html.
- Optionally, if there are external libraries included (e.g., via CDN in the HTML), add a component for these external dependencies.

##### Architectural patterns
- Although this project is relatively straightforward, it adheres to common web design principles by separating structure (HTML), presentation (CSS), and behavior (JavaScript).
- This separation reinforces the modularity of the code and helps clarify the responsibilities of each component.
- Static nature of the asset files (thus enhancing performance by caching).

##### Relevant technologies
- HTML5 is used for structuring the content.
- CSS is used for style and design.
- JavaScript (as contained in main.js) is used for interactivity.

## Diagram (Mermaid)

```mermaid
flowchart TD
    BrowserClient["Browser Client"]:::client
    Index["index.html"]:::core
    JS["main.js"]:::core
    CSS["style.css"]:::core
    Icons["Static Assets: Icons"]:::asset
    Images["Static Assets: Images"]:::asset
    Readme["README (Project Metadata)"]:::meta

    BrowserClient -->|"loads"| Index
    Index -->|"references"| JS
    Index -->|"references"| CSS
    JS -->|"loads"| Icons
    JS -->|"loads"| Images
    CSS -->|"loads"| Icons
    CSS -->|"loads"| Images

    classDef client fill:#FFD700,stroke:#000000,stroke-width:1px
    classDef core fill:#ADD8E6,stroke:#000000,stroke-width:1px
    classDef asset fill:#90EE90,stroke:#000000,stroke-width:1px
    classDef meta fill:#FFB6C1,stroke:#000000,stroke-width:1px

    click Index "https://github.com/vitngu/photography-portfolio/blob/main//index.html"
    click JS "https://github.com/vitngu/photography-portfolio/blob/main//main.js"
    click CSS "https://github.com/vitngu/photography-portfolio/blob/main//style.css"
    click Icons "https://github.com/vitngu/photography-portfolio/tree/main//icon"
    click Images "https://github.com/vitngu/photography-portfolio/tree/main//img"
    click Readme "https://github.com/vitngu/photography-portfolio/blob/main//README.md"
```
