# gwad12/portfolio architecture

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

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

## Overview

This is a personal portfolio site for presenting the owner’s skills, projects, and contact information. Its main user flow is browsing the portfolio pages, then submitting the contact form; the JavaScript validates the fields and uses EmailJS to send the message. The repository also includes shared and responsive styling. Page-to-script wiring is described only at a high level in the README, so the graph avoids inferring other page links or stylesheet attachments.

Main entry points: [`contact.html`](https://github.com/gwad12/portfolio/blob/main/contact.html) (Contact page), [`js/script.js`](https://github.com/gwad12/portfolio/blob/main/js/script.js) (Form handler), [`index.html`](https://github.com/gwad12/portfolio/blob/main/index.html) (Home page), [`about.html`](https://github.com/gwad12/portfolio/blob/main/about.html) (About page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages["Portfolio pages"]
  node_home["Home page<br/>[index.html]"]
  node_about["About page<br/>[about.html]"]
  node_projects["Projects page<br/>[projects.html]"]
  node_contact_page["Contact page<br/>[contact.html]"]
end

subgraph group_presentation["Visual presentation"]
  node_styles["Main styles<br/>[style.css]"]
  node_responsive["Responsive styles<br/>[responsive.css]"]
end

subgraph group_contact["Contact workflow"]
  node_form_handler["Form handler<br/>[script.js]"]
end

node_visitor(("Visitor"))
node_emailjs{{"EmailJS"}}

node_visitor -->|"views"| node_home
node_visitor -->|"views"| node_about
node_visitor -->|"views"| node_projects
node_visitor -->|"views"| node_contact_page
node_visitor -->|"submits form"| node_contact_page
node_contact_page -->|"handled by"| node_form_handler
node_form_handler -->|"sends message"| node_emailjs

click node_home "https://github.com/gwad12/portfolio/blob/main/index.html"
click node_about "https://github.com/gwad12/portfolio/blob/main/about.html"
click node_projects "https://github.com/gwad12/portfolio/blob/main/projects.html"
click node_contact_page "https://github.com/gwad12/portfolio/blob/main/contact.html"
click node_styles "https://github.com/gwad12/portfolio/blob/main/css/style.css"
click node_responsive "https://github.com/gwad12/portfolio/blob/main/css/responsive.css"
click node_form_handler "https://github.com/gwad12/portfolio/blob/main/js/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_home,node_about,node_projects,node_contact_page toneBlue
class node_styles,node_responsive toneAmber
class node_form_handler toneMint
class node_visitor,node_emailjs toneIndigo
```

## Components

### Portfolio pages

- [Home page](https://github.com/gwad12/portfolio/blob/main/index.html): `index.html`
- [About page](https://github.com/gwad12/portfolio/blob/main/about.html): `about.html`
- [Projects page](https://github.com/gwad12/portfolio/blob/main/projects.html): `projects.html`
- [Contact page](https://github.com/gwad12/portfolio/blob/main/contact.html): `contact.html`

### Visual presentation

- [Main styles](https://github.com/gwad12/portfolio/blob/main/css/style.css): `css/style.css`
- [Responsive styles](https://github.com/gwad12/portfolio/blob/main/css/responsive.css): `css/responsive.css`

### Contact workflow

- [Form handler](https://github.com/gwad12/portfolio/blob/main/js/script.js): `js/script.js`

### Other components

- **Visitor**
- **EmailJS**

## Connections

- Visitor → Home page: views (evidence: `README.md`)
- Visitor → About page: views (evidence: `README.md`)
- Visitor → Projects page: views (evidence: `README.md`)
- Visitor → Contact page: views (evidence: `README.md`)
- Visitor → Contact page: submits form (evidence: `README.md`)
- Contact page → Form handler: handled by (evidence: `README.md`)
- Form handler → EmailJS: sends message (evidence: `js/script.js`)
