# jaime034/engmeca architecture

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

- Interactive diagram: https://gitdiagram.com/jaime034/engmeca
- Repository: https://github.com/jaime034/engmeca

## Overview

ENGMECA is a Portuguese-language engineering site with informational pages, courses, resources, and interactive tools. The visible runtime supports a user workflow of browsing the site, searching and filtering resources, converting units, or preparing a contact message. Shared header/footer loading and interface behavior form an internal layer. The HTML and README contents were not available, so page-to-script wiring and navigation links are not asserted; the graph includes only those relationships shown in sampled JavaScript.

Main entry points: [`engmeca/js/script.js`](https://github.com/jaime034/engmeca/blob/main/engmeca/js/script.js) (Menu and theme), [`engmeca/js/include.js`](https://github.com/jaime034/engmeca/blob/main/engmeca/js/include.js) (Partial loader), [`engmeca/js/theme-init.js`](https://github.com/jaime034/engmeca/blob/main/engmeca/js/theme-init.js) (Theme initialization), [`engmeca/js/search.js`](https://github.com/jaime034/engmeca/blob/main/engmeca/js/search.js) (Resource search)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site pages"]
  node_home["Home<br/>[index.html]"]
  node_courses["Courses<br/>[cursos.html]"]
  node_resources_page["Resources<br/>[recursos.html]"]
  node_tools_page["Tools<br/>[ferramentas.html]"]
  node_about["About<br/>[sobre.html]"]
  node_contact_page["Contact<br/>[contato.html]"]
end

subgraph group_shared["Shared interface"]
  node_partials["Shared partials<br/>[header.html]"]
  node_partial_loader["Partial loader<br/>[include.js]"]
  node_shared_ui["Menu and theme<br/>[script.js]"]
  node_theme_init["Theme initialization<br/>[theme-init.js]"]
end

subgraph group_resources["Resource discovery"]
  node_search["Resource search<br/>[search.js]"]
  node_resource_cards["Resource cards<br/>[recursos.html]"]
end

subgraph group_tools["Interactive tools"]
  node_converter["Unit converter<br/>[converter.js]"]
  node_contact_form["Contact form<br/>[contact.js]"]
end

node_browser_storage[("Browser local storage")]
node_email_app["Email application"]

node_partial_loader -->|"signals readiness"| node_shared_ui
node_shared_ui -->|"saves theme"| node_browser_storage
node_theme_init -->|"reads theme"| node_browser_storage
node_search -->|"filters cards"| node_resource_cards
node_contact_form -->|"opens mailto"| node_email_app

click node_home "https://github.com/jaime034/engmeca/blob/main/engmeca/index.html"
click node_courses "https://github.com/jaime034/engmeca/blob/main/engmeca/cursos.html"
click node_resources_page "https://github.com/jaime034/engmeca/blob/main/engmeca/recursos.html"
click node_tools_page "https://github.com/jaime034/engmeca/blob/main/engmeca/ferramentas.html"
click node_about "https://github.com/jaime034/engmeca/blob/main/engmeca/sobre.html"
click node_contact_page "https://github.com/jaime034/engmeca/blob/main/engmeca/contato.html"
click node_partials "https://github.com/jaime034/engmeca/blob/main/engmeca/partials/header.html"
click node_partial_loader "https://github.com/jaime034/engmeca/blob/main/engmeca/js/include.js"
click node_shared_ui "https://github.com/jaime034/engmeca/blob/main/engmeca/js/script.js"
click node_theme_init "https://github.com/jaime034/engmeca/blob/main/engmeca/js/theme-init.js"
click node_search "https://github.com/jaime034/engmeca/blob/main/engmeca/js/search.js"
click node_resource_cards "https://github.com/jaime034/engmeca/blob/main/engmeca/recursos.html"
click node_converter "https://github.com/jaime034/engmeca/blob/main/engmeca/js/converter.js"
click node_contact_form "https://github.com/jaime034/engmeca/blob/main/engmeca/js/contact.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_courses,node_resources_page,node_tools_page,node_about,node_contact_page toneBlue
class node_partials,node_partial_loader,node_shared_ui,node_theme_init,node_browser_storage toneAmber
class node_search,node_resource_cards toneMint
class node_converter,node_contact_form toneRose
class node_email_app toneIndigo
```

## Components

### Site pages

- [Home](https://github.com/jaime034/engmeca/blob/main/engmeca/index.html): `engmeca/index.html`
- [Courses](https://github.com/jaime034/engmeca/blob/main/engmeca/cursos.html): `engmeca/cursos.html`
- [Resources](https://github.com/jaime034/engmeca/blob/main/engmeca/recursos.html): `engmeca/recursos.html`
- [Tools](https://github.com/jaime034/engmeca/blob/main/engmeca/ferramentas.html): `engmeca/ferramentas.html`
- [About](https://github.com/jaime034/engmeca/blob/main/engmeca/sobre.html): `engmeca/sobre.html`
- [Contact](https://github.com/jaime034/engmeca/blob/main/engmeca/contato.html): `engmeca/contato.html`

### Shared interface

- [Shared partials](https://github.com/jaime034/engmeca/blob/main/engmeca/partials/header.html): `engmeca/partials/header.html`
- [Partial loader](https://github.com/jaime034/engmeca/blob/main/engmeca/js/include.js): `engmeca/js/include.js`
- [Menu and theme](https://github.com/jaime034/engmeca/blob/main/engmeca/js/script.js): `engmeca/js/script.js`
- [Theme initialization](https://github.com/jaime034/engmeca/blob/main/engmeca/js/theme-init.js): `engmeca/js/theme-init.js`

### Resource discovery

- [Resource search](https://github.com/jaime034/engmeca/blob/main/engmeca/js/search.js): `engmeca/js/search.js`
- [Resource cards](https://github.com/jaime034/engmeca/blob/main/engmeca/recursos.html): `engmeca/recursos.html`

### Interactive tools

- [Unit converter](https://github.com/jaime034/engmeca/blob/main/engmeca/js/converter.js): `engmeca/js/converter.js`
- [Contact form](https://github.com/jaime034/engmeca/blob/main/engmeca/js/contact.js): `engmeca/js/contact.js`

### Other components

- **Browser local storage**
- **Email application**

## Connections

- Partial loader → Menu and theme: signals readiness (evidence: `engmeca/js/script.js`)
- Menu and theme → Browser local storage: saves theme (evidence: `engmeca/js/script.js`)
- Theme initialization → Browser local storage: reads theme (evidence: `engmeca/js/theme-init.js`)
- Resource search → Resource cards: filters cards (evidence: `engmeca/js/search.js`)
- Contact form → Email application: opens mailto (evidence: `engmeca/js/contact.js`)
