# shruti-246/shruti-web architecture

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

- Interactive diagram: https://gitdiagram.com/shruti-246/shruti-web
- Repository: https://github.com/shruti-246/shruti-web

## Overview

This repository is a personal portfolio website. Visitors enter the React app and browse an introduction, biography, experience, projects, skills, and contact links; a separate /recommend route accepts recommendation submissions. The recommendation form uploads images and inserts records through Supabase, while the recommendations component queries approved records. The main excerpts show the route and component wiring, but README content is absent and the public recommendations view is commented out in App, so it is not shown as part of the active page flow.

Main entry points: [`portfolio/src/App.jsx`](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/App.jsx) (Route and layout), [`portfolio/src/components/recommendations/RecommendationForm.jsx`](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/recommendations/RecommendationForm.jsx) (Recommendation form), [`portfolio/src/lib/supabaseClient.js`](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/lib/supabaseClient.js) (Supabase client), [`portfolio/src/components/recommendations/Recommendations.jsx`](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/recommendations/Recommendations.jsx) (Published recommendations)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_entry["Application shell"]
  node_main["React entry<br/>[main.jsx]"]
  node_app["Route and layout<br/>[App.jsx]"]
end

subgraph group_portfolio["Portfolio content"]
  node_navbar["Navigation<br/>[Navbar.jsx]"]
  node_hero["Introduction<br/>[Hero.jsx]"]
  node_portrait["Halftone portrait"]
  node_about["Biography and skills<br/>[About.jsx]"]
  node_journey["Experience<br/>[Journey.jsx]"]
  node_projects["Project showcase<br/>[Projects.jsx]"]
  node_skills["Skills<br/>[Skills.jsx]"]
  node_achievements["Achievements<br/>[Achievements.jsx]"]
  node_sectionwrapper["Section wrapper<br/>[SectionWrapper.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
end

subgraph group_recommendations["Recommendations"]
  node_recommendform["Recommendation form"]
  node_recommendations["Published recommendations"]
  node_supabaseclient["Supabase client<br/>[supabaseClient.js]"]
  node_supabase[("Supabase service")]
end

node_visitor(("Site visitor"))

node_visitor -.->|"opens site"| node_main
node_main -->|"renders"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_hero
node_app -->|"renders"| node_about
node_app -->|"renders"| node_journey
node_app -->|"renders"| node_projects
node_app -->|"renders"| node_skills
node_app -->|"renders"| node_footer
node_app -->|"routes to"| node_recommendform
node_hero -->|"renders"| node_portrait
node_achievements -->|"uses"| node_sectionwrapper
node_recommendform -->|"calls"| node_supabaseclient
node_recommendations -->|"queries"| node_supabaseclient
node_supabaseclient -.->|"connects to"| node_supabase
node_recommendform -->|"uploads and inserts"| node_supabase
node_recommendations -->|"reads approved records"| node_supabase

click node_main "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/main.jsx"
click node_app "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/App.jsx"
click node_navbar "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/layout/Navbar.jsx"
click node_hero "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/hero/Hero.jsx"
click node_portrait "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/HalftonePortrait.jsx"
click node_about "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/about/About.jsx"
click node_journey "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/journey/Journey.jsx"
click node_projects "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/projects/Projects.jsx"
click node_skills "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/skills/Skills.jsx"
click node_achievements "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/achievements/Achievements.jsx"
click node_sectionwrapper "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/layout/SectionWrapper.jsx"
click node_footer "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/layout/Footer.jsx"
click node_recommendform "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/recommendations/RecommendationForm.jsx"
click node_recommendations "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/recommendations/Recommendations.jsx"
click node_supabaseclient "https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/lib/supabaseClient.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_main,node_app toneBlue
class node_navbar,node_hero,node_portrait,node_about,node_journey,node_projects,node_skills,node_achievements,node_sectionwrapper,node_footer toneAmber
class node_recommendform,node_recommendations,node_supabaseclient,node_supabase toneMint
class node_visitor toneIndigo
```

## Components

### Application shell

- [React entry](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/main.jsx): `portfolio/src/main.jsx`
- [Route and layout](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/App.jsx): `portfolio/src/App.jsx`

### Portfolio content

- [Navigation](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/layout/Navbar.jsx): `portfolio/src/components/layout/Navbar.jsx`
- [Introduction](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/hero/Hero.jsx): `portfolio/src/components/hero/Hero.jsx`
- [Halftone portrait](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/HalftonePortrait.jsx): `portfolio/src/components/HalftonePortrait.jsx`
- [Biography and skills](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/about/About.jsx): `portfolio/src/components/about/About.jsx`
- [Experience](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/journey/Journey.jsx): `portfolio/src/components/journey/Journey.jsx`
- [Project showcase](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/projects/Projects.jsx): `portfolio/src/components/projects/Projects.jsx`
- [Skills](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/skills/Skills.jsx): `portfolio/src/components/skills/Skills.jsx`
- [Achievements](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/achievements/Achievements.jsx): `portfolio/src/components/achievements/Achievements.jsx`
- [Section wrapper](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/layout/SectionWrapper.jsx): `portfolio/src/components/layout/SectionWrapper.jsx`
- [Footer](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/layout/Footer.jsx): `portfolio/src/components/layout/Footer.jsx`

### Recommendations

- [Recommendation form](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/recommendations/RecommendationForm.jsx): `portfolio/src/components/recommendations/RecommendationForm.jsx`
- [Published recommendations](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/components/recommendations/Recommendations.jsx): `portfolio/src/components/recommendations/Recommendations.jsx`
- [Supabase client](https://github.com/shruti-246/shruti-web/blob/main/portfolio/src/lib/supabaseClient.js): `portfolio/src/lib/supabaseClient.js`
- **Supabase service**

### Other components

- **Site visitor**

## Connections

- Site visitor → React entry: opens site
- React entry → Route and layout: renders (evidence: `portfolio/src/main.jsx`)
- Route and layout → Navigation: renders (evidence: `portfolio/src/App.jsx`)
- Route and layout → Introduction: renders (evidence: `portfolio/src/App.jsx`)
- Route and layout → Biography and skills: renders (evidence: `portfolio/src/App.jsx`)
- Route and layout → Experience: renders (evidence: `portfolio/src/App.jsx`)
- Route and layout → Project showcase: renders (evidence: `portfolio/src/App.jsx`)
- Route and layout → Skills: renders (evidence: `portfolio/src/App.jsx`)
- Route and layout → Footer: renders (evidence: `portfolio/src/App.jsx`)
- Route and layout → Recommendation form: routes to (evidence: `portfolio/src/App.jsx`)
- Introduction → Halftone portrait: renders (evidence: `portfolio/src/components/hero/Hero.jsx`)
- Achievements → Section wrapper: uses (evidence: `portfolio/src/components/achievements/Achievements.jsx`)
- Recommendation form → Supabase client: calls (evidence: `portfolio/src/components/recommendations/RecommendationForm.jsx`)
- Published recommendations → Supabase client: queries (evidence: `portfolio/src/components/recommendations/Recommendations.jsx`)
- Supabase client → Supabase service: connects to
- Recommendation form → Supabase service: uploads and inserts (evidence: `portfolio/src/components/recommendations/RecommendationForm.jsx`)
- Published recommendations → Supabase service: reads approved records (evidence: `portfolio/src/components/recommendations/Recommendations.jsx`)
