# mohammedashkan/portfolio-2025 architecture

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

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

## Overview

This repository implements a personal portfolio site with service, work, skills, writing, and biography content, plus contact and chatbot features. The main visitor flow is the home page assembling portfolio sections; visitors can also open contact or chat experiences. Chat messages from the legacy chat component are posted to a server route, while a separate chatbot-button opens the newer chatbot. The admin contact page fetches contact submissions. Some subsystem internals were not sampled, so uncertain integrations and data persistence are omitted.

Main entry points: [`src/app/page.tsx`](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/page.tsx) (Home Page), [`src/components/chatbot/chat.tsx`](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot/chat.tsx) (Legacy Chat), [`src/components/chatbot-new/chatbot.tsx`](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot-new/chatbot.tsx) (New Chatbot), [`src/components/sections/about.tsx`](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/about.tsx) (About Section)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio Site"]
  node_home["Home Page<br/>[page.tsx]"]
  node_hero["Hero Section<br/>[hero.tsx]"]
  node_about["About Section<br/>[about.tsx]"]
  node_services["Services Section<br/>[services.tsx]"]
  node_portfolio["Portfolio Section<br/>[portfolio.tsx]"]
  node_blog["Blog Section<br/>[blog.tsx]"]
  node_skills["Skills Section<br/>[skills.tsx]"]
  node_contact_section["Contact Section<br/>[contact.tsx]"]
  node_blog_page["Blog Page<br/>[page.tsx]"]
  node_about_page["About Page<br/>[page.tsx]"]
  node_portfolio_page["Portfolio Page<br/>[page.tsx]"]
  node_services_page["Services Page<br/>[page.tsx]"]
  node_skills_page["Skills Page<br/>[page.tsx]"]
end

subgraph group_engagement["Visitor Engagement"]
  node_contact_form["Contact Form<br/>[ContactForm.tsx]"]
  node_contact_api["Contact Endpoint<br/>[route.ts]"]
  node_admin_contacts["Contact Admin<br/>[page.tsx]"]
end

subgraph group_chat["Chat Assistants"]
  node_chat_page["Chat Page<br/>[page.tsx]"]
  node_legacy_chat["Legacy Chat<br/>[chat.tsx]"]
  node_chat_api["Chat Endpoint<br/>[route.ts]"]
  node_chat_button["Chat Launcher<br/>[chatbot-button.tsx]"]
  node_new_chat["New Chatbot<br/>[chatbot.tsx]"]
  node_chat_processing["Message Processor<br/>[chatbot-client.ts]"]
  node_chat_voice["Chat Voice Assistant"]
  node_legacy_voice["Legacy Voice Assistant"]
end

subgraph group_shared["Shared UI"]
  node_button["Button UI<br/>[button.tsx]"]
  node_tabs["Tabs UI<br/>[tabs.tsx]"]
end

node_visitor(("Visitor"))
node_visitor_browser(("Browser"))

node_visitor -->|"opens"| node_home
node_home -->|"renders"| node_hero
node_home -->|"renders"| node_about
node_home -->|"renders"| node_services
node_home -->|"renders"| node_portfolio
node_home -->|"renders"| node_blog
node_home -->|"renders"| node_skills
node_home -->|"renders"| node_contact_section
node_home -->|"renders"| node_chat_button
node_blog_page -->|"renders"| node_blog
node_about_page -->|"renders"| node_about
node_portfolio_page -->|"renders"| node_portfolio
node_services_page -->|"renders"| node_services
node_skills_page -->|"renders"| node_skills
node_visitor -.->|"submits"| node_contact_form
node_admin_contacts -->|"fetches submissions"| node_contact_api
node_chat_page -->|"renders"| node_legacy_chat
node_legacy_chat -->|"posts messages"| node_chat_api
node_legacy_chat -->|"renders"| node_legacy_voice
node_chat_button -->|"opens"| node_new_chat
node_new_chat -->|"uses"| node_chat_processing
node_new_chat -->|"renders"| node_chat_voice
node_about -->|"uses"| node_tabs
node_services -->|"uses"| node_button

