# souravo2/assignment-07 architecture

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

- Interactive diagram: https://gitdiagram.com/souravo2/assignment-07
- Repository: https://github.com/souravo2/assignment-07

## Overview

Bazardor is a Bengali market-price browsing application. Visitors enter through the shared navigation or homepage, browse overall and price-change product lists or a category, then open a product for market-level price details. Product listings and the marquee fetch product data from external APIs; category browsing uses a separate category-filtered endpoint. The excerpts do not establish data sources for every homepage section, so those links are omitted. The README is empty, and no authentication or persistence implementation is evidenced.

Main entry points: [`src/types/ProductDetail.ts`](https://github.com/souravo2/assignment-07/blob/master/src/types/ProductDetail.ts) (Product Data Type), [`src/app/page.tsx`](https://github.com/souravo2/assignment-07/blob/master/src/app/page.tsx) (Homepage Route), [`src/components/shared/ProductCard.tsx`](https://github.com/souravo2/assignment-07/blob/master/src/components/shared/ProductCard.tsx) (Product Card), [`src/components/Navbar/Navbar.tsx`](https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/Navbar.tsx) (Navbar)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_navigation["Site Navigation"]
  node_layout["App Layout<br/>[layout.tsx]"]
  node_navbar["Navbar<br/>[Navbar.tsx]"]
  node_navlinks["Nav Links<br/>[Navlinks.tsx]"]
  node_navitems["Category Items<br/>[NavItems.tsx]"]
  node_date["Date Display<br/>[DateDisplay.tsx]"]
  node_marquee["Price Marquee<br/>[Marquee.tsx]"]
end

subgraph group_browse["Product Browsing"]
  node_home["Homepage Route<br/>[page.tsx]"]
  node_hero["Homepage Hero<br/>[Hero.tsx]"]
  node_priceup["Price Increases<br/>[PriceUp.tsx]"]
  node_pricedown["Price Decreases<br/>[PriceDown.tsx]"]
  node_allproducts["All Products<br/>[AllProduct.tsx]"]
  node_categoryroute["Category Route<br/>[page.tsx]"]
  node_categorycontent["Category Listing"]
  node_productcard["Product Card<br/>[ProductCard.tsx]"]
end

subgraph group_details["Price Details"]
  node_productroute["Product Route<br/>[page.tsx]"]
  node_productcontent["Product Content<br/>[ProductContent.tsx]"]
  node_detailcard["Market Price Detail"]
end

subgraph group_types["Domain Types"]
  node_producttype["Product Data Type<br/>[ProductDetail.ts]"]
  node_categorytype["Category Data Type<br/>[CategoryType.ts]"]
end

node_visitor(("Visitor"))
node_priceapi[("Product API")]
node_categoryapi[("Category API")]

node_visitor -->|"opens"| node_home
node_layout -->|"renders"| node_navbar
node_navbar -->|"renders"| node_date
node_navbar -->|"renders"| node_navlinks
node_navbar -->|"renders"| node_marquee
node_navlinks -->|"renders"| node_navitems
node_hero -->|"renders"| node_date
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_priceup
node_home -->|"renders"| node_pricedown
node_home -->|"renders"| node_allproducts
node_marquee -->|"fetches"| node_priceapi
node_pricedown -->|"fetches"| node_priceapi
node_categoryroute -->|"renders"| node_categorycontent
node_categorycontent -->|"fetches"| node_categoryapi
node_categorycontent -->|"renders"| node_productcard
node_allproducts -->|"renders"| node_productcard
node_pricedown -->|"renders"| node_productcard
node_priceup -->|"renders"| node_productcard
node_productroute -->|"renders"| node_productcontent
node_productcontent -->|"renders"| node_detailcard
node_productcard -->|"uses"| node_producttype
node_detailcard -->|"uses"| node_producttype
node_categorycontent -->|"uses"| node_producttype
node_marquee -->|"uses"| node_producttype
node_priceup -->|"uses"| node_producttype
node_pricedown -->|"uses"| node_producttype
node_allproducts -->|"uses"| node_producttype

click node_layout "https://github.com/souravo2/assignment-07/blob/master/src/app/layout.tsx"
click node_navbar "https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/Navbar.tsx"
click node_navlinks "https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/Navlinks.tsx"
click node_navitems "https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/NavItems.tsx"
click node_date "https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/DateDisplay.tsx"
click node_marquee "https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/Marquee.tsx"
click node_home "https://github.com/souravo2/assignment-07/blob/master/src/app/page.tsx"
click node_hero "https://github.com/souravo2/assignment-07/blob/master/src/components/homvepage/Hero.tsx"
click node_priceup "https://github.com/souravo2/assignment-07/blob/master/src/components/homvepage/PriceUp.tsx"
click node_pricedown "https://github.com/souravo2/assignment-07/blob/master/src/components/homvepage/PriceDown.tsx"
click node_allproducts "https://github.com/souravo2/assignment-07/blob/master/src/components/homvepage/AllProduct.tsx"
click node_categoryroute "https://github.com/souravo2/assignment-07/blob/master/src/app/category/%5BcategoryId%5D/page.tsx"
click node_categorycontent "https://github.com/souravo2/assignment-07/blob/master/src/components/shared/CategoryContent.tsx"
click node_productcard "https://github.com/souravo2/assignment-07/blob/master/src/components/shared/ProductCard.tsx"
click node_productroute "https://github.com/souravo2/assignment-07/blob/master/src/app/products/%5Bid%5D/page.tsx"
click node_productcontent "https://github.com/souravo2/assignment-07/blob/master/src/components/shared/ProductContent.tsx"
click node_detailcard "https://github.com/souravo2/assignment-07/blob/master/src/components/shared/ProductDetailCard.tsx"
click node_producttype "https://github.com/souravo2/assignment-07/blob/master/src/types/ProductDetail.ts"
click node_categorytype "https://github.com/souravo2/assignment-07/blob/master/src/types/CategoryType.ts"

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_layout,node_navbar,node_navlinks,node_navitems,node_date,node_marquee toneBlue
class node_home,node_hero,node_priceup,node_pricedown,node_allproducts,node_categoryroute,node_categorycontent,node_productcard,node_priceapi,node_categoryapi toneAmber
class node_productroute,node_productcontent,node_detailcard toneMint
class node_producttype,node_categorytype toneRose
class node_visitor toneIndigo
```

## Components

### Site Navigation

- [App Layout](https://github.com/souravo2/assignment-07/blob/master/src/app/layout.tsx): `src/app/layout.tsx`
- [Navbar](https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/Navbar.tsx): `src/components/Navbar/Navbar.tsx`
- [Nav Links](https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/Navlinks.tsx): `src/components/Navbar/Navlinks.tsx`
- [Category Items](https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/NavItems.tsx): `src/components/Navbar/NavItems.tsx`
- [Date Display](https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/DateDisplay.tsx): `src/components/Navbar/DateDisplay.tsx`
- [Price Marquee](https://github.com/souravo2/assignment-07/blob/master/src/components/Navbar/Marquee.tsx): `src/components/Navbar/Marquee.tsx`

### Product Browsing

- [Homepage Route](https://github.com/souravo2/assignment-07/blob/master/src/app/page.tsx): `src/app/page.tsx`
- [Homepage Hero](https://github.com/souravo2/assignment-07/blob/master/src/components/homvepage/Hero.tsx): `src/components/homvepage/Hero.tsx`
- [Price Increases](https://github.com/souravo2/assignment-07/blob/master/src/components/homvepage/PriceUp.tsx): `src/components/homvepage/PriceUp.tsx`
- [Price Decreases](https://github.com/souravo2/assignment-07/blob/master/src/components/homvepage/PriceDown.tsx): `src/components/homvepage/PriceDown.tsx`
- [All Products](https://github.com/souravo2/assignment-07/blob/master/src/components/homvepage/AllProduct.tsx): `src/components/homvepage/AllProduct.tsx`
- [Category Route](https://github.com/souravo2/assignment-07/blob/master/src/app/category/%5BcategoryId%5D/page.tsx): `src/app/category/[categoryId]/page.tsx`
- [Category Listing](https://github.com/souravo2/assignment-07/blob/master/src/components/shared/CategoryContent.tsx): `src/components/shared/CategoryContent.tsx`
- [Product Card](https://github.com/souravo2/assignment-07/blob/master/src/components/shared/ProductCard.tsx): `src/components/shared/ProductCard.tsx`

### Price Details

- [Product Route](https://github.com/souravo2/assignment-07/blob/master/src/app/products/%5Bid%5D/page.tsx): `src/app/products/[id]/page.tsx`
- [Product Content](https://github.com/souravo2/assignment-07/blob/master/src/components/shared/ProductContent.tsx): `src/components/shared/ProductContent.tsx`
- [Market Price Detail](https://github.com/souravo2/assignment-07/blob/master/src/components/shared/ProductDetailCard.tsx): `src/components/shared/ProductDetailCard.tsx`

### Domain Types

- [Product Data Type](https://github.com/souravo2/assignment-07/blob/master/src/types/ProductDetail.ts): `src/types/ProductDetail.ts`
- [Category Data Type](https://github.com/souravo2/assignment-07/blob/master/src/types/CategoryType.ts): `src/types/CategoryType.ts`

### Other components

- **Visitor**
- **Product API**
- **Category API**

## Connections

- Visitor → Homepage Route: opens (evidence: `src/app/page.tsx`)
- App Layout → Navbar: renders (evidence: `src/app/layout.tsx`)
- Navbar → Date Display: renders (evidence: `src/components/Navbar/Navbar.tsx`)
- Navbar → Nav Links: renders (evidence: `src/components/Navbar/Navbar.tsx`)
- Navbar → Price Marquee: renders (evidence: `src/components/Navbar/Navbar.tsx`)
- Nav Links → Category Items: renders (evidence: `src/components/Navbar/Navlinks.tsx`)
- Homepage Hero → Date Display: renders (evidence: `src/components/homvepage/Hero.tsx`)
- Homepage Route → Homepage Hero: renders (evidence: `src/app/page.tsx`)
- Homepage Route → Price Increases: renders (evidence: `src/app/page.tsx`)
- Homepage Route → Price Decreases: renders (evidence: `src/app/page.tsx`)
- Homepage Route → All Products: renders (evidence: `src/app/page.tsx`)
- Price Marquee → Product API: fetches (evidence: `src/components/Navbar/Marquee.tsx`)
- Price Decreases → Product API: fetches (evidence: `src/components/homvepage/PriceDown.tsx`)
- Category Route → Category Listing: renders (evidence: `src/app/category/[categoryId]/page.tsx`)
- Category Listing → Category API: fetches (evidence: `src/components/shared/CategoryContent.tsx`)
- Category Listing → Product Card: renders (evidence: `src/components/shared/CategoryContent.tsx`)
- All Products → Product Card: renders (evidence: `src/components/homvepage/AllProduct.tsx`)
- Price Decreases → Product Card: renders (evidence: `src/components/homvepage/PriceDown.tsx`)
- Price Increases → Product Card: renders (evidence: `src/components/homvepage/PriceUp.tsx`)
- Product Route → Product Content: renders (evidence: `src/app/products/[id]/page.tsx`)
- Product Content → Market Price Detail: renders (evidence: `src/components/shared/ProductContent.tsx`)
- Product Card → Product Data Type: uses (evidence: `src/components/shared/ProductCard.tsx`)
- Market Price Detail → Product Data Type: uses (evidence: `src/components/shared/ProductDetailCard.tsx`)
- Category Listing → Product Data Type: uses (evidence: `src/components/shared/CategoryContent.tsx`)
- Price Marquee → Product Data Type: uses (evidence: `src/components/Navbar/Marquee.tsx`)
- Price Increases → Product Data Type: uses (evidence: `src/components/homvepage/PriceUp.tsx`)
- Price Decreases → Product Data Type: uses (evidence: `src/components/homvepage/PriceDown.tsx`)
- All Products → Product Data Type: uses (evidence: `src/components/homvepage/AllProduct.tsx`)
