# tejakumar123/infini-website architecture

> Architecture diagram of the GitHub repository tejakumar123/infini-website, 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/tejakumar123/infini-website
- Repository: https://github.com/tejakumar123/infini-website

## Overview

##### Main System Components Identification

a. Core Application Layer
- Entry points (index.html, main.jsx)
- App container (App.jsx)
- Routing system (routes/IndexRoute.jsx)

b. Component Architecture (Three-Tier)
- Major Components (src/components/major)
- Basic Components (src/components/basic)
- Pages (src/pages)

c. Asset Management
- Static assets (public/)
- Dynamic assets (src/assets/)

**[Client Browser]**
- ↓
**[Vite Dev Server / Production Build]**
- ↓
**[Application Entry (main.jsx)]**
- ↓
**[App Container (App.jsx)]**
- ↓
**[Router (IndexRoute)]**
- ↓
**[Pages Layer]**
- ↙  ↓  ↘
**[Home] [NotFound] [Future Pages]**
- ↓
**[Major Components]**
- ↓
**[Basic Components]**

##### Component Relationship Visualization

- Rounded rectangles for major components (green)
- Ovals for basic components (orange)
- Diamonds for services and utilities (purple)

##### Specific Implementation Details

a. Component Hierarchy
- Relationship between major and basic components
- Modular structure (about, services, navbar, footer sections)

b. Feature Modules
- Related components (e.g., services/, about/, footer/)
- Shared components and their relationships

c. Asset Management
- How static and dynamic assets are handled
- Relationship between public/ and src/assets/

##### Technical Stack Indicators

A tech stack section showing:
- React (Core Framework)
- Vite (Build Tool)
- TailwindCSS (Styling)
- ESLint (Code Quality)

##### Data Flow Patterns

Illustrate:
- Component communication patterns
- State management (if any)
- Modal and form handling (especially for components like PersonDetailsModal and FeedbackForm)

##### Additional Notes

Annotations for:
- Build process flow
- Static asset handling
- Routing structure
- Component reuse patterns

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Client
        Browser["Web Browser"]
    end

    subgraph BuildTools
        ViteServer["Vite Dev Server"]
        TailwindCSS["TailwindCSS"]:::build
        ESLint["ESLint"]:::build
    end

    subgraph CoreApp
        Entry["Application Entry"]:::core
        AppContainer["App Container"]:::core
        Router["Router System"]:::core
    end

    subgraph Pages
        Home["Home Page"]:::page
        NotFound["Not Found Page"]:::page
        FuturePages["Future Pages"]:::page
    end

    subgraph MajorComponents
        NavbarMain["Navbar"]:::major
        ServicesMain["Services Section"]:::major
        AboutMain["About Section"]:::major
        FooterMain["Footer Section"]:::major
    end

    subgraph BasicComponents
        direction TB
        subgraph Forms
            FeedbackForm["Feedback Form"]:::basic
            QuestionForm["Question Form"]:::basic
        end

        subgraph UI
            ErrorAlert["Error Alert"]:::basic
            ServiceCard["Service Card"]:::basic
            SwiperCard["Swiper Card"]:::basic
            FaqAccordion["FAQ Accordion"]:::basic
        end

        subgraph Modals
            DialogNavbar["Navbar Dialog"]:::basic
            PersonDetails["Person Details Modal"]:::basic
        end

        subgraph Background
            BgAnimations["Background Animations"]:::basic
        end
    end

    subgraph Assets
        StaticAssets["Static Assets"]:::asset
        DynamicAssets["Dynamic Assets"]:::asset
        Images["Images"]:::asset
        Fonts["Fonts"]:::asset
    end

    Browser --> ViteServer
    ViteServer --> Entry
    Entry --> AppContainer
    AppContainer --> Router
    Router --> Home
    Router --> NotFound
    Router --> FuturePages
    
    Home --> NavbarMain
    Home --> ServicesMain
    Home --> AboutMain
    Home --> FooterMain
    
    NavbarMain --> DialogNavbar
    ServicesMain --> ServiceCard
    ServicesMain --> SwiperCard
    ServicesMain --> FaqAccordion
    ServicesMain --> QuestionForm
    FooterMain --> FeedbackForm
    
    ServiceCard --> ErrorAlert
    AboutMain --> PersonDetails
    
    %% Click Events
    click Entry "https://github.com/TejaKumar123/Infini-website/blob/main/src/main.jsx"
    click AppContainer "https://github.com/TejaKumar123/Infini-website/blob/main/src/App.jsx"
    click Router "https://github.com/TejaKumar123/Infini-website/blob/main/src/routes/IndexRoute.jsx"
    click Home "https://github.com/TejaKumar123/Infini-website/blob/main/src/pages/Home.jsx"
    click NotFound "https://github.com/TejaKumar123/Infini-website/blob/main/src/pages/Notfound.jsx"
    click NavbarMain "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/major/home/Navbar.jsx"
    click ServicesMain "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/major/home/Services.jsx"
    click AboutMain "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/major/home/About.jsx"
    click FooterMain "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/major/home/Footer.jsx"
    click DialogNavbar "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/basic/navbar/DialogNavbar.jsx"
    click FeedbackForm "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/basic/footer/FeedbackForm.jsx"
    click QuestionForm "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/basic/services/QuestionForm.jsx"
    click PersonDetails "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/basic/Details/PersonDetailsModal.jsx"
    click ErrorAlert "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/basic/ErrorAlert.jsx"
    click ServiceCard "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/basic/services/ServiceCard.jsx"
    click SwiperCard "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/basic/services/SwiperCard.jsx"
    click FaqAccordion "https://github.com/TejaKumar123/Infini-website/blob/main/src/components/basic/services/FaqAccordion.jsx"
    click StaticAssets "https://github.com/TejaKumar123/Infini-website/tree/main/public"
    click DynamicAssets "https://github.com/TejaKumar123/Infini-website/tree/main/src/assets"
    click Images "https://github.com/TejaKumar123/Infini-website/tree/main/src/assets/images"
    click Fonts "https://github.com/TejaKumar123/Infini-website/tree/main/src/assets/fonts"
    
    %% Styles
    classDef core fill:#ff9999
    classDef page fill:#99ccff
    classDef major fill:#99ff99
    classDef basic fill:#ffcc99
    classDef asset fill:#cc99ff
    classDef build fill:#ffff99

    %% Legend
    subgraph Legend
        CoreComponent["Core Component"]:::core
        PageComponent["Page Component"]:::page
        MajorComponent["Major Component"]:::major
        BasicComponent["Basic Component"]:::basic
        AssetComponent["Asset"]:::asset
        BuildComponent["Build Tool"]:::build
    end
```
