# ssankarr/uf architecture

> Architecture diagram of the GitHub repository ssankarr/uf, 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/ssankarr/uf
- Repository: https://github.com/ssankarr/uf

## Overview

Uloans Finance is a static mortgage-broker website. Visitors can browse loan and broker information, use repayment and loan-health calculators, and prepare callback enquiries; the JavaScript also presents a campaign modal with assessment and booking links. The sampled script shows browser-side calculations and form handling, not a server-side submission or persistence flow. Page-level links and wiring are not shown in the available evidence, so those relationships are omitted.

Main entry points: [`prototype/script.js`](https://github.com/ssankarr/uf/blob/main/prototype/script.js) (Loan Health Check)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Broker Website"]
  node_home["Home<br/>[index.html]"]
  node_about["About<br/>[about.html]"]
  node_contact["Contact<br/>[contact.html]"]
  node_faq["FAQ<br/>[faq.html]"]
  node_updates["Latest Updates"]
  node_localhome["Local Home<br/>[lh-index.html]"]
  node_localabout["Local About<br/>[lh-about.html]"]
  node_localcontact["Local Contact<br/>[lh-contact.html]"]
  node_broker["Pakenham Broker"]
end

subgraph group_tools["Interactive Tools"]
  node_calculator["Repayment Calculator<br/>[script.js]"]
  node_snapshot["Loan Health Check<br/>[script.js]"]
  node_callback["Callback Enquiry<br/>[script.js]"]
end

subgraph group_campaign["Campaign Engagement"]
  node_campaign["Campaign Modal<br/>[script.js]"]
end

node_visitor(("Visitor"))
node_assessment["Assessment Service"]
node_booking["Appointment Booking"]
node_email["Email Client"]
node_whatsapp["WhatsApp"]

node_visitor -->|"submits form"| node_calculator
node_visitor -->|"submits form"| node_snapshot
node_visitor -->|"submits form"| node_callback
node_campaign -->|"links to"| node_assessment
node_campaign -->|"links to"| node_booking
node_snapshot -->|"prepares email link"| node_email
node_snapshot -->|"prepares message link"| node_whatsapp

click node_home "https://github.com/ssankarr/uf/blob/main/prototype/index.html"
click node_about "https://github.com/ssankarr/uf/blob/main/prototype/about.html"
click node_contact "https://github.com/ssankarr/uf/blob/main/prototype/contact.html"
click node_faq "https://github.com/ssankarr/uf/blob/main/prototype/faq.html"
click node_updates "https://github.com/ssankarr/uf/blob/main/prototype/latest-updates.html"
click node_localhome "https://github.com/ssankarr/uf/blob/main/prototype/lh-index.html"
click node_localabout "https://github.com/ssankarr/uf/blob/main/prototype/lh-about.html"
click node_localcontact "https://github.com/ssankarr/uf/blob/main/prototype/lh-contact.html"
click node_broker "https://github.com/ssankarr/uf/blob/main/prototype/mortgage-broker-pakenham.html"
click node_calculator "https://github.com/ssankarr/uf/blob/main/prototype/script.js"
click node_snapshot "https://github.com/ssankarr/uf/blob/main/prototype/script.js"
click node_callback "https://github.com/ssankarr/uf/blob/main/prototype/script.js"
click node_campaign "https://github.com/ssankarr/uf/blob/main/prototype/script.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_about,node_contact,node_faq,node_updates,node_localhome,node_localabout,node_localcontact,node_broker,node_email toneBlue
class node_calculator,node_snapshot,node_callback toneAmber
class node_campaign toneMint
class node_visitor,node_assessment,node_booking,node_whatsapp toneIndigo
```

## Components

### Broker Website

- [Home](https://github.com/ssankarr/uf/blob/main/prototype/index.html): `prototype/index.html`
- [About](https://github.com/ssankarr/uf/blob/main/prototype/about.html): `prototype/about.html`
- [Contact](https://github.com/ssankarr/uf/blob/main/prototype/contact.html): `prototype/contact.html`
- [FAQ](https://github.com/ssankarr/uf/blob/main/prototype/faq.html): `prototype/faq.html`
- [Latest Updates](https://github.com/ssankarr/uf/blob/main/prototype/latest-updates.html): `prototype/latest-updates.html`
- [Local Home](https://github.com/ssankarr/uf/blob/main/prototype/lh-index.html): `prototype/lh-index.html`
- [Local About](https://github.com/ssankarr/uf/blob/main/prototype/lh-about.html): `prototype/lh-about.html`
- [Local Contact](https://github.com/ssankarr/uf/blob/main/prototype/lh-contact.html): `prototype/lh-contact.html`
- [Pakenham Broker](https://github.com/ssankarr/uf/blob/main/prototype/mortgage-broker-pakenham.html): `prototype/mortgage-broker-pakenham.html`

### Interactive Tools

- [Repayment Calculator](https://github.com/ssankarr/uf/blob/main/prototype/script.js): `prototype/script.js`
- [Loan Health Check](https://github.com/ssankarr/uf/blob/main/prototype/script.js): `prototype/script.js`
- [Callback Enquiry](https://github.com/ssankarr/uf/blob/main/prototype/script.js): `prototype/script.js`

### Campaign Engagement

- [Campaign Modal](https://github.com/ssankarr/uf/blob/main/prototype/script.js): `prototype/script.js`

### Other components

- **Visitor**
- **Assessment Service**
- **Appointment Booking**
- **Email Client**
- **WhatsApp**

## Connections

- Visitor → Repayment Calculator: submits form (evidence: `prototype/script.js`)
- Visitor → Loan Health Check: submits form (evidence: `prototype/script.js`)
- Visitor → Callback Enquiry: submits form (evidence: `prototype/script.js`)
- Campaign Modal → Assessment Service: links to (evidence: `prototype/script.js`)
- Campaign Modal → Appointment Booking: links to (evidence: `prototype/script.js`)
- Loan Health Check → Email Client: prepares email link (evidence: `prototype/script.js`)
- Loan Health Check → WhatsApp: prepares message link (evidence: `prototype/script.js`)
