# tejamedi23/portfoli architecture

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

- Interactive diagram: https://gitdiagram.com/tejamedi23/portfoli
- Repository: https://github.com/tejamedi23/portfoli

## Overview

Teja Medi is a personal portfolio website. Visitors browse the landing, about, project, and contact sections; the contact form validates configuration, sends submissions through EmailJS, and reports outcomes with toasts. The app also provides section navigation and a catch-all not-found route. The graph includes the principal content and contact workflow, plus the toast state/rendering layer. Source excerpts establish routing, composition, submission, and notification behavior; README documents EmailJS setup. Other section details are represented only where the supplied index confirms their use.

Main entry points: [`src/pages/Index.tsx`](https://github.com/tejamedi23/portfoli/blob/main/src/pages/Index.tsx) (Portfolio page), [`src/components/sections/ContactSection.tsx`](https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/ContactSection.tsx) (Contact form), [`src/App.tsx`](https://github.com/tejamedi23/portfoli/blob/main/src/App.tsx) (App and routes), [`src/components/sections/PortfolioSection.tsx`](https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/PortfolioSection.tsx) (Project portfolio)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_app["App and routing"]
  node_main["React entry<br/>[main.tsx]"]
  node_app["App and routes<br/>[App.tsx]"]
  node_notfound["Not found page<br/>[NotFound.tsx]"]
  node_tooltip["Tooltip provider<br/>[tooltip.tsx]"]
end

subgraph group_content["Portfolio content"]
  node_index["Portfolio page<br/>[Index.tsx]"]
  node_navigation["Section navigation<br/>[navigation.tsx]"]
  node_hero["Hero section<br/>[HeroSection.tsx]"]
  node_about["About section<br/>[AboutSection.tsx]"]
  node_portfolio["Project portfolio"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_badge["Project badges<br/>[badge.tsx]"]
end

subgraph group_contact["Contact workflow"]
  node_contact["Contact form<br/>[ContactSection.tsx]"]
  node_button["Button control<br/>[button.tsx]"]
  node_input["Text input<br/>[input.tsx]"]
  node_textarea["Message input<br/>[textarea.tsx]"]
  node_label["Form labels<br/>[label.tsx]"]
end

subgraph group_feedback["Toast feedback"]
  node_toast_hook["Toast state<br/>[use-toast.ts]"]
  node_toaster["Toast renderer<br/>[toaster.tsx]"]
  node_toast["Toast primitives<br/>[toast.tsx]"]
  node_sonner["Sonner renderer<br/>[sonner.tsx]"]
end

node_visitor(("Visitor"))
node_emailjs["EmailJS service"]

node_visitor -->|"opens site"| node_main
node_main -->|"renders"| node_app
node_app -->|"routes home"| node_index
node_app -->|"routes fallback"| node_notfound
node_app -->|"mounts"| node_toaster
node_app -->|"mounts"| node_sonner
node_app -->|"provides"| node_tooltip
node_index -->|"renders"| node_navigation
node_index -->|"renders"| node_hero
node_index -->|"renders"| node_about
node_index -->|"renders"| node_portfolio
node_index -->|"renders"| node_contact
node_index -->|"renders"| node_footer
node_hero -->|"uses"| node_button
node_portfolio -->|"uses"| node_button
node_portfolio -->|"uses"| node_badge
node_contact -->|"uses"| node_button
node_contact -->|"uses"| node_input
node_contact -->|"uses"| node_textarea
node_contact -->|"uses"| node_label
node_contact -->|"sends message"| node_emailjs
node_contact -->|"reports status"| node_toast_hook
node_toaster -->|"reads state"| node_toast_hook
node_toaster -->|"renders"| node_toast
node_toast_hook -->|"uses types"| node_toast

click node_main "https://github.com/tejamedi23/portfoli/blob/main/src/main.tsx"
click node_app "https://github.com/tejamedi23/portfoli/blob/main/src/App.tsx"
click node_index "https://github.com/tejamedi23/portfoli/blob/main/src/pages/Index.tsx"
click node_notfound "https://github.com/tejamedi23/portfoli/blob/main/src/pages/NotFound.tsx"
click node_navigation "https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/navigation.tsx"
click node_hero "https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/HeroSection.tsx"
click node_about "https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/AboutSection.tsx"
click node_portfolio "https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/PortfolioSection.tsx"
click node_footer "https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/Footer.tsx"
click node_contact "https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/ContactSection.tsx"
click node_button "https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/button.tsx"
click node_badge "https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/badge.tsx"
click node_input "https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/input.tsx"
click node_textarea "https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/textarea.tsx"
click node_label "https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/label.tsx"
click node_toast_hook "https://github.com/tejamedi23/portfoli/blob/main/src/hooks/use-toast.ts"
click node_toaster "https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/toaster.tsx"
click node_toast "https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/toast.tsx"
click node_sonner "https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/sonner.tsx"
click node_tooltip "https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/tooltip.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_main,node_app,node_notfound,node_tooltip toneBlue
class node_index,node_navigation,node_hero,node_about,node_portfolio,node_footer,node_badge toneAmber
class node_contact,node_button,node_input,node_textarea,node_label toneMint
class node_toast_hook,node_toaster,node_toast,node_sonner toneRose
class node_visitor,node_emailjs toneIndigo
```

## Components

### App and routing

- [React entry](https://github.com/tejamedi23/portfoli/blob/main/src/main.tsx): `src/main.tsx`
- [App and routes](https://github.com/tejamedi23/portfoli/blob/main/src/App.tsx): `src/App.tsx`
- [Not found page](https://github.com/tejamedi23/portfoli/blob/main/src/pages/NotFound.tsx): `src/pages/NotFound.tsx`
- [Tooltip provider](https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/tooltip.tsx): `src/components/ui/tooltip.tsx`

### Portfolio content

- [Portfolio page](https://github.com/tejamedi23/portfoli/blob/main/src/pages/Index.tsx): `src/pages/Index.tsx`
- [Section navigation](https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/navigation.tsx): `src/components/ui/navigation.tsx`
- [Hero section](https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/HeroSection.tsx): `src/components/sections/HeroSection.tsx`
- [About section](https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/AboutSection.tsx): `src/components/sections/AboutSection.tsx`
- [Project portfolio](https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/PortfolioSection.tsx): `src/components/sections/PortfolioSection.tsx`
- [Footer](https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/Footer.tsx): `src/components/sections/Footer.tsx`
- [Project badges](https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/badge.tsx): `src/components/ui/badge.tsx`

### Contact workflow

- [Contact form](https://github.com/tejamedi23/portfoli/blob/main/src/components/sections/ContactSection.tsx): `src/components/sections/ContactSection.tsx`
- [Button control](https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Text input](https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/input.tsx): `src/components/ui/input.tsx`
- [Message input](https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/textarea.tsx): `src/components/ui/textarea.tsx`
- [Form labels](https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/label.tsx): `src/components/ui/label.tsx`

### Toast feedback

- [Toast state](https://github.com/tejamedi23/portfoli/blob/main/src/hooks/use-toast.ts): `src/hooks/use-toast.ts`
- [Toast renderer](https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/toaster.tsx): `src/components/ui/toaster.tsx`
- [Toast primitives](https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/toast.tsx): `src/components/ui/toast.tsx`
- [Sonner renderer](https://github.com/tejamedi23/portfoli/blob/main/src/components/ui/sonner.tsx): `src/components/ui/sonner.tsx`

### Other components

- **Visitor**
- **EmailJS service**

## Connections

- Visitor → React entry: opens site (evidence: `src/main.tsx`)
- React entry → App and routes: renders (evidence: `src/main.tsx`)
- App and routes → Portfolio page: routes home (evidence: `src/App.tsx`)
- App and routes → Not found page: routes fallback (evidence: `src/App.tsx`)
- App and routes → Toast renderer: mounts (evidence: `src/App.tsx`)
- App and routes → Sonner renderer: mounts (evidence: `src/App.tsx`)
- App and routes → Tooltip provider: provides (evidence: `src/App.tsx`)
- Portfolio page → Section navigation: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Hero section: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → About section: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Project portfolio: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Contact form: renders (evidence: `src/pages/Index.tsx`)
- Portfolio page → Footer: renders (evidence: `src/pages/Index.tsx`)
- Hero section → Button control: uses (evidence: `src/components/sections/HeroSection.tsx`)
- Project portfolio → Button control: uses (evidence: `src/components/sections/PortfolioSection.tsx`)
- Project portfolio → Project badges: uses (evidence: `src/components/sections/PortfolioSection.tsx`)
- Contact form → Button control: uses (evidence: `src/components/sections/ContactSection.tsx`)
- Contact form → Text input: uses (evidence: `src/components/sections/ContactSection.tsx`)
- Contact form → Message input: uses (evidence: `src/components/sections/ContactSection.tsx`)
- Contact form → Form labels: uses (evidence: `src/components/sections/ContactSection.tsx`)
- Contact form → EmailJS service: sends message (evidence: `src/components/sections/ContactSection.tsx`)
- Contact form → Toast state: reports status (evidence: `src/components/sections/ContactSection.tsx`)
- Toast renderer → Toast state: reads state (evidence: `src/components/ui/toaster.tsx`)
- Toast renderer → Toast primitives: renders (evidence: `src/components/ui/toaster.tsx`)
- Toast state → Toast primitives: uses types (evidence: `src/hooks/use-toast.ts`)
