# mohamedfazil1406/portfolio architecture

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

- Interactive diagram: https://gitdiagram.com/mohamedfazil1406/portfolio
- Repository: https://github.com/mohamedfazil1406/portfolio

## Overview

This is a Next.js personal portfolio presenting the developer’s profile, education, skills, projects, contact options, and live GitHub activity and contribution history. The visitor workflow is to open the home page, browse its sections, inspect project and profile links, and contact the developer or download a resume. GitHub activity and pull-request data are fetched through separate API routes and rendered in dedicated views. The graph follows documented imports and fetch calls; route implementations and several sections were not excerpted, so their internal service relationships are not inferred.

Main entry points: [`app/page.tsx`](https://github.com/mohamedfazil1406/portfolio/blob/main/app/page.tsx) (Home composition), [`components/github/GitHubActivity.tsx`](https://github.com/mohamedfazil1406/portfolio/blob/main/components/github/GitHubActivity.tsx) (Activity panel), [`components/OpenSource/OpenSource.tsx`](https://github.com/mohamedfazil1406/portfolio/blob/main/components/OpenSource/OpenSource.tsx) (Pull request panel), [`components/sections/About.tsx`](https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/About.tsx) (About)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Portfolio presentation"]
  node_home["Home composition<br/>[page.tsx]"]
  node_navbar["Navigation<br/>[Navbar.tsx]"]
  node_hero["Profile hero<br/>[Hero.tsx]"]
  node_about["About<br/>[About.tsx]"]
  node_education["Education<br/>[Education.tsx]"]
  node_skills["Skills<br/>[Skills.tsx]"]
  node_projects["Projects<br/>[Projects.tsx]"]
  node_contact["Contact<br/>[Contact.tsx]"]
  node_footer["Footer<br/>[Footer.tsx]"]
  node_fadein["Fade-in animation<br/>[FadeIn.tsx]"]
end

subgraph group_github["GitHub activity"]
  node_activity["Activity panel<br/>[GitHubActivity.tsx]"]
  node_calendar["Contribution calendar<br/>[GitHubCalendar.tsx]"]
  node_cell["Contribution cell"]
  node_opensource["Pull request panel<br/>[OpenSource.tsx]"]
  node_prcard["Pull request card"]
end

subgraph group_api["GitHub API"]
  node_githubroute["Activity API route<br/>[route.ts]"]
  node_prroute["Pull requests API route<br/>[route.ts]"]
end

node_visitor(("Visitor"))
node_githubservice["GitHub"]

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_navbar
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_education
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_activity
node_home -->|"renders"| node_opensource
node_home -->|"renders"| node_projects
node_home -->|"renders"| node_contact
node_home -->|"renders"| node_footer
node_about -->|"uses"| node_fadein
node_activity -->|"fetches"| node_githubroute
node_activity -->|"renders"| node_calendar
node_calendar -->|"renders"| node_cell
node_opensource -->|"fetches"| node_prroute
node_opensource -->|"renders"| node_prcard
node_visitor -->|"views profile"| node_githubservice
node_githubroute -.-> node_githubservice
node_prroute -.-> node_githubservice

click node_home "https://github.com/mohamedfazil1406/portfolio/blob/main/app/page.tsx"
click node_navbar "https://github.com/mohamedfazil1406/portfolio/blob/main/components/layout/Navbar.tsx"
click node_hero "https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/Hero.tsx"
click node_about "https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/About.tsx"
click node_education "https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/Education.tsx"
click node_skills "https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/Skills.tsx"
click node_projects "https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/Projects.tsx"
click node_contact "https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/Contact.tsx"
click node_footer "https://github.com/mohamedfazil1406/portfolio/blob/main/components/layout/Footer.tsx"
click node_fadein "https://github.com/mohamedfazil1406/portfolio/blob/main/components/ui/FadeIn.tsx"
click node_activity "https://github.com/mohamedfazil1406/portfolio/blob/main/components/github/GitHubActivity.tsx"
click node_calendar "https://github.com/mohamedfazil1406/portfolio/blob/main/components/github/GitHubCalendar.tsx"
click node_cell "https://github.com/mohamedfazil1406/portfolio/blob/main/components/github/ContributionCell.tsx"
click node_opensource "https://github.com/mohamedfazil1406/portfolio/blob/main/components/OpenSource/OpenSource.tsx"
click node_prcard "https://github.com/mohamedfazil1406/portfolio/blob/main/components/OpenSource/ContributionCard.tsx"
click node_githubroute "https://github.com/mohamedfazil1406/portfolio/blob/main/app/api/github/route.ts"
click node_prroute "https://github.com/mohamedfazil1406/portfolio/blob/main/app/api/github-prs/route.ts"

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_navbar,node_hero,node_about,node_education,node_skills,node_projects,node_contact,node_footer,node_fadein toneBlue
class node_activity,node_calendar,node_cell,node_opensource,node_prcard toneAmber
class node_githubroute,node_prroute toneMint
class node_visitor,node_githubservice toneIndigo
```

## Components

### Portfolio presentation

- [Home composition](https://github.com/mohamedfazil1406/portfolio/blob/main/app/page.tsx): `app/page.tsx`
- [Navigation](https://github.com/mohamedfazil1406/portfolio/blob/main/components/layout/Navbar.tsx): `components/layout/Navbar.tsx`
- [Profile hero](https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/Hero.tsx): `components/sections/Hero.tsx`
- [About](https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/About.tsx): `components/sections/About.tsx`
- [Education](https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/Education.tsx): `components/sections/Education.tsx`
- [Skills](https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/Skills.tsx): `components/sections/Skills.tsx`
- [Projects](https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/Projects.tsx): `components/sections/Projects.tsx`
- [Contact](https://github.com/mohamedfazil1406/portfolio/blob/main/components/sections/Contact.tsx): `components/sections/Contact.tsx`
- [Footer](https://github.com/mohamedfazil1406/portfolio/blob/main/components/layout/Footer.tsx): `components/layout/Footer.tsx`
- [Fade-in animation](https://github.com/mohamedfazil1406/portfolio/blob/main/components/ui/FadeIn.tsx): `components/ui/FadeIn.tsx`

### GitHub activity

- [Activity panel](https://github.com/mohamedfazil1406/portfolio/blob/main/components/github/GitHubActivity.tsx): `components/github/GitHubActivity.tsx`
- [Contribution calendar](https://github.com/mohamedfazil1406/portfolio/blob/main/components/github/GitHubCalendar.tsx): `components/github/GitHubCalendar.tsx`
- [Contribution cell](https://github.com/mohamedfazil1406/portfolio/blob/main/components/github/ContributionCell.tsx): `components/github/ContributionCell.tsx`
- [Pull request panel](https://github.com/mohamedfazil1406/portfolio/blob/main/components/OpenSource/OpenSource.tsx): `components/OpenSource/OpenSource.tsx`
- [Pull request card](https://github.com/mohamedfazil1406/portfolio/blob/main/components/OpenSource/ContributionCard.tsx): `components/OpenSource/ContributionCard.tsx`

### GitHub API

- [Activity API route](https://github.com/mohamedfazil1406/portfolio/blob/main/app/api/github/route.ts): `app/api/github/route.ts`
- [Pull requests API route](https://github.com/mohamedfazil1406/portfolio/blob/main/app/api/github-prs/route.ts): `app/api/github-prs/route.ts`

### Other components

- **Visitor**
- **GitHub**

## Connections

- Visitor → Home composition: opens (evidence: `README.md`)
- Home composition → Navigation: renders (evidence: `app/page.tsx`)
- Home composition → Profile hero: renders (evidence: `app/page.tsx`)
- Home composition → About: renders (evidence: `app/page.tsx`)
- Home composition → Education: renders (evidence: `app/page.tsx`)
- Home composition → Skills: renders (evidence: `app/page.tsx`)
- Home composition → Activity panel: renders (evidence: `app/page.tsx`)
- Home composition → Pull request panel: renders (evidence: `app/page.tsx`)
- Home composition → Projects: renders (evidence: `app/page.tsx`)
- Home composition → Contact: renders (evidence: `app/page.tsx`)
- Home composition → Footer: renders (evidence: `app/page.tsx`)
- About → Fade-in animation: uses (evidence: `components/sections/About.tsx`)
- Activity panel → Activity API route: fetches (evidence: `components/github/GitHubActivity.tsx`)
- Activity panel → Contribution calendar: renders (evidence: `components/github/GitHubActivity.tsx`)
- Contribution calendar → Contribution cell: renders (evidence: `components/github/GitHubCalendar.tsx`)
- Pull request panel → Pull requests API route: fetches (evidence: `components/OpenSource/OpenSource.tsx`)
- Pull request panel → Pull request card: renders (evidence: `components/OpenSource/OpenSource.tsx`)
- Visitor → GitHub: views profile
- Activity API route → GitHub
- Pull requests API route → GitHub
