# lokeshpolani/zomato architecture

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

- Interactive diagram: https://gitdiagram.com/lokeshpolani/zomato
- Repository: https://github.com/lokeshpolani/zomato

## Overview

This repository is a static React Zomato-style landing page, not a restaurant-search or ordering backend. The browser loads the app, which renders a page of discovery and promotional sections, then localities, expandable exploration topics, and footer content. The sections use hard-coded text and data; the sampled code shows no service calls or persistent store. Relationships below follow imports and rendering visible in the excerpts; README content is empty, so product scope is inferred from the page components.

Main entry points: [`src/App.js`](https://github.com/lokeshpolani/zomato/blob/master/src/App.js) (Landing page), [`src/components/AccContainer/AccContainer.jsx`](https://github.com/lokeshpolani/zomato/blob/master/src/components/AccContainer/AccContainer.jsx) (Explore topics), [`src/index.js`](https://github.com/lokeshpolani/zomato/blob/master/src/index.js) (React entry), [`src/components/Header/Header.jsx`](https://github.com/lokeshpolani/zomato/blob/master/src/components/Header/Header.jsx) (Header and search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Page entry"]
  node_entry["React entry<br/>[index.js]"]
  node_page["Landing page<br/>[App.js]"]
end

subgraph group_discovery["Restaurant discovery"]
  node_header["Header and search<br/>[Header.jsx]"]
  node_categories["Dining categories<br/>[Card.jsx]"]
  node_collections["Curated collections<br/>[Collection.jsx]"]
  node_localities["Popular localities<br/>[Cities.jsx]"]
end

subgraph group_engagement["Engagement content"]
  node_app_promo["App promotion<br/>[CTA.jsx]"]
  node_explore["Explore topics<br/>[AccContainer.jsx]"]
  node_accordion["Topic accordion<br/>[Accordian.jsx]"]
end

subgraph group_shared["Shared content"]
  node_topic_data["Topic data<br/>[data.js]"]
  node_footer["Footer and links<br/>[Footer.jsx]"]
end

node_browser(("Browser"))

node_browser -->|"loads page"| node_entry
node_entry -->|"renders"| node_page
node_page -->|"renders"| node_header
node_page -->|"renders"| node_categories
node_page -->|"renders"| node_collections
node_page -->|"renders"| node_localities
node_page -->|"renders"| node_app_promo
node_page -->|"renders"| node_explore
node_page -->|"renders"| node_footer
node_explore -->|"reads"| node_topic_data
node_explore -->|"renders"| node_accordion

click node_entry "https://github.com/lokeshpolani/zomato/blob/master/src/index.js"
click node_page "https://github.com/lokeshpolani/zomato/blob/master/src/App.js"
click node_header "https://github.com/lokeshpolani/zomato/blob/master/src/components/Header/Header.jsx"
click node_categories "https://github.com/lokeshpolani/zomato/blob/master/src/components/Card/Card.jsx"
click node_collections "https://github.com/lokeshpolani/zomato/blob/master/src/components/Collections/Collection.jsx"
click node_localities "https://github.com/lokeshpolani/zomato/blob/master/src/components/Cities/Cities.jsx"
click node_app_promo "https://github.com/lokeshpolani/zomato/blob/master/src/components/CTA/CTA.jsx"
click node_explore "https://github.com/lokeshpolani/zomato/blob/master/src/components/AccContainer/AccContainer.jsx"
click node_accordion "https://github.com/lokeshpolani/zomato/blob/master/src/components/Accordian/Accordian.jsx"
click node_topic_data "https://github.com/lokeshpolani/zomato/blob/master/src/data.js"
click node_footer "https://github.com/lokeshpolani/zomato/blob/master/src/components/Footer/Footer.jsx"

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_entry,node_page,node_browser toneBlue
class node_header,node_categories,node_collections,node_localities toneAmber
class node_app_promo,node_explore,node_accordion toneMint
class node_topic_data,node_footer toneRose
```

## Components

### Page entry

- [React entry](https://github.com/lokeshpolani/zomato/blob/master/src/index.js): `src/index.js`
- [Landing page](https://github.com/lokeshpolani/zomato/blob/master/src/App.js): `src/App.js`

### Restaurant discovery

- [Header and search](https://github.com/lokeshpolani/zomato/blob/master/src/components/Header/Header.jsx): `src/components/Header/Header.jsx`
- [Dining categories](https://github.com/lokeshpolani/zomato/blob/master/src/components/Card/Card.jsx): `src/components/Card/Card.jsx`
- [Curated collections](https://github.com/lokeshpolani/zomato/blob/master/src/components/Collections/Collection.jsx): `src/components/Collections/Collection.jsx`
- [Popular localities](https://github.com/lokeshpolani/zomato/blob/master/src/components/Cities/Cities.jsx): `src/components/Cities/Cities.jsx`

### Engagement content

- [App promotion](https://github.com/lokeshpolani/zomato/blob/master/src/components/CTA/CTA.jsx): `src/components/CTA/CTA.jsx`
- [Explore topics](https://github.com/lokeshpolani/zomato/blob/master/src/components/AccContainer/AccContainer.jsx): `src/components/AccContainer/AccContainer.jsx`
- [Topic accordion](https://github.com/lokeshpolani/zomato/blob/master/src/components/Accordian/Accordian.jsx): `src/components/Accordian/Accordian.jsx`

### Shared content

- [Topic data](https://github.com/lokeshpolani/zomato/blob/master/src/data.js): `src/data.js`
- [Footer and links](https://github.com/lokeshpolani/zomato/blob/master/src/components/Footer/Footer.jsx): `src/components/Footer/Footer.jsx`

### Other components

- **Browser**

## Connections

- Browser → React entry: loads page (evidence: `src/index.js`)
- React entry → Landing page: renders (evidence: `src/index.js`)
- Landing page → Header and search: renders (evidence: `src/App.js`)
- Landing page → Dining categories: renders (evidence: `src/App.js`)
- Landing page → Curated collections: renders (evidence: `src/App.js`)
- Landing page → Popular localities: renders (evidence: `src/App.js`)
- Landing page → App promotion: renders (evidence: `src/App.js`)
- Landing page → Explore topics: renders (evidence: `src/App.js`)
- Landing page → Footer and links: renders (evidence: `src/App.js`)
- Explore topics → Topic data: reads (evidence: `src/components/AccContainer/AccContainer.jsx`)
- Explore topics → Topic accordion: renders (evidence: `src/components/AccContainer/AccContainer.jsx`)
