# johanas/web_project_around architecture

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

- Interactive diagram: https://gitdiagram.com/johanas/web_project_around
- Repository: https://github.com/johanas/web_project_around

## Overview

##### Project type and purpose
- This is a single‐page, front‐end‐only blog/profile application written in HTML, CSS and modular JavaScript (object-oriented).
- Its purpose is to display a list of “cards” (blog items or images) and allow the user to open a pop-up form to edit a user profile or add new cards.

##### File structure
- index.html
- blocks/ (atomic CSS modules for cards, header, footer, popup, etc.)
- pages/ (page-specific CSS, e.g. index.css)
- scripts/ (JavaScript modules: Card.js, FormValidator.js, Utils.js, index.js, etc.)
- images/ (static image assets)
- vendor/ (third-party CSS/JS libraries)
- config files (.editorconfig, .gitignore, .prettierignore)

##### README for additional insights
- The README explains that the project was refactored to use classes (Card, FormValidators, Utils) for modularity and maintainability.
- No back-end or database—static hosting on GitHub Pages is used.

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "GitHub Pages (Static Host)"
        IH["index.html"]:::entry
        subgraph "CSS Modules"
            CM1["cards.css"]:::static
            CM2["content.css"]:::static
            CM3["footer.css"]:::static
            CM4["header.css"]:::static
            CM5["page.css"]:::static
            CM6["popup.css"]:::static
            CM7["profile.css"]:::static
        end
        PM["index.css"]:::static
        subgraph "JavaScript Modules"
            JS1["index.js"]:::module
            JS2["card.js"]:::module
            JS3["formValidator.js"]:::module
            JS4["utils.js"]:::module
        end
        IMG["images/"]:::static
        VEND["vendor/"]:::static
        subgraph "Config Files"
            CFG1[".editorconfig"]:::static
            CFG2[".gitignore"]:::static
            CFG3[".prettierignore"]:::static
            CFG4["README.md"]:::static
        end
    end

    BROWSER["Browser/Client"]:::component

    BROWSER -->|"HTTP GET index.html"| IH
    IH -->|"link CSS modules"| CM1
    IH -->|"link CSS modules"| CM2
    IH -->|"link CSS modules"| CM3
    IH -->|"link CSS modules"| CM4
    IH -->|"link CSS modules"| CM5
    IH -->|"link CSS modules"| CM6
    IH -->|"link CSS modules"| CM7
    IH -->|"link CSS"| PM
    IH -->|"load vendor assets"| VEND
    IH -->|"load JS modules"| JS1

    JS1 -->|"Instantiate FormValidator"| JS3
    JS1 -->|"Instantiate Card"| JS2
    JS1 -->|"Use Utils for popups"| JS4

    JS1 -->|"Listen to user events"| BROWSER
    JS3 -->|"Validate form"| JS2
    JS2 -->|"Render DOM elements"| BROWSER
    JS2 -->|"Load images"| IMG

    click IH "https://github.com/johanas/web_project_around/blob/main/index.html"
    click CM1 "https://github.com/johanas/web_project_around/blob/main/blocks/cards.css"
    click CM2 "https://github.com/johanas/web_project_around/blob/main/blocks/content.css"
    click CM3 "https://github.com/johanas/web_project_around/blob/main/blocks/footer.css"
    click CM4 "https://github.com/johanas/web_project_around/blob/main/blocks/header.css"
    click CM5 "https://github.com/johanas/web_project_around/blob/main/blocks/page.css"
    click CM6 "https://github.com/johanas/web_project_around/blob/main/blocks/popup.css"
    click CM7 "https://github.com/johanas/web_project_around/blob/main/blocks/profile.css"
    click PM "https://github.com/johanas/web_project_around/blob/main/pages/index.css"
    click JS1 "https://github.com/johanas/web_project_around/blob/main/scripts/index.js"
    click JS2 "https://github.com/johanas/web_project_around/blob/main/scripts/card.js"
    click JS3 "https://github.com/johanas/web_project_around/blob/main/scripts/formValidator.js"
    click JS4 "https://github.com/johanas/web_project_around/blob/main/scripts/utils.js"
    click IMG "https://github.com/johanas/web_project_around/tree/main/images/"
    click VEND "https://github.com/johanas/web_project_around/tree/main/vendor/"
    click CFG1 "https://github.com/johanas/web_project_around/blob/main/.editorconfig"
    click CFG2 "https://github.com/johanas/web_project_around/blob/main/.gitignore"
    click CFG3 "https://github.com/johanas/web_project_around/blob/main/.prettierignore"
    click CFG4 "https://github.com/johanas/web_project_around/blob/main/README.md"

    classDef entry fill:#ffa500,stroke:#333,stroke-width:1px
    classDef static fill:#ADD8E6,stroke:#333,stroke-width:1px
    classDef module fill:#90EE90,stroke:#333,stroke-width:1px
    classDef component fill:#f2f2f2,stroke:#333,stroke-width:1px
```
