# ayberkarslan/zenithweb architecture

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

## Overview

This repository is a React site for YTU Zenith, a university rotary-wing UAV team. Visitors browse the home page, vehicle design, development log, sponsors, and team; the shared app shell routes between these pages and provides navigation and footer content. The navigation builds a searchable index that includes static records and dynamically discovered blog entries. The excerpts support the route, shell, and search-index relationships, but do not show how the development log loads its posts or fully describe the vehicle-design page’s other capabilities.

Main entry points: [`src/App.tsx`](https://github.com/ayberkarslan/zenithweb/blob/main/src/App.tsx) (App and routing), [`src/main.tsx`](https://github.com/ayberkarslan/zenithweb/blob/main/src/main.tsx) (React entry), [`src/components/Navbar.tsx`](https://github.com/ayberkarslan/zenithweb/blob/main/src/components/Navbar.tsx) (Navigation and search), [`src/utils/searchIndex.ts`](https://github.com/ayberkarslan/zenithweb/blob/main/src/utils/searchIndex.ts) (Search index builder)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_shell["Application shell"]
  node_entry["React entry<br/>[main.tsx]"]
  node_app["App and routing<br/>[App.tsx]"]
  node_navbar["Navigation and search<br/>[Navbar.tsx]"]
  node_footer["Site footer<br/>[Footer.tsx]"]
end

subgraph group_pages["Public pages"]
  node_home["Home and 3D showcase<br/>[Home.tsx]"]
  node_vehicle["Vehicle design<br/>[VehicleDesign.tsx]"]
  node_devlog["Development log<br/>[DevLog.tsx]"]
  node_sponsors["Sponsors<br/>[Sponsors.tsx]"]
  node_team["Team<br/>[Team.tsx]"]
end

subgraph group_content["Search content"]
  node_searchindex["Search index builder<br/>[searchIndex.ts]"]
  node_blogposts["Blog post records"]
end

node_visitor(("Site visitor"))

node_visitor -.->|"opens site"| node_entry
node_entry -->|"renders"| node_app
node_app -->|"renders"| node_navbar
node_app -->|"renders"| node_footer
node_app -->|"routes to"| node_home
node_app -->|"routes to"| node_vehicle
node_app -->|"routes to"| node_devlog
node_app -->|"routes to"| node_sponsors
node_app -->|"routes to"| node_team
node_navbar -->|"builds search"| node_searchindex
node_searchindex -->|"discovers posts"| node_blogposts

click node_entry "https://github.com/ayberkarslan/zenithweb/blob/main/src/main.tsx"
click node_app "https://github.com/ayberkarslan/zenithweb/blob/main/src/App.tsx"
click node_navbar "https://github.com/ayberkarslan/zenithweb/blob/main/src/components/Navbar.tsx"
click node_footer "https://github.com/ayberkarslan/zenithweb/blob/main/src/components/Footer.tsx"
click node_home "https://github.com/ayberkarslan/zenithweb/blob/main/src/pages/Home.tsx"
click node_vehicle "https://github.com/ayberkarslan/zenithweb/blob/main/src/pages/VehicleDesign.tsx"
click node_devlog "https://github.com/ayberkarslan/zenithweb/blob/main/src/pages/DevLog.tsx"
click node_sponsors "https://github.com/ayberkarslan/zenithweb/blob/main/src/pages/Sponsors.tsx"
click node_team "https://github.com/ayberkarslan/zenithweb/blob/main/src/pages/Team.tsx"
click node_searchindex "https://github.com/ayberkarslan/zenithweb/blob/main/src/utils/searchIndex.ts"
click node_blogposts "https://github.com/ayberkarslan/zenithweb/tree/main/src/pages/blog"

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_app,node_navbar,node_footer toneBlue
class node_home,node_vehicle,node_devlog,node_sponsors,node_team toneAmber
class node_searchindex,node_blogposts toneMint
class node_visitor toneIndigo
```

## Components

### Application shell

- [React entry](https://github.com/ayberkarslan/zenithweb/blob/main/src/main.tsx): `src/main.tsx`
- [App and routing](https://github.com/ayberkarslan/zenithweb/blob/main/src/App.tsx): `src/App.tsx`
- [Navigation and search](https://github.com/ayberkarslan/zenithweb/blob/main/src/components/Navbar.tsx): `src/components/Navbar.tsx`
- [Site footer](https://github.com/ayberkarslan/zenithweb/blob/main/src/components/Footer.tsx): `src/components/Footer.tsx`

### Public pages

- [Home and 3D showcase](https://github.com/ayberkarslan/zenithweb/blob/main/src/pages/Home.tsx): `src/pages/Home.tsx`
- [Vehicle design](https://github.com/ayberkarslan/zenithweb/blob/main/src/pages/VehicleDesign.tsx): `src/pages/VehicleDesign.tsx`
- [Development log](https://github.com/ayberkarslan/zenithweb/blob/main/src/pages/DevLog.tsx): `src/pages/DevLog.tsx`
- [Sponsors](https://github.com/ayberkarslan/zenithweb/blob/main/src/pages/Sponsors.tsx): `src/pages/Sponsors.tsx`
- [Team](https://github.com/ayberkarslan/zenithweb/blob/main/src/pages/Team.tsx): `src/pages/Team.tsx`

### Search content

- [Search index builder](https://github.com/ayberkarslan/zenithweb/blob/main/src/utils/searchIndex.ts): `src/utils/searchIndex.ts`
- [Blog post records](https://github.com/ayberkarslan/zenithweb/tree/main/src/pages/blog): `src/pages/blog`

### Other components

- **Site visitor**

## Connections

- Site visitor → React entry: opens site
- React entry → App and routing: renders (evidence: `src/main.tsx`)
- App and routing → Navigation and search: renders (evidence: `src/App.tsx`)
- App and routing → Site footer: renders (evidence: `src/App.tsx`)
- App and routing → Home and 3D showcase: routes to (evidence: `src/App.tsx`)
- App and routing → Vehicle design: routes to (evidence: `src/App.tsx`)
- App and routing → Development log: routes to (evidence: `src/App.tsx`)
- App and routing → Sponsors: routes to (evidence: `src/App.tsx`)
- App and routing → Team: routes to (evidence: `src/App.tsx`)
- Navigation and search → Search index builder: builds search (evidence: `src/components/Navbar.tsx`)
- Search index builder → Blog post records: discovers posts (evidence: `src/utils/searchIndex.ts`)
