# mhdjaroos/portfolio architecture

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

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

## Overview

This is a small personal portfolio site. Its visible runtime behavior cycles through role labels and lets visitors submit a contact form; the script validates the fields, reports progress or errors, and sends the message through EmailJS. The repository also includes a resume PDF. The README and sampled source do not describe the page layout or confirm how the script is connected to the HTML, so those relationships are omitted.

Main entry points: [`script.js`](https://github.com/mhdjaroos/portfolio/blob/main/script.js) (Page behavior), [`index.html`](https://github.com/mhdjaroos/portfolio/blob/main/index.html) (Portfolio page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio site"]
  node_page["Portfolio page<br/>[index.html]"]
  node_styles["Page styling<br/>[styles.css]"]
  node_behavior["Page behavior<br/>[script.js]"]
  node_resume["Resume PDF<br/>[MyResume.pdf]"]
end

node_visitor(("Visitor"))
node_emailjs["EmailJS"]
node_sweetalert["SweetAlert"]
node_typed["Typed.js"]

node_behavior -->|"sends message"| node_emailjs
node_behavior -->|"shows alerts"| node_sweetalert
node_behavior -->|"creates animation"| node_typed
node_behavior -->|"reads form fields"| node_page

click node_page "https://github.com/mhdjaroos/portfolio/blob/main/index.html"
click node_styles "https://github.com/mhdjaroos/portfolio/blob/main/styles.css"
click node_behavior "https://github.com/mhdjaroos/portfolio/blob/main/script.js"
click node_resume "https://github.com/mhdjaroos/portfolio/blob/main/MyResume.pdf"

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_page,node_styles,node_behavior,node_resume toneBlue
class node_visitor,node_emailjs,node_sweetalert,node_typed toneIndigo
```

## Components

### Portfolio site

- [Portfolio page](https://github.com/mhdjaroos/portfolio/blob/main/index.html): `index.html`
- [Page styling](https://github.com/mhdjaroos/portfolio/blob/main/styles.css): `styles.css`
- [Page behavior](https://github.com/mhdjaroos/portfolio/blob/main/script.js): `script.js`
- [Resume PDF](https://github.com/mhdjaroos/portfolio/blob/main/MyResume.pdf): `MyResume.pdf`

### Other components

- **Visitor**
- **EmailJS**
- **SweetAlert**
- **Typed.js**

## Connections

- Page behavior → EmailJS: sends message (evidence: `script.js`)
- Page behavior → SweetAlert: shows alerts (evidence: `script.js`)
- Page behavior → Typed.js: creates animation (evidence: `script.js`)
- Page behavior → Portfolio page: reads form fields (evidence: `script.js`)
