# hastrogg/web-technology architecture

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

- Interactive diagram: https://gitdiagram.com/hastrogg/web-technology
- Repository: https://github.com/hastrogg/web-technology

## Overview

Kampüs Etkinlikleri is a campus-event browsing and maintenance interface, developed across static HTML, a JavaScript version, and a React version. The user workflow is to view upcoming events, search or filter the full list, open event details, and enter or update event information. The README documents the static sprint-01 pages; sampled source shows the sprint-03 modules and sprint-04 React implementation. The later versions use in-memory event data, not a server-backed store. Links for unsampled HTML wiring are limited to README documentation.

Main entry points: [`kampus-etkinlik/sprint-01/etkinlikler.html`](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/etkinlikler.html) (Event list), [`kampus-etkinlik/sprint-04/frontend/src/App.tsx`](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/App.tsx) (Event interface), [`kampus-etkinlik/sprint-03/js/data.js`](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-03/js/data.js) (Event data), [`kampus-etkinlik/sprint-01/index.html`](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/index.html) (Upcoming events)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_static["Static HTML"]
  node_static_home["Upcoming events<br/>[index.html]"]
  node_static_list["Event list<br/>[etkinlikler.html]"]
  node_static_detail["Event details"]
  node_static_add["Add event form<br/>[etkinlik-ekle.html]"]
  node_static_update["Update event form"]
end

subgraph group_js["JavaScript version"]
  node_js_data[("Event data<br/>[data.js]")]
  node_js_list["List and filters<br/>[event-list.js]"]
  node_js_detail["Event details<br/>[event-detail.js]"]
  node_js_form["Add and update<br/>[event-form.js]"]
end

subgraph group_react["React version"]
  node_react_entry["React entry<br/>[main.jsx]"]
  node_react_app["Event interface<br/>[App.tsx]"]
  node_react_events[("Event data<br/>[events.ts]")]
  node_react_filters["Search and filters<br/>[filter-events.ts]"]
  node_react_types["Event model<br/>[campus-events.ts]"]
end

node_visitor(("Visitor"))

node_visitor -->|"opens"| node_static_home
node_static_home -->|"navigates"| node_static_list
node_static_list -->|"opens details"| node_static_detail
node_static_list -->|"opens form"| node_static_add
node_static_detail -->|"opens update"| node_static_update
node_js_list -->|"reads"| node_js_data
node_js_detail -->|"reads"| node_js_data
node_js_form -->|"reads"| node_js_data
node_react_entry -->|"renders"| node_react_app
node_react_app -->|"reads and updates"| node_react_events
node_react_app -->|"calls"| node_react_filters
node_react_events -->|"uses type"| node_react_types
node_react_filters -->|"uses type"| node_react_types

click node_static_home "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/index.html"
click node_static_list "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/etkinlikler.html"
click node_static_detail "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/etkinlik-detay.html"
click node_static_add "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/etkinlik-ekle.html"
click node_static_update "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/etkinlik-guncelle.html"
click node_js_data "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-03/js/data.js"
click node_js_list "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-03/js/event-list.js"
click node_js_detail "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-03/js/event-detail.js"
click node_js_form "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-03/js/event-form.js"
click node_react_entry "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/main.jsx"
click node_react_app "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/App.tsx"
click node_react_events "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/data/events.ts"
click node_react_filters "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/utils/filter-events.ts"
click node_react_types "https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/types/campus-events.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_static_home,node_static_list,node_static_detail,node_static_add,node_static_update toneBlue
class node_js_data,node_js_list,node_js_detail,node_js_form toneAmber
class node_react_entry,node_react_app,node_react_events,node_react_filters,node_react_types toneMint
class node_visitor toneIndigo
```

## Components

### Static HTML

- [Upcoming events](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/index.html): `kampus-etkinlik/sprint-01/index.html`
- [Event list](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/etkinlikler.html): `kampus-etkinlik/sprint-01/etkinlikler.html`
- [Event details](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/etkinlik-detay.html): `kampus-etkinlik/sprint-01/etkinlik-detay.html`
- [Add event form](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/etkinlik-ekle.html): `kampus-etkinlik/sprint-01/etkinlik-ekle.html`
- [Update event form](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-01/etkinlik-guncelle.html): `kampus-etkinlik/sprint-01/etkinlik-guncelle.html`

### JavaScript version

- [Event data](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-03/js/data.js): `kampus-etkinlik/sprint-03/js/data.js`
- [List and filters](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-03/js/event-list.js): `kampus-etkinlik/sprint-03/js/event-list.js`
- [Event details](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-03/js/event-detail.js): `kampus-etkinlik/sprint-03/js/event-detail.js`
- [Add and update](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-03/js/event-form.js): `kampus-etkinlik/sprint-03/js/event-form.js`

### React version

- [React entry](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/main.jsx): `kampus-etkinlik/sprint-04/frontend/src/main.jsx`
- [Event interface](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/App.tsx): `kampus-etkinlik/sprint-04/frontend/src/App.tsx`
- [Event data](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/data/events.ts): `kampus-etkinlik/sprint-04/frontend/src/data/events.ts`
- [Search and filters](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/utils/filter-events.ts): `kampus-etkinlik/sprint-04/frontend/src/utils/filter-events.ts`
- [Event model](https://github.com/hastrogg/web-technology/blob/main/kampus-etkinlik/sprint-04/frontend/src/types/campus-events.ts): `kampus-etkinlik/sprint-04/frontend/src/types/campus-events.ts`

### Other components

- **Visitor**

## Connections

- Visitor → Upcoming events: opens (evidence: `README.md`)
- Upcoming events → Event list: navigates (evidence: `README.md`)
- Event list → Event details: opens details (evidence: `README.md`)
- Event list → Add event form: opens form (evidence: `README.md`)
- Event details → Update event form: opens update (evidence: `README.md`)
- List and filters → Event data: reads (evidence: `kampus-etkinlik/sprint-03/js/event-list.js`)
- Event details → Event data: reads (evidence: `kampus-etkinlik/sprint-03/js/event-detail.js`)
- Add and update → Event data: reads (evidence: `kampus-etkinlik/sprint-03/js/event-form.js`)
- React entry → Event interface: renders (evidence: `kampus-etkinlik/sprint-04/frontend/src/main.jsx`)
- Event interface → Event data: reads and updates (evidence: `kampus-etkinlik/sprint-04/frontend/src/App.tsx`)
- Event interface → Search and filters: calls (evidence: `kampus-etkinlik/sprint-04/frontend/src/App.tsx`)
- Event data → Event model: uses type (evidence: `kampus-etkinlik/sprint-04/frontend/src/data/events.ts`)
- Search and filters → Event model: uses type (evidence: `kampus-etkinlik/sprint-04/frontend/src/utils/filter-events.ts`)
