# ahtashamahmad0/ecommerce-store-task architecture

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

- Interactive diagram: https://gitdiagram.com/ahtashamahmad0/ecommerce-store-task
- Repository: https://github.com/ahtashamahmad0/ecommerce-store-task

## Overview

Lumeire is a frontend-only cosmetics storefront. Shoppers enter through the routed React app, discover products on the home or catalog pages, inspect product details, add items to a persistent browser cart, and proceed through a demo checkout to an order confirmation. The map also preserves the homepage’s editorial, social-proof, newsletter, and contact capabilities. Checkout does not charge a payment method or send orders to a backend; unsampled page and component interactions are shown only where documented in the README.

Main entry points: [`src/pages/Home.jsx`](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/Home.jsx) (Homepage), [`src/App.jsx`](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/App.jsx) (Routes and shell), [`src/data/products.js`](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/data/products.js) (Product catalog data), [`src/components/ProductCard.jsx`](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/ProductCard.jsx) (Product card)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["Application shell"]
  node_app["Routes and shell<br/>[App.jsx]"]
end

subgraph group_discovery["Product discovery"]
  node_home["Homepage<br/>[Home.jsx]"]
  node_catalog["Product catalog<br/>[Shop.jsx]"]
  node_details["Product details<br/>[ProductDetails.jsx]"]
  node_catalog_data["Product catalog data<br/>[products.js]"]
  node_product_images["Product imagery<br/>[productImages.js]"]
  node_product_card["Product card<br/>[ProductCard.jsx]"]
  node_visual["Product visuals<br/>[ProductVisual.jsx]"]
  node_category_strip["Category highlights<br/>[CategoryStrip.jsx]"]
  node_featured["Featured products"]
  node_section_heading["Section headings<br/>[SectionHeading.jsx]"]
  node_skincare["Skincare edit"]
end

subgraph group_commerce["Shopping flow"]
  node_cart["Cart page<br/>[Cart.jsx]"]
  node_cart_state["Cart state and totals<br/>[CartContext.jsx]"]
  node_browser_storage[("Browser cart storage")]
  node_checkout["Checkout form<br/>[Checkout.jsx]"]
  node_confirmation["Order confirmation"]
end

