# mohamedelbaha/mair architecture

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

- Interactive diagram: https://gitdiagram.com/mohamedelbaha/mair
- Repository: https://github.com/mohamedelbaha/mair

## Overview

##### Project type and purpose
- From the README (“Moroccans In AI Research”) and the file tree, this is a static content website (HTML/CSS/JS) whose goal is to showcase Moroccan AI researchers. It’s hosted as a static site (note the CNAME file for custom domain).

##### File structure
- Top‐level HTML pages (index.html, about.html, join.html, resources.html, actions.html, phd.html) → these are entry points.
- assets/rea.md (likely markdown resource), images/ (static media), style.css, script.js → front-end styling and behavior.
- researchers_en.json → a data file that script.js fetches to dynamically render researcher listings.
- CNAME → domain configuration (GitHub Pages or other static host).

##### README for additional insights
- No deeper architecture notes; the site is a simple, client‐heavy static site that fetches JSON to populate content.

## Diagram (Mermaid)

```mermaid
flowchart TB
    %% Client
    Browser["Client Browser"]:::client

    %% Infrastructure
    DNS((DNS Service)):::infra
    CDN((CDN / Static Host)):::infra

    %% Subgraph for Static Assets on CDN
    subgraph "Static Assets" 
        direction TB
        INDEX["index.html"]:::static
        ABOUT["about.html"]:::static
        JOIN["join.html"]:::static
        RESOURCES["resources.html"]:::static
        ACTIONS["actions.html"]:::static
        PHD["phd.html"]:::static
        STYLE["style.css"]:::static
        SCRIPT["script.js"]:::static
        IMAGES["images/"]:::static
        MD["assets/rea.md"]:::static
        README["README.md"]:::static
        CNAME["CNAME"]:::static
        JSON[(researchers_en.json)]:::data
    end

    %% Connections
    Browser -->|"Resolve Domain"| DNS
    Browser -->|"GET /index.html"| CDN
    Browser -->|"GET /style.css"| CDN
    Browser -->|"GET /script.js"| CDN
    Browser -->|"GET /images/*"| CDN
    Browser -->|"GET /assets/rea.md"| CDN
    Browser -->|"GET /README.md"| CDN
    Browser -->|"GET /CNAME"| CDN
    Browser -->|"GET /resources.html"| CDN
    Browser -->|"GET /about.html"| CDN
    Browser -->|"GET /join.html"| CDN
    Browser -->|"GET /actions.html"| CDN
    Browser -->|"GET /phd.html"| CDN
    Browser -->|"GET /researchers_en.json"| CDN
    CDN -->|"Serves Assets"| INDEX
    CDN --> ABOUT
    CDN --> JOIN
    CDN --> RESOURCES
    CDN --> ACTIONS
    CDN --> PHD
    CDN --> STYLE
    CDN --> SCRIPT
    CDN --> IMAGES
    CDN --> MD
    CDN --> README
    CDN --> CNAME
    CDN --> JSON

    %% Click Events
    click INDEX "https://github.com/mohamedelbaha/mair/blob/main/index.html"
    click ABOUT "https://github.com/mohamedelbaha/mair/blob/main/about.html"
    click JOIN "https://github.com/mohamedelbaha/mair/blob/main/join.html"
    click RESOURCES "https://github.com/mohamedelbaha/mair/blob/main/resources.html"
    click ACTIONS "https://github.com/mohamedelbaha/mair/blob/main/actions.html"
    click PHD "https://github.com/mohamedelbaha/mair/blob/main/phd.html"
    click SCRIPT "https://github.com/mohamedelbaha/mair/blob/main/script.js"
    click STYLE "https://github.com/mohamedelbaha/mair/blob/main/style.css"
    click JSON "https://github.com/mohamedelbaha/mair/blob/main/researchers_en.json"
    click IMAGES "https://github.com/mohamedelbaha/mair/tree/main/images/"
    click MD "https://github.com/mohamedelbaha/mair/blob/main/assets/rea.md"
    click CNAME "https://github.com/mohamedelbaha/mair/tree/main/CNAME"
    click README "https://github.com/mohamedelbaha/mair/blob/main/README.md"

    %% Styles
    classDef client fill:#D6E9FE,stroke:#3182CE,color:#064273
    classDef infra fill:#E2E8F0,stroke:#A0AEC0,color:#2D3748
    classDef static fill:#F7FAFC,stroke:#CBD5E0,color:#2D3748
    classDef data fill:#FEF3C7,stroke:#F59E0B,color:#B45309
```
