# nazarrbek/ern_burgers architecture

> Architecture diagram of the GitHub repository nazarrbek/ern_burgers, 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/nazarrbek/ern_burgers
- Repository: https://github.com/nazarrbek/ern_burgers

## Overview

ERN Burgers is a static restaurant website: visitors browse its pages and interact with lightweight in-browser features. The graph preserves the documented menu, gallery, brand story, contact and catering areas, plus sampled interactions for filtering, cart/order feedback, search, and presentation. The README establishes the page roles; sampled JavaScript shows browser-side behavior. HTML page contents and script-to-page wiring were not excerpted, so those connections are omitted rather than inferred.

Main entry points: [`js/script-nazarbek.js`](https://github.com/nazarrbek/ern_burgers/blob/main/js/script-nazarbek.js) (Cart and order), [`js/script-eldos.js`](https://github.com/nazarrbek/ern_burgers/blob/main/js/script-eldos.js) (Burger demos), [`js/js/theme.js`](https://github.com/nazarrbek/ern_burgers/blob/main/js/js/theme.js) (Theme control), [`js/button.js`](https://github.com/nazarrbek/ern_burgers/blob/main/js/button.js) (Menu filtering)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Restaurant site"]
  node_home["Home<br/>[index.html]"]
  node_menu["Menu<br/>[menu.html]"]
  node_gallery["Gallery<br/>[gallery.html]"]
  node_about["About<br/>[about.html]"]
  node_contacts["Contacts<br/>[contacts.html]"]
  node_catering["Catering<br/>[catering.html]"]
end

subgraph group_interaction["Visitor interactions"]
  node_menu_filter["Menu filtering<br/>[button.js]"]
  node_cart_order["Cart and order<br/>[script-nazarbek.js]"]
  node_burger_demos["Burger demos<br/>[script-eldos.js]"]
  node_search_tools["Search tools<br/>[jquery-features.js]"]
  node_form_feedback["Form feedback<br/>[jquery-tasks.js]"]
  node_accordion["Accordion"]
  node_popup["Subscription popup<br/>[popup-nazarbek.js]"]
end

subgraph group_presentation["Presentation"]
  node_theme["Theme control<br/>[theme.js]"]
  node_background["Background and keys<br/>[script-eldos.js]"]
  node_styles["Site styles<br/>[style.css]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_home
node_visitor -->|"browses"| node_menu
node_visitor -->|"browses"| node_gallery
node_visitor -->|"reads"| node_about
node_visitor -->|"finds details"| node_contacts
node_visitor -->|"explores"| node_catering
node_visitor -->|"filters"| node_menu_filter
node_menu_filter -->|"hides cards"| node_menu
node_visitor -->|"manages cart"| node_cart_order
node_cart_order -->|"updates count and total"| node_cart_order
node_visitor -->|"uses demos"| node_burger_demos
node_burger_demos -->|"filters burger list"| node_burger_demos
node_visitor -->|"searches"| node_search_tools
node_visitor -->|"submits form"| node_form_feedback
node_visitor -->|"expands sections"| node_accordion
node_visitor -->|"opens and submits"| node_popup
node_visitor -->|"changes theme"| node_theme
node_theme -->|"persists choice"| node_theme
node_visitor -->|"changes background"| node_background
node_visitor -.->|"views styled pages"| node_styles

click node_home "https://github.com/nazarrbek/ern_burgers/blob/main/index.html"
click node_menu "https://github.com/nazarrbek/ern_burgers/blob/main/menu.html"
click node_gallery "https://github.com/nazarrbek/ern_burgers/blob/main/gallery.html"
click node_about "https://github.com/nazarrbek/ern_burgers/blob/main/about.html"
click node_contacts "https://github.com/nazarrbek/ern_burgers/blob/main/contacts.html"
click node_catering "https://github.com/nazarrbek/ern_burgers/blob/main/catering.html"
click node_menu_filter "https://github.com/nazarrbek/ern_burgers/blob/main/js/button.js"
click node_cart_order "https://github.com/nazarrbek/ern_burgers/blob/main/js/script-nazarbek.js"
click node_burger_demos "https://github.com/nazarrbek/ern_burgers/blob/main/js/script-eldos.js"
click node_search_tools "https://github.com/nazarrbek/ern_burgers/blob/main/js/jquery-features.js"
click node_form_feedback "https://github.com/nazarrbek/ern_burgers/blob/main/js/jquery-tasks.js"
click node_accordion "https://github.com/nazarrbek/ern_burgers/blob/main/js/acordion-nazarbek.js"
click node_popup "https://github.com/nazarrbek/ern_burgers/blob/main/js/popup-nazarbek.js"
click node_theme "https://github.com/nazarrbek/ern_burgers/blob/main/js/js/theme.js"
click node_background "https://github.com/nazarrbek/ern_burgers/blob/main/js/script-eldos.js"
click node_styles "https://github.com/nazarrbek/ern_burgers/blob/main/css/style.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_home,node_menu,node_gallery,node_about,node_contacts,node_catering toneBlue
class node_menu_filter,node_cart_order,node_burger_demos,node_search_tools,node_form_feedback,node_accordion,node_popup toneAmber
class node_theme,node_background,node_styles toneMint
class node_visitor toneIndigo
```

## Components

### Restaurant site

- [Home](https://github.com/nazarrbek/ern_burgers/blob/main/index.html): `index.html`
- [Menu](https://github.com/nazarrbek/ern_burgers/blob/main/menu.html): `menu.html`
- [Gallery](https://github.com/nazarrbek/ern_burgers/blob/main/gallery.html): `gallery.html`
- [About](https://github.com/nazarrbek/ern_burgers/blob/main/about.html): `about.html`
- [Contacts](https://github.com/nazarrbek/ern_burgers/blob/main/contacts.html): `contacts.html`
- [Catering](https://github.com/nazarrbek/ern_burgers/blob/main/catering.html): `catering.html`

### Visitor interactions

- [Menu filtering](https://github.com/nazarrbek/ern_burgers/blob/main/js/button.js): `js/button.js`
- [Cart and order](https://github.com/nazarrbek/ern_burgers/blob/main/js/script-nazarbek.js): `js/script-nazarbek.js`
- [Burger demos](https://github.com/nazarrbek/ern_burgers/blob/main/js/script-eldos.js): `js/script-eldos.js`
- [Search tools](https://github.com/nazarrbek/ern_burgers/blob/main/js/jquery-features.js): `js/jquery-features.js`
- [Form feedback](https://github.com/nazarrbek/ern_burgers/blob/main/js/jquery-tasks.js): `js/jquery-tasks.js`
- [Accordion](https://github.com/nazarrbek/ern_burgers/blob/main/js/acordion-nazarbek.js): `js/acordion-nazarbek.js`
- [Subscription popup](https://github.com/nazarrbek/ern_burgers/blob/main/js/popup-nazarbek.js): `js/popup-nazarbek.js`

### Presentation

- [Theme control](https://github.com/nazarrbek/ern_burgers/blob/main/js/js/theme.js): `js/js/theme.js`
- [Background and keys](https://github.com/nazarrbek/ern_burgers/blob/main/js/script-eldos.js): `js/script-eldos.js`
- [Site styles](https://github.com/nazarrbek/ern_burgers/blob/main/css/style.css): `css/style.css`

### Other components

- **Visitor**

## Connections

- Visitor → Home: opens (evidence: `README.md`)
- Visitor → Menu: browses (evidence: `README.md`)
- Visitor → Gallery: browses (evidence: `README.md`)
- Visitor → About: reads (evidence: `README.md`)
- Visitor → Contacts: finds details (evidence: `README.md`)
- Visitor → Catering: explores (evidence: `README.md`)
- Visitor → Menu filtering: filters (evidence: `js/button.js`)
- Menu filtering → Menu: hides cards (evidence: `js/button.js`)
- Visitor → Cart and order: manages cart (evidence: `js/script-nazarbek.js`)
- Cart and order → Cart and order: updates count and total (evidence: `js/script-nazarbek.js`)
- Visitor → Burger demos: uses demos (evidence: `js/script-eldos.js`)
- Burger demos → Burger demos: filters burger list (evidence: `js/script-eldos.js`)
- Visitor → Search tools: searches (evidence: `js/jquery-features.js`)
- Visitor → Form feedback: submits form (evidence: `js/jquery-tasks.js`)
- Visitor → Accordion: expands sections (evidence: `js/acordion-nazarbek.js`)
- Visitor → Subscription popup: opens and submits (evidence: `js/popup-nazarbek.js`)
- Visitor → Theme control: changes theme (evidence: `js/js/theme.js`)
- Theme control → Theme control: persists choice (evidence: `js/js/theme.js`)
- Visitor → Background and keys: changes background (evidence: `js/script-eldos.js`)
- Visitor → Site styles: views styled pages
