# richardjclough/folio architecture

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

- Interactive diagram: https://gitdiagram.com/richardjclough/folio
- Repository: https://github.com/richardjclough/folio

## Overview

This repository is a collection of unrelated website assets rather than one unified application. The clearest product workflow is Apollo Media’s marketplace landing page: advertisers, affiliates, and contact visitors submit forms; PHP validates submitted fields and renders errors or success feedback. Valitron is the internal validation layer. The tree also contains Angular and TALi/HubSpot browser bundles, but the excerpts do not establish their product behavior or connections, so they are not expanded into speculative workflows.

Main entry points: [`sites/ApolloRWD/index.php`](https://github.com/richardjclough/folio/blob/master/sites/ApolloRWD/index.php) (Marketplace page), [`sites/ApolloRWD/valitron/Validator.php`](https://github.com/richardjclough/folio/blob/master/sites/ApolloRWD/valitron/Validator.php) (Valitron validator), [`sites/ApolloRWD/indexBackup.php`](https://github.com/richardjclough/folio/blob/master/sites/ApolloRWD/indexBackup.php) (Backup page)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_apollo["Apollo Media"]
  node_apollo_page["Marketplace page<br/>[index.php]"]
  node_apollo_backup["Backup page<br/>[indexBackup.php]"]
end

subgraph group_validation["Form validation"]
  node_validator["Valitron validator<br/>[Validator.php]"]
end

node_visitors(("Form visitors"))

node_visitors -->|"submit forms"| node_apollo_page
node_apollo_page -->|"validates with"| node_validator
node_apollo_backup -->|"validates with"| node_validator

click node_apollo_page "https://github.com/richardjclough/folio/blob/master/sites/ApolloRWD/index.php"
click node_apollo_backup "https://github.com/richardjclough/folio/blob/master/sites/ApolloRWD/indexBackup.php"
click node_validator "https://github.com/richardjclough/folio/blob/master/sites/ApolloRWD/valitron/Validator.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_apollo_page,node_apollo_backup toneBlue
class node_validator toneAmber
class node_visitors toneIndigo
```

## Components

### Apollo Media

- [Marketplace page](https://github.com/richardjclough/folio/blob/master/sites/ApolloRWD/index.php): `sites/ApolloRWD/index.php`
- [Backup page](https://github.com/richardjclough/folio/blob/master/sites/ApolloRWD/indexBackup.php): `sites/ApolloRWD/indexBackup.php`

### Form validation

- [Valitron validator](https://github.com/richardjclough/folio/blob/master/sites/ApolloRWD/valitron/Validator.php): `sites/ApolloRWD/valitron/Validator.php`

### Other components

- **Form visitors**

## Connections

- Form visitors → Marketplace page: submit forms (evidence: `sites/ApolloRWD/index.php`)
- Marketplace page → Valitron validator: validates with (evidence: `sites/ApolloRWD/index.php`)
- Backup page → Valitron validator: validates with (evidence: `sites/ApolloRWD/indexBackup.php`)
