# franciscosa-svg/tarefa_web2 architecture

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

- Interactive diagram: https://gitdiagram.com/franciscosa-svg/tarefa_web2
- Repository: https://github.com/franciscosa-svg/tarefa_web2

## Overview

This is a minimal PHP site titled “Pizzaria do Bitela.” Its home page displays a menu mentioning customer and order registration, but the options have no links and the corresponding order and product files are empty. The only implemented backend behavior is a PostgreSQL connection helper, included by the otherwise empty customer page; no code shown calls that helper. The graph reflects these limits rather than implying a working ordering workflow.

Main entry points: [`index.php`](https://github.com/franciscosa-svg/tarefa_web2/blob/main/index.php) (Home menu), [`bd.php`](https://github.com/franciscosa-svg/tarefa_web2/blob/main/bd.php) (Connection helper), [`cliente.php`](https://github.com/franciscosa-svg/tarefa_web2/blob/main/cliente.php) (Customer page), [`style.css`](https://github.com/franciscosa-svg/tarefa_web2/blob/main/style.css) (Page styling)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_web["Web pages"]
  node_home["Home menu<br/>[index.php]"]
  node_stylesheet["Page styling<br/>[style.css]"]
  node_customer["Customer page<br/>[cliente.php]"]
end

subgraph group_persistence["Persistence"]
  node_connection["Connection helper<br/>[bd.php]"]
end

node_visitor(("Visitor"))
node_postgres[("Supabase PostgreSQL")]

node_visitor -->|"opens"| node_home
node_home -->|"loads"| node_stylesheet
node_customer -->|"includes"| node_connection
node_connection -->|"connects"| node_postgres

click node_home "https://github.com/franciscosa-svg/tarefa_web2/blob/main/index.php"
click node_stylesheet "https://github.com/franciscosa-svg/tarefa_web2/blob/main/style.css"
click node_customer "https://github.com/franciscosa-svg/tarefa_web2/blob/main/cliente.php"
click node_connection "https://github.com/franciscosa-svg/tarefa_web2/blob/main/bd.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_home,node_stylesheet,node_customer toneBlue
class node_connection,node_postgres toneAmber
class node_visitor toneIndigo
```

## Components

### Web pages

- [Home menu](https://github.com/franciscosa-svg/tarefa_web2/blob/main/index.php): `index.php`
- [Page styling](https://github.com/franciscosa-svg/tarefa_web2/blob/main/style.css): `style.css`
- [Customer page](https://github.com/franciscosa-svg/tarefa_web2/blob/main/cliente.php): `cliente.php`

### Persistence

- [Connection helper](https://github.com/franciscosa-svg/tarefa_web2/blob/main/bd.php): `bd.php`

### Other components

- **Visitor**
- **Supabase PostgreSQL**

## Connections

- Visitor → Home menu: opens
- Home menu → Page styling: loads
- Customer page → Connection helper: includes
- Connection helper → Supabase PostgreSQL: connects
