# jxffz-dev/otica-acesso architecture

> Architecture diagram of the GitHub repository jxffz-dev/otica-acesso, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/jxffz-dev/otica-acesso
- Repository: https://github.com/jxffz-dev/otica-acesso

## Overview

Ótica Acesso is a Portuguese-language optical-store website: visitors browse eyewear and lens categories, find local stores, and are directed to WhatsApp or a free-eye-exam booking flow. The sampled pages show the booking component, store directory and detail pages, and shared site shell; the README is empty, and several components and routes were not sampled, so their internal behavior and some links are omitted.

Main entry points: [`site/src/app/page.tsx`](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/page.tsx) (Home and catalog), [`site/src/app/layout.tsx`](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/layout.tsx) (Shared layout), [`site/src/app/lojas/page.tsx`](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/lojas/page.tsx) (Store directory), [`site/src/app/lojas/[slug]/page.tsx`](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/lojas/%5Bslug%5D/page.tsx) (Store details)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_routes["Pages and discovery"]
  node_home["Home and catalog<br/>[page.tsx]"]
  node_categories["Eyewear categories<br/>[page.tsx]"]
  node_lenses["Lens information<br/>[page.tsx]"]
  node_sun["Sunglasses<br/>[page.tsx]"]
  node_stores["Store directory<br/>[page.tsx]"]
  node_store_detail["Store details<br/>[page.tsx]"]
  node_about["About page<br/>[page.tsx]"]
  node_privacy["Privacy policy<br/>[page.tsx]"]
end

subgraph group_engagement["Booking and contact"]
  node_contact["Contact page<br/>[page.tsx]"]
  node_exam_page["Eye-exam page<br/>[page.tsx]"]
  node_scheduler["Exam scheduler<br/>[exam-scheduler.tsx]"]
end

subgraph group_shell["Shared site experience"]
  node_site_shell["Shared layout<br/>[layout.tsx]"]
  node_header["Site header<br/>[header.tsx]"]
  node_footer["Site footer<br/>[footer.tsx]"]
  node_whatsapp_fab["WhatsApp shortcut<br/>[whatsapp-fab.tsx]"]
  node_brands["Brand showcase<br/>[brands-strip.tsx]"]
  node_before_after["Before and after<br/>[before-after.tsx]"]
  node_stores_explorer["Store explorer"]
end

subgraph group_content["Site data and settings"]
  node_site_data["Store and site data<br/>[site.ts]"]
end

node_visitor(("Visitor"))
node_whatsapp(("WhatsApp contact"))
node_maps(("Maps service"))

node_visitor -->|"opens"| node_home
node_visitor -->|"browses"| node_stores
node_visitor -->|"opens"| node_exam_page
node_home -->|"renders"| node_brands
node_home -->|"renders"| node_before_after
node_home -->|"renders"| node_stores_explorer
node_home -->|"links to"| node_exam_page
node_exam_page -->|"renders"| node_scheduler
node_contact -->|"opens chat"| node_whatsapp
node_store_detail -->|"opens chat"| node_whatsapp
node_stores -->|"links to"| node_store_detail
node_stores -->|"opens directions"| node_maps
node_store_detail -->|"opens directions"| node_maps
node_contact -->|"reads"| node_site_data
node_stores -->|"reads"| node_site_data
node_store_detail -->|"reads"| node_site_data
node_site_shell -->|"renders"| node_header
node_site_shell -->|"renders"| node_footer
node_site_shell -->|"renders"| node_whatsapp_fab
node_site_shell -->|"reads"| node_site_data
node_about -->|"links to"| node_exam_page
node_categories -.->|"shared catalog"| node_home
node_lenses -.->|"contact option"| node_whatsapp
node_sun -.->|"contact option"| node_whatsapp

