# nikhildeshmuk98/fresh_mart architecture

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

- Interactive diagram: https://gitdiagram.com/nikhildeshmuk98/fresh_mart
- Repository: https://github.com/nikhildeshmuk98/fresh_mart

## Overview

The file tree suggests a small multi-page storefront, with catalog, delivery, account, informational, and admin pages. The only sampled source is script.js: it implements section navigation, a dark-mode toggle, and a simple cart-count update. No README or HTML excerpts were provided, so the pages’ contents and their wiring to the script cannot be verified; the graph therefore avoids connecting them or inferring a fuller commerce workflow.

Main entry points: [`script.js`](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/script.js) (Section navigation)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_storefront["Storefront pages"]
  node_home["Home page<br/>[index.html]"]
  node_catalog["Product catalog<br/>[products.html]"]
  node_delivery["Delivery page<br/>[delivery.html]"]
  node_account["Login page<br/>[login.html]"]
  node_admin["Admin dashboard"]
  node_about["About page<br/>[about.html]"]
  node_contact["Contact page<br/>[contact.html]"]
  node_theme_page["Dark mode page<br/>[darkmode.html]"]
end

subgraph group_interactions["Browser interactions"]
  node_navigation["Section navigation<br/>[script.js]"]
  node_theme_toggle["Theme toggle<br/>[script.js]"]
  node_cart_update["Cart count update<br/>[script.js]"]
end

node_visitor(("Visitor"))

node_visitor -->|"clicks links"| node_navigation
node_visitor -->|"toggles theme"| node_theme_toggle
node_visitor -->|"adds to cart"| node_cart_update

click node_home "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/index.html"
click node_catalog "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/products.html"
click node_delivery "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/delivery.html"
click node_account "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/login.html"
click node_admin "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/admin-dashboard.html"
click node_about "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/about.html"
click node_contact "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/contact.html"
click node_theme_page "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/darkmode.html"
click node_navigation "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/script.js"
click node_theme_toggle "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/script.js"
click node_cart_update "https://github.com/nikhildeshmuk98/fresh_mart/blob/master/script.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_home,node_catalog,node_delivery,node_account,node_admin,node_about,node_contact,node_theme_page toneBlue
class node_navigation,node_theme_toggle,node_cart_update toneAmber
class node_visitor toneIndigo
```

## Components

### Storefront pages

- [Home page](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/index.html): `index.html`
- [Product catalog](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/products.html): `products.html`
- [Delivery page](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/delivery.html): `delivery.html`
- [Login page](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/login.html): `login.html`
- [Admin dashboard](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/admin-dashboard.html): `admin-dashboard.html`
- [About page](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/about.html): `about.html`
- [Contact page](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/contact.html): `contact.html`
- [Dark mode page](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/darkmode.html): `darkmode.html`

### Browser interactions

- [Section navigation](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/script.js): `script.js`
- [Theme toggle](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/script.js): `script.js`
- [Cart count update](https://github.com/nikhildeshmuk98/fresh_mart/blob/master/script.js): `script.js`

### Other components

- **Visitor**

## Connections

- Visitor → Section navigation: clicks links (evidence: `script.js`)
- Visitor → Theme toggle: toggles theme (evidence: `script.js`)
- Visitor → Cart count update: adds to cart (evidence: `script.js`)
