# muradyanhayk/anush-center architecture

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

- Interactive diagram: https://gitdiagram.com/muradyanhayk/anush-center
- Repository: https://github.com/muradyanhayk/anush-center

## Overview

This is a React educational-center site: visitors browse a home page, navigate to lessons, and can open a lesson detail route. The lesson catalog is initialized in App from a local service function and rendered as cards. Header and drawer share navigation items, with App owning drawer visibility. The excerpts show routing and component composition, but not a working card-selection handoff; CardList expects a callback that App does not pass. The service-worker module is present but explicitly unregistered at startup.

Main entry points: [`src/components/app/App.jsx`](https://github.com/muradyanhayk/anush-center/blob/master/src/components/app/App.jsx) (App router), [`src/components/header/Header.jsx`](https://github.com/muradyanhayk/anush-center/blob/master/src/components/header/Header.jsx) (Header), [`src/components/items/Items.jsx`](https://github.com/muradyanhayk/anush-center/blob/master/src/components/items/Items.jsx) (Navigation links), [`src/components/card-list/CardList.jsx`](https://github.com/muradyanhayk/anush-center/blob/master/src/components/card-list/CardList.jsx) (Lesson catalog)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application and routes"]
  node_app["App router<br/>[App.jsx]"]
  node_home["Home page<br/>[HomePage.jsx]"]
  node_about["About route<br/>[App.jsx]"]
  node_contact["Contact route<br/>[App.jsx]"]
  node_worker["Service worker control<br/>[serviceWorker.js]"]
  node_entry["React entry point<br/>[index.js]"]
end

subgraph group_navigation["Navigation interface"]
  node_header["Header<br/>[Header.jsx]"]
  node_items["Navigation links<br/>[Items.jsx]"]
  node_toggle["Drawer toggle"]
  node_drawer["Side drawer<br/>[SideDrawer.jsx]"]
  node_backdrop["Drawer backdrop<br/>[BackDrop.jsx]"]
end

subgraph group_lessons["Lesson browsing"]
  node_catalog["Lesson catalog<br/>[CardList.jsx]"]
  node_card["Lesson card<br/>[Card.jsx]"]
  node_detail["Lesson detail<br/>[CardPage.jsx]"]
  node_lesson_data["Lesson data<br/>[service.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_app
node_entry -->|"renders"| node_app
node_app -->|"loads"| node_lesson_data
node_app -->|"renders"| node_header
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_catalog
node_app -->|"routes to"| node_detail
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_contact
node_app -->|"renders and controls"| node_drawer
node_app -->|"renders when open"| node_backdrop
node_header -->|"renders"| node_toggle
node_header -->|"renders"| node_items
node_drawer -->|"renders"| node_items
node_items -->|"links to lessons"| node_catalog
node_catalog -->|"renders"| node_card
node_entry -->|"unregisters"| node_worker

click node_app "https://github.com/muradyanhayk/anush-center/blob/master/src/components/app/App.jsx"
click node_home "https://github.com/muradyanhayk/anush-center/blob/master/src/components/home-page/HomePage.jsx"
click node_about "https://github.com/muradyanhayk/anush-center/blob/master/src/components/app/App.jsx"
click node_contact "https://github.com/muradyanhayk/anush-center/blob/master/src/components/app/App.jsx"
click node_header "https://github.com/muradyanhayk/anush-center/blob/master/src/components/header/Header.jsx"
click node_items "https://github.com/muradyanhayk/anush-center/blob/master/src/components/items/Items.jsx"
click node_toggle "https://github.com/muradyanhayk/anush-center/blob/master/src/components/drawer-toggle-button/DrawerToggleButton.jsx"
click node_drawer "https://github.com/muradyanhayk/anush-center/blob/master/src/components/side-drawer/SideDrawer.jsx"
click node_backdrop "https://github.com/muradyanhayk/anush-center/blob/master/src/components/back-drop/BackDrop.jsx"
click node_catalog "https://github.com/muradyanhayk/anush-center/blob/master/src/components/card-list/CardList.jsx"
click node_card "https://github.com/muradyanhayk/anush-center/blob/master/src/components/card/Card.jsx"
click node_detail "https://github.com/muradyanhayk/anush-center/blob/master/src/components/card-page/CardPage.jsx"
click node_lesson_data "https://github.com/muradyanhayk/anush-center/blob/master/src/service/service.js"
click node_worker "https://github.com/muradyanhayk/anush-center/blob/master/src/serviceWorker.js"
click node_entry "https://github.com/muradyanhayk/anush-center/blob/master/src/index.js"

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_app,node_home,node_about,node_contact,node_worker,node_entry toneBlue
class node_header,node_items,node_toggle,node_drawer,node_backdrop toneAmber
class node_catalog,node_card,node_detail,node_lesson_data toneMint
class node_visitor toneIndigo
```

## Components

### Application and routes

- [App router](https://github.com/muradyanhayk/anush-center/blob/master/src/components/app/App.jsx): `src/components/app/App.jsx`
- [Home page](https://github.com/muradyanhayk/anush-center/blob/master/src/components/home-page/HomePage.jsx): `src/components/home-page/HomePage.jsx`
- [About route](https://github.com/muradyanhayk/anush-center/blob/master/src/components/app/App.jsx): `src/components/app/App.jsx`
- [Contact route](https://github.com/muradyanhayk/anush-center/blob/master/src/components/app/App.jsx): `src/components/app/App.jsx`
- [Service worker control](https://github.com/muradyanhayk/anush-center/blob/master/src/serviceWorker.js): `src/serviceWorker.js`
- [React entry point](https://github.com/muradyanhayk/anush-center/blob/master/src/index.js): `src/index.js`

### Navigation interface

- [Header](https://github.com/muradyanhayk/anush-center/blob/master/src/components/header/Header.jsx): `src/components/header/Header.jsx`
- [Navigation links](https://github.com/muradyanhayk/anush-center/blob/master/src/components/items/Items.jsx): `src/components/items/Items.jsx`
- [Drawer toggle](https://github.com/muradyanhayk/anush-center/blob/master/src/components/drawer-toggle-button/DrawerToggleButton.jsx): `src/components/drawer-toggle-button/DrawerToggleButton.jsx`
- [Side drawer](https://github.com/muradyanhayk/anush-center/blob/master/src/components/side-drawer/SideDrawer.jsx): `src/components/side-drawer/SideDrawer.jsx`
- [Drawer backdrop](https://github.com/muradyanhayk/anush-center/blob/master/src/components/back-drop/BackDrop.jsx): `src/components/back-drop/BackDrop.jsx`

### Lesson browsing

- [Lesson catalog](https://github.com/muradyanhayk/anush-center/blob/master/src/components/card-list/CardList.jsx): `src/components/card-list/CardList.jsx`
- [Lesson card](https://github.com/muradyanhayk/anush-center/blob/master/src/components/card/Card.jsx): `src/components/card/Card.jsx`
- [Lesson detail](https://github.com/muradyanhayk/anush-center/blob/master/src/components/card-page/CardPage.jsx): `src/components/card-page/CardPage.jsx`
- [Lesson data](https://github.com/muradyanhayk/anush-center/blob/master/src/service/service.js): `src/service/service.js`

### Other components

- **Visitor**

## Connections

- Visitor → App router: opens
- React entry point → App router: renders (evidence: `src/index.js`)
- App router → Lesson data: loads (evidence: `src/components/app/App.jsx`)
- App router → Header: renders (evidence: `src/components/app/App.jsx`)
- App router → Home page: routes to (evidence: `src/components/app/App.jsx`)
- App router → Lesson catalog: routes to (evidence: `src/components/app/App.jsx`)
- App router → Lesson detail: routes to (evidence: `src/components/app/App.jsx`)
- App router → About route: routes to (evidence: `src/components/app/App.jsx`)
- App router → Contact route: routes to (evidence: `src/components/app/App.jsx`)
- App router → Side drawer: renders and controls (evidence: `src/components/app/App.jsx`)
- App router → Drawer backdrop: renders when open (evidence: `src/components/app/App.jsx`)
- Header → Drawer toggle: renders (evidence: `src/components/header/Header.jsx`)
- Header → Navigation links: renders (evidence: `src/components/header/Header.jsx`)
- Side drawer → Navigation links: renders (evidence: `src/components/side-drawer/SideDrawer.jsx`)
- Navigation links → Lesson catalog: links to lessons (evidence: `src/components/items/Items.jsx`)
- Lesson catalog → Lesson card: renders (evidence: `src/components/card-list/CardList.jsx`)
- React entry point → Service worker control: unregisters (evidence: `src/index.js`)