subgraph group_engagement["Brand engagement"]
  node_hero["Animated hero<br/>[Hero.jsx]"]
  node_about["Brand story<br/>[about.jsx]"]
  node_testimonials["Testimonials<br/>[Testimonials.jsx]"]
  node_newsletter["Newsletter section<br/>[Newsletter.jsx]"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
  node_whatsapp["WhatsApp contact<br/>[WhatsAppButton.jsx]"]
end

node_shopper(("Shopper"))
node_whatsapp_service(("WhatsApp"))

node_shopper -->|"opens storefront"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_catalog
node_app -->|"routes to"| node_details
node_app -->|"routes to"| node_cart
node_app -->|"routes to"| node_checkout
node_app -->|"routes to"| node_confirmation
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_whatsapp
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_category_strip
node_home -->|"renders"| node_featured
node_home -->|"renders"| node_skincare
node_home -->|"renders"| node_testimonials
node_home -->|"renders"| node_newsletter
node_home -->|"renders"| node_section_heading
node_home -->|"renders"| node_product_card
node_home -->|"selects products"| node_catalog_data
node_catalog -->|"filters products"| node_catalog_data
node_catalog -->|"renders results"| node_product_card
node_details -->|"looks up product"| node_catalog_data
node_details -->|"adds item"| node_cart_state
node_product_card -->|"adds item"| node_cart_state
node_product_card -->|"prices product"| node_catalog_data
node_product_card -->|"resolves image"| node_product_images
node_product_card -.->|"renders visual"| node_visual
node_category_strip -->|"reads categories"| node_catalog_data
node_category_strip -->|"resolves imagery"| node_product_images
node_featured -->|"renders products"| node_product_card
node_featured -->|"renders heading"| node_section_heading
node_skincare -->|"resolves imagery"| node_product_images
node_cart -->|"reads and updates"| node_cart_state
node_cart -->|"resolves cart lines"| node_catalog_data
node_cart_state -->|"calculates totals"| node_catalog_data
node_cart_state -->|"persists cart"| node_browser_storage
node_checkout -->|"reads and clears"| node_cart_state
node_checkout -->|"builds order summary"| node_catalog_data
node_checkout -->|"continues to"| node_confirmation
node_confirmation -.->|"reads order session"| node_browser_storage
node_navbar -->|"reads cart"| node_cart_state
node_navbar -->|"searches products"| node_catalog_data
node_whatsapp -.->|"opens contact"| node_whatsapp_service

click node_app "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/App.jsx"
click node_home "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/Home.jsx"
click node_catalog "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/Shop.jsx"
click node_details "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/ProductDetails.jsx"
click node_catalog_data "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/data/products.js"
click node_product_images "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/data/productImages.js"
click node_product_card "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/ProductCard.jsx"
click node_visual "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/ProductVisual.jsx"
click node_category_strip "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/CategoryStrip.jsx"
click node_featured "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/FeaturedProductsSection.jsx"
click node_section_heading "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/SectionHeading.jsx"
click node_skincare "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/SkincareEditSection.jsx"
click node_cart "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/Cart.jsx"
click node_cart_state "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/context/CartContext.jsx"
click node_checkout "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/Checkout.jsx"
click node_confirmation "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/OrderConfirmation.jsx"
click node_hero "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/Hero.jsx"
click node_about "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/about.jsx"
click node_testimonials "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/Testimonials.jsx"
click node_newsletter "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/Newsletter.jsx"
click node_navbar "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/Navbar.jsx"
click node_footer "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/Footer.jsx"
click node_whatsapp "https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/WhatsAppButton.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_app toneBlue
class node_home,node_catalog,node_details,node_catalog_data,node_product_images,node_product_card,node_visual,node_category_strip,node_featured,node_section_heading,node_skincare toneAmber
class node_cart,node_cart_state,node_browser_storage,node_checkout,node_confirmation toneMint
class node_hero,node_about,node_testimonials,node_newsletter,node_navbar,node_footer,node_whatsapp toneRose
class node_shopper,node_whatsapp_service toneIndigo
```

## Components

### Application shell

- [Routes and shell](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/App.jsx): `src/App.jsx`

### Product discovery

- [Homepage](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/Home.jsx): `src/pages/Home.jsx`
- [Product catalog](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/Shop.jsx): `src/pages/Shop.jsx`
- [Product details](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/ProductDetails.jsx): `src/pages/ProductDetails.jsx`
- [Product catalog data](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/data/products.js): `src/data/products.js`
- [Product imagery](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/data/productImages.js): `src/data/productImages.js`
- [Product card](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/ProductCard.jsx): `src/components/ProductCard.jsx`
- [Product visuals](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/ProductVisual.jsx): `src/components/ProductVisual.jsx`
- [Category highlights](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/CategoryStrip.jsx): `src/components/CategoryStrip.jsx`
- [Featured products](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/FeaturedProductsSection.jsx): `src/components/FeaturedProductsSection.jsx`
- [Section headings](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/SectionHeading.jsx): `src/components/SectionHeading.jsx`
- [Skincare edit](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/SkincareEditSection.jsx): `src/components/SkincareEditSection.jsx`

### Shopping flow

- [Cart page](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/Cart.jsx): `src/pages/Cart.jsx`
- [Cart state and totals](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/context/CartContext.jsx): `src/context/CartContext.jsx`
- **Browser cart storage**
- [Checkout form](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/Checkout.jsx): `src/pages/Checkout.jsx`
- [Order confirmation](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/pages/OrderConfirmation.jsx): `src/pages/OrderConfirmation.jsx`

### Brand engagement

- [Animated hero](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/Hero.jsx): `src/components/Hero.jsx`
- [Brand story](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/about.jsx): `src/components/about.jsx`
- [Testimonials](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/Testimonials.jsx): `src/components/Testimonials.jsx`
- [Newsletter section](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/Newsletter.jsx): `src/components/Newsletter.jsx`
- [Navigation](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/Navbar.jsx): `src/components/Navbar.jsx`
- [Footer](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/Footer.jsx): `src/components/Footer.jsx`
- [WhatsApp contact](https://github.com/ahtashamahmad0/ecommerce-store-task/blob/main/src/components/WhatsAppButton.jsx): `src/components/WhatsAppButton.jsx`

### Other components

- **Shopper**
- **WhatsApp**

## Connections

- Shopper → Routes and shell: opens storefront
- Routes and shell → Homepage: routes to (evidence: `src/App.jsx`)
- Routes and shell → Product catalog: routes to (evidence: `src/App.jsx`)
- Routes and shell → Product details: routes to (evidence: `src/App.jsx`)
- Routes and shell → Cart page: routes to (evidence: `src/App.jsx`)
- Routes and shell → Checkout form: routes to (evidence: `src/App.jsx`)
- Routes and shell → Order confirmation: routes to (evidence: `src/App.jsx`)
- Routes and shell → Navigation: renders (evidence: `src/App.jsx`)
- Routes and shell → Footer: renders (evidence: `src/App.jsx`)
- Routes and shell → WhatsApp contact: renders (evidence: `src/App.jsx`)
- Homepage → Animated hero: renders (evidence: `src/pages/Home.jsx`)
- Homepage → Brand story: renders (evidence: `src/pages/Home.jsx`)
- Homepage → Category highlights: renders (evidence: `src/pages/Home.jsx`)
- Homepage → Featured products: renders (evidence: `src/pages/Home.jsx`)
- Homepage → Skincare edit: renders (evidence: `src/pages/Home.jsx`)
- Homepage → Testimonials: renders (evidence: `src/pages/Home.jsx`)
- Homepage → Newsletter section: renders (evidence: `src/pages/Home.jsx`)
- Homepage → Section headings: renders (evidence: `src/pages/Home.jsx`)
- Homepage → Product card: renders (evidence: `src/pages/Home.jsx`)
- Homepage → Product catalog data: selects products (evidence: `src/pages/Home.jsx`)
- Product catalog → Product catalog data: filters products (evidence: `src/pages/Shop.jsx`)
- Product catalog → Product card: renders results (evidence: `src/pages/Shop.jsx`)
- Product details → Product catalog data: looks up product (evidence: `src/pages/ProductDetails.jsx`)
- Product details → Cart state and totals: adds item (evidence: `src/pages/ProductDetails.jsx`)
- Product card → Cart state and totals: adds item (evidence: `src/components/ProductCard.jsx`)
- Product card → Product catalog data: prices product (evidence: `src/components/ProductCard.jsx`)
- Product card → Product imagery: resolves image (evidence: `src/components/ProductCard.jsx`)
- Product card → Product visuals: renders visual
- Category highlights → Product catalog data: reads categories (evidence: `src/components/CategoryStrip.jsx`)
- Category highlights → Product imagery: resolves imagery (evidence: `src/components/CategoryStrip.jsx`)
- Featured products → Product card: renders products (evidence: `src/components/FeaturedProductsSection.jsx`)
- Featured products → Section headings: renders heading (evidence: `src/components/FeaturedProductsSection.jsx`)
- Skincare edit → Product imagery: resolves imagery (evidence: `src/components/SkincareEditSection.jsx`)
- Cart page → Cart state and totals: reads and updates (evidence: `src/pages/Cart.jsx`)
- Cart page → Product catalog data: resolves cart lines (evidence: `src/pages/Cart.jsx`)
- Cart state and totals → Product catalog data: calculates totals (evidence: `src/context/CartContext.jsx`)
- Cart state and totals → Browser cart storage: persists cart (evidence: `src/context/CartContext.jsx`)
- Checkout form → Cart state and totals: reads and clears (evidence: `src/pages/Checkout.jsx`)
- Checkout form → Product catalog data: builds order summary (evidence: `src/pages/Checkout.jsx`)
- Checkout form → Order confirmation: continues to
- Order confirmation → Browser cart storage: reads order session
- Navigation → Cart state and totals: reads cart (evidence: `src/components/Navbar.jsx`)
- Navigation → Product catalog data: searches products (evidence: `src/components/Navbar.jsx`)
- WhatsApp contact → WhatsApp: opens contact
