# adarozer/bawer-website architecture

> Architecture diagram of the GitHub repository adarozer/bawer-website, 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/adarozer/bawer-website
- Repository: https://github.com/adarozer/bawer-website

## Overview

Bawer is an unfinished Turkish corporate website for an engineering, construction, consultancy, logistics, and tourism business. Visitors browse company and service information, explore a portfolio and individual project pages, and can submit a contact form that is handled by the mailer. Shared PHP includes provide navigation and page chrome; the homepage also includes a translation control. The README identifies the site as unfinished. The form-to-mail path is inferred from the endpoint and bundled PHPMailer files; unsampled wiring is not expanded further.

Main entry points: [`index.php`](https://github.com/adarozer/bawer-website/blob/main/index.php) (Homepage), [`inc/menu.php`](https://github.com/adarozer/bawer-website/blob/main/inc/menu.php) (Navigation), [`PHPMailer/SMTP.php`](https://github.com/adarozer/bawer-website/blob/main/PHPMailer/SMTP.php) (SMTP transport), [`portfolio.php`](https://github.com/adarozer/bawer-website/blob/main/portfolio.php) (Portfolio index)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_site["Company site"]
  node_home["Homepage<br/>[index.php]"]
  node_navigation["Navigation<br/>[menu.php]"]
  node_mobile["Mobile menu<br/>[mobile_menu.php]"]
  node_team["Team<br/>[team.php]"]
  node_partners["Partners<br/>[ortaklar.php]"]
  node_header["Page header<br/>[header.php]"]
  node_footer["Page footer<br/>[footer.php]"]
  node_translator["Language translation<br/>[translater.php]"]
end

subgraph group_services["Service information"]
  node_construction["Construction<br/>[insaat-hizmet.php]"]
  node_consultancy["Consultancy"]
  node_logistics["Logistics"]
  node_tourism["Tourism<br/>[turizm-hizmet.php]"]
end

subgraph group_portfolio["Project portfolio"]
  node_portfolio["Portfolio index<br/>[portfolio.php]"]
  node_project["Project detail pages"]
  node_project_detail["Project detail route<br/>[project-detail.php]"]
end

subgraph group_contact["Contact and email"]
  node_contact_form["Contact form handler"]
  node_mailer["PHPMailer<br/>[PHPMailer.php]"]
  node_smtp["SMTP transport<br/>[SMTP.php]"]
  node_oauth["OAuth helper<br/>[OAuth.php]"]
end

node_visitor(("Visitor"))
node_mail_service(("SMTP server"))

node_visitor -->|"opens"| node_home
node_visitor -->|"opens"| node_portfolio
node_visitor -->|"submits"| node_contact_form
node_home -->|"includes"| node_navigation
node_home -->|"includes"| node_mobile
node_home -->|"includes"| node_header
node_home -->|"includes"| node_footer
node_home -->|"includes"| node_translator
node_home -->|"links to"| node_construction
node_home -->|"links to"| node_consultancy
node_home -->|"links to"| node_logistics
node_navigation -->|"links to"| node_home
node_navigation -->|"links to"| node_team
node_navigation -->|"links to"| node_partners
node_portfolio -->|"links to"| node_project
node_project_detail -.->|"renders"| node_project
node_contact_form -.->|"uses"| node_mailer
node_mailer -->|"dispatches through"| node_smtp
node_smtp -->|"sends mail"| node_mail_service
node_smtp -.->|"requests token"| node_oauth

click node_home "https://github.com/adarozer/bawer-website/blob/main/index.php"
click node_navigation "https://github.com/adarozer/bawer-website/blob/main/inc/menu.php"
click node_mobile "https://github.com/adarozer/bawer-website/blob/main/inc/mobile_menu.php"
click node_team "https://github.com/adarozer/bawer-website/blob/main/team.php"
click node_partners "https://github.com/adarozer/bawer-website/blob/main/ortaklar.php"
click node_construction "https://github.com/adarozer/bawer-website/blob/main/insaat-hizmet.php"
click node_consultancy "https://github.com/adarozer/bawer-website/blob/main/musavirlik-hizmet.php"
click node_logistics "https://github.com/adarozer/bawer-website/blob/main/tasimacilik-hizmet.php"
click node_tourism "https://github.com/adarozer/bawer-website/blob/main/turizm-hizmet.php"
click node_portfolio "https://github.com/adarozer/bawer-website/blob/main/portfolio.php"
click node_project "https://github.com/adarozer/bawer-website/tree/main/projects"
click node_project_detail "https://github.com/adarozer/bawer-website/blob/main/project-detail.php"
click node_contact_form "https://github.com/adarozer/bawer-website/blob/main/form_mail_gonder.php"
click node_mailer "https://github.com/adarozer/bawer-website/blob/main/PHPMailer/PHPMailer.php"
click node_smtp "https://github.com/adarozer/bawer-website/blob/main/PHPMailer/SMTP.php"
click node_oauth "https://github.com/adarozer/bawer-website/blob/main/PHPMailer/OAuth.php"
click node_header "https://github.com/adarozer/bawer-website/blob/main/inc/header.php"
click node_footer "https://github.com/adarozer/bawer-website/blob/main/inc/footer.php"
click node_translator "https://github.com/adarozer/bawer-website/blob/main/inc/translater.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_navigation,node_mobile,node_team,node_partners,node_header,node_footer,node_translator toneBlue
class node_construction,node_consultancy,node_logistics,node_tourism toneAmber
class node_portfolio,node_project,node_project_detail,node_mail_service toneMint
class node_contact_form,node_mailer,node_smtp,node_oauth toneRose
class node_visitor toneIndigo
```

## Components

### Company site

- [Homepage](https://github.com/adarozer/bawer-website/blob/main/index.php): `index.php`
- [Navigation](https://github.com/adarozer/bawer-website/blob/main/inc/menu.php): `inc/menu.php`
- [Mobile menu](https://github.com/adarozer/bawer-website/blob/main/inc/mobile_menu.php): `inc/mobile_menu.php`
- [Team](https://github.com/adarozer/bawer-website/blob/main/team.php): `team.php`
- [Partners](https://github.com/adarozer/bawer-website/blob/main/ortaklar.php): `ortaklar.php`
- [Page header](https://github.com/adarozer/bawer-website/blob/main/inc/header.php): `inc/header.php`
- [Page footer](https://github.com/adarozer/bawer-website/blob/main/inc/footer.php): `inc/footer.php`
- [Language translation](https://github.com/adarozer/bawer-website/blob/main/inc/translater.php): `inc/translater.php`

### Service information

- [Construction](https://github.com/adarozer/bawer-website/blob/main/insaat-hizmet.php): `insaat-hizmet.php`
- [Consultancy](https://github.com/adarozer/bawer-website/blob/main/musavirlik-hizmet.php): `musavirlik-hizmet.php`
- [Logistics](https://github.com/adarozer/bawer-website/blob/main/tasimacilik-hizmet.php): `tasimacilik-hizmet.php`
- [Tourism](https://github.com/adarozer/bawer-website/blob/main/turizm-hizmet.php): `turizm-hizmet.php`

### Project portfolio

- [Portfolio index](https://github.com/adarozer/bawer-website/blob/main/portfolio.php): `portfolio.php`
- [Project detail pages](https://github.com/adarozer/bawer-website/tree/main/projects): `projects`
- [Project detail route](https://github.com/adarozer/bawer-website/blob/main/project-detail.php): `project-detail.php`

### Contact and email

- [Contact form handler](https://github.com/adarozer/bawer-website/blob/main/form_mail_gonder.php): `form_mail_gonder.php`
- [PHPMailer](https://github.com/adarozer/bawer-website/blob/main/PHPMailer/PHPMailer.php): `PHPMailer/PHPMailer.php`
- [SMTP transport](https://github.com/adarozer/bawer-website/blob/main/PHPMailer/SMTP.php): `PHPMailer/SMTP.php`
- [OAuth helper](https://github.com/adarozer/bawer-website/blob/main/PHPMailer/OAuth.php): `PHPMailer/OAuth.php`

### Other components

- **Visitor**
- **SMTP server**

## Connections

- Visitor → Homepage: opens
- Visitor → Portfolio index: opens
- Visitor → Contact form handler: submits
- Homepage → Navigation: includes
- Homepage → Mobile menu: includes
- Homepage → Page header: includes
- Homepage → Page footer: includes
- Homepage → Language translation: includes
- Homepage → Construction: links to
- Homepage → Consultancy: links to
- Homepage → Logistics: links to
- Navigation → Homepage: links to
- Navigation → Team: links to
- Navigation → Partners: links to
- Portfolio index → Project detail pages: links to
- Project detail route → Project detail pages: renders
- Contact form handler → PHPMailer: uses
- PHPMailer → SMTP transport: dispatches through
- SMTP transport → SMTP server: sends mail
- SMTP transport → OAuth helper: requests token
