# bala290498/welearn-weshare architecture

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

- Interactive diagram: https://gitdiagram.com/bala290498/welearn-weshare
- Repository: https://github.com/bala290498/welearn-weshare

## Overview

WeLearnWeShare is a community-learning platform presented through a Next.js site. Visitors discover the community-discount model and course batches, then can explore course details; the site also showcases learning communities, student portfolios, trainers, blogs, and job opportunities. The main landing page communicates the value proposition, while dedicated routes support discovery across those areas. The graph preserves documented product capabilities and indexed page-to-component relationships; several feature implementations were not sampled, so their internal calls are omitted.

Main entry points: [`src/app/page.tsx`](https://github.com/bala290498/welearn-weshare/blob/main/src/app/page.tsx) (Home experience), [`src/app/batches/page.tsx`](https://github.com/bala290498/welearn-weshare/blob/main/src/app/batches/page.tsx) (Batch catalog), [`src/components/course/CourseContent.tsx`](https://github.com/bala290498/welearn-weshare/blob/main/src/components/course/CourseContent.tsx) (Course detail), [`src/app/community-groups/page.tsx`](https://github.com/bala290498/welearn-weshare/blob/main/src/app/community-groups/page.tsx) (Community groups)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_discovery["Learning discovery"]
  node_home["Home experience<br/>[page.tsx]"]
  node_hero["Pricing hero<br/>[Hero.tsx]"]
  node_pricing["Dynamic pricing display"]
  node_batches["Batch catalog<br/>[page.tsx]"]
  node_batchfilter["Batch filtering"]
  node_coursepage["Course detail<br/>[CourseContent.tsx]"]
  node_coursecross["Related courses<br/>[YouMayAlsoLike.tsx]"]
  node_coursesdata["Course catalog data<br/>[courses.ts]"]
end

subgraph group_community["Community and enrollment"]
  node_join["Community enrollment"]
  node_joinbutton["Join action"]
  node_groups["Community groups<br/>[page.tsx]"]
  node_groupsclient["Group filtering<br/>[GroupsClient.tsx]"]
  node_groupdata["Group data<br/>[groups.ts]"]
end

subgraph group_careers["Career and talent"]
  node_students["Student profiles<br/>[page.tsx]"]
  node_studentdata["Student records<br/>[students.ts]"]
  node_trainer["Trainer recruitment<br/>[BecomeTrainer.tsx]"]
  node_talent["Talent portal<br/>[TalentPortal.tsx]"]
  node_jobs["Opportunity detail<br/>[page.tsx]"]
end

subgraph group_content["Editorial content"]
  node_markdown["Markdown content utilities<br/>[markdown.ts]"]
  node_blogs["Blog listing<br/>[page.tsx]"]
  node_blogclient["Blog browsing<br/>[BlogsClient.tsx]"]
end

node_visitor(("Site visitor"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_pricing
node_visitor -->|"browses"| node_batches
node_batches -->|"renders"| node_batchfilter
node_batches -->|"passes data"| node_coursesdata
node_visitor -.->|"views course"| node_coursepage
node_coursepage -->|"renders"| node_coursecross
node_coursepage -->|"uses content"| node_markdown
node_visitor -->|"starts enrollment"| node_joinbutton
node_joinbutton -->|"opens"| node_join
node_visitor -->|"explores"| node_groups
node_groups -->|"renders"| node_groupsclient
node_groups -->|"passes data"| node_groupdata
node_visitor -->|"views profiles"| node_students
node_students -->|"reads"| node_studentdata
node_visitor -->|"explores"| node_trainer
node_visitor -->|"explores"| node_talent
node_visitor -->|"views opportunity"| node_jobs
node_jobs -->|"loads job"| node_markdown
node_visitor -->|"browses"| node_blogs
node_blogs -->|"renders"| node_blogclient
node_blogs -->|"loads posts"| node_markdown

click node_home "https://github.com/bala290498/welearn-weshare/blob/main/src/app/page.tsx"
click node_hero "https://github.com/bala290498/welearn-weshare/blob/main/src/components/Hero.tsx"
click node_pricing "https://github.com/bala290498/welearn-weshare/blob/main/src/components/DynamicPricingNumbers.tsx"
click node_batches "https://github.com/bala290498/welearn-weshare/blob/main/src/app/batches/page.tsx"
click node_batchfilter "https://github.com/bala290498/welearn-weshare/blob/main/src/components/SkillBuildingClient.tsx"
click node_coursepage "https://github.com/bala290498/welearn-weshare/blob/main/src/components/course/CourseContent.tsx"
click node_coursecross "https://github.com/bala290498/welearn-weshare/blob/main/src/components/course/YouMayAlsoLike.tsx"
click node_coursesdata "https://github.com/bala290498/welearn-weshare/blob/main/src/data/courses.ts"
click node_join "https://github.com/bala290498/welearn-weshare/blob/main/src/components/JoinCommunityModal.tsx"
click node_joinbutton "https://github.com/bala290498/welearn-weshare/blob/main/src/components/JoinCommunityButton.tsx"
click node_groups "https://github.com/bala290498/welearn-weshare/blob/main/src/app/community-groups/page.tsx"
click node_groupsclient "https://github.com/bala290498/welearn-weshare/blob/main/src/components/GroupsClient.tsx"
click node_groupdata "https://github.com/bala290498/welearn-weshare/blob/main/src/data/groups.ts"
click node_students "https://github.com/bala290498/welearn-weshare/blob/main/src/app/students/page.tsx"
click node_studentdata "https://github.com/bala290498/welearn-weshare/blob/main/src/data/students.ts"
click node_trainer "https://github.com/bala290498/welearn-weshare/blob/main/src/components/BecomeTrainer.tsx"
click node_talent "https://github.com/bala290498/welearn-weshare/blob/main/src/components/TalentPortal.tsx"
click node_jobs "https://github.com/bala290498/welearn-weshare/blob/main/src/app/opportunities/%5Bid%5D/page.tsx"
click node_markdown "https://github.com/bala290498/welearn-weshare/blob/main/src/lib/markdown.ts"
click node_blogs "https://github.com/bala290498/welearn-weshare/blob/main/src/app/blogs/page.tsx"
click node_blogclient "https://github.com/bala290498/welearn-weshare/blob/main/src/components/BlogsClient.tsx"

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_hero,node_pricing,node_batches,node_batchfilter,node_coursepage,node_coursecross,node_coursesdata toneBlue
class node_join,node_joinbutton,node_groups,node_groupsclient,node_groupdata toneAmber
class node_students,node_studentdata,node_trainer,node_talent,node_jobs toneMint
class node_markdown,node_blogs,node_blogclient toneRose
class node_visitor toneIndigo
```

## Components

### Learning discovery

- [Home experience](https://github.com/bala290498/welearn-weshare/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Pricing hero](https://github.com/bala290498/welearn-weshare/blob/main/src/components/Hero.tsx): `src/components/Hero.tsx`
- [Dynamic pricing display](https://github.com/bala290498/welearn-weshare/blob/main/src/components/DynamicPricingNumbers.tsx): `src/components/DynamicPricingNumbers.tsx`
- [Batch catalog](https://github.com/bala290498/welearn-weshare/blob/main/src/app/batches/page.tsx): `src/app/batches/page.tsx`
- [Batch filtering](https://github.com/bala290498/welearn-weshare/blob/main/src/components/SkillBuildingClient.tsx): `src/components/SkillBuildingClient.tsx`
- [Course detail](https://github.com/bala290498/welearn-weshare/blob/main/src/components/course/CourseContent.tsx): `src/components/course/CourseContent.tsx`
- [Related courses](https://github.com/bala290498/welearn-weshare/blob/main/src/components/course/YouMayAlsoLike.tsx): `src/components/course/YouMayAlsoLike.tsx`
- [Course catalog data](https://github.com/bala290498/welearn-weshare/blob/main/src/data/courses.ts): `src/data/courses.ts`

### Community and enrollment

- [Community enrollment](https://github.com/bala290498/welearn-weshare/blob/main/src/components/JoinCommunityModal.tsx): `src/components/JoinCommunityModal.tsx`
- [Join action](https://github.com/bala290498/welearn-weshare/blob/main/src/components/JoinCommunityButton.tsx): `src/components/JoinCommunityButton.tsx`
- [Community groups](https://github.com/bala290498/welearn-weshare/blob/main/src/app/community-groups/page.tsx): `src/app/community-groups/page.tsx`
- [Group filtering](https://github.com/bala290498/welearn-weshare/blob/main/src/components/GroupsClient.tsx): `src/components/GroupsClient.tsx`
- [Group data](https://github.com/bala290498/welearn-weshare/blob/main/src/data/groups.ts): `src/data/groups.ts`

### Career and talent

- [Student profiles](https://github.com/bala290498/welearn-weshare/blob/main/src/app/students/page.tsx): `src/app/students/page.tsx`
- [Student records](https://github.com/bala290498/welearn-weshare/blob/main/src/data/students.ts): `src/data/students.ts`
- [Trainer recruitment](https://github.com/bala290498/welearn-weshare/blob/main/src/components/BecomeTrainer.tsx): `src/components/BecomeTrainer.tsx`
- [Talent portal](https://github.com/bala290498/welearn-weshare/blob/main/src/components/TalentPortal.tsx): `src/components/TalentPortal.tsx`
- [Opportunity detail](https://github.com/bala290498/welearn-weshare/blob/main/src/app/opportunities/%5Bid%5D/page.tsx): `src/app/opportunities/[id]/page.tsx`

### Editorial content

- [Markdown content utilities](https://github.com/bala290498/welearn-weshare/blob/main/src/lib/markdown.ts): `src/lib/markdown.ts`
- [Blog listing](https://github.com/bala290498/welearn-weshare/blob/main/src/app/blogs/page.tsx): `src/app/blogs/page.tsx`
- [Blog browsing](https://github.com/bala290498/welearn-weshare/blob/main/src/components/BlogsClient.tsx): `src/components/BlogsClient.tsx`

### Other components

- **Site visitor**

## Connections

- Site visitor → Home experience: opens
- Home experience → Pricing hero: renders (evidence: `src/app/page.tsx`)
- Home experience → Dynamic pricing display: renders (evidence: `src/app/page.tsx`)
- Site visitor → Batch catalog: browses
- Batch catalog → Batch filtering: renders (evidence: `src/app/batches/page.tsx`)
- Batch catalog → Course catalog data: passes data (evidence: `src/app/batches/page.tsx`)
- Site visitor → Course detail: views course
- Course detail → Related courses: renders (evidence: `src/components/course/CourseContent.tsx`)
- Course detail → Markdown content utilities: uses content (evidence: `src/components/course/CourseContent.tsx`)
- Site visitor → Join action: starts enrollment
- Join action → Community enrollment: opens (evidence: `src/components/JoinCommunityButton.tsx`)
- Site visitor → Community groups: explores
- Community groups → Group filtering: renders (evidence: `src/app/community-groups/page.tsx`)
- Community groups → Group data: passes data (evidence: `src/app/community-groups/page.tsx`)
- Site visitor → Student profiles: views profiles
- Student profiles → Student records: reads (evidence: `src/app/students/page.tsx`)
- Site visitor → Trainer recruitment: explores
- Site visitor → Talent portal: explores
- Site visitor → Opportunity detail: views opportunity
- Opportunity detail → Markdown content utilities: loads job (evidence: `src/app/opportunities/[id]/page.tsx`)
- Site visitor → Blog listing: browses
- Blog listing → Blog browsing: renders (evidence: `src/app/blogs/page.tsx`)
- Blog listing → Markdown content utilities: loads posts (evidence: `src/app/blogs/page.tsx`)
