# hassan-creater/tashheer architecture

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

- Interactive diagram: https://gitdiagram.com/hassan-creater/tashheer
- Repository: https://github.com/hassan-creater/tashheer

## Overview

##### Project type and purpose
- This is a React single-page application (SPA) scaffolded with Vite.
- It serves as a static marketing site with pages like Home, Agency, Blogs, Client, Contact, and Services, each backed by React components and static data arrays.

##### File structure
- Top-level config:
- vite.config.js (dev & build config)
- tailwind.config.js & postcss.config.js (styling pipeline)
- eslint.config.js (linting rules)
- Public assets:
- index.html (entry point)
- Source code (src/):
- main.jsx & App.jsx (bootstrapping & root component)
- Layout/ (shared layout wrapper)
- Pages/ (Home, Agency, Blogs, etc.)
- Components/ (UI building blocks: NavBar, Footer, Cards, Pagination, etc.)
- DataArrays/ (JSON-style modules providing static content)

##### README
- Confirms a minimal React+Vite setup with Fast Refresh via the plugin-react SWC/Babel plugin.
- No backend or external API—purely front-end.

## Diagram (Mermaid)

```mermaid
flowchart TD
    %% Development & Production Workflow
    Developer["Developer"]:::external
    ViteDev["Vite Dev Server"]:::service
    BrowserDev["Browser (Dev)"]:::external
    ViteBuild["Vite Build"]:::service
    CDN["CDN / Static Host"]:::infra
    BrowserProd["Browser (Prod)"]:::external

    Developer -->|develops| ViteDev
    ViteDev -->|serves SPA| BrowserDev
    Developer -->|builds| ViteBuild
    ViteBuild -->|outputs static assets| CDN
    CDN -->|serves SPA| BrowserProd

    %% React Application Layers
    subgraph "React Application" 
        direction TB
        Entry["index.html"]:::module
        Main["main.jsx"]:::module
        App["App.jsx"]:::module
        Layout["Layout.jsx"]:::module

        subgraph "Pages"
            direction TB
            Home["Home.jsx"]:::module
            Agency["Agency.jsx"]:::module
            Blogs["Blogs.jsx"]:::module
            Client["Client.jsx"]:::module
            Contact["Contact.jsx"]:::module
            Services["Services.jsx"]:::module
        end

        subgraph "UI Components"
            direction TB
            Navbar["Navbar.jsx"]:::ui
            Footer["Footer.jsx"]:::ui
            BlogsCardsComp["BlogsCards.jsx"]:::ui
            BlogsPagination["BlogsPagination.jsx"]:::ui
            BlogSlides["BlogSlidesCards.jsx"]:::ui
            ClientsCardsComp["Clients.jsx"]:::ui
            Pagination["Pagination.jsx"]:::ui
            Interested["Interested-in-work.jsx"]:::ui
            Partners["Partners.jsx"]:::ui
            RequestCall["RequestCall.jsx"]:::ui
            ScrollArrow["ScrollArrow.jsx"]:::ui
            Whatsapp["Whatsapp.jsx"]:::ui
        end

        subgraph "Data Modules"
            direction TB
            AgencyData["AgencyCards.jsx"]:::data
            BlogsData["BlogsCards.jsx"]:::data
            ClientsData["ClientsCards.jsx"]:::data
            HomeData["HomeCards.jsx"]:::data
            ServicesData["ServicesCards.jsx"]:::data
        end
    end

    %% Styling Pipeline
    subgraph "Styling Pipeline"
        direction TB
        TailwindCfg["tailwind.config.js"]:::styling
        PostCSSCfg["postcss.config.js"]:::styling
        GlobalCSS["index.css"]:::styling
    end

    %% Internal Flows
    BrowserDev --> Entry
    BrowserProd --> Entry
    Entry --> Main
    Main --> App
    App --> Layout
    Layout --> Home
    Layout --> Agency
    Layout --> Blogs
    Layout --> Client
    Layout --> Contact
    Layout --> Services
    Home --> Navbar
    Agency --> Navbar
    Blogs --> Navbar
    Client --> Navbar
    Contact --> Navbar
    Services --> Navbar
    Home --> Footer
    Agency --> Footer
    Blogs --> Footer
    Client --> Footer
    Contact --> Footer
    Services --> Footer
    Home --> HomeData
    Agency --> AgencyData
    Blogs --> BlogsData
    Client --> ClientsData
    Services --> ServicesData
    Home --> BlogsCardsComp
    Blogs --> BlogsCardsComp
    Blogs --> BlogsPagination
    Blogs --> BlogSlides
    Client --> ClientsCardsComp
    Home --> Interested
    Home --> Partners
    Home --> RequestCall
    Layout --> ScrollArrow
    Layout --> Whatsapp
    Home --> Pagination

    TailwindCfg --> ViteDev
    PostCSSCfg --> ViteDev
    GlobalCSS --> ViteDev
    TailwindCfg --> ViteBuild
    PostCSSCfg --> ViteBuild
    GlobalCSS --> ViteBuild

    %% Click Events
    click Entry "https://github.com/hassan-creater/tashheer/blob/main/index.html"
    click Main "https://github.com/hassan-creater/tashheer/blob/main/src/main.jsx"
    click App "https://github.com/hassan-creater/tashheer/blob/main/src/App.jsx"
    click Layout "https://github.com/hassan-creater/tashheer/blob/main/src/Layout/Layout.jsx"
    click Home "https://github.com/hassan-creater/tashheer/blob/main/src/Pages/Home/Home.jsx"
    click Agency "https://github.com/hassan-creater/tashheer/blob/main/src/Pages/Agency/Agency.jsx"
    click Blogs "https://github.com/hassan-creater/tashheer/blob/main/src/Pages/Blogs/Blogs.jsx"
    click Client "https://github.com/hassan-creater/tashheer/blob/main/src/Pages/Client/Client.jsx"
    click Contact "https://github.com/hassan-creater/tashheer/blob/main/src/Pages/Contact/Contact.jsx"
    click Services "https://github.com/hassan-creater/tashheer/blob/main/src/Pages/Services/Services.jsx"
    click Navbar "https://github.com/hassan-creater/tashheer/blob/main/src/Components/NavBar/Navbar.jsx"
    click Footer "https://github.com/hassan-creater/tashheer/blob/main/src/Components/Footer/Footer.jsx"
    click BlogsCardsComp "https://github.com/hassan-creater/tashheer/blob/main/src/Components/BlogsCards/BlogsCards.jsx"
    click BlogsPagination "https://github.com/hassan-creater/tashheer/blob/main/src/Components/Pagination/BlogsCards/BlogsPagination.jsx"
    click BlogSlides "https://github.com/hassan-creater/tashheer/blob/main/src/Components/BlogsSlidesCards/BlogSlidesCards.jsx"
    click ClientsCardsComp "https://github.com/hassan-creater/tashheer/blob/main/src/Components/Pagination/ClientsCards/Clients.jsx"
    click Pagination "https://github.com/hassan-creater/tashheer/blob/main/src/Components/Pagination/Pagination.jsx"
    click Interested "https://github.com/hassan-creater/tashheer/blob/main/src/Components/Interested-In-Work/Interested-in-work.jsx"
    click Partners "https://github.com/hassan-creater/tashheer/blob/main/src/Components/PartnersWith/Partners.jsx"
    click RequestCall "https://github.com/hassan-creater/tashheer/blob/main/src/Components/RequestCallback/RequestCall.jsx"
    click ScrollArrow "https://github.com/hassan-creater/tashheer/blob/main/src/Components/ScrollArrow/ScrollArrow.jsx"
    click Whatsapp "https://github.com/hassan-creater/tashheer/blob/main/src/Components/Whatsapp/Whatsapp.jsx"
    click AgencyData "https://github.com/hassan-creater/tashheer/blob/main/src/DataArrays/AgencyCards.jsx"
    click BlogsData "https://github.com/hassan-creater/tashheer/blob/main/src/DataArrays/BlogsCards.jsx"
    click ClientsData "https://github.com/hassan-creater/tashheer/blob/main/src/DataArrays/ClientsCards.jsx"
    click HomeData "https://github.com/hassan-creater/tashheer/blob/main/src/DataArrays/HomeCards.jsx"
    click ServicesData "https://github.com/hassan-creater/tashheer/blob/main/src/DataArrays/ServicesCards.jsx"

    %% Styles
    classDef external fill:#eef,stroke:#888,stroke-width:1px
    classDef service fill:#fde,stroke:#f96,stroke-width:2px
    classDef infra fill:#efe,stroke:#6c6,stroke-width:2px
    classDef module fill:#def,stroke:#69f,stroke-width:1px
    classDef ui fill:#cdf,stroke:#39c,stroke-width:1px
    classDef data fill:#dfd,stroke:#3a3,stroke-width:1px
    classDef styling fill:#ffd,stroke:#fc0,stroke-width:1px
```
