# nasimll/sg-webpage architecture

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

- Interactive diagram: https://gitdiagram.com/nasimll/sg-webpage
- Repository: https://github.com/nasimll/sg-webpage

## Overview

This repository is a multilingual Sadykov Group recruitment website, with public vacancy browsing and application, plus coordinator tools for maintaining offers. The visible vacancy interface fetches and renders offers, supports language switching and detail views; coordinators can add, edit, and delete offers through a Google Apps Script endpoint. A separate project/vacancy API server is also present, though the sampled browser client targets a placeholder URL, so no connection between that client and server is asserted. The tree and excerpts show only part of the site wiring; unsampled capabilities are represented cautiously.

Main entry points: [`index.html`](https://github.com/nasimll/sg-webpage/blob/main/index.html) (Recruitment Website), [`js/jswak.js`](https://github.com/nasimll/sg-webpage/blob/main/js/jswak.js) (Vacancy Browsing), [`server.js`](https://github.com/nasimll/sg-webpage/blob/main/server.js) (Project Vacancy API), [`images/gsheet.js`](https://github.com/nasimll/sg-webpage/blob/main/images/gsheet.js) (Contact Form)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_public["Public Website"]
  node_website["Recruitment Website<br/>[index.html]"]
  node_site_interactions["Site Interactions<br/>[script.js]"]
  node_contact_form["Contact Form<br/>[gsheet.js]"]
  node_translations["Language Resources"]
  node_policy_pages["Legal Pages"]
end

subgraph group_vacancies["Vacancy Experience"]
  node_vacancy_browse["Vacancy Browsing<br/>[jswak.js]"]
  node_vacancy_page["Vacancies Page<br/>[vacancies.html]"]
  node_vacancy_translation["Vacancy Translations<br/>[jswak.js]"]
  node_carousel_details["Carousel &amp; Details<br/>[jswak.js]"]
end

subgraph group_admin["Coordinator Tools"]
  node_coordinator_ui["Coordinator UI<br/>[coordinator.html]"]
  node_coordinator_logic["Offer Management<br/>[coordinator.js]"]
  node_vacancy_admin_page["Vacancy Admin Page<br/>[wakaty.html]"]
  node_admin_client["Project Vacancy Client<br/>[vscript.js]"]
end

subgraph group_services["Data Services &amp; Consent"]
  node_submission_service{{"Form Submission Service"}}
  node_vacancy_service{{"Google Sheets Vacancy Service"}}
  node_site_server["Project Vacancy API<br/>[server.js]"]
  node_site_database[("Projects &amp; Vacancies DB<br/>[data.db]")]
  node_consent["Cookie Consent<br/>[consent.js]"]
  node_analytics{{"Google Analytics"}}
end

node_visitor(("Visitor"))

node_visitor -->|"visits"| node_website
node_website -.->|"uses"| node_site_interactions
node_visitor -->|"browses"| node_vacancy_page
node_vacancy_page -.->|"uses"| node_vacancy_browse
node_vacancy_browse -->|"fetches offers"| node_vacancy_service
node_vacancy_browse -->|"renders language"| node_vacancy_translation
node_vacancy_browse -->|"renders details"| node_carousel_details
node_visitor -->|"submits inquiry"| node_contact_form
node_contact_form -->|"posts form"| node_submission_service
node_visitor -->|"manages offers"| node_coordinator_ui
node_coordinator_ui -.->|"uses"| node_coordinator_logic
node_coordinator_logic -->|"reads and updates"| node_vacancy_service
node_visitor -->|"manages projects"| node_vacancy_admin_page
node_vacancy_admin_page -.->|"uses"| node_admin_client
node_admin_client -.->|"requests data"| node_site_server
node_site_server -->|"reads and writes"| node_site_database
node_site_server -->|"serves static files"| node_site_server
node_consent -->|"loads on consent"| node_analytics
node_visitor -->|"sets preference"| node_consent
node_website -.->|"localized by"| node_translations
node_website -.->|"links legal content"| node_policy_pages

click node_website "https://github.com/nasimll/sg-webpage/blob/main/index.html"
click node_site_interactions "https://github.com/nasimll/sg-webpage/blob/main/js/script.js"
click node_vacancy_browse "https://github.com/nasimll/sg-webpage/blob/main/js/jswak.js"
click node_vacancy_page "https://github.com/nasimll/sg-webpage/blob/main/vacancies.html"
click node_coordinator_ui "https://github.com/nasimll/sg-webpage/blob/main/coordinator.html"
click node_coordinator_logic "https://github.com/nasimll/sg-webpage/blob/main/js/coordinator.js"
click node_vacancy_admin_page "https://github.com/nasimll/sg-webpage/blob/main/wakaty.html"
click node_admin_client "https://github.com/nasimll/sg-webpage/blob/main/js/vscript.js"
click node_contact_form "https://github.com/nasimll/sg-webpage/blob/main/images/gsheet.js"
click node_site_server "https://github.com/nasimll/sg-webpage/blob/main/server.js"
click node_site_database "https://github.com/nasimll/sg-webpage/blob/main/data.db"
click node_consent "https://github.com/nasimll/sg-webpage/blob/main/js/consent.js"
click node_translations "https://github.com/nasimll/sg-webpage/tree/main/lang"
click node_policy_pages "https://github.com/nasimll/sg-webpage/blob/main/privacy-policy.html"
click node_vacancy_translation "https://github.com/nasimll/sg-webpage/blob/main/js/jswak.js"
click node_carousel_details "https://github.com/nasimll/sg-webpage/blob/main/js/jswak.js"

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_website,node_site_interactions,node_contact_form,node_translations,node_policy_pages toneBlue
class node_vacancy_browse,node_vacancy_page,node_vacancy_translation,node_carousel_details toneAmber
class node_coordinator_ui,node_coordinator_logic,node_vacancy_admin_page,node_admin_client toneMint
class node_submission_service,node_vacancy_service,node_site_server,node_site_database,node_consent,node_analytics toneRose
class node_visitor toneIndigo
```

## Components

### Public Website

- [Recruitment Website](https://github.com/nasimll/sg-webpage/blob/main/index.html): `index.html`
- [Site Interactions](https://github.com/nasimll/sg-webpage/blob/main/js/script.js): `js/script.js`
- [Contact Form](https://github.com/nasimll/sg-webpage/blob/main/images/gsheet.js): `images/gsheet.js`
- [Language Resources](https://github.com/nasimll/sg-webpage/tree/main/lang): `lang`
- [Legal Pages](https://github.com/nasimll/sg-webpage/blob/main/privacy-policy.html): `privacy-policy.html`

### Vacancy Experience

- [Vacancy Browsing](https://github.com/nasimll/sg-webpage/blob/main/js/jswak.js): `js/jswak.js`
- [Vacancies Page](https://github.com/nasimll/sg-webpage/blob/main/vacancies.html): `vacancies.html`
- [Vacancy Translations](https://github.com/nasimll/sg-webpage/blob/main/js/jswak.js): `js/jswak.js`
- [Carousel & Details](https://github.com/nasimll/sg-webpage/blob/main/js/jswak.js): `js/jswak.js`

### Coordinator Tools

- [Coordinator UI](https://github.com/nasimll/sg-webpage/blob/main/coordinator.html): `coordinator.html`
- [Offer Management](https://github.com/nasimll/sg-webpage/blob/main/js/coordinator.js): `js/coordinator.js`
- [Vacancy Admin Page](https://github.com/nasimll/sg-webpage/blob/main/wakaty.html): `wakaty.html`
- [Project Vacancy Client](https://github.com/nasimll/sg-webpage/blob/main/js/vscript.js): `js/vscript.js`

### Data Services & Consent

- **Form Submission Service**
- **Google Sheets Vacancy Service**
- [Project Vacancy API](https://github.com/nasimll/sg-webpage/blob/main/server.js): `server.js`
- [Projects & Vacancies DB](https://github.com/nasimll/sg-webpage/blob/main/data.db): `data.db`
- [Cookie Consent](https://github.com/nasimll/sg-webpage/blob/main/js/consent.js): `js/consent.js`
- **Google Analytics**

### Other components

- **Visitor**

## Connections

- Visitor → Recruitment Website: visits
- Recruitment Website → Site Interactions: uses
- Visitor → Vacancies Page: browses
- Vacancies Page → Vacancy Browsing: uses
- Vacancy Browsing → Google Sheets Vacancy Service: fetches offers (evidence: `js/jswak.js`)
- Vacancy Browsing → Vacancy Translations: renders language (evidence: `js/jswak.js`)
- Vacancy Browsing → Carousel & Details: renders details (evidence: `js/jswak.js`)
- Visitor → Contact Form: submits inquiry (evidence: `images/gsheet.js`)
- Contact Form → Form Submission Service: posts form (evidence: `images/gsheet.js`)
- Visitor → Coordinator UI: manages offers
- Coordinator UI → Offer Management: uses
- Offer Management → Google Sheets Vacancy Service: reads and updates (evidence: `js/coordinator.js`)
- Visitor → Vacancy Admin Page: manages projects
- Vacancy Admin Page → Project Vacancy Client: uses
- Project Vacancy Client → Project Vacancy API: requests data
- Project Vacancy API → Projects & Vacancies DB: reads and writes (evidence: `server.js`)
- Project Vacancy API → Project Vacancy API: serves static files (evidence: `server.js`)
- Cookie Consent → Google Analytics: loads on consent (evidence: `js/consent.js`)
- Visitor → Cookie Consent: sets preference (evidence: `js/consent.js`)
- Recruitment Website → Language Resources: localized by
- Recruitment Website → Legal Pages: links legal content
