# mohamedtzni/portfolio architecture

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

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

## Overview

This is an Angular portfolio site. Visitors enter through the routed application shell, browse the portfolio sections, open project previews or dialogs, navigate legal pages, and submit a contact form. The graph also preserves the documented bilingual interface and blog capability. Source excerpts show the main section wiring and several service calls; other feature details come from the README, so unsampled implementation links are omitted rather than inferred.

Main entry points: [`src/app/main/main-page/main-page.ts`](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/main-page/main-page.ts) (Portfolio page), [`src/app/app.routes.ts`](https://github.com/mohamedtzni/portfolio/blob/main/src/app/app.routes.ts) (Route table), [`src/app/main/projects/projects.ts`](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/projects/projects.ts) (Projects section), [`src/app/app.ts`](https://github.com/mohamedtzni/portfolio/blob/main/src/app/app.ts) (App shell)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_app["App shell<br/>[app.ts]"]
  node_routes["Route table<br/>[app.routes.ts]"]
  node_config["App configuration<br/>[app.config.ts]"]
  node_header["Header navigation<br/>[header.ts]"]
  node_language["Language switch<br/>[language-switch.ts]"]
  node_footer["Footer<br/>[footer.ts]"]
end

subgraph group_portfolio["Portfolio content"]
  node_main["Portfolio page<br/>[main-page.ts]"]
  node_hero["Hero section<br/>[hero.ts]"]
  node_about["About section"]
  node_skills["Skills section<br/>[skills.ts]"]
  node_projects["Projects section<br/>[projects.ts]"]
  node_dialog["Project dialog<br/>[project-dialog.ts]"]
  node_references["References carousel<br/>[references.ts]"]
  node_contact["Contact section<br/>[contact.ts]"]
  node_form["Contact form<br/>[contact-form.ts]"]
end

subgraph group_services["Content and services"]
  node_skillsdata[("Skills catalog<br/>[skills.service.ts]")]
  node_projectdata[("Project catalog")]
  node_projectmodel["Project model<br/>[project.model.ts]"]
  node_refdata[("Reference catalog")]
  node_email["Email service<br/>[email.service.ts]"]
  node_scroll["Body scroll"]
  node_wordpress["WordPress service"]
end

subgraph group_pages["Supporting pages"]
  node_legal["Legal notice<br/>[legal-notice.ts]"]
  node_privacy["Privacy policy<br/>[privacy-policy.ts]"]
  node_blog["Blog page<br/>[blog.ts]"]
end

node_visitor(("Visitor"))
node_emailjs["EmailJS"]
node_localstorage[("Browser storage")]

node_visitor -->|"opens"| node_app
node_app -->|"hosts routes"| node_routes
node_routes -->|"routes to"| node_main
node_routes -->|"routes to"| node_legal
node_routes -->|"routes to"| node_privacy
node_routes -->|"routes to"| node_blog
node_app -->|"renders"| node_header
node_main -->|"renders"| node_hero
node_main -->|"renders"| node_about
node_main -->|"renders"| node_skills
node_main -->|"renders"| node_projects
node_main -->|"renders"| node_references
node_main -->|"renders"| node_contact
node_main -->|"renders"| node_footer
node_header -->|"renders"| node_language
node_config -->|"registers"| node_routes
node_config -->|"reads preference"| node_localstorage
node_skills -->|"loads skills"| node_skillsdata
node_projects -->|"loads projects"| node_projectdata
node_projects -->|"opens dialog"| node_dialog
node_dialog -->|"uses type"| node_projectmodel
node_projects -->|"uses type"| node_projectmodel
node_projects -->|"locks scrolling"| node_scroll
node_app -->|"unlocks scrolling"| node_scroll
node_references -->|"loads references"| node_refdata
node_contact -->|"renders"| node_form
node_form -->|"sends message"| node_email
node_email -->|"sends email"| node_emailjs
node_blog -->|"uses service"| node_wordpress

click node_app "https://github.com/mohamedtzni/portfolio/blob/main/src/app/app.ts"
click node_routes "https://github.com/mohamedtzni/portfolio/blob/main/src/app/app.routes.ts"
click node_config "https://github.com/mohamedtzni/portfolio/blob/main/src/app/app.config.ts"
click node_header "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/header/header.ts"
click node_language "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/header/language-switch/language-switch.ts"
click node_main "https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/main-page/main-page.ts"
click node_hero "https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/hero/hero.ts"
click node_about "https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/about-me-section/about-me-section.ts"
click node_skills "https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/skills/skills.ts"
click node_skillsdata "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/skills.service.ts"
click node_projects "https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/projects/projects.ts"
click node_projectdata "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/projects.service.ts"
click node_projectmodel "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/models/project.model.ts"
click node_dialog "https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/projects/project-dialog/project-dialog.ts"
click node_references "https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/references/references.ts"
click node_refdata "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/references.service.ts"
click node_contact "https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/contact/contact.ts"
click node_form "https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/contact/contact-form/contact-form.ts"
click node_email "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/email.service.ts"
click node_scroll "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/body-scroll.service.ts"
click node_footer "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/footer/footer.ts"
click node_legal "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/legal-notice/legal-notice.ts"
click node_privacy "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/privacy-policy/privacy-policy.ts"
click node_blog "https://github.com/mohamedtzni/portfolio/blob/main/src/app/blog/blog.ts"
click node_wordpress "https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/wordpress.service.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_app,node_routes,node_config,node_header,node_language,node_footer toneBlue
class node_main,node_hero,node_about,node_skills,node_projects,node_dialog,node_references,node_contact,node_form,node_localstorage toneAmber
class node_skillsdata,node_projectdata,node_projectmodel,node_refdata,node_email,node_scroll,node_wordpress toneMint
class node_legal,node_privacy,node_blog toneRose
class node_visitor,node_emailjs toneIndigo
```

## Components

### Application shell

- [App shell](https://github.com/mohamedtzni/portfolio/blob/main/src/app/app.ts): `src/app/app.ts`
- [Route table](https://github.com/mohamedtzni/portfolio/blob/main/src/app/app.routes.ts): `src/app/app.routes.ts`
- [App configuration](https://github.com/mohamedtzni/portfolio/blob/main/src/app/app.config.ts): `src/app/app.config.ts`
- [Header navigation](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/header/header.ts): `src/app/shared/header/header.ts`
- [Language switch](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/header/language-switch/language-switch.ts): `src/app/shared/header/language-switch/language-switch.ts`
- [Footer](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/footer/footer.ts): `src/app/shared/footer/footer.ts`

### Portfolio content

- [Portfolio page](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/main-page/main-page.ts): `src/app/main/main-page/main-page.ts`
- [Hero section](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/hero/hero.ts): `src/app/main/hero/hero.ts`
- [About section](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/about-me-section/about-me-section.ts): `src/app/main/about-me-section/about-me-section.ts`
- [Skills section](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/skills/skills.ts): `src/app/main/skills/skills.ts`
- [Projects section](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/projects/projects.ts): `src/app/main/projects/projects.ts`
- [Project dialog](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/projects/project-dialog/project-dialog.ts): `src/app/main/projects/project-dialog/project-dialog.ts`
- [References carousel](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/references/references.ts): `src/app/main/references/references.ts`
- [Contact section](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/contact/contact.ts): `src/app/main/contact/contact.ts`
- [Contact form](https://github.com/mohamedtzni/portfolio/blob/main/src/app/main/contact/contact-form/contact-form.ts): `src/app/main/contact/contact-form/contact-form.ts`

### Content and services

- [Skills catalog](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/skills.service.ts): `src/app/shared/services/skills.service.ts`
- [Project catalog](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/projects.service.ts): `src/app/shared/services/projects.service.ts`
- [Project model](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/models/project.model.ts): `src/app/shared/models/project.model.ts`
- [Reference catalog](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/references.service.ts): `src/app/shared/services/references.service.ts`
- [Email service](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/email.service.ts): `src/app/shared/services/email.service.ts`
- [Body scroll](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/body-scroll.service.ts): `src/app/shared/services/body-scroll.service.ts`
- [WordPress service](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/services/wordpress.service.ts): `src/app/shared/services/wordpress.service.ts`

### Supporting pages

- [Legal notice](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/legal-notice/legal-notice.ts): `src/app/shared/legal-notice/legal-notice.ts`
- [Privacy policy](https://github.com/mohamedtzni/portfolio/blob/main/src/app/shared/privacy-policy/privacy-policy.ts): `src/app/shared/privacy-policy/privacy-policy.ts`
- [Blog page](https://github.com/mohamedtzni/portfolio/blob/main/src/app/blog/blog.ts): `src/app/blog/blog.ts`

### Other components

- **Visitor**
- **EmailJS**
- **Browser storage**

## Connections

- Visitor → App shell: opens (evidence: `src/app/app.ts`)
- App shell → Route table: hosts routes (evidence: `src/app/app.routes.ts`)
- Route table → Portfolio page: routes to (evidence: `src/app/app.routes.ts`)
- Route table → Legal notice: routes to (evidence: `src/app/app.routes.ts`)
- Route table → Privacy policy: routes to (evidence: `src/app/app.routes.ts`)
- Route table → Blog page: routes to (evidence: `src/app/app.routes.ts`)
- App shell → Header navigation: renders (evidence: `src/app/app.ts`)
- Portfolio page → Hero section: renders (evidence: `src/app/main/main-page/main-page.ts`)
- Portfolio page → About section: renders (evidence: `src/app/main/main-page/main-page.ts`)
- Portfolio page → Skills section: renders (evidence: `src/app/main/main-page/main-page.ts`)
- Portfolio page → Projects section: renders (evidence: `src/app/main/main-page/main-page.ts`)
- Portfolio page → References carousel: renders (evidence: `src/app/main/main-page/main-page.ts`)
- Portfolio page → Contact section: renders (evidence: `src/app/main/main-page/main-page.ts`)
- Portfolio page → Footer: renders (evidence: `src/app/main/main-page/main-page.ts`)
- Header navigation → Language switch: renders (evidence: `src/app/shared/header/header.ts`)
- App configuration → Route table: registers (evidence: `src/app/app.config.ts`)
- App configuration → Browser storage: reads preference (evidence: `src/app/app.config.ts`)
- Skills section → Skills catalog: loads skills (evidence: `src/app/main/skills/skills.ts`)
- Projects section → Project catalog: loads projects (evidence: `src/app/main/projects/projects.ts`)
- Projects section → Project dialog: opens dialog (evidence: `src/app/main/projects/projects.ts`)
- Project dialog → Project model: uses type (evidence: `src/app/main/projects/project-dialog/project-dialog.ts`)
- Projects section → Project model: uses type (evidence: `src/app/main/projects/projects.ts`)
- Projects section → Body scroll: locks scrolling (evidence: `src/app/main/projects/projects.ts`)
- App shell → Body scroll: unlocks scrolling (evidence: `src/app/app.ts`)
- References carousel → Reference catalog: loads references (evidence: `src/app/main/references/references.ts`)
- Contact section → Contact form: renders (evidence: `src/app/main/contact/contact.ts`)
- Contact form → Email service: sends message (evidence: `src/app/main/contact/contact-form/contact-form.ts`)
- Email service → EmailJS: sends email (evidence: `src/app/shared/services/email.service.ts`)
- Blog page → WordPress service: uses service (evidence: `src/app/blog/blog.ts`)
