# christophertendi/mpas-website architecture

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

- Interactive diagram: https://gitdiagram.com/christophertendi/mpas-website
- Repository: https://github.com/christophertendi/mpas-website

## Overview

PT MPAS’s official website is a client-rendered corporate and product site. Visitors enter through the shared navigation, explore company information, services, and a searchable product catalog, then open product details or contact MPAS. Portfolio is a separate catalog-style view. The sampled files show the route composition, product data use, browser-local visit counting, and scroll-reveal behavior; the contact excerpt indicates email-client submission feedback, but does not expose the submission handler details.

Main entry points: [`src/App.jsx`](https://github.com/christophertendi/mpas-website/blob/master/src/App.jsx) (App routing), [`src/hooks/useReveal.js`](https://github.com/christophertendi/mpas-website/blob/master/src/hooks/useReveal.js) (Scroll reveal), [`src/pages/Contact.jsx`](https://github.com/christophertendi/mpas-website/blob/master/src/pages/Contact.jsx) (Contact form), [`src/pages/Homepage.jsx`](https://github.com/christophertendi/mpas-website/blob/master/src/pages/Homepage.jsx) (Homepage)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Site shell"]
  node_app["App routing<br/>[App.jsx]"]
  node_navigation["Navigation<br/>[Navigation.jsx]"]
  node_footer["Footer<br/>[Footer.jsx]"]
  node_scrolltop["Scroll reset<br/>[ScrollToTop.jsx]"]
end

subgraph group_discovery["Company and services"]
  node_homepage["Homepage<br/>[Homepage.jsx]"]
  node_about["Company profile<br/>[About.jsx]"]
  node_services["Services<br/>[Services.jsx]"]
end

subgraph group_catalog["Product catalog"]
  node_products["Product catalog<br/>[Products.jsx]"]
  node_detail["Product detail<br/>[ProductDetail.jsx]"]
  node_portfolio["Product portfolio<br/>[Portfolio.jsx]"]
  node_productdata["Product records<br/>[products.js]"]
end

subgraph group_interaction["Visitor interaction"]
  node_contact["Contact form<br/>[Contact.jsx]"]
  node_reveal["Scroll reveal<br/>[useReveal.js]"]
  node_browserstorage[("Browser storage")]
end

node_visitor(("Website visitor"))
node_emailclient["Email client"]
node_whatsapp["WhatsApp"]

node_visitor -->|"opens site"| node_app
node_app -->|"renders"| node_navigation
node_app -->|"renders"| node_footer
node_app -->|"renders"| node_scrolltop
node_app -->|"routes to"| node_homepage
node_app -->|"routes to"| node_about
node_app -->|"routes to"| node_products
node_app -->|"routes to"| node_detail
node_app -->|"routes to"| node_services
node_app -->|"routes to"| node_portfolio
node_app -->|"routes to"| node_contact
node_visitor -->|"chooses page"| node_navigation
node_products -->|"reads records"| node_productdata
node_products -->|"links to details"| node_detail
node_detail -->|"looks up product"| node_productdata
node_portfolio -->|"filters records"| node_productdata
node_portfolio -->|"links to details"| node_detail
node_homepage -->|"links to services"| node_services
node_homepage -->|"links to catalog"| node_products
node_homepage -->|"links to contact"| node_contact
node_services -->|"requests quote"| node_contact
node_services -->|"opens chat"| node_whatsapp
node_contact -.->|"submits via"| node_emailclient
node_visitor -->|"enters inquiry"| node_contact
node_navigation -->|"reads language"| node_browserstorage
node_footer -->|"tracks visits"| node_browserstorage
node_about -->|"uses reveal"| node_reveal
node_homepage -->|"uses reveal"| node_reveal
node_services -->|"uses reveal"| node_reveal
node_contact -->|"uses reveal"| node_reveal
node_products -->|"uses reveal"| node_reveal
node_detail -->|"uses reveal"| node_reveal
node_portfolio -->|"uses reveal"| node_reveal
node_visitor -.->|"opens portfolio"| node_portfolio

click node_app "https://github.com/christophertendi/mpas-website/blob/master/src/App.jsx"
click node_navigation "https://github.com/christophertendi/mpas-website/blob/master/src/components/Navigation.jsx"
click node_footer "https://github.com/christophertendi/mpas-website/blob/master/src/components/Footer.jsx"
click node_scrolltop "https://github.com/christophertendi/mpas-website/blob/master/src/components/ScrollToTop.jsx"
click node_homepage "https://github.com/christophertendi/mpas-website/blob/master/src/pages/Homepage.jsx"
click node_about "https://github.com/christophertendi/mpas-website/blob/master/src/pages/About.jsx"
click node_services "https://github.com/christophertendi/mpas-website/blob/master/src/pages/Services.jsx"
click node_products "https://github.com/christophertendi/mpas-website/blob/master/src/pages/Products.jsx"
click node_detail "https://github.com/christophertendi/mpas-website/blob/master/src/pages/ProductDetail.jsx"
click node_portfolio "https://github.com/christophertendi/mpas-website/blob/master/src/pages/Portfolio.jsx"
click node_productdata "https://github.com/christophertendi/mpas-website/blob/master/src/data/products.js"
click node_contact "https://github.com/christophertendi/mpas-website/blob/master/src/pages/Contact.jsx"
click node_reveal "https://github.com/christophertendi/mpas-website/blob/master/src/hooks/useReveal.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_app,node_navigation,node_footer,node_scrolltop,node_emailclient toneBlue
class node_homepage,node_about,node_services toneAmber
class node_products,node_detail,node_portfolio,node_productdata toneMint
class node_contact,node_reveal,node_browserstorage toneRose
class node_visitor,node_whatsapp toneIndigo
```

## Components

### Site shell

- [App routing](https://github.com/christophertendi/mpas-website/blob/master/src/App.jsx): `src/App.jsx`
- [Navigation](https://github.com/christophertendi/mpas-website/blob/master/src/components/Navigation.jsx): `src/components/Navigation.jsx`
- [Footer](https://github.com/christophertendi/mpas-website/blob/master/src/components/Footer.jsx): `src/components/Footer.jsx`
- [Scroll reset](https://github.com/christophertendi/mpas-website/blob/master/src/components/ScrollToTop.jsx): `src/components/ScrollToTop.jsx`

### Company and services

- [Homepage](https://github.com/christophertendi/mpas-website/blob/master/src/pages/Homepage.jsx): `src/pages/Homepage.jsx`
- [Company profile](https://github.com/christophertendi/mpas-website/blob/master/src/pages/About.jsx): `src/pages/About.jsx`
- [Services](https://github.com/christophertendi/mpas-website/blob/master/src/pages/Services.jsx): `src/pages/Services.jsx`

### Product catalog

- [Product catalog](https://github.com/christophertendi/mpas-website/blob/master/src/pages/Products.jsx): `src/pages/Products.jsx`
- [Product detail](https://github.com/christophertendi/mpas-website/blob/master/src/pages/ProductDetail.jsx): `src/pages/ProductDetail.jsx`
- [Product portfolio](https://github.com/christophertendi/mpas-website/blob/master/src/pages/Portfolio.jsx): `src/pages/Portfolio.jsx`
- [Product records](https://github.com/christophertendi/mpas-website/blob/master/src/data/products.js): `src/data/products.js`

### Visitor interaction

- [Contact form](https://github.com/christophertendi/mpas-website/blob/master/src/pages/Contact.jsx): `src/pages/Contact.jsx`
- [Scroll reveal](https://github.com/christophertendi/mpas-website/blob/master/src/hooks/useReveal.js): `src/hooks/useReveal.js`
- **Browser storage**

### Other components

- **Website visitor**
- **Email client**
- **WhatsApp**

## Connections

- Website visitor → App routing: opens site (evidence: `src/App.jsx`)
- App routing → Navigation: renders (evidence: `src/App.jsx`)
- App routing → Footer: renders (evidence: `src/App.jsx`)
- App routing → Scroll reset: renders (evidence: `src/App.jsx`)
- App routing → Homepage: routes to (evidence: `src/App.jsx`)
- App routing → Company profile: routes to (evidence: `src/App.jsx`)
- App routing → Product catalog: routes to (evidence: `src/App.jsx`)
- App routing → Product detail: routes to (evidence: `src/App.jsx`)
- App routing → Services: routes to (evidence: `src/App.jsx`)
- App routing → Product portfolio: routes to (evidence: `src/App.jsx`)
- App routing → Contact form: routes to (evidence: `src/App.jsx`)
- Website visitor → Navigation: chooses page (evidence: `src/components/Navigation.jsx`)
- Product catalog → Product records: reads records (evidence: `src/pages/Products.jsx`)
- Product catalog → Product detail: links to details (evidence: `src/pages/Products.jsx`)
- Product detail → Product records: looks up product (evidence: `src/pages/ProductDetail.jsx`)
- Product portfolio → Product records: filters records (evidence: `src/pages/Portfolio.jsx`)
- Product portfolio → Product detail: links to details (evidence: `src/pages/Portfolio.jsx`)
- Homepage → Services: links to services (evidence: `src/pages/Homepage.jsx`)
- Homepage → Product catalog: links to catalog (evidence: `src/pages/Homepage.jsx`)
- Homepage → Contact form: links to contact (evidence: `src/pages/Homepage.jsx`)
- Services → Contact form: requests quote (evidence: `src/pages/Services.jsx`)
- Services → WhatsApp: opens chat (evidence: `src/pages/Services.jsx`)
- Contact form → Email client: submits via
- Website visitor → Contact form: enters inquiry (evidence: `src/pages/Contact.jsx`)
- Navigation → Browser storage: reads language (evidence: `src/components/Navigation.jsx`)
- Footer → Browser storage: tracks visits (evidence: `src/components/Footer.jsx`)
- Company profile → Scroll reveal: uses reveal (evidence: `src/pages/About.jsx`)
- Homepage → Scroll reveal: uses reveal (evidence: `src/pages/Homepage.jsx`)
- Services → Scroll reveal: uses reveal (evidence: `src/pages/Services.jsx`)
- Contact form → Scroll reveal: uses reveal (evidence: `src/pages/Contact.jsx`)
- Product catalog → Scroll reveal: uses reveal (evidence: `src/pages/Products.jsx`)
- Product detail → Scroll reveal: uses reveal (evidence: `src/pages/ProductDetail.jsx`)
- Product portfolio → Scroll reveal: uses reveal (evidence: `src/pages/Portfolio.jsx`)
- Website visitor → Product portfolio: opens portfolio
