# fran56caton/vantage-peru architecture

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

- Interactive diagram: https://gitdiagram.com/fran56caton/vantage-peru
- Repository: https://github.com/fran56caton/vantage-peru

## Overview

VANTAGE is a React app presenting native-cotton traceability and sustainability features. The user-facing experience is implemented largely in one large component: it depicts field classification, lot passports and QR scanning, water-saving certification, and smart-contract validation. The contact section submits inquiries to Formspree. The excerpts show the app entry point, shared class-name helper, and contact submission; they do not establish the internal navigation or backend behavior of the depicted product features.

Main entry points: [`src/App.tsx`](https://github.com/fran56caton/vantage-peru/blob/main/src/App.tsx) (Cotton product experience), [`src/main.tsx`](https://github.com/fran56caton/vantage-peru/blob/main/src/main.tsx) (React entry), [`src/ContactSection.tsx`](https://github.com/fran56caton/vantage-peru/blob/main/src/ContactSection.tsx) (Contact form), [`src/types.ts`](https://github.com/fran56caton/vantage-peru/blob/main/src/types.ts) (Class-name helper)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_experience["Product experience"]
  node_entry["React entry<br/>[main.tsx]"]
  node_product["Cotton product experience<br/>[App.tsx]"]
  node_shared["Class-name helper<br/>[types.ts]"]
end

subgraph group_contact["Contact"]
  node_contact_form["Contact form<br/>[ContactSection.tsx]"]
end

node_visitor(("Visitor"))
node_formspree["Formspree"]

node_visitor -->|"opens"| node_entry
node_entry -->|"renders"| node_product
node_product -->|"uses helper"| node_shared
node_product -->|"includes"| node_contact_form
node_contact_form -->|"submits inquiry"| node_formspree

click node_entry "https://github.com/fran56caton/vantage-peru/blob/main/src/main.tsx"
click node_product "https://github.com/fran56caton/vantage-peru/blob/main/src/App.tsx"
click node_shared "https://github.com/fran56caton/vantage-peru/blob/main/src/types.ts"
click node_contact_form "https://github.com/fran56caton/vantage-peru/blob/main/src/ContactSection.tsx"

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_entry,node_product,node_shared toneBlue
class node_contact_form toneAmber
class node_visitor,node_formspree toneIndigo
```

## Components

### Product experience

- [React entry](https://github.com/fran56caton/vantage-peru/blob/main/src/main.tsx): `src/main.tsx`
- [Cotton product experience](https://github.com/fran56caton/vantage-peru/blob/main/src/App.tsx): `src/App.tsx`
- [Class-name helper](https://github.com/fran56caton/vantage-peru/blob/main/src/types.ts): `src/types.ts`

### Contact

- [Contact form](https://github.com/fran56caton/vantage-peru/blob/main/src/ContactSection.tsx): `src/ContactSection.tsx`

### Other components

- **Visitor**
- **Formspree**

## Connections

- Visitor → React entry: opens (evidence: `src/main.tsx`)
- React entry → Cotton product experience: renders (evidence: `src/main.tsx`)
- Cotton product experience → Class-name helper: uses helper (evidence: `src/App.tsx`)
- Cotton product experience → Contact form: includes (evidence: `src/App.tsx`)
- Contact form → Formspree: submits inquiry (evidence: `src/ContactSection.tsx`)
