# ashutri0/tei architecture

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

- Interactive diagram: https://gitdiagram.com/ashutri0/tei
- Repository: https://github.com/ashutri0/tei

## Overview

##### Project type and purpose
- This is a purely static, multi‐page website (“tei”) composed of HTML pages (index.html, about.html, contact.html, etc.), CSS stylesheets, JavaScript, images, and a few PDF assets.
- There is no application server or database—everything is served as static files.

##### File structure
- Top‐level: individual HTML pages and a README.
- assets/ holds all static resources:
- assets/css/ → stylesheet files (404.css, product.css, style.css, responsive.css, etc.)
- assets/js/  → client scripts (script.js, product.js)
- assets/images/ → image files and a brands subfolder
- assets/certificate and input/ → PDF documents (GST CERTIFICATE.pdf, brand PDF)
- products-page/ → dynamic‐looking product HTMLs, but still static.

##### Main components
- Client Web Browser
- Static File Host (e.g., Nginx, Apache, GitHub Pages, S3 + CloudFront)
- File Storage (HTML, CSS, JS, Images, PDFs)
- Optional CDN layer for assets

##### Relationships and data flow
- The Browser issues HTTP(S) GET requests to the Static Host.
- The Host retrieves corresponding files from File Storage (or CDN cache) and responds with HTML, CSS, JS, images, or PDFs.
- The Browser renders HTML, applies CSS, executes JS, and fetches images/PDFs as needed.

##### Architectural patterns and design principles
- Multi‐Page Application (MPA) style—each page is a standalone HTML.
- Clear separation of concerns:
- HTML for structure/content
- CSS for styling/responsiveness
- JS for interactivity (product filtering, scripts)
- Asset organization to facilitate caching and CDN distribution.

##### Relevant technologies/frameworks
- Static web server (Nginx/Apache/GitHub Pages)
- CDN (e.g., CloudFront, Cloudflare) for assets/ CSS/JS/images
- Browser (Chrome, Firefox) executing script.js, product.js

## Diagram (Mermaid)

```mermaid
flowchart TD
    subgraph "Client Side"
        Browser["Client Web Browser"]:::blue
    end

    subgraph "CDN Layer"
        CDN["CDN (assets/)"]:::orange
    end

    subgraph "Static File Host"
        Host["Static File Host\n(/)"]:::green
        subgraph "File Storage"
            subgraph "HTML Pages"
                A404["404.html"]:::orange
                Aindex["index.html"]:::orange
                Aabout["about.html"]:::orange
                Acontact["contact.html"]:::orange
                Amission["mission-vision.html"]:::orange
                Aservice["service.html"]:::orange
            end
            subgraph "Product Pages"
                P1["Electric-Rotory-Actuator-70AI.html"]:::orange
                P2["Explosion=proof-ExdIIBT4-IMT04.html"]:::orange
                P3["IP66-Electric-Valve-Actuator.html"]:::orange
            end
            subgraph "CSS Stylesheets"
                CSS1["style.css"]:::orange
                CSS2["responsive.css"]:::orange
                CSS3["product.css"]:::orange
                CSS4["productdets.css"]:::orange
                CSS5["404.css"]:::orange
            end
            subgraph "JavaScript"
                JS1["script.js"]:::orange
                JS2["product.js"]:::orange
            end
            subgraph "Images"
                Images["assets/images/"]:::orange
            end
            subgraph "PDF Assets"
                CertDir["assets/certificate/"]:::orange
                GST["GST CERTIFICATE.pdf"]:::orange
                BrandPDF["Reetika_Singh (1).pdf"]:::orange
            end
        end
    end

    Browser -->|"GET assets"| CDN
    CDN -->|"GET file"| Host
    Host -->|"fetch file"| A404
    Host -->|"fetch file"| Aindex
    Host -->|"fetch file"| Aabout
    Host -->|"fetch file"| Acontact
    Host -->|"fetch file"| Amission
    Host -->|"fetch file"| Aservice
    Host -->|"fetch file"| P1
    Host -->|"fetch file"| P2
    Host -->|"fetch file"| P3
    Host -->|"fetch file"| CSS1
    Host -->|"fetch file"| CSS2
    Host -->|"fetch file"| CSS3
    Host -->|"fetch file"| CSS4
    Host -->|"fetch file"| CSS5
    Host -->|"fetch file"| JS1
    Host -->|"fetch file"| JS2
    Host -->|"fetch file"| Images
    Host -->|"fetch file"| CertDir
    Host -->|"fetch file"| GST
    Host -->|"fetch file"| BrandPDF
    Host -->|"200 OK + file"| CDN
    CDN -->|"200 OK + file"| Browser

    classDef blue fill:#D0E6FF,stroke:#0366d6
    classDef green fill:#D8F0D8,stroke:#228B22
    classDef orange fill:#FFE5B4,stroke:#FF8C00

    click Host "https://github.com/ashutri0/tei/tree/main//"
    click A404 "https://github.com/ashutri0/tei/blob/main/404.html"
    click Aindex "https://github.com/ashutri0/tei/blob/main/index.html"
    click Aabout "https://github.com/ashutri0/tei/blob/main/about.html"
    click Acontact "https://github.com/ashutri0/tei/blob/main/contact.html"
    click Amission "https://github.com/ashutri0/tei/blob/main/mission-vision.html"
    click Aservice "https://github.com/ashutri0/tei/blob/main/service.html"
    click P1 "https://github.com/ashutri0/tei/blob/main/products-page/Electric-Rotory-Actuator-70AI.html"
    click P2 "https://github.com/ashutri0/tei/blob/main/products-page/Explosion=proof-ExdIIBT4-IMT04.html"
    click P3 "https://github.com/ashutri0/tei/blob/main/products-page/IP66-Electric-Valve-Actuator.html"
    click CSS1 "https://github.com/ashutri0/tei/blob/main/assets/css/style.css"
    click CSS2 "https://github.com/ashutri0/tei/blob/main/assets/css/responsive.css"
    click CSS3 "https://github.com/ashutri0/tei/blob/main/assets/css/product.css"
    click CSS4 "https://github.com/ashutri0/tei/blob/main/assets/css/productdets.css"
    click CSS5 "https://github.com/ashutri0/tei/blob/main/assets/css/404.css"
    click JS1 "https://github.com/ashutri0/tei/blob/main/assets/js/script.js"
    click JS2 "https://github.com/ashutri0/tei/blob/main/assets/js/product.js"
    click Images "https://github.com/ashutri0/tei/tree/main/assets/images/"
    click CertDir "https://github.com/ashutri0/tei/tree/main/assets/certificate/"
    click GST "https://github.com/ashutri0/tei/blob/main/input/GST CERTIFICATE.pdf"
    click BrandPDF "https://github.com/ashutri0/tei/blob/main/assets/images/brands/Reetika_Singh (1).pdf"
    click CDN "https://github.com/ashutri0/tei/tree/main/assets/"
```
