# enxiejohn/portfolio architecture

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

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

## Overview

This repository is a personal portfolio/resume website. Visitors browse portfolio sections and can submit the contact form, which validates the fields and opens their email application with a prepared message. The sampled JavaScript also handles mobile navigation, active-section highlighting, scroll reveals, and the footer year. The HTML and certificate files are present in the tree, but their contents and exact links are not shown; relationships involving those assets are therefore omitted.

Main entry points: [`script.js`](https://github.com/enxiejohn/portfolio/blob/main/script.js) (Contact form handling), [`index.html`](https://github.com/enxiejohn/portfolio/blob/main/index.html) (Portfolio page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_portfolio["Portfolio content"]
  node_portfolio_page["Portfolio page<br/>[index.html]"]
  node_portfolio_sections["Portfolio sections<br/>[index.html]"]
  node_other_page["Additional page<br/>[analyt.html]"]
end

subgraph group_interaction["Visitor interactions"]
  node_navigation["Navigation behavior<br/>[script.js]"]
  node_section_highlighting["Section highlighting<br/>[script.js]"]
  node_scroll_reveal["Scroll reveals<br/>[script.js]"]
  node_contact_form["Contact form handling<br/>[script.js]"]
  node_footer_year["Footer year<br/>[script.js]"]
end

subgraph group_assets["Portfolio assets"]
  node_certificates["Certificates"]
end

node_visitor(("Visitor"))
node_email_app(("Visitor email app"))

node_visitor -->|"browses"| node_portfolio_page
node_navigation -->|"toggles menu"| node_portfolio_page
node_section_highlighting -->|"observes sections"| node_portfolio_sections
node_scroll_reveal -->|"reveals elements"| node_portfolio_sections
node_visitor -->|"submits form"| node_contact_form
node_contact_form -->|"opens mail draft"| node_email_app

click node_portfolio_page "https://github.com/enxiejohn/portfolio/blob/main/index.html"
click node_portfolio_sections "https://github.com/enxiejohn/portfolio/blob/main/index.html"
click node_certificates "https://github.com/enxiejohn/portfolio/tree/main/certs"
click node_other_page "https://github.com/enxiejohn/portfolio/blob/main/analyt.html"
click node_navigation "https://github.com/enxiejohn/portfolio/blob/main/script.js"
click node_section_highlighting "https://github.com/enxiejohn/portfolio/blob/main/script.js"
click node_scroll_reveal "https://github.com/enxiejohn/portfolio/blob/main/script.js"
click node_contact_form "https://github.com/enxiejohn/portfolio/blob/main/script.js"
click node_footer_year "https://github.com/enxiejohn/portfolio/blob/main/script.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_portfolio_page,node_portfolio_sections,node_other_page toneBlue
class node_navigation,node_section_highlighting,node_scroll_reveal,node_contact_form,node_footer_year toneAmber
class node_certificates toneMint
class node_visitor,node_email_app toneIndigo
```

## Components

### Portfolio content

- [Portfolio page](https://github.com/enxiejohn/portfolio/blob/main/index.html): `index.html`
- [Portfolio sections](https://github.com/enxiejohn/portfolio/blob/main/index.html): `index.html`
- [Additional page](https://github.com/enxiejohn/portfolio/blob/main/analyt.html): `analyt.html`

### Visitor interactions

- [Navigation behavior](https://github.com/enxiejohn/portfolio/blob/main/script.js): `script.js`
- [Section highlighting](https://github.com/enxiejohn/portfolio/blob/main/script.js): `script.js`
- [Scroll reveals](https://github.com/enxiejohn/portfolio/blob/main/script.js): `script.js`
- [Contact form handling](https://github.com/enxiejohn/portfolio/blob/main/script.js): `script.js`
- [Footer year](https://github.com/enxiejohn/portfolio/blob/main/script.js): `script.js`

### Portfolio assets

- [Certificates](https://github.com/enxiejohn/portfolio/tree/main/certs): `certs`

### Other components

- **Visitor**
- **Visitor email app**

## Connections

- Visitor → Portfolio page: browses
- Navigation behavior → Portfolio page: toggles menu (evidence: `script.js`)
- Section highlighting → Portfolio sections: observes sections (evidence: `script.js`)
- Scroll reveals → Portfolio sections: reveals elements (evidence: `script.js`)
- Visitor → Contact form handling: submits form
- Contact form handling → Visitor email app: opens mail draft (evidence: `script.js`)
