# tanbirab/testpto architecture

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

- Interactive diagram: https://gitdiagram.com/tanbirab/testpto
- Repository: https://github.com/tanbirab/testpto

## Overview

Tutoria is a home-tutoring marketing and lead-generation site for families and prospective tutors in West Bengal. The main family journey is to explore tutoring information and contact Tutoria to request a free demo; prospective tutors can submit an application that is sent through WhatsApp. The site also presents testimonials and provides an admin interface for maintaining them. The README describes a React structure that is absent from the supplied tree, so this map follows the available HTML and JavaScript; links between page markup and shared logic are limited to behavior evident in the excerpts.

Main entry points: [`script.js`](https://github.com/tanbirab/testpto/blob/main/script.js) (Shared site logic), [`index.html`](https://github.com/tanbirab/testpto/blob/main/index.html) (Tutoring overview), [`apply.html`](https://github.com/tanbirab/testpto/blob/main/apply.html) (Tutor application), [`review.html`](https://github.com/tanbirab/testpto/blob/main/review.html) (Review page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Public site"]
  node_home["Tutoring overview<br/>[index.html]"]
  node_about["About Tutoria<br/>[about.html]"]
  node_contact["Contact page<br/>[contact.html]"]
  node_shared_logic["Shared site logic<br/>[script.js]"]
end

subgraph group_leads["Lead capture"]
  node_apply["Tutor application<br/>[apply.html]"]
  node_join["Join as tutor<br/>[join-as-tutor.html]"]
  node_whatsapp(("WhatsApp"))
end

subgraph group_testimonials["Testimonials"]
  node_review["Review page<br/>[review.html]"]
  node_testimonial_admin["Testimonial admin<br/>[script.js]"]
  node_testimonial_data[("Testimonials<br/>[script.js]")]
  node_browser_storage[("Browser storage")]
end

node_family(("Family"))
node_prospective_tutor(("Prospective tutor"))

node_family -->|"views"| node_home
node_family -->|"seeks contact"| node_contact
node_home -->|"requests demo"| node_whatsapp
node_prospective_tutor -->|"applies"| node_apply
node_prospective_tutor -->|"explores joining"| node_join
node_shared_logic -->|"opens contact"| node_whatsapp
node_review -->|"renders reviews"| node_shared_logic
node_testimonial_admin -->|"loads and updates"| node_testimonial_data
node_shared_logic -->|"loads reviews"| node_testimonial_data
node_testimonial_data -.->|"reads and writes"| node_browser_storage
node_apply -->|"submits form"| node_shared_logic
node_shared_logic -->|"sends application"| node_whatsapp

click node_home "https://github.com/tanbirab/testpto/blob/main/index.html"
click node_about "https://github.com/tanbirab/testpto/blob/main/about.html"
click node_contact "https://github.com/tanbirab/testpto/blob/main/contact.html"
click node_review "https://github.com/tanbirab/testpto/blob/main/review.html"
click node_apply "https://github.com/tanbirab/testpto/blob/main/apply.html"
click node_join "https://github.com/tanbirab/testpto/blob/main/join-as-tutor.html"
click node_shared_logic "https://github.com/tanbirab/testpto/blob/main/script.js"
click node_testimonial_admin "https://github.com/tanbirab/testpto/blob/main/script.js"
click node_testimonial_data "https://github.com/tanbirab/testpto/blob/main/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_shared_logic toneBlue
class node_apply,node_join,node_whatsapp toneAmber
class node_review,node_testimonial_admin,node_testimonial_data,node_browser_storage toneMint
class node_family,node_prospective_tutor toneIndigo
```

## Components

### Public site

- [Tutoring overview](https://github.com/tanbirab/testpto/blob/main/index.html): `index.html`
- [About Tutoria](https://github.com/tanbirab/testpto/blob/main/about.html): `about.html`
- [Contact page](https://github.com/tanbirab/testpto/blob/main/contact.html): `contact.html`
- [Shared site logic](https://github.com/tanbirab/testpto/blob/main/script.js): `script.js`

### Lead capture

- [Tutor application](https://github.com/tanbirab/testpto/blob/main/apply.html): `apply.html`
- [Join as tutor](https://github.com/tanbirab/testpto/blob/main/join-as-tutor.html): `join-as-tutor.html`
- **WhatsApp**

### Testimonials

- [Review page](https://github.com/tanbirab/testpto/blob/main/review.html): `review.html`
- [Testimonial admin](https://github.com/tanbirab/testpto/blob/main/script.js): `script.js`
- [Testimonials](https://github.com/tanbirab/testpto/blob/main/script.js): `script.js`
- **Browser storage**

### Other components

- **Family**
- **Prospective tutor**

## Connections

- Family → Tutoring overview: views
- Family → Contact page: seeks contact
- Tutoring overview → WhatsApp: requests demo
- Prospective tutor → Tutor application: applies
- Prospective tutor → Join as tutor: explores joining
- Shared site logic → WhatsApp: opens contact
- Review page → Shared site logic: renders reviews
- Testimonial admin → Testimonials: loads and updates
- Shared site logic → Testimonials: loads reviews
- Testimonials → Browser storage: reads and writes
- Tutor application → Shared site logic: submits form
- Shared site logic → WhatsApp: sends application
