# sant-0/portfolio architecture

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

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

## Overview

#### Purpose and delivery

This is a static, single-page developer portfolio hosted on GitHub Pages. It presents profile content, experience, skills, projects, certifications, and contact links without a backend or build pipeline. Browser loading begins at `index.html`; production hosting is expected at GitHub Pages.

Paths: `index.html`, `.github/workflows/static.yml`

#### Page composition and content boundary

`index.html` is the canonical content and structural layer. It defines the navigation, hero, about, experience, skills, project cards, certifications, and contact form. Project category metadata in card `data-cat` attributes is consumed by JavaScript filtering. External profile, repository, credential, and social URLs are embedded as outbound links.

Paths: `index.html`

#### Presentation and responsive system

`stylesheet.css` owns the dark visual theme, typography, responsive breakpoints, section/card layouts, hover states, reveal styling, and desktop-versus-touch cursor behavior. Theme variables near the stylesheet top are the primary branding customization boundary. Google Fonts are loaded externally, with browser fallback fonts available.

Paths: `stylesheet.css`, `index.html`

#### Client-side interaction stage

`script.js` progressively enhances the static page with custom cursor behavior, animated particle background, rotating/typing hero role text, scroll reveal activation, active navigation state, and project filtering. These features operate entirely in the browser against DOM classes, IDs, and data attributes defined by the HTML; core portfolio content remains static HTML.

Paths: `script.js`, `index.html`, `stylesheet.css`

#### Contact control flow

The contact form has no persistence or server API. An inline script in `index.html` validates required visitor fields, creates a `mailto:` URL containing name, email, subject, and message, and invokes the visitor’s configured mail client. This is the main boundary between site interaction and an external service; no form data is transmitted or stored by the site.

Paths: `index.html`

#### Static assets and external dependencies

Local visual assets are served from the intentionally named `ascets/` directory, including the profile image and favicon/logo. Material third-party dependencies are limited to Google Fonts and outbound links to GitHub, LinkedIn, LeetCode, Udemy, and email. There are no npm, Python, database, API, or backend-runtime dependencies.

Paths: `ascets`, `index.html`

#### Runtime and deployment

The runtime is a modern web browser serving plain HTML, CSS, and JavaScript. Local development can use direct file access or any static HTTP server. GitHub Pages serves `index.html` as the default document; the repository also contains a GitHub Actions static-site workflow, likely supporting repository automation around static deployment or validation.

Paths: `index.html`, `.github/workflows/static.yml`, `README.md`

Main entry points: [`index.html`](https://github.com/sant-0/portfolio/blob/main/index.html) (Portfolio document), [`script.js`](https://github.com/sant-0/portfolio/blob/main/script.js) (Client interactions), [`stylesheet.css`](https://github.com/sant-0/portfolio/blob/main/stylesheet.css) (Theme and responsive styles), [`.github/workflows/static.yml`](https://github.com/sant-0/portfolio/blob/main/.github/workflows/static.yml) (Static-site workflow)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Static portfolio"]
  node_browser(("Web browser<br/>runtime"))
  node_html["Portfolio document<br/>HTML<br/>[index.html]"]
  node_styles["Theme and responsive styles<br/>CSS<br/>[stylesheet.css]"]
  node_interactions["Client interactions<br/>JavaScript<br/>[script.js]"]
  node_assets["Visual assets<br/>static assets"]
  node_contact{{"Mailto contact flow<br/>inline form handler<br/>[index.html]"}}
end

subgraph group_external["External services"]
  node_fonts["Google Fonts<br/>font CDN"]
  node_outbound["Profile and credential links<br/>external sites"]
  node_mail_client["Visitor mail client<br/>external client"]
end

subgraph group_delivery["Delivery"]
  node_github_pages{{"GitHub Pages<br/>static host"}}
  node_workflow["Static-site workflow<br/>GitHub Actions workflow<br/>[static.yml]"]
  node_readme["Repository guide<br/>documentation<br/>[README.md]"]
end

node_github_pages -->|"serves"| node_browser
node_browser -->|"loads"| node_html
node_html -->|"applies"| node_styles
node_html -->|"loads"| node_interactions
node_html -->|"references"| node_assets
node_interactions -->|"enhances DOM"| node_html
node_interactions -->|"toggles state classes"| node_styles
node_html -->|"contains"| node_contact
node_contact -->|"opens mailto URL"| node_mail_client
node_html -->|"loads fonts"| node_fonts
node_html -->|"links to"| node_outbound
node_workflow -.->|"supports automation"| node_github_pages
node_readme -.->|"documents deployment"| node_github_pages

click node_html "https://github.com/sant-0/portfolio/blob/main/index.html"
click node_styles "https://github.com/sant-0/portfolio/blob/main/stylesheet.css"
click node_interactions "https://github.com/sant-0/portfolio/blob/main/script.js"
click node_assets "https://github.com/sant-0/portfolio/tree/main/ascets"
click node_contact "https://github.com/sant-0/portfolio/blob/main/index.html"
click node_workflow "https://github.com/sant-0/portfolio/blob/main/.github/workflows/static.yml"
click node_readme "https://github.com/sant-0/portfolio/blob/main/README.md"

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_browser,node_html,node_styles,node_interactions,node_assets,node_contact toneBlue
class node_fonts,node_outbound,node_mail_client toneAmber
class node_github_pages,node_workflow,node_readme toneMint
```

## Components

### Static portfolio

Browser-delivered single-page site.

- **Web browser**: runtime · Renders the site and runs all client-side behavior.
- [Portfolio document](https://github.com/sant-0/portfolio/blob/main/index.html): HTML · Canonical structure, content, metadata, and contact handling. · `index.html`
- [Theme and responsive styles](https://github.com/sant-0/portfolio/blob/main/stylesheet.css): CSS · Owns branding variables, layouts, breakpoints, and interaction styling. · `stylesheet.css`
- [Client interactions](https://github.com/sant-0/portfolio/blob/main/script.js): JavaScript · Enhances DOM content with cursor, particles, hero animation, reveals, navigation, and filtering. · `script.js`
- [Visual assets](https://github.com/sant-0/portfolio/tree/main/ascets): static assets · Profile image and favicon/logo files. · `ascets`
- [Mailto contact flow](https://github.com/sant-0/portfolio/blob/main/index.html): inline form handler · Validates fields and opens the visitor's configured mail client without storing data. · `index.html`

### External services

- **Google Fonts**: font CDN
- **Profile and credential links**: external sites · GitHub, LinkedIn, LeetCode, Udemy, and social destinations.
- **Visitor mail client**: external client

### Delivery

- **GitHub Pages**: static host · Serves the portfolio default document.
- [Static-site workflow](https://github.com/sant-0/portfolio/blob/main/.github/workflows/static.yml): GitHub Actions workflow · Repository automation for the static site. · `.github/workflows/static.yml`
- [Repository guide](https://github.com/sant-0/portfolio/blob/main/README.md): documentation · `README.md`

## Connections

- GitHub Pages → Web browser: serves
- Web browser → Portfolio document: loads
- Portfolio document → Theme and responsive styles: applies
- Portfolio document → Client interactions: loads
- Portfolio document → Visual assets: references
- Client interactions → Portfolio document: enhances DOM
- Client interactions → Theme and responsive styles: toggles state classes
- Portfolio document → Mailto contact flow: contains
- Mailto contact flow → Visitor mail client: opens mailto URL
- Portfolio document → Google Fonts: loads fonts
- Portfolio document → Profile and credential links: links to
- Static-site workflow → GitHub Pages: supports automation
- Repository guide → GitHub Pages: documents deployment
