# annht-dev/cnpm-dau architecture

> Architecture diagram of the GitHub repository annht-dev/cnpm-dau, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-09-25). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/annht-dev/cnpm-dau
- Repository: https://github.com/annht-dev/cnpm-dau

## Overview

This is a minimal React greeting page, not a larger domain application: the browser loads the page, the React entry point mounts `App`, and `App` renders a centered welcome heading. The sampled source supports the entry-point and component relationships; the HTML and styling files are present in the tree but their contents were not sampled.

Main entry points: [`main.jsx`](https://github.com/annht-dev/cnpm-dau/blob/main/main.jsx) (React entry), [`App.jsx`](https://github.com/annht-dev/cnpm-dau/blob/main/App.jsx) (Greeting view), [`index.html`](https://github.com/annht-dev/cnpm-dau/blob/main/index.html) (HTML shell), [`index.css`](https://github.com/annht-dev/cnpm-dau/blob/main/index.css) (Global styles)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_ui["Page runtime"]
  node_html["HTML shell<br/>[index.html]"]
  node_entry["React entry<br/>[main.jsx]"]
  node_app["Greeting view<br/>[App.jsx]"]
  node_styles["Global styles<br/>[index.css]"]
end

node_browser(("Browser"))

node_browser -->|"loads page"| node_html
node_entry -->|"mounts into"| node_html
node_entry -->|"renders"| node_app
node_entry -->|"imports"| node_styles
node_app -->|"renders greeting"| node_browser

click node_html "https://github.com/annht-dev/cnpm-dau/blob/main/index.html"
click node_entry "https://github.com/annht-dev/cnpm-dau/blob/main/main.jsx"
click node_app "https://github.com/annht-dev/cnpm-dau/blob/main/App.jsx"
click node_styles "https://github.com/annht-dev/cnpm-dau/blob/main/index.css"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_html,node_entry,node_app,node_styles,node_browser toneBlue
```

## Components

### Page runtime

- [HTML shell](https://github.com/annht-dev/cnpm-dau/blob/main/index.html): `index.html`
- [React entry](https://github.com/annht-dev/cnpm-dau/blob/main/main.jsx): `main.jsx`
- [Greeting view](https://github.com/annht-dev/cnpm-dau/blob/main/App.jsx): `App.jsx`
- [Global styles](https://github.com/annht-dev/cnpm-dau/blob/main/index.css): `index.css`

### Other components

- **Browser**

## Connections

- Browser → HTML shell: loads page
- React entry → HTML shell: mounts into
- React entry → Greeting view: renders
- React entry → Global styles: imports
- Greeting view → Browser: renders greeting
