# tariqjaved06/-classico-italiano architecture

> Architecture diagram of the GitHub repository tariqjaved06/-classico-italiano, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-07-20). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/tariqjaved06/-classico-italiano
- Repository: https://github.com/tariqjaved06/-classico-italiano

## Overview

#### Purpose and Delivery Model
Classico Italiano is a static, multi-page Italian restaurant site deployed to GitHub Pages. HTML pages provide page-level entry points; vanilla JavaScript progressively adds menu, detail, gallery, and order interactions. No backend, API, or database is present.

#### Page Entry Points
Primary visitor routes are:
- Home: `index.html`
- Menu browsing: `menu.html`
- Dish detail view: `menu-details.html`
- Gallery: `gallery.html`
- Ordering: `order.html`
- Informational pages: `about.html`, `contact.html`

Each page is independently loadable, so navigation and cross-page state must be URL-, DOM-, or browser-storage-based rather than server session-based.

#### Centralized Menu Domain Data
The dish catalog is centralized in `js/dishes.js`, serving as the source for the stated 17-item menu. Menu-oriented views should derive names, descriptions, categories, prices, and image references from this module rather than duplicate dish content in HTML.

This data boundary feeds:
- `js/menu.js`
- `js/menu-details.js`
- `js/gallery.js`

#### Menu Browse-to-Detail Flow
`menu.html` is the interactive catalog surface. `js/menu.js` renders or organizes dish content from centralized data, while `js/menu-click.js` handles selection/navigation behavior. Selecting a dish transitions the visitor to `menu-details.html`, where `js/menu-details.js` resolves the selected dish and renders its individual detail presentation.

The key control boundary is the cross-page dish identifier passed from menu interaction into the detail page.

#### Gallery Rendering
`gallery.html` hosts a scalable visual gallery driven by `js/gallery.js`. Rather than maintaining a separate hand-authored gallery catalog, this layer can consume the centralized dish data and associate it with assets under `images/gallery/` and dish imagery under `images/food/`.

#### Ordering Interaction
`order.html` is the order-facing entry point, with behavior owned by `js/order.js`. It is a client-side interaction boundary: the repository contains no payment processor, order API, fulfillment service, or persistence layer, so order behavior is limited to browser-side UI unless external integration is added.

#### Presentation and Asset Pipeline
Tailwind CSS v4 is the styling foundation. Source styles live in `src/input.css`; generated site CSS is committed at `dist/output.css`. Page-specific styling is split across `css/home.css`, `css/menu.css`, `css/gallery.css`, and `css/about.css`. Static image assets are organized by content role in `images/hero/`, `images/menu/`, `images/food/`, `images/gallery/`, and `images/about/`.

#### Runtime and Infrastructure
The runtime is a browser serving static HTML, CSS, JavaScript, and images. `package.json` defines the local build dependency/workflow, while GitHub Pages is the intended hosting platform. The deployment contract is therefore static-file compatible: all routes, assets, and cross-page links must work without server-side rewrites or runtime services.

