# kr3uross/portafolio architecture

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

- Interactive diagram: https://gitdiagram.com/kr3uross/portafolio
- Repository: https://github.com/kr3uross/portafolio

## Overview

This is a small static portfolio website. Visitors view its sections, navigate with the responsive menu, switch themes, see reveal animations, and submit a contact form for client-side validation and confirmation. The JavaScript initializes these independent interactions after the page loads. The excerpts show the theme, menu, and form behavior; navigation highlighting and reveal behavior are also visible, though their full implementations are not. The form does not show a message being sent to an external service.

Main entry points: [`js/main.js`](https://github.com/kr3uross/portafolio/blob/main/js/main.js) (Interaction startup), [`index.html`](https://github.com/kr3uross/portafolio/blob/main/index.html) (Portfolio content), [`css/styles.css`](https://github.com/kr3uross/portafolio/blob/main/css/styles.css) (Visual styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_page["Portfolio page"]
  node_html["Portfolio content<br/>[index.html]"]
  node_styles["Visual styling<br/>[styles.css]"]
end

subgraph group_interactions["Page interactions"]
  node_startup["Interaction startup<br/>[main.js]"]
  node_theme["Theme toggle<br/>[main.js]"]
  node_menu["Responsive menu<br/>[main.js]"]
  node_navigation["Active navigation<br/>[main.js]"]
  node_reveal["Reveal animations<br/>[main.js]"]
  node_contact["Contact validation<br/>[main.js]"]
end

node_visitor(("Visitor"))
node_storage[("Browser local storage")]

node_visitor -->|"views"| node_html
node_html -->|"styled by"| node_styles
node_html -->|"loads"| node_startup
node_startup -->|"initializes"| node_theme
node_startup -->|"initializes"| node_menu
node_startup -->|"initializes"| node_navigation
node_startup -->|"initializes"| node_reveal
node_startup -->|"initializes"| node_contact
node_theme -->|"saves theme"| node_storage
node_visitor -->|"toggles"| node_theme
node_visitor -->|"opens menu"| node_menu
node_visitor -->|"submits form"| node_contact

click node_html "https://github.com/kr3uross/portafolio/blob/main/index.html"
click node_styles "https://github.com/kr3uross/portafolio/blob/main/css/styles.css"
click node_startup "https://github.com/kr3uross/portafolio/blob/main/js/main.js"
click node_theme "https://github.com/kr3uross/portafolio/blob/main/js/main.js"
click node_menu "https://github.com/kr3uross/portafolio/blob/main/js/main.js"
click node_navigation "https://github.com/kr3uross/portafolio/blob/main/js/main.js"
click node_reveal "https://github.com/kr3uross/portafolio/blob/main/js/main.js"
click node_contact "https://github.com/kr3uross/portafolio/blob/main/js/main.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_html,node_styles toneBlue
class node_startup,node_theme,node_menu,node_navigation,node_reveal,node_contact,node_storage toneAmber
class node_visitor toneIndigo
```

## Components

### Portfolio page

- [Portfolio content](https://github.com/kr3uross/portafolio/blob/main/index.html): `index.html`
- [Visual styling](https://github.com/kr3uross/portafolio/blob/main/css/styles.css): `css/styles.css`

### Page interactions

- [Interaction startup](https://github.com/kr3uross/portafolio/blob/main/js/main.js): `js/main.js`
- [Theme toggle](https://github.com/kr3uross/portafolio/blob/main/js/main.js): `js/main.js`
- [Responsive menu](https://github.com/kr3uross/portafolio/blob/main/js/main.js): `js/main.js`
- [Active navigation](https://github.com/kr3uross/portafolio/blob/main/js/main.js): `js/main.js`
- [Reveal animations](https://github.com/kr3uross/portafolio/blob/main/js/main.js): `js/main.js`
- [Contact validation](https://github.com/kr3uross/portafolio/blob/main/js/main.js): `js/main.js`

### Other components

- **Visitor**
- **Browser local storage**

## Connections

- Visitor → Portfolio content: views
- Portfolio content → Visual styling: styled by
- Portfolio content → Interaction startup: loads
- Interaction startup → Theme toggle: initializes (evidence: `js/main.js`)
- Interaction startup → Responsive menu: initializes (evidence: `js/main.js`)
- Interaction startup → Active navigation: initializes (evidence: `js/main.js`)
- Interaction startup → Reveal animations: initializes (evidence: `js/main.js`)
- Interaction startup → Contact validation: initializes (evidence: `js/main.js`)
- Theme toggle → Browser local storage: saves theme (evidence: `js/main.js`)
- Visitor → Theme toggle: toggles (evidence: `js/main.js`)
- Visitor → Responsive menu: opens menu (evidence: `js/main.js`)
- Visitor → Contact validation: submits form (evidence: `js/main.js`)
