# teus369/my-portfolio architecture

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

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

## Overview

This is a personal portfolio website: visitors browse portfolio pages and interact with navigation, section animations, expandable text, and a carousel. The repository also includes an Express static-file server and documents separate form-submission and download-token cloud functions. The README names those functions but does not show how the site invokes them, so their connections to the frontend are not asserted.

Main entry points: [`index.html`](https://github.com/teus369/my-portfolio/blob/main/index.html) (Portfolio home), [`server.js`](https://github.com/teus369/my-portfolio/blob/main/server.js) (Static web server), [`project.html`](https://github.com/teus369/my-portfolio/blob/main/project.html) (Project page), [`js/script.js`](https://github.com/teus369/my-portfolio/blob/main/js/script.js) (Navigation and sections)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Portfolio site"]
  node_home["Portfolio home<br/>[index.html]"]
  node_projects["Project page<br/>[project.html]"]
  node_thanks["Thank-you page<br/>[obrigado.html]"]
  node_styles["Page styling"]
end

subgraph group_behavior["Browser interactions"]
  node_page_interactions["Navigation and sections<br/>[script.js]"]
  node_carousel["Project carousel<br/>[script2.js]"]
end

subgraph group_delivery["Serving and services"]
  node_express_server["Static web server<br/>[server.js]"]
  node_submit_function["Form submission function"]
  node_token_function["Download token function"]
end

node_visitor(("Visitor"))

node_visitor -->|"visits"| node_home
node_page_interactions -->|"updates sections"| node_home
node_carousel -->|"updates carousel"| node_projects
node_express_server -->|"serves fallback"| node_home
node_express_server -->|"serves static files"| node_projects

click node_home "https://github.com/teus369/my-portfolio/blob/main/index.html"
click node_projects "https://github.com/teus369/my-portfolio/blob/main/project.html"
click node_thanks "https://github.com/teus369/my-portfolio/blob/main/obrigado.html"
click node_styles "https://github.com/teus369/my-portfolio/tree/main/css"
click node_page_interactions "https://github.com/teus369/my-portfolio/blob/main/js/script.js"
click node_carousel "https://github.com/teus369/my-portfolio/blob/main/js/script2.js"
click node_express_server "https://github.com/teus369/my-portfolio/blob/main/server.js"

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_projects,node_thanks,node_styles toneBlue
class node_page_interactions,node_carousel toneAmber
class node_express_server,node_submit_function,node_token_function toneMint
class node_visitor toneIndigo
```

## Components

### Portfolio site

- [Portfolio home](https://github.com/teus369/my-portfolio/blob/main/index.html): `index.html`
- [Project page](https://github.com/teus369/my-portfolio/blob/main/project.html): `project.html`
- [Thank-you page](https://github.com/teus369/my-portfolio/blob/main/obrigado.html): `obrigado.html`
- [Page styling](https://github.com/teus369/my-portfolio/tree/main/css): `css`

### Browser interactions

- [Navigation and sections](https://github.com/teus369/my-portfolio/blob/main/js/script.js): `js/script.js`
- [Project carousel](https://github.com/teus369/my-portfolio/blob/main/js/script2.js): `js/script2.js`

### Serving and services

- [Static web server](https://github.com/teus369/my-portfolio/blob/main/server.js): `server.js`
- **Form submission function**
- **Download token function**

### Other components

- **Visitor**

## Connections

- Visitor → Portfolio home: visits (evidence: `README.md`)
- Navigation and sections → Portfolio home: updates sections (evidence: `js/script.js`)
- Project carousel → Project page: updates carousel (evidence: `js/script2.js`)
- Static web server → Portfolio home: serves fallback (evidence: `server.js`)
- Static web server → Project page: serves static files (evidence: `server.js`)
