# mozzgov/new_project_pack architecture

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

- Interactive diagram: https://gitdiagram.com/mozzgov/new_project_pack
- Repository: https://github.com/mozzgov/new_project_pack

## Overview

This repository is a frontend project starter: its source includes HTML pages and shared fragments, SCSS styles, and separate TypeScript and native-JavaScript entry points. The clearest user-facing behavior is the TypeScript entry initializing header scroll styling, an animated menu toggle, and smooth anchor scrolling after DOM readiness. The graph shows those runtime calls and the native entry’s imported helper. README-described build, reload, and asset-processing tasks are intentionally excluded; HTML-to-script and stylesheet wiring is not shown in the excerpts, so those connections are omitted.

Main entry points: [`src/ts/main.ts`](https://github.com/mozzgov/new_project_pack/blob/master/src/ts/main.ts) (TypeScript entry), [`src/ts/modules/index.ts`](https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/index.ts) (Module exports), [`src/ts/modules/headerBackground.ts`](https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/headerBackground.ts) (Header background), [`src/ts/modules/menuToggle.ts`](https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/menuToggle.ts) (Menu toggle)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_pages_styles["Pages and styles"]
  node_html_pages["HTML pages<br/>[index.html]"]
  node_header_fragment["Header fragment<br/>[header.html]"]
  node_footer_fragment["Footer fragment<br/>[footer.html]"]
  node_page_examples["Page examples<br/>[pages.html]"]
  node_typology_page["Typology page<br/>[typology.html]"]
  node_scss_entry["SCSS entry<br/>[style.scss]"]
  node_scss_core["Core styles"]
  node_scss_layout["Layout styles"]
end

subgraph group_ts_runtime["TypeScript interactions"]
  node_ts_entry["TypeScript entry<br/>[main.ts]"]
  node_ts_exports["Module exports<br/>[index.ts]"]
  node_header_background["Header background"]
  node_menu_toggle["Menu toggle<br/>[menuToggle.ts]"]
  node_smooth_scroll["Smooth scrolling<br/>[smoothScroll.ts]"]
end

subgraph group_js_runtime["Native JavaScript"]
  node_js_entry["JavaScript entry<br/>[main.js]"]
  node_js_test_helper["Test logger helper<br/>[test.js]"]
end

node_browser_user(("Site visitor"))

node_ts_entry -->|"initializes"| node_header_background
node_ts_entry -->|"initializes"| node_menu_toggle
node_ts_entry -->|"initializes"| node_smooth_scroll
node_ts_exports -->|"re-exports"| node_header_background
node_ts_exports -->|"re-exports"| node_menu_toggle
node_ts_exports -->|"re-exports"| node_smooth_scroll
node_js_entry -->|"imports"| node_js_test_helper

click node_html_pages "https://github.com/mozzgov/new_project_pack/blob/master/src/index.html"
click node_header_fragment "https://github.com/mozzgov/new_project_pack/blob/master/src/include/header.html"
click node_footer_fragment "https://github.com/mozzgov/new_project_pack/blob/master/src/include/footer.html"
click node_page_examples "https://github.com/mozzgov/new_project_pack/blob/master/src/pages.html"
click node_typology_page "https://github.com/mozzgov/new_project_pack/blob/master/src/typology.html"
click node_scss_entry "https://github.com/mozzgov/new_project_pack/blob/master/src/css/scss/style.scss"
click node_scss_core "https://github.com/mozzgov/new_project_pack/tree/master/src/css/scss/core"
click node_scss_layout "https://github.com/mozzgov/new_project_pack/tree/master/src/css/scss/layout"
click node_ts_entry "https://github.com/mozzgov/new_project_pack/blob/master/src/ts/main.ts"
click node_ts_exports "https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/index.ts"
click node_header_background "https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/headerBackground.ts"
click node_menu_toggle "https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/menuToggle.ts"
click node_smooth_scroll "https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/smoothScroll.ts"
click node_js_entry "https://github.com/mozzgov/new_project_pack/blob/master/src/js/main.js"
click node_js_test_helper "https://github.com/mozzgov/new_project_pack/blob/master/src/js/module/test.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_html_pages,node_header_fragment,node_footer_fragment,node_page_examples,node_typology_page,node_scss_entry,node_scss_core,node_scss_layout toneBlue
class node_ts_entry,node_ts_exports,node_header_background,node_menu_toggle,node_smooth_scroll toneAmber
class node_js_entry,node_js_test_helper toneMint
class node_browser_user toneIndigo
```

## Components

### Pages and styles

- [HTML pages](https://github.com/mozzgov/new_project_pack/blob/master/src/index.html): `src/index.html`
- [Header fragment](https://github.com/mozzgov/new_project_pack/blob/master/src/include/header.html): `src/include/header.html`
- [Footer fragment](https://github.com/mozzgov/new_project_pack/blob/master/src/include/footer.html): `src/include/footer.html`
- [Page examples](https://github.com/mozzgov/new_project_pack/blob/master/src/pages.html): `src/pages.html`
- [Typology page](https://github.com/mozzgov/new_project_pack/blob/master/src/typology.html): `src/typology.html`
- [SCSS entry](https://github.com/mozzgov/new_project_pack/blob/master/src/css/scss/style.scss): `src/css/scss/style.scss`
- [Core styles](https://github.com/mozzgov/new_project_pack/tree/master/src/css/scss/core): `src/css/scss/core`
- [Layout styles](https://github.com/mozzgov/new_project_pack/tree/master/src/css/scss/layout): `src/css/scss/layout`

### TypeScript interactions

- [TypeScript entry](https://github.com/mozzgov/new_project_pack/blob/master/src/ts/main.ts): `src/ts/main.ts`
- [Module exports](https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/index.ts): `src/ts/modules/index.ts`
- [Header background](https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/headerBackground.ts): `src/ts/modules/headerBackground.ts`
- [Menu toggle](https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/menuToggle.ts): `src/ts/modules/menuToggle.ts`
- [Smooth scrolling](https://github.com/mozzgov/new_project_pack/blob/master/src/ts/modules/smoothScroll.ts): `src/ts/modules/smoothScroll.ts`

### Native JavaScript

- [JavaScript entry](https://github.com/mozzgov/new_project_pack/blob/master/src/js/main.js): `src/js/main.js`
- [Test logger helper](https://github.com/mozzgov/new_project_pack/blob/master/src/js/module/test.js): `src/js/module/test.js`

### Other components

- **Site visitor**

## Connections

- TypeScript entry → Header background: initializes (evidence: `src/ts/main.ts`)
- TypeScript entry → Menu toggle: initializes (evidence: `src/ts/main.ts`)
- TypeScript entry → Smooth scrolling: initializes (evidence: `src/ts/main.ts`)
- Module exports → Header background: re-exports (evidence: `src/ts/modules/index.ts`)
- Module exports → Menu toggle: re-exports (evidence: `src/ts/modules/index.ts`)
- Module exports → Smooth scrolling: re-exports (evidence: `src/ts/modules/index.ts`)
- JavaScript entry → Test logger helper: imports (evidence: `src/js/main.js`)