Main entry points: [`menu.html`](https://github.com/tariqjaved06/-classico-italiano/blob/main/menu.html) (Menu browser), [`dist/output.css`](https://github.com/tariqjaved06/-classico-italiano/blob/main/dist/output.css) (Generated site CSS), [`menu-details.html`](https://github.com/tariqjaved06/-classico-italiano/blob/main/menu-details.html) (Dish detail), [`index.html`](https://github.com/tariqjaved06/-classico-italiano/blob/main/index.html) (Home)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Static Page Entry Points"]
  node_home["Home<br/>HTML page<br/>[index.html]"]
  node_menu_page["Menu browser<br/>HTML page<br/>[menu.html]"]
  node_detail_page["Dish detail<br/>HTML page<br/>[menu-details.html]"]
  node_gallery_page["Gallery<br/>HTML page<br/>[gallery.html]"]
  node_order_page["Ordering<br/>HTML page<br/>[order.html]"]
  node_about_page["About<br/>HTML page<br/>[about.html]"]
  node_contact_page["Contact<br/>HTML page<br/>[contact.html]"]
end

subgraph group_client["Browser Interactions"]
  node_dish_catalog[("Dish catalog<br/>menu data<br/>[dishes.js]")]
  node_menu_renderer["Menu renderer<br/>browser module<br/>[menu.js]"]
  node_menu_selection["Menu selection<br/>browser module<br/>[menu-click.js]"]
  node_detail_renderer["Detail renderer<br/>browser module<br/>[menu-details.js]"]
  node_gallery_renderer["Gallery renderer<br/>browser module<br/>[gallery.js]"]
  node_order_interaction["Order interaction<br/>browser module<br/>[order.js]"]
end

subgraph group_delivery["Build and Delivery"]
  node_tailwind_source["Tailwind source<br/>CSS source<br/>[input.css]"]
  node_site_css["Generated site CSS<br/>CSS bundle<br/>[output.css]"]
  node_page_css["Page CSS<br/>CSS stylesheets"]
  node_image_assets["Image assets<br/>static assets"]
  node_package_workflow["Local build workflow<br/>package manifest<br/>[package.json]"]
  node_github_pages{{"GitHub Pages<br/>static hosting"}}
end

node_dish_catalog -->|"supplies dishes"| node_menu_renderer
node_dish_catalog -->|"resolves dish"| node_detail_renderer
node_dish_catalog -->|"supplies gallery content"| node_gallery_renderer
node_menu_page -->|"loads"| node_menu_renderer
node_menu_page -->|"loads"| node_menu_selection
node_menu_selection -->|"navigates with dish ID"| node_detail_page
node_detail_page -->|"loads"| node_detail_renderer
node_gallery_page -->|"loads"| node_gallery_renderer
node_order_page -->|"loads"| node_order_interaction
node_gallery_renderer -->|"uses imagery"| node_image_assets
node_tailwind_source -->|"builds"| node_site_css
node_package_workflow -->|"defines build"| node_tailwind_source
node_site_css -->|"styles"| node_home
node_site_css -->|"styles"| node_menu_page
node_site_css -->|"styles"| node_detail_page
node_site_css -->|"styles"| node_gallery_page
node_page_css -->|"page styles"| node_home
node_page_css -->|"page styles"| node_menu_page
node_image_assets -->|"serves images"| node_home
node_image_assets -->|"serves images"| node_menu_page
node_github_pages -->|"hosts"| node_home
node_github_pages -->|"hosts"| node_menu_page
node_github_pages -->|"hosts"| node_detail_page
node_github_pages -->|"hosts"| node_gallery_page
node_github_pages -->|"hosts"| node_order_page
node_github_pages -->|"hosts"| node_about_page
node_github_pages -->|"hosts"| node_contact_page

click node_home "https://github.com/tariqjaved06/-classico-italiano/blob/main/index.html"
click node_menu_page "https://github.com/tariqjaved06/-classico-italiano/blob/main/menu.html"
click node_detail_page "https://github.com/tariqjaved06/-classico-italiano/blob/main/menu-details.html"
click node_gallery_page "https://github.com/tariqjaved06/-classico-italiano/blob/main/gallery.html"
click node_order_page "https://github.com/tariqjaved06/-classico-italiano/blob/main/order.html"
click node_about_page "https://github.com/tariqjaved06/-classico-italiano/blob/main/about.html"
click node_contact_page "https://github.com/tariqjaved06/-classico-italiano/blob/main/contact.html"
click node_dish_catalog "https://github.com/tariqjaved06/-classico-italiano/blob/main/js/dishes.js"
click node_menu_renderer "https://github.com/tariqjaved06/-classico-italiano/blob/main/js/menu.js"
click node_menu_selection "https://github.com/tariqjaved06/-classico-italiano/blob/main/js/menu-click.js"
click node_detail_renderer "https://github.com/tariqjaved06/-classico-italiano/blob/main/js/menu-details.js"
click node_gallery_renderer "https://github.com/tariqjaved06/-classico-italiano/blob/main/js/gallery.js"
click node_order_interaction "https://github.com/tariqjaved06/-classico-italiano/blob/main/js/order.js"
click node_tailwind_source "https://github.com/tariqjaved06/-classico-italiano/blob/main/src/input.css"
click node_site_css "https://github.com/tariqjaved06/-classico-italiano/blob/main/dist/output.css"
click node_package_workflow "https://github.com/tariqjaved06/-classico-italiano/blob/main/package.json"

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_page,node_detail_page,node_gallery_page,node_order_page,node_about_page,node_contact_page toneBlue
class node_dish_catalog,node_menu_renderer,node_menu_selection,node_detail_renderer,node_gallery_renderer,node_order_interaction toneAmber
class node_tailwind_source,node_site_css,node_page_css,node_image_assets,node_package_workflow,node_github_pages toneMint
```

## Components

### Static Page Entry Points

Independently loadable visitor routes.

- [Home](https://github.com/tariqjaved06/-classico-italiano/blob/main/index.html): HTML page · `index.html`
- [Menu browser](https://github.com/tariqjaved06/-classico-italiano/blob/main/menu.html): HTML page · `menu.html`
- [Dish detail](https://github.com/tariqjaved06/-classico-italiano/blob/main/menu-details.html): HTML page · `menu-details.html`
- [Gallery](https://github.com/tariqjaved06/-classico-italiano/blob/main/gallery.html): HTML page · `gallery.html`
- [Ordering](https://github.com/tariqjaved06/-classico-italiano/blob/main/order.html): HTML page · Client-side order UI only. · `order.html`
- [About](https://github.com/tariqjaved06/-classico-italiano/blob/main/about.html): HTML page · `about.html`
- [Contact](https://github.com/tariqjaved06/-classico-italiano/blob/main/contact.html): HTML page · `contact.html`

### Browser Interactions

Vanilla JavaScript modules running in the browser.

- [Dish catalog](https://github.com/tariqjaved06/-classico-italiano/blob/main/js/dishes.js): menu data · Central source for the 17-item menu. · `js/dishes.js`
- [Menu renderer](https://github.com/tariqjaved06/-classico-italiano/blob/main/js/menu.js): browser module · `js/menu.js`
- [Menu selection](https://github.com/tariqjaved06/-classico-italiano/blob/main/js/menu-click.js): browser module · Passes a dish identifier to the detail route. · `js/menu-click.js`
- [Detail renderer](https://github.com/tariqjaved06/-classico-italiano/blob/main/js/menu-details.js): browser module · Resolves the selected dish from the cross-page identifier. · `js/menu-details.js`
- [Gallery renderer](https://github.com/tariqjaved06/-classico-italiano/blob/main/js/gallery.js): browser module · `js/gallery.js`
- [Order interaction](https://github.com/tariqjaved06/-classico-italiano/blob/main/js/order.js): browser module · No payment, fulfillment, API, or persistence integration. · `js/order.js`

### Build and Delivery

Static styling build and hosting boundary.

- [Tailwind source](https://github.com/tariqjaved06/-classico-italiano/blob/main/src/input.css): CSS source · `src/input.css`
- [Generated site CSS](https://github.com/tariqjaved06/-classico-italiano/blob/main/dist/output.css): CSS bundle · Committed stylesheet served with static pages. · `dist/output.css`
- **Page CSS**: CSS stylesheets · Page-specific styles for home, menu, gallery, and about.
- **Image assets**: static assets · Hero, menu, food, gallery, and about imagery.
- [Local build workflow](https://github.com/tariqjaved06/-classico-italiano/blob/main/package.json): package manifest · `package.json`
- **GitHub Pages**: static hosting · Serves static files without server rewrites or services.

## Connections

- Dish catalog → Menu renderer: supplies dishes
- Dish catalog → Detail renderer: resolves dish
- Dish catalog → Gallery renderer: supplies gallery content
- Menu browser → Menu renderer: loads
- Menu browser → Menu selection: loads
- Menu selection → Dish detail: navigates with dish ID
- Dish detail → Detail renderer: loads
- Gallery → Gallery renderer: loads
- Ordering → Order interaction: loads
- Gallery renderer → Image assets: uses imagery
- Tailwind source → Generated site CSS: builds
- Local build workflow → Tailwind source: defines build
- Generated site CSS → Home: styles
- Generated site CSS → Menu browser: styles
- Generated site CSS → Dish detail: styles
- Generated site CSS → Gallery: styles
- Page CSS → Home: page styles
- Page CSS → Menu browser: page styles
- Image assets → Home: serves images
- Image assets → Menu browser: serves images
- GitHub Pages → Home: hosts
- GitHub Pages → Menu browser: hosts
- GitHub Pages → Dish detail: hosts
- GitHub Pages → Gallery: hosts
- GitHub Pages → Ordering: hosts
- GitHub Pages → About: hosts
- GitHub Pages → Contact: hosts