click node_home "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/page.tsx"
click node_hero "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/hero.tsx"
click node_about "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/about.tsx"
click node_services "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/services.tsx"
click node_portfolio "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/portfolio.tsx"
click node_blog "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/blog.tsx"
click node_skills "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/skills.tsx"
click node_contact_section "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/contact.tsx"
click node_blog_page "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/blog/page.tsx"
click node_about_page "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/about/page.tsx"
click node_portfolio_page "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/portfolio/page.tsx"
click node_services_page "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/services/page.tsx"
click node_skills_page "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/skills/page.tsx"
click node_contact_form "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/contact/ContactForm.tsx"
click node_contact_api "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/api/contact/route.ts"
click node_admin_contacts "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/admin/contacts/page.tsx"
click node_chat_page "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/chat/page.tsx"
click node_legacy_chat "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot/chat.tsx"
click node_chat_api "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/api/chatbot/route.ts"
click node_chat_button "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot/chatbot-button.tsx"
click node_new_chat "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot-new/chatbot.tsx"
click node_chat_processing "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot-new/chatbot-client.ts"
click node_chat_voice "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot-new/voice-assistant.tsx"
click node_legacy_voice "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot/voice-assistant.tsx"
click node_button "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/ui/button.tsx"
click node_tabs "https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/ui/tabs.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_about,node_services,node_portfolio,node_blog,node_skills,node_contact_section,node_blog_page,node_about_page,node_portfolio_page,node_services_page,node_skills_page,node_visitor_browser toneBlue
class node_contact_form,node_contact_api,node_admin_contacts toneAmber
class node_chat_page,node_legacy_chat,node_chat_api,node_chat_button,node_new_chat,node_chat_processing,node_chat_voice,node_legacy_voice toneMint
class node_button,node_tabs toneRose
class node_visitor toneIndigo
```

## Components

### Portfolio Site

- [Home Page](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/page.tsx): `src/app/page.tsx`
- [Hero Section](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/hero.tsx): `src/components/sections/hero.tsx`
- [About Section](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/about.tsx): `src/components/sections/about.tsx`
- [Services Section](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/services.tsx): `src/components/sections/services.tsx`
- [Portfolio Section](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/portfolio.tsx): `src/components/sections/portfolio.tsx`
- [Blog Section](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/blog.tsx): `src/components/sections/blog.tsx`
- [Skills Section](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/skills.tsx): `src/components/sections/skills.tsx`
- [Contact Section](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/sections/contact.tsx): `src/components/sections/contact.tsx`
- [Blog Page](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/blog/page.tsx): `src/app/blog/page.tsx`
- [About Page](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/about/page.tsx): `src/app/about/page.tsx`
- [Portfolio Page](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/portfolio/page.tsx): `src/app/portfolio/page.tsx`
- [Services Page](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/services/page.tsx): `src/app/services/page.tsx`
- [Skills Page](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/skills/page.tsx): `src/app/skills/page.tsx`

### Visitor Engagement

- [Contact Form](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/contact/ContactForm.tsx): `src/app/contact/ContactForm.tsx`
- [Contact Endpoint](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/api/contact/route.ts): `src/app/api/contact/route.ts`
- [Contact Admin](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/admin/contacts/page.tsx): `src/app/admin/contacts/page.tsx`

### Chat Assistants

- [Chat Page](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/chat/page.tsx): `src/app/chat/page.tsx`
- [Legacy Chat](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot/chat.tsx): `src/components/chatbot/chat.tsx`
- [Chat Endpoint](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/app/api/chatbot/route.ts): `src/app/api/chatbot/route.ts`
- [Chat Launcher](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot/chatbot-button.tsx): `src/components/chatbot/chatbot-button.tsx`
- [New Chatbot](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot-new/chatbot.tsx): `src/components/chatbot-new/chatbot.tsx`
- [Message Processor](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot-new/chatbot-client.ts): `src/components/chatbot-new/chatbot-client.ts`
- [Chat Voice Assistant](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot-new/voice-assistant.tsx): `src/components/chatbot-new/voice-assistant.tsx`
- [Legacy Voice Assistant](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/chatbot/voice-assistant.tsx): `src/components/chatbot/voice-assistant.tsx`

### Shared UI

- [Button UI](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/ui/button.tsx): `src/components/ui/button.tsx`
- [Tabs UI](https://github.com/mohammedashkan/portfolio-2025/blob/main/src/components/ui/tabs.tsx): `src/components/ui/tabs.tsx`

### Other components

- **Visitor**
- **Browser**

## Connections

- Visitor → Home Page: opens
- Home Page → Hero Section: renders (evidence: `src/app/page.tsx`)
- Home Page → About Section: renders (evidence: `src/app/page.tsx`)
- Home Page → Services Section: renders (evidence: `src/app/page.tsx`)
- Home Page → Portfolio Section: renders (evidence: `src/app/page.tsx`)
- Home Page → Blog Section: renders (evidence: `src/app/page.tsx`)
- Home Page → Skills Section: renders (evidence: `src/app/page.tsx`)
- Home Page → Contact Section: renders (evidence: `src/app/page.tsx`)
- Home Page → Chat Launcher: renders (evidence: `src/app/page.tsx`)
- Blog Page → Blog Section: renders (evidence: `src/app/blog/page.tsx`)
- About Page → About Section: renders (evidence: `src/app/about/page.tsx`)
- Portfolio Page → Portfolio Section: renders (evidence: `src/app/portfolio/page.tsx`)
- Services Page → Services Section: renders (evidence: `src/app/services/page.tsx`)
- Skills Page → Skills Section: renders (evidence: `src/app/skills/page.tsx`)
- Visitor → Contact Form: submits
- Contact Admin → Contact Endpoint: fetches submissions (evidence: `src/app/admin/contacts/page.tsx`)
- Chat Page → Legacy Chat: renders (evidence: `src/app/chat/page.tsx`)
- Legacy Chat → Chat Endpoint: posts messages (evidence: `src/components/chatbot/chat.tsx`)
- Legacy Chat → Legacy Voice Assistant: renders (evidence: `src/components/chatbot/chat.tsx`)
- Chat Launcher → New Chatbot: opens (evidence: `src/components/chatbot/chatbot-button.tsx`)
- New Chatbot → Message Processor: uses (evidence: `src/components/chatbot-new/chatbot.tsx`)
- New Chatbot → Chat Voice Assistant: renders (evidence: `src/components/chatbot-new/chatbot.tsx`)
- About Section → Tabs UI: uses (evidence: `src/components/sections/about.tsx`)
- Services Section → Button UI: uses (evidence: `src/components/sections/services.tsx`)
