# sradha-tcs/tcs-corp-design architecture

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

- Interactive diagram: https://gitdiagram.com/sradha-tcs/tcs-corp-design
- Repository: https://github.com/sradha-tcs/tcs-corp-design

## Overview

This repository implements a corporate content and experience website, with a conversational Canvas feature for discovering answers and related content. The principal flow is a visitor entering the routed site, opening a page, and viewing its content through reusable page components; Canvas adds a question-and-answer flow backed by a client, server API, and response/content layer. Other visible capabilities include banking and AI adoption pages, insights, navigation, and shared interface components. The README is empty, so capability coverage and relationships rely on the supplied tree and source index; unsampled details are not inferred.

Main entry points: [`src/AppWrapper.jsx`](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/AppWrapper.jsx) (App wrapper), [`src/components/Cards/Cards.jsx`](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/Cards/Cards.jsx) (Content cards), [`src/HomePage.jsx`](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/HomePage.jsx) (Home page), [`src/components/FourColumnSlider/FourColumnSlider.jsx`](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/FourColumnSlider/FourColumnSlider.jsx) (Content slider)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["Site routing"]
  node_app["App wrapper<br/>[AppWrapper.jsx]"]
end

subgraph group_pages["Content experiences"]
  node_home["Home page<br/>[HomePage.jsx]"]
  node_banking["Banking<br/>[BankingPage.jsx]"]
  node_ai_banking["AI adoption"]
  node_who["Who we are<br/>[WhoWeArePage.jsx]"]
  node_what["What we do<br/>[WhatWeDoPage.jsx]"]
  node_insights["Insights<br/>[InsightsPage.jsx]"]
  node_component_catalog["Component catalog<br/>[ComponentsPage.jsx]"]
end

subgraph group_ui["Shared interface"]
  node_prompt["Prompt navigation"]
  node_footer["Footer links<br/>[Footer.jsx]"]
  node_cards["Content cards<br/>[Cards.jsx]"]
  node_slider["Content slider"]
  node_pill["Navigation pill<br/>[Pill.jsx]"]
  node_button["Action button<br/>[Button.jsx]"]
end

subgraph group_canvas["Canvas answers"]
  node_canvas_page["Canvas page<br/>[CanvasPage.jsx]"]
  node_client["Canvas client<br/>[canvasClient.js]"]
  node_api["Canvas API<br/>[canvas-api.mjs]"]
  node_response["Answer assembly<br/>[canvasResponse.js]"]
end

subgraph group_content["Content data"]
  node_content_data[("Article content<br/>[content.js]")]
  node_feeds[("Feed data<br/>[feeds.js]")]
  node_banking_data[("Banking content<br/>[bankingPage.json]")]
end

node_visitor(("Visitor"))

node_visitor -->|"opens site"| node_app
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_banking
node_app -->|"routes to"| node_ai_banking
node_app -->|"routes to"| node_who
node_app -->|"routes to"| node_what
node_app -->|"routes to"| node_insights
node_app -->|"routes to"| node_canvas_page
node_app -->|"routes to"| node_component_catalog
node_home -->|"renders"| node_cards
node_home -->|"renders"| node_slider
node_home -->|"renders"| node_prompt
node_home -->|"renders"| node_footer
node_banking -->|"renders"| node_cards
node_banking -->|"renders"| node_slider
node_banking -->|"reads"| node_banking_data
node_ai_banking -->|"renders"| node_cards
node_ai_banking -->|"reads"| node_banking_data
node_ai_banking -->|"renders"| node_prompt
node_slider -->|"renders"| node_cards
node_slider -->|"renders"| node_button
node_slider -->|"reads"| node_content_data
node_prompt -->|"renders"| node_pill
node_footer -->|"renders"| node_pill
node_cards -->|"renders"| node_button
node_visitor -->|"enters question"| node_prompt
node_canvas_page -->|"requests answers"| node_client
node_client -.->|"sends request"| node_api
node_api -->|"builds response"| node_response
node_response -->|"reads content"| node_content_data
node_response -->|"reads feeds"| node_feeds
node_canvas_page -->|"renders related items"| node_cards