click node_home "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/page.tsx"
click node_categories "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/oculos-de-grau/page.tsx"
click node_lenses "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/lentes/page.tsx"
click node_sun "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/oculos-de-sol/page.tsx"
click node_stores "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/lojas/page.tsx"
click node_store_detail "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/lojas/%5Bslug%5D/page.tsx"
click node_about "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/sobre/page.tsx"
click node_privacy "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/privacidade/page.tsx"
click node_contact "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/contato/page.tsx"
click node_exam_page "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/exame-de-vista/page.tsx"
click node_scheduler "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/exam/exam-scheduler.tsx"
click node_site_shell "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/layout.tsx"
click node_header "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/header.tsx"
click node_footer "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/footer.tsx"
click node_whatsapp_fab "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/whatsapp-fab.tsx"
click node_brands "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/brands-strip.tsx"
click node_before_after "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/before-after.tsx"
click node_stores_explorer "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/stores-explorer.tsx"
click node_site_data "https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/lib/site.ts"

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_categories,node_lenses,node_sun,node_stores,node_store_detail,node_about,node_privacy toneBlue
class node_contact,node_exam_page,node_scheduler toneAmber
class node_site_shell,node_header,node_footer,node_whatsapp_fab,node_brands,node_before_after,node_stores_explorer toneMint
class node_site_data toneRose
class node_visitor,node_whatsapp,node_maps toneIndigo
```

## Components

### Pages and discovery

- [Home and catalog](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/page.tsx): `site/src/app/page.tsx`
- [Eyewear categories](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/oculos-de-grau/page.tsx): `site/src/app/oculos-de-grau/page.tsx`
- [Lens information](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/lentes/page.tsx): `site/src/app/lentes/page.tsx`
- [Sunglasses](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/oculos-de-sol/page.tsx): `site/src/app/oculos-de-sol/page.tsx`
- [Store directory](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/lojas/page.tsx): `site/src/app/lojas/page.tsx`
- [Store details](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/lojas/%5Bslug%5D/page.tsx): `site/src/app/lojas/[slug]/page.tsx`
- [About page](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/sobre/page.tsx): `site/src/app/sobre/page.tsx`
- [Privacy policy](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/privacidade/page.tsx): `site/src/app/privacidade/page.tsx`

### Booking and contact

- [Contact page](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/contato/page.tsx): `site/src/app/contato/page.tsx`
- [Eye-exam page](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/exame-de-vista/page.tsx): `site/src/app/exame-de-vista/page.tsx`
- [Exam scheduler](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/exam/exam-scheduler.tsx): `site/src/components/exam/exam-scheduler.tsx`

### Shared site experience

- [Shared layout](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/app/layout.tsx): `site/src/app/layout.tsx`
- [Site header](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/header.tsx): `site/src/components/site/header.tsx`
- [Site footer](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/footer.tsx): `site/src/components/site/footer.tsx`
- [WhatsApp shortcut](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/whatsapp-fab.tsx): `site/src/components/site/whatsapp-fab.tsx`
- [Brand showcase](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/brands-strip.tsx): `site/src/components/site/brands-strip.tsx`
- [Before and after](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/before-after.tsx): `site/src/components/site/before-after.tsx`
- [Store explorer](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/components/site/stores-explorer.tsx): `site/src/components/site/stores-explorer.tsx`

### Site data and settings

- [Store and site data](https://github.com/jxffz-dev/otica-acesso/blob/main/site/src/lib/site.ts): `site/src/lib/site.ts`

### Other components

- **Visitor**
- **WhatsApp contact**
- **Maps service**

## Connections

- Visitor → Home and catalog: opens
- Visitor → Store directory: browses
- Visitor → Eye-exam page: opens
- Home and catalog → Brand showcase: renders (evidence: `site/src/app/page.tsx`)
- Home and catalog → Before and after: renders (evidence: `site/src/app/page.tsx`)
- Home and catalog → Store explorer: renders (evidence: `site/src/app/page.tsx`)
- Home and catalog → Eye-exam page: links to (evidence: `site/src/app/page.tsx`)
- Eye-exam page → Exam scheduler: renders (evidence: `site/src/app/exame-de-vista/page.tsx`)
- Contact page → WhatsApp contact: opens chat (evidence: `site/src/app/contato/page.tsx`)
- Store details → WhatsApp contact: opens chat (evidence: `site/src/app/lojas/[slug]/page.tsx`)
- Store directory → Store details: links to (evidence: `site/src/app/lojas/page.tsx`)
- Store directory → Maps service: opens directions (evidence: `site/src/app/lojas/page.tsx`)
- Store details → Maps service: opens directions (evidence: `site/src/app/lojas/[slug]/page.tsx`)
- Contact page → Store and site data: reads (evidence: `site/src/app/contato/page.tsx`)
- Store directory → Store and site data: reads (evidence: `site/src/app/lojas/page.tsx`)
- Store details → Store and site data: reads (evidence: `site/src/app/lojas/[slug]/page.tsx`)
- Shared layout → Site header: renders (evidence: `site/src/app/layout.tsx`)
- Shared layout → Site footer: renders (evidence: `site/src/app/layout.tsx`)
- Shared layout → WhatsApp shortcut: renders (evidence: `site/src/app/layout.tsx`)
- Shared layout → Store and site data: reads (evidence: `site/src/app/layout.tsx`)
- About page → Eye-exam page: links to (evidence: `site/src/app/sobre/page.tsx`)
- Eyewear categories → Home and catalog: shared catalog
- Lens information → WhatsApp contact: contact option
- Sunglasses → WhatsApp contact: contact option
