# rezniki/vintage-clothes architecture

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

- Interactive diagram: https://gitdiagram.com/rezniki/vintage-clothes
- Repository: https://github.com/rezniki/vintage-clothes

## Overview

##### Project type and purpose
- This is a front-end, multi-page React application (built with Create React App) that serves as a vintage clothing storefront (“Millésime”). It has no backend code in this repo—it’s intended to be built into static assets and served from a CDN or static-hosting platform (e.g., Render).

##### File structure
- Top level
- package.json/npm scripts, README, build config
- public/: static HTML (index.html, manifest.json, robots.txt)
- src/: all React code
- src/components/
- common/: shared UI pieces (Header, Footer, Modal, Forms, i18n selector)
- pages/: one folder per “route” or view (ClothesPage, ShoesPage, etc.)
- src/locales/: JSON translation bundles (en, ru)
- src/index.js → mounts App into public/index.html
- CSS files co-located with each component
- data.js under ClothesPage for local page data

##### README
- Confirms a single-page React app (npm start/build)
- Hosted at vintage-clothes.onrender.com

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Infrastructure layer
    subgraph "Hosting/CDN"
        Hosting["Static Hosting / CDN"]:::infra
    end

    %% Public assets layer
    subgraph "Public Assets"
        index["index.html"]:::assets
        manifest["manifest.json"]:::assets
        robots["robots.txt"]:::assets
    end

    %% React shell and entry point
    subgraph "React Shell"
        indexjs["src/index.js"]:::app
        indexcss["src/index.css"]:::assets
        appjs["src/App.js"]:::app
        appcss["src/App.css"]:::assets
    end

    %% Routing layer
    subgraph "Routing (React Router)"
        router["Router (in App.js)"]:::app
    end

    %% Common UI components
    subgraph "Common UI Components"
        Header["Header"]:::app
        Footer["Footer"]:::app
        Modal["Modal"]:::app
        LangSel["LanguageSelector"]:::app
        i18n["i18n.js"]:::data
        SignIn["SignIn"]:::app
        Register["Register"]:::app
        ProfileSum["Profile"]:::app
        ProfileDetails["ProfileDetails"]:::app
        Selector["Selector"]:::app
        ClothesComp["Clothes"]:::app
    end

    %% Page modules
    subgraph "Page Modules"
        Main["MainPage"]:::app
        ClothesPg["ClothesPage"]:::app
        Acc["AccessoriesPage"]:::app
        Shoes["ShoesPage"]:::app
        Bijou["BijouteriePage"]:::app
        Members["MembersPage"]:::app
        ProfilePg["ProfilePage"]:::app
        Other["OtherPage"]:::app
    end

    %% Static data and assets
    subgraph "Static Data & Assets"
        datajs["data.js"]:::data
        images["img/"]:::data
        fonts["fonts/"]:::data
        locales["Locales JSON"]:::data
        enjson["en.json"]:::data
        rujson["ru.json"]:::data
    end

    %% Connections
    Hosting -->|"HTTP GET index.html"| index
    Hosting -->|"HTTP GET manifest.json"| manifest
    Hosting -->|"HTTP GET robots.txt"| robots

    index -->|"loads"| indexjs
    index -->|"links CSS"| indexcss

    indexjs -->|"renders"| appjs
    appjs -->|"imports CSS"| appcss
    appjs -->|"sets up routing"| router

    router -->|"renders page component"| Main
    router -->|"renders page component"| ClothesPg
    router -->|"renders page component"| Acc
    router -->|"renders page component"| Shoes
    router -->|"renders page component"| Bijou
    router -->|"renders page component"| Members
    router -->|"renders page component"| ProfilePg
    router -->|"renders page component"| Other

    Main -->|"uses components"| Header
    Main --> Footer
    Main --> ClothesComp

    ClothesPg --> Header
    ClothesPg --> Footer
    ClothesPg --> ClothesComp
    ClothesPg -->|"imports"| datajs

    Acc --> Header
    Acc --> Footer

    Shoes --> Header
    Shoes --> Footer

    Bijou --> Header
    Bijou --> Footer

    Members --> Header
    Members --> Footer

    ProfilePg --> Header
    ProfilePg --> Footer
    ProfilePg --> ProfileSum
    ProfilePg --> ProfileDetails

    Other --> Header
    Other --> Footer

    Header --> Modal
    Header --> LangSel

    LangSel -->|"loads"| locales
    locales --> enjson
    locales --> rujson

    ClothesComp --> images
    Main --> images
    datajs --> images
    datajs --> fonts

    %% Click events
    click index "https://github.com/rezniki/vintage-clothes/blob/master/public/index.html"
    click manifest "https://github.com/rezniki/vintage-clothes/blob/master/public/manifest.json"
    click robots "https://github.com/rezniki/vintage-clothes/blob/master/public/robots.txt"
    click indexjs "https://github.com/rezniki/vintage-clothes/blob/master/src/index.js"
    click indexcss "https://github.com/rezniki/vintage-clothes/blob/master/src/index.css"
    click appjs "https://github.com/rezniki/vintage-clothes/blob/master/src/App.js"
    click appcss "https://github.com/rezniki/vintage-clothes/blob/master/src/App.css"
    click router "https://github.com/rezniki/vintage-clothes/blob/master/src/App.js"
    click Header "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/Header/Header.jsx"
    click Footer "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/Footer/Footer.jsx"
    click Modal "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/Modal/Modal.jsx"
    click LangSel "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/LanguageSelector/LanguageSelector.jsx"
    click i18n "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/LanguageSelector/i18n.js"
    click SignIn "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/SignIn/SignIn.jsx"
    click Register "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/Register/Register.jsx"
    click ProfileSum "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/Profile/Profile.jsx"
    click ProfileDetails "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/ProfileDetails/ProfileDetails.jsx"
    click Selector "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/Selector/Selector.jsx"
    click ClothesComp "https://github.com/rezniki/vintage-clothes/blob/master/src/components/common/Clothes/Clothes.jsx"
    click Main "https://github.com/rezniki/vintage-clothes/blob/master/src/components/pages/MainPage/MainPage.jsx"
    click ClothesPg "https://github.com/rezniki/vintage-clothes/blob/master/src/components/pages/ClothesPage/ClothesPage.jsx"
    click Acc "https://github.com/rezniki/vintage-clothes/blob/master/src/components/pages/AccessoriesPage/AccesoriesPage.jsx"
    click Shoes "https://github.com/rezniki/vintage-clothes/blob/master/src/components/pages/ShoesPage/ShoesPage.jsx"
    click Bijou "https://github.com/rezniki/vintage-clothes/blob/master/src/components/pages/BijouteriePage/BijouteriePage.jsx"
    click Members "https://github.com/rezniki/vintage-clothes/blob/master/src/components/pages/MembersPage/MembersPage.jsx"
    click ProfilePg "https://github.com/rezniki/vintage-clothes/blob/master/src/components/pages/ProfilePage/ProfilePage.jsx"
    click Other "https://github.com/rezniki/vintage-clothes/blob/master/src/components/pages/OtherPage/OtherPage.jsx"
    click datajs "https://github.com/rezniki/vintage-clothes/blob/master/src/components/pages/ClothesPage/data.js"
    click images "https://github.com/rezniki/vintage-clothes/tree/master/src/img/"
    click fonts "https://github.com/rezniki/vintage-clothes/tree/master/src/fonts/"
    click enjson "https://github.com/rezniki/vintage-clothes/blob/master/src/locales/en/en.json"
    click rujson "https://github.com/rezniki/vintage-clothes/blob/master/src/locales/ru/ru.json"

    %% Styles
    classDef infra fill:#D0E8FF,stroke:#005B9F,color:#005B9F
    classDef assets fill:#E6F4EA,stroke:#238636,color:#238636
    classDef app fill:#FFE8D8,stroke:#AD4F09,color:#AD4F09
    classDef data fill:#FFF5BA,stroke:#954F00,color:#954F00
```
