# sohbetguly/welding architecture

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

- Interactive diagram: https://gitdiagram.com/sohbetguly/welding
- Repository: https://github.com/sohbetguly/welding

## Overview

##### Main Components Identification

a) Application Layer
- Main App.jsx as the root component
- Core structural components (Header, Footer, Navbar)
- Routing system connecting to different pages

b) Page Components Layer
- Main pages: Home, About, Services, Contact, Our Work
- Subcomponents within each page (e.g., Home's Features, Slider, Testimonial)

c) Internationalization Layer
- I18n configuration
- Connection to locale files (en.json, ru.json, tm.json)

**┌─────────────────────────────────────┐**
- App.jsx                │
- ┌────────────┬────────────────┐   │
- Header    │     Navbar     │   │
- ┴────────────────┘   │
- ┘

**┌─────┐  ┌──────┐  ┌────────┐  ┌───────┐**
- Home │  │About │  │Services│  │Contact│
- ┘  └──────┘  └────────┘  └───────┘

##### Technical Stack Indicators

- React (Create React App)
- Tailwind CSS
- i18n for internationalization
- Testing setup (Jest/React Testing Library)

##### Component Relationships

Hierarchical structure:
**App**
- Header
- Navbar
- Routes
- Home
- Features
- Slider
- Testimonial
- About
- Services
- Contact
- Footer

##### Data Flow Representation

- Route changes
- Language selection flow
- Component state management
- Asset loading paths

Remember to include:
- Clear component boundaries
- Routing paths
- i18n integration points
- Asset management
- Build/deployment flow

This will provide a comprehensive view of the application's architecture while maintaining clarity and usefulness for the development team.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph Application
        App["App"]:::core
        Header["Header"]:::core
        Footer["Footer"]:::core
        Navbar["Navbar"]:::core
        
        App --> Header
        App --> Navbar
        App --> Footer
    end

    subgraph "Pages Layer"
        Home["Home Page"]:::page
        About["About Page"]:::page
        Services["Services Page"]:::page
        Contact["Contact Page"]:::page
        OurWork["Our Work Page"]:::page

        App --> Home
        App --> About
        App --> Services
        App --> Contact
        App --> OurWork
    end

    subgraph "Home Components"
        Features["Features"]:::component
        Slider["Slider"]:::component
        Slider2["Slider2"]:::component
        SliderHome["SliderHome"]:::component
        Testimonial["Testimonial"]:::component

        Home --> Features
        Home --> Slider
        Home --> Slider2
        Home --> SliderHome
        Home --> Testimonial
    end

    subgraph "About Components"
        AboutContent["Content"]:::component
        AboutFeature["Feature"]:::component
        AboutSlider["Slider"]:::component

        About --> AboutContent
        About --> AboutFeature
        About --> AboutSlider
    end

    subgraph "Internationalization"
        i18n["i18n Config"]:::i18n
        Lang["Language Switcher"]:::i18n
        en["English Locale"]:::locale
        ru["Russian Locale"]:::locale
        tm["Turkmen Locale"]:::locale

        i18n --> en
        i18n --> ru
        i18n --> tm
        App --> i18n
        App --> Lang
    end

    subgraph "Static Assets"
        HomeImages["Home Images"]:::asset
        AboutImages["About Images"]:::asset
        ServicesImages["Services Images"]:::asset
    end

    %% Click events for component mapping
    click App "https://github.com/sohbetguly/welding/blob/main/src/App.jsx"
    click Header "https://github.com/sohbetguly/welding/blob/main/src/Header.jsx"
    click Footer "https://github.com/sohbetguly/welding/blob/main/src/Footer.jsx"
    click Navbar "https://github.com/sohbetguly/welding/blob/main/src/Navbar.jsx"
    click i18n "https://github.com/sohbetguly/welding/blob/main/src/i18n.js"
    click Lang "https://github.com/sohbetguly/welding/blob/main/src/Lang.jsx"
    click en "https://github.com/sohbetguly/welding/blob/main/src/locales/en.json"
    click ru "https://github.com/sohbetguly/welding/blob/main/src/locales/ru.json"
    click tm "https://github.com/sohbetguly/welding/blob/main/src/locales/tm.json"
    click Home "https://github.com/sohbetguly/welding/blob/main/src/pages/Home/index.jsx"
    click About "https://github.com/sohbetguly/welding/blob/main/src/pages/About/index.jsx"
    click Services "https://github.com/sohbetguly/welding/blob/main/src/pages/Services/index.jsx"
    click Contact "https://github.com/sohbetguly/welding/blob/main/src/pages/Contact/index.jsx"
    click OurWork "https://github.com/sohbetguly/welding/blob/main/src/pages/Our Work/index.jsx"
    click Features "https://github.com/sohbetguly/welding/blob/main/src/pages/Home/Features.jsx"
    click Slider "https://github.com/sohbetguly/welding/blob/main/src/pages/Home/Slider.jsx"
    click Slider2 "https://github.com/sohbetguly/welding/blob/main/src/pages/Home/Slider2.jsx"
    click SliderHome "https://github.com/sohbetguly/welding/blob/main/src/pages/Home/SliderHome.jsx"
    click Testimonial "https://github.com/sohbetguly/welding/blob/main/src/pages/Home/Testimonial.jsx"
    click AboutContent "https://github.com/sohbetguly/welding/blob/main/src/pages/About/Content.jsx"
    click AboutFeature "https://github.com/sohbetguly/welding/blob/main/src/pages/About/Feature.jsx"
    click AboutSlider "https://github.com/sohbetguly/welding/blob/main/src/pages/About/Slider.jsx"
    click HomeImages "https://github.com/sohbetguly/welding/tree/main/src/images/home"
    click AboutImages "https://github.com/sohbetguly/welding/tree/main/src/images/about"
    click ServicesImages "https://github.com/sohbetguly/welding/tree/main/src/images/services"

    %% Styling
    classDef core fill:#2563eb,color:white
    classDef page fill:#16a34a,color:white
    classDef component fill:#ca8a04,color:white
    classDef i18n fill:#9333ea,color:white
    classDef locale fill:#d8b4fe,color:black
    classDef asset fill:#94a3b8,color:white

    %% Legend
    subgraph Legend
        L1["Core Components"]:::core
        L2["Pages"]:::page
        L3["Page Components"]:::component
        L4["i18n System"]:::i18n
        L5["Locale Files"]:::locale
        L6["Static Assets"]:::asset
    end
```
