# sajanawickramarathna/portfolio architecture

> Architecture diagram of the GitHub repository sajanawickramarathna/portfolio, 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/sajanawickramarathna/portfolio
- Repository: https://github.com/sajanawickramarathna/portfolio

## Overview

This is a React portfolio site presenting its owner, services, skills, writing, and project case studies. A visitor enters the routed app, reaches the main portfolio sections or a project detail route, and can follow external social, article, or download links. The project pages are presentation case studies, not the implementations of the products they describe. Connections reflect the supplied imports and excerpts; the README is empty, and some page and project source was not excerpted.

Main entry points: [`frontend/src/pages/MainPage.js`](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/MainPage.js) (Main page), [`frontend/src/App.js`](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/App.js) (Route composition), [`frontend/src/Projects`](https://github.com/sajanawickramarathna/portfolio/tree/master/frontend/src/Projects) (Project case studies), [`frontend/src/index.js`](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/index.js) (React entry)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routing["App routing"]
  node_entry["React entry<br/>[index.js]"]
  node_app["Route composition<br/>[App.js]"]
end

subgraph group_portfolio["Portfolio sections"]
  node_main["Main page<br/>[MainPage.js]"]
  node_home["Home<br/>[home.js]"]
  node_about["About<br/>[about.js]"]
  node_services["Services<br/>[services.js]"]
  node_projects["Project index<br/>[project.js]"]
  node_skills["Skills<br/>[skills.js]"]
  node_roadmap["Roadmap<br/>[roadmap.js]"]
  node_articles["Articles<br/>[Artical.js]"]
  node_contact["Contact<br/>[contact.js]"]
end

subgraph group_showcases["Project showcases"]
  node_casepages["Project case studies"]
end

subgraph group_shared["Shared presentation"]
  node_header["Navigation header<br/>[header.js]"]
  node_scroll["Scroll reset<br/>[ScrollToTop .js]"]
  node_particles["Particle backdrop"]
  node_footer["Social footer<br/>[footer.js]"]
end

node_visitor(("Visitor"))
node_external(("External platforms"))

node_visitor -->|"opens"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"routes"| node_main
node_app -->|"routes"| node_casepages
node_app -->|"renders"| node_header
node_app -->|"renders"| node_scroll
node_app -->|"renders"| node_particles
node_main -->|"renders"| node_home
node_main -->|"renders"| node_about
node_main -->|"renders"| node_services
node_main -->|"renders"| node_projects
node_main -->|"renders"| node_skills
node_main -->|"renders"| node_roadmap
node_main -->|"renders"| node_articles
node_main -->|"renders"| node_contact
node_main -->|"renders"| node_footer
node_casepages -->|"renders"| node_footer
node_articles -->|"links out"| node_external
node_casepages -.->|"links out"| node_external

click node_entry "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/index.js"
click node_app "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/App.js"
click node_main "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/MainPage.js"
click node_home "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/home.js"
click node_about "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/about.js"
click node_services "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/services.js"
click node_projects "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/project.js"
click node_skills "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/skills.js"
click node_roadmap "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/roadmap.js"
click node_articles "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/Artical.js"
click node_contact "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/contact.js"
click node_casepages "https://github.com/sajanawickramarathna/portfolio/tree/master/frontend/src/Projects"
click node_header "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/components/header.js"
click node_scroll "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/components/ScrollToTop%20.js"
click node_particles "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/components/ParticleBackground.js"
click node_footer "https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/components/footer.js"

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_app toneBlue
class node_main,node_home,node_about,node_services,node_projects,node_skills,node_roadmap,node_articles,node_contact toneAmber
class node_casepages toneMint
class node_header,node_scroll,node_particles,node_footer toneRose
class node_visitor,node_external toneIndigo
```

## Components

### App routing

- [React entry](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/index.js): `frontend/src/index.js`
- [Route composition](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/App.js): `frontend/src/App.js`

### Portfolio sections

- [Main page](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/MainPage.js): `frontend/src/pages/MainPage.js`
- [Home](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/home.js): `frontend/src/pages/home.js`
- [About](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/about.js): `frontend/src/pages/about.js`
- [Services](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/services.js): `frontend/src/pages/services.js`
- [Project index](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/project.js): `frontend/src/pages/project.js`
- [Skills](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/skills.js): `frontend/src/pages/skills.js`
- [Roadmap](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/roadmap.js): `frontend/src/pages/roadmap.js`
- [Articles](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/Artical.js): `frontend/src/pages/Artical.js`
- [Contact](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/pages/contact.js): `frontend/src/pages/contact.js`

### Project showcases

- [Project case studies](https://github.com/sajanawickramarathna/portfolio/tree/master/frontend/src/Projects): `frontend/src/Projects`

### Shared presentation

- [Navigation header](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/components/header.js): `frontend/src/components/header.js`
- [Scroll reset](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/components/ScrollToTop%20.js): `frontend/src/components/ScrollToTop .js`
- [Particle backdrop](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/components/ParticleBackground.js): `frontend/src/components/ParticleBackground.js`
- [Social footer](https://github.com/sajanawickramarathna/portfolio/blob/master/frontend/src/components/footer.js): `frontend/src/components/footer.js`

### Other components

- **Visitor**
- **External platforms**

## Connections

- Visitor → React entry: opens
- React entry → Route composition: renders (evidence: `frontend/src/index.js`)
- Route composition → Main page: routes (evidence: `frontend/src/App.js`)
- Route composition → Project case studies: routes (evidence: `frontend/src/App.js`)
- Route composition → Navigation header: renders (evidence: `frontend/src/App.js`)
- Route composition → Scroll reset: renders (evidence: `frontend/src/App.js`)
- Route composition → Particle backdrop: renders (evidence: `frontend/src/App.js`)
- Main page → Home: renders (evidence: `frontend/src/pages/MainPage.js`)
- Main page → About: renders (evidence: `frontend/src/pages/MainPage.js`)
- Main page → Services: renders (evidence: `frontend/src/pages/MainPage.js`)
- Main page → Project index: renders (evidence: `frontend/src/pages/MainPage.js`)
- Main page → Skills: renders (evidence: `frontend/src/pages/MainPage.js`)
- Main page → Roadmap: renders (evidence: `frontend/src/pages/MainPage.js`)
- Main page → Articles: renders (evidence: `frontend/src/pages/MainPage.js`)
- Main page → Contact: renders (evidence: `frontend/src/pages/MainPage.js`)
- Main page → Social footer: renders (evidence: `frontend/src/pages/MainPage.js`)
- Project case studies → Social footer: renders (evidence: `frontend/src/Projects/learnbridge.js`)
- Articles → External platforms: links out (evidence: `frontend/src/pages/Artical.js`)
- Project case studies → External platforms: links out
