# edson4pril/rentalgoo architecture

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

- Interactive diagram: https://gitdiagram.com/edson4pril/rentalgoo
- Repository: https://github.com/edson4pril/rentalgoo

## Overview

RentalGoo is a static marketing site that introduces the platform, presents portfolio and testimonial content, supports Portuguese and English, and directs visitors to the Angular app. The main visitor flow is from the site’s pages through configured calls to action to the app; contact and newsletter submissions are separate PHP-backed flows. The README documents these capabilities, but the page markup and JavaScript implementations were not sampled, so the graph does not infer their internal wiring.

Main entry points: [`index.html`](https://github.com/edson4pril/rentalgoo/blob/main/index.html) (Site pages), [`assets/js/idioma.js`](https://github.com/edson4pril/rentalgoo/blob/main/assets/js/idioma.js) (Language switcher), [`assets/js/config.js`](https://github.com/edson4pril/rentalgoo/blob/main/assets/js/config.js) (App link configuration), [`forms/contact.php`](https://github.com/edson4pril/rentalgoo/blob/main/forms/contact.php) (Contact handler)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Marketing site"]
  node_pages["Site pages<br/>[index.html]"]
  node_about["About page<br/>[about.html]"]
  node_styling["Page styling<br/>[main.css]"]
end

subgraph group_interaction["Site interactions"]
  node_portfolio["Portfolio filter<br/>[portf.js]"]
  node_testimonials["Testimonials<br/>[depoi.js]"]
  node_template["Template behavior<br/>[main.js]"]
  node_language["Language switcher<br/>[idioma.js]"]
  node_translations["PT/EN text<br/>[translations.json]"]
  node_app_links["App link configuration<br/>[config.js]"]
end

subgraph group_forms["Form submissions"]
  node_contact_form["Contact handler<br/>[contact.php]"]
  node_newsletter_form["Newsletter handler<br/>[newsletter.php]"]
end

node_visitor(("Visitor"))
node_angular_app["RentalGoo app"]
node_email_service["Email delivery"]

node_visitor -->|"visits"| node_pages
node_visitor -->|"visits"| node_about
node_pages -->|"uses CTAs"| node_app_links
node_app_links -->|"routes to"| node_angular_app
node_pages -->|"offers language"| node_language
node_language -->|"applies text"| node_translations
node_pages -->|"offers filtering"| node_portfolio
node_pages -->|"presents"| node_testimonials
node_pages -->|"uses behavior"| node_template
node_pages -.->|"uses styles"| node_styling
node_visitor -->|"submits contact"| node_contact_form
node_visitor -->|"subscribes"| node_newsletter_form
node_contact_form -->|"sends email"| node_email_service
node_newsletter_form -->|"sends email"| node_email_service

click node_pages "https://github.com/edson4pril/rentalgoo/blob/main/index.html"
click node_about "https://github.com/edson4pril/rentalgoo/blob/main/about.html"
click node_styling "https://github.com/edson4pril/rentalgoo/blob/main/assets/css/main.css"
click node_portfolio "https://github.com/edson4pril/rentalgoo/blob/main/assets/js/portf.js"
click node_testimonials "https://github.com/edson4pril/rentalgoo/blob/main/assets/js/depoi.js"
click node_template "https://github.com/edson4pril/rentalgoo/blob/main/assets/js/main.js"
click node_language "https://github.com/edson4pril/rentalgoo/blob/main/assets/js/idioma.js"
click node_translations "https://github.com/edson4pril/rentalgoo/blob/main/assets/js/translations.json"
click node_app_links "https://github.com/edson4pril/rentalgoo/blob/main/assets/js/config.js"
click node_contact_form "https://github.com/edson4pril/rentalgoo/blob/main/forms/contact.php"
click node_newsletter_form "https://github.com/edson4pril/rentalgoo/blob/main/forms/newsletter.php"

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_pages,node_about,node_styling toneBlue
class node_portfolio,node_testimonials,node_template,node_language,node_translations,node_app_links toneAmber
class node_contact_form,node_newsletter_form toneMint
class node_visitor,node_angular_app,node_email_service toneIndigo
```

## Components

### Marketing site

- [Site pages](https://github.com/edson4pril/rentalgoo/blob/main/index.html): `index.html`
- [About page](https://github.com/edson4pril/rentalgoo/blob/main/about.html): `about.html`
- [Page styling](https://github.com/edson4pril/rentalgoo/blob/main/assets/css/main.css): `assets/css/main.css`

### Site interactions

- [Portfolio filter](https://github.com/edson4pril/rentalgoo/blob/main/assets/js/portf.js): `assets/js/portf.js`
- [Testimonials](https://github.com/edson4pril/rentalgoo/blob/main/assets/js/depoi.js): `assets/js/depoi.js`
- [Template behavior](https://github.com/edson4pril/rentalgoo/blob/main/assets/js/main.js): `assets/js/main.js`
- [Language switcher](https://github.com/edson4pril/rentalgoo/blob/main/assets/js/idioma.js): `assets/js/idioma.js`
- [PT/EN text](https://github.com/edson4pril/rentalgoo/blob/main/assets/js/translations.json): `assets/js/translations.json`
- [App link configuration](https://github.com/edson4pril/rentalgoo/blob/main/assets/js/config.js): `assets/js/config.js`

### Form submissions

- [Contact handler](https://github.com/edson4pril/rentalgoo/blob/main/forms/contact.php): `forms/contact.php`
- [Newsletter handler](https://github.com/edson4pril/rentalgoo/blob/main/forms/newsletter.php): `forms/newsletter.php`

### Other components

- **Visitor**
- **RentalGoo app**
- **Email delivery**

## Connections

- Visitor → Site pages: visits (evidence: `README.md`)
- Visitor → About page: visits (evidence: `README.md`)
- Site pages → App link configuration: uses CTAs (evidence: `README.md`)
- App link configuration → RentalGoo app: routes to (evidence: `README.md`)
- Site pages → Language switcher: offers language (evidence: `README.md`)
- Language switcher → PT/EN text: applies text (evidence: `README.md`)
- Site pages → Portfolio filter: offers filtering (evidence: `README.md`)
- Site pages → Testimonials: presents (evidence: `README.md`)
- Site pages → Template behavior: uses behavior (evidence: `README.md`)
- Site pages → Page styling: uses styles
- Visitor → Contact handler: submits contact (evidence: `README.md`)
- Visitor → Newsletter handler: subscribes (evidence: `README.md`)
- Contact handler → Email delivery: sends email (evidence: `forms/contact.php`)
- Newsletter handler → Email delivery: sends email (evidence: `forms/newsletter.php`)
