# artifonn/page-pizzaria architecture

> Architecture diagram of the GitHub repository artifonn/page-pizzaria, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-27). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/artifonn/page-pizzaria
- Repository: https://github.com/artifonn/page-pizzaria

## Overview

Pizzaria Delícia is a browser-based pizza menu and ordering site. The documented workflow is to browse pizzas, choose a size and quantity, add items to the cart, and review quantities and totals. The sampled JavaScript implements menu rendering, selection, cart updates, and a 10% discount. Contact and responsive layout are documented capabilities, but their implementation details were not sampled; those links are therefore limited to README evidence.

Main entry points: [`src/script.js`](https://github.com/artifonn/page-pizzaria/blob/main/src/script.js) (Pizza menu), [`src/index.html`](https://github.com/artifonn/page-pizzaria/blob/main/src/index.html) (Contact form), [`src/pizzas.js`](https://github.com/artifonn/page-pizzaria/blob/main/src/pizzas.js) (Pizza catalog), [`src/style.css`](https://github.com/artifonn/page-pizzaria/blob/main/src/style.css) (Responsive layout)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Customer experience"]
  node_contact["Contact form<br/>[index.html]"]
end

subgraph group_ordering["Menu and ordering"]
  node_menu["Pizza menu<br/>[script.js]"]
  node_catalog["Pizza catalog<br/>[pizzas.js]"]
  node_selection["Pizza selection<br/>[script.js]"]
  node_cart[("Shopping cart<br/>[script.js]")]
  node_totals["Cart totals<br/>[script.js]"]
end

subgraph group_presentation["Site presentation"]
  node_site["Pizza storefront<br/>[index.html]"]
  node_responsive["Responsive layout<br/>[style.css]"]
  node_images["Pizza images"]
end

node_customer(("Customer"))

node_customer -->|"visits"| node_site
node_customer -->|"browses"| node_menu
node_menu -->|"reads"| node_catalog
node_menu -->|"opens"| node_selection
node_selection -->|"adds items"| node_cart
node_cart -->|"calculates"| node_totals
node_customer -->|"reviews"| node_cart
node_customer -->|"contacts"| node_contact
node_customer -->|"uses"| node_responsive
node_menu -.->|"displays"| node_images

click node_site "https://github.com/artifonn/page-pizzaria/blob/main/src/index.html"
click node_menu "https://github.com/artifonn/page-pizzaria/blob/main/src/script.js"
click node_catalog "https://github.com/artifonn/page-pizzaria/blob/main/src/pizzas.js"
click node_selection "https://github.com/artifonn/page-pizzaria/blob/main/src/script.js"
click node_cart "https://github.com/artifonn/page-pizzaria/blob/main/src/script.js"
click node_totals "https://github.com/artifonn/page-pizzaria/blob/main/src/script.js"
click node_contact "https://github.com/artifonn/page-pizzaria/blob/main/src/index.html"
click node_responsive "https://github.com/artifonn/page-pizzaria/blob/main/src/style.css"
click node_images "https://github.com/artifonn/page-pizzaria/tree/main/src/images"

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_contact toneBlue
class node_menu,node_catalog,node_selection,node_cart,node_totals toneAmber
class node_site,node_responsive,node_images toneMint
class node_customer toneIndigo
```

## Components

### Customer experience

- [Contact form](https://github.com/artifonn/page-pizzaria/blob/main/src/index.html): `src/index.html`

### Menu and ordering

- [Pizza menu](https://github.com/artifonn/page-pizzaria/blob/main/src/script.js): `src/script.js`
- [Pizza catalog](https://github.com/artifonn/page-pizzaria/blob/main/src/pizzas.js): `src/pizzas.js`
- [Pizza selection](https://github.com/artifonn/page-pizzaria/blob/main/src/script.js): `src/script.js`
- [Shopping cart](https://github.com/artifonn/page-pizzaria/blob/main/src/script.js): `src/script.js`
- [Cart totals](https://github.com/artifonn/page-pizzaria/blob/main/src/script.js): `src/script.js`

### Site presentation

- [Pizza storefront](https://github.com/artifonn/page-pizzaria/blob/main/src/index.html): `src/index.html`
- [Responsive layout](https://github.com/artifonn/page-pizzaria/blob/main/src/style.css): `src/style.css`
- [Pizza images](https://github.com/artifonn/page-pizzaria/tree/main/src/images): `src/images`

### Other components

- **Customer**

## Connections

- Customer → Pizza storefront: visits (evidence: `README.md`)
- Customer → Pizza menu: browses (evidence: `README.md`)
- Pizza menu → Pizza catalog: reads (evidence: `src/script.js`)
- Pizza menu → Pizza selection: opens (evidence: `src/script.js`)
- Pizza selection → Shopping cart: adds items (evidence: `src/script.js`)
- Shopping cart → Cart totals: calculates (evidence: `src/script.js`)
- Customer → Shopping cart: reviews (evidence: `README.md`)
- Customer → Contact form: contacts (evidence: `README.md`)
- Customer → Responsive layout: uses (evidence: `README.md`)
- Pizza menu → Pizza images: displays