click node_app "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/AppWrapper.jsx"
click node_home "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/HomePage.jsx"
click node_banking "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/BankingPage.jsx"
click node_ai_banking "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/AiAdoptionBankingPage.jsx"
click node_who "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/WhoWeArePage.jsx"
click node_what "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/WhatWeDoPage.jsx"
click node_insights "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/InsightsPage.jsx"
click node_canvas_page "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/CanvasPage.jsx"
click node_component_catalog "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/ComponentsPage.jsx"
click node_prompt "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/FloatingPromptBar/FloatingPromptBar.jsx"
click node_footer "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/Footer/Footer.jsx"
click node_cards "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/Cards/Cards.jsx"
click node_slider "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/FourColumnSlider/FourColumnSlider.jsx"
click node_pill "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/Pill/Pill.jsx"
click node_button "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/Button/Button.jsx"
click node_client "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/lib/canvasClient.js"
click node_api "https://github.com/sradha-tcs/tcs-corp-design/blob/main/server/canvas-api.mjs"
click node_response "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/lib/canvasResponse.js"
click node_content_data "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/data/content.js"
click node_feeds "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/data/feeds.js"
click node_banking_data "https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/data/bankingPage.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_app toneBlue
class node_home,node_banking,node_ai_banking,node_who,node_what,node_insights,node_component_catalog toneAmber
class node_prompt,node_footer,node_cards,node_slider,node_pill,node_button toneMint
class node_canvas_page,node_client,node_api,node_response toneRose
class node_content_data,node_feeds,node_banking_data,node_visitor toneIndigo
```

## Components

### Site routing

- [App wrapper](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/AppWrapper.jsx): `src/AppWrapper.jsx`

### Content experiences

- [Home page](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/HomePage.jsx): `src/HomePage.jsx`
- [Banking](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/BankingPage.jsx): `src/pages/BankingPage.jsx`
- [AI adoption](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/AiAdoptionBankingPage.jsx): `src/pages/AiAdoptionBankingPage.jsx`
- [Who we are](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/WhoWeArePage.jsx): `src/pages/WhoWeArePage.jsx`
- [What we do](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/WhatWeDoPage.jsx): `src/pages/WhatWeDoPage.jsx`
- [Insights](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/InsightsPage.jsx): `src/pages/InsightsPage.jsx`
- [Component catalog](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/ComponentsPage.jsx): `src/pages/ComponentsPage.jsx`

### Shared interface

- [Prompt navigation](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/FloatingPromptBar/FloatingPromptBar.jsx): `src/components/FloatingPromptBar/FloatingPromptBar.jsx`
- [Footer links](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/Footer/Footer.jsx): `src/components/Footer/Footer.jsx`
- [Content cards](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/Cards/Cards.jsx): `src/components/Cards/Cards.jsx`
- [Content slider](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/FourColumnSlider/FourColumnSlider.jsx): `src/components/FourColumnSlider/FourColumnSlider.jsx`
- [Navigation pill](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/Pill/Pill.jsx): `src/components/Pill/Pill.jsx`
- [Action button](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/components/Button/Button.jsx): `src/components/Button/Button.jsx`

### Canvas answers

- [Canvas page](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/pages/CanvasPage.jsx): `src/pages/CanvasPage.jsx`
- [Canvas client](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/lib/canvasClient.js): `src/lib/canvasClient.js`
- [Canvas API](https://github.com/sradha-tcs/tcs-corp-design/blob/main/server/canvas-api.mjs): `server/canvas-api.mjs`
- [Answer assembly](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/lib/canvasResponse.js): `src/lib/canvasResponse.js`

### Content data

- [Article content](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/data/content.js): `src/data/content.js`
- [Feed data](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/data/feeds.js): `src/data/feeds.js`
- [Banking content](https://github.com/sradha-tcs/tcs-corp-design/blob/main/src/data/bankingPage.json): `src/data/bankingPage.json`

### Other components

- **Visitor**

## Connections

- Visitor → App wrapper: opens site
- App wrapper → Home page: routes to (evidence: `src/AppWrapper.jsx`)
- App wrapper → Banking: routes to (evidence: `src/AppWrapper.jsx`)
- App wrapper → AI adoption: routes to (evidence: `src/AppWrapper.jsx`)
- App wrapper → Who we are: routes to (evidence: `src/AppWrapper.jsx`)
- App wrapper → What we do: routes to (evidence: `src/AppWrapper.jsx`)
- App wrapper → Insights: routes to (evidence: `src/AppWrapper.jsx`)
- App wrapper → Canvas page: routes to (evidence: `src/AppWrapper.jsx`)
- App wrapper → Component catalog: routes to (evidence: `src/AppWrapper.jsx`)
- Home page → Content cards: renders (evidence: `src/HomePage.jsx`)
- Home page → Content slider: renders (evidence: `src/HomePage.jsx`)
- Home page → Prompt navigation: renders (evidence: `src/HomePage.jsx`)
- Home page → Footer links: renders (evidence: `src/HomePage.jsx`)
- Banking → Content cards: renders (evidence: `src/pages/BankingPage.jsx`)
- Banking → Content slider: renders (evidence: `src/pages/BankingPage.jsx`)
- Banking → Banking content: reads (evidence: `src/pages/BankingPage.jsx`)
- AI adoption → Content cards: renders (evidence: `src/pages/AiAdoptionBankingPage.jsx`)
- AI adoption → Banking content: reads (evidence: `src/pages/AiAdoptionBankingPage.jsx`)
- AI adoption → Prompt navigation: renders (evidence: `src/pages/AiAdoptionBankingPage.jsx`)
- Content slider → Content cards: renders (evidence: `src/components/FourColumnSlider/FourColumnSlider.jsx`)
- Content slider → Action button: renders (evidence: `src/components/FourColumnSlider/FourColumnSlider.jsx`)
- Content slider → Article content: reads (evidence: `src/components/FourColumnSlider/FourColumnSlider.jsx`)
- Prompt navigation → Navigation pill: renders (evidence: `src/components/FloatingPromptBar/FloatingPromptBar.jsx`)
- Footer links → Navigation pill: renders (evidence: `src/components/Footer/Footer.jsx`)
- Content cards → Action button: renders (evidence: `src/components/Cards/Cards.jsx`)
- Visitor → Prompt navigation: enters question (evidence: `src/components/FloatingPromptBar/FloatingPromptBar.jsx`)
- Canvas page → Canvas client: requests answers (evidence: `src/pages/CanvasPage.jsx`)
- Canvas client → Canvas API: sends request
- Canvas API → Answer assembly: builds response (evidence: `server/canvas-api.mjs`)
- Answer assembly → Article content: reads content (evidence: `src/lib/canvasResponse.js`)
- Answer assembly → Feed data: reads feeds (evidence: `src/lib/canvasResponse.js`)
- Canvas page → Content cards: renders related items (evidence: `src/pages/CanvasPage.jsx`)
