# nornarath001-ui/portfolio architecture

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

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

## Overview

This is a personal portfolio website: visitors browse profile information, skills, projects, achievements, and a contact form. The portfolio page is the main presentation surface; JavaScript adds carousel, filtering, and modal interactions, while contact submissions pass through a PHP endpoint that validates and stores messages and sends a Telegram notification. The excerpts show the contact wiring, but not how the page loads its JavaScript files, so those page-to-script links are omitted.

Main entry points: [`send_contact.php`](https://github.com/nornarath001-ui/portfolio/blob/main/send_contact.php) (Contact endpoint), [`components/js/jscontact.js`](https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jscontact.js) (Form submission), [`index.php`](https://github.com/nornarath001-ui/portfolio/blob/main/index.php) (Contact form), [`db.php`](https://github.com/nornarath001-ui/portfolio/blob/main/db.php) (Database connection)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_presentation["Portfolio presentation"]
  node_portfolio["Portfolio page<br/>[index.php]"]
  node_profile["Profile and CV<br/>[index.php]"]
  node_project_ui["Project browser<br/>[index.php]"]
  node_contact_form["Contact form<br/>[index.php]"]
end

subgraph group_interaction["Page interactions"]
  node_skills["Skills carousel"]
  node_project_logic["Project controls<br/>[jsproject.js]"]
  node_view_popup["Profile popup<br/>[jspopupbtn.js]"]
  node_cv_popup["CV popup<br/>[jscvpopup.js]"]
  node_nav_style["Navigation styling<br/>[jstextcolor.js]"]
end

subgraph group_contact["Contact processing"]
  node_contact_js["Form submission<br/>[jscontact.js]"]
  node_contact_endpoint["Contact endpoint<br/>[send_contact.php]"]
  node_db_config["Database connection<br/>[db.php]"]
  node_portfolio_db[("Portfolio database")]
  node_telegram["Telegram API"]
end

node_visitor(("Visitor"))

node_visitor -->|"visits"| node_portfolio
node_contact_form -->|"submits via"| node_contact_js
node_contact_js -->|"POSTs form"| node_contact_endpoint
node_contact_endpoint -->|"requires"| node_db_config
node_contact_endpoint -->|"inserts contact"| node_portfolio_db
node_contact_endpoint -->|"sends notification"| node_telegram

click node_portfolio "https://github.com/nornarath001-ui/portfolio/blob/main/index.php"
click node_profile "https://github.com/nornarath001-ui/portfolio/blob/main/index.php"
click node_skills "https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jsslideimgskills.js"
click node_project_ui "https://github.com/nornarath001-ui/portfolio/blob/main/index.php"
click node_project_logic "https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jsproject.js"
click node_view_popup "https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jspopupbtn.js"
click node_cv_popup "https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jscvpopup.js"
click node_nav_style "https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jstextcolor.js"
click node_contact_form "https://github.com/nornarath001-ui/portfolio/blob/main/index.php"
click node_contact_js "https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jscontact.js"
click node_contact_endpoint "https://github.com/nornarath001-ui/portfolio/blob/main/send_contact.php"
click node_db_config "https://github.com/nornarath001-ui/portfolio/blob/main/db.php"

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_portfolio,node_profile,node_project_ui,node_contact_form toneBlue
class node_skills,node_project_logic,node_view_popup,node_cv_popup,node_nav_style toneAmber
class node_contact_js,node_contact_endpoint,node_db_config,node_portfolio_db,node_telegram toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio presentation

- [Portfolio page](https://github.com/nornarath001-ui/portfolio/blob/main/index.php): `index.php`
- [Profile and CV](https://github.com/nornarath001-ui/portfolio/blob/main/index.php): `index.php`
- [Project browser](https://github.com/nornarath001-ui/portfolio/blob/main/index.php): `index.php`
- [Contact form](https://github.com/nornarath001-ui/portfolio/blob/main/index.php): `index.php`

### Page interactions

- [Skills carousel](https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jsslideimgskills.js): `components/js/jsslideimgskills.js`
- [Project controls](https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jsproject.js): `components/js/jsproject.js`
- [Profile popup](https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jspopupbtn.js): `components/js/jspopupbtn.js`
- [CV popup](https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jscvpopup.js): `components/js/jscvpopup.js`
- [Navigation styling](https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jstextcolor.js): `components/js/jstextcolor.js`

### Contact processing

- [Form submission](https://github.com/nornarath001-ui/portfolio/blob/main/components/js/jscontact.js): `components/js/jscontact.js`
- [Contact endpoint](https://github.com/nornarath001-ui/portfolio/blob/main/send_contact.php): `send_contact.php`
- [Database connection](https://github.com/nornarath001-ui/portfolio/blob/main/db.php): `db.php`
- **Portfolio database**
- **Telegram API**

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio page: visits (evidence: `index.php`)
- Contact form → Form submission: submits via (evidence: `components/js/jscontact.js`)
- Form submission → Contact endpoint: POSTs form (evidence: `components/js/jscontact.js`)
- Contact endpoint → Database connection: requires (evidence: `send_contact.php`)
- Contact endpoint → Portfolio database: inserts contact (evidence: `send_contact.php`)
- Contact endpoint → Telegram API: sends notification (evidence: `send_contact.php`)
