# hammyboi09/dental-world-online architecture

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

- Interactive diagram: https://gitdiagram.com/hammyboi09/dental-world-online
- Repository: https://github.com/hammyboi09/dental-world-online

## Overview

##### Main System Components

The system should be represented with these key components:

a. Frontend Architecture (React/TypeScript Application):
- Client-Side Rendering Layer
- Component Library
- State Management
- Routing System
- Media Assets Handler

b. Interactive Features:
- Chatbot System
- AI Consultation System
- Booking/Appointment System
- Gallery/Media Viewer
- Audio Player System

c. External Services:
- Gemini AI Integration (noted from lib/gemini.ts)
- Maps Integration (for clinic locations)
- WhatsApp Integration

##### Component Organization

a. Feature-based Module Structure:
**Components/**
- Core (Navigation, Header, Footer)
- Services
- Team
- Gallery
- Blog
- Testimonials
- Certifications
- Consultation
- Chat

b. Shared Resources:
- UI Components
- Hooks
- Types
- Styles
- Assets

##### Data Flow Representation

Key interactions:

a. User Interface Flows:
- Navigation System
- Service Discovery
- Consultation Process
- Media Viewing
- Chat Interactions

b. Data Management:
- Static Content (services, team, testimonials)
- Dynamic Content (chat, consultation)
- Media Assets (videos, images, audio)

##### Specific Implementation Details

a. Component Architecture:
- Modular Component Structure
- Reusable UI Components
- Animation Systems
- Progressive Loading

b. Interactive Features:
- Floating Chatbot
- AI Consultation
- Gallery/Modal Systems
- Audio Player
- Video Backgrounds

##### Technical Stack Indicators

Technology markers:

- React/TypeScript
- Tailwind CSS
- Vite
- Gemini AI
- PostCSS
- ESLint

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "User Interface Layer"
        UI["Client-Side Rendering Core"]:::frontend
        CompLib["UI Component Library"]:::frontend
        Nav["Navigation System"]:::frontend
    end

    subgraph "Feature Components"
        Chat["Chatbot System"]:::feature
        Consult["AI Consultation System"]:::feature
        Gallery["Gallery System"]:::feature
        Audio["Audio Player"]:::feature
        Video["Video Background"]:::feature
        Progress["Progress Tracking"]:::feature
        Anim["Animation System"]:::feature
    end

    subgraph "Content Modules"
        Services["Services Module"]:::module
        Team["Team Module"]:::module
        Blog["Blog Module"]:::module
        Test["Testimonials Module"]:::module
        Cert["Certifications Module"]:::module
    end

    subgraph "Core Services"
        State["State Management"]:::core
        Assets["Media Assets"]:::core
    end

    subgraph "External Integrations"
        Gemini["Gemini AI"]:::external
        Maps["Maps Integration"]:::external
        WhatsApp["WhatsApp Integration"]:::external
    end

    UI --> CompLib
    UI --> Nav
    CompLib --> Chat
    CompLib --> Gallery
    CompLib --> Audio
    CompLib --> Video
    CompLib --> Progress
    CompLib --> Anim

    Chat --> Gemini
    Consult --> Gemini
    Services --> Assets
    Gallery --> Assets
    Team --> Assets

    Nav --> Services
    Nav --> Team
    Nav --> Blog
    Nav --> Test
    Nav --> Cert

    Services --> Maps
    Services --> WhatsApp

    %% Click Events
    click UI "https://github.com/Hammyboi09/Dental-World-Online/blob/main/src/App.tsx"
    click CompLib "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/ui"
    click Chat "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/chat/FloatingChatbot"
    click Consult "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/consultation"
    click Gallery "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/gallery"
    click Audio "https://github.com/Hammyboi09/Dental-World-Online/blob/main/src/components/audio/AudioPlayer.tsx"
    click Nav "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/navigation"
    click Gemini "https://github.com/Hammyboi09/Dental-World-Online/blob/main/src/lib/gemini.ts"
    click Maps "https://github.com/Hammyboi09/Dental-World-Online/blob/main/src/components/contact/LocationMap.tsx"
    click WhatsApp "https://github.com/Hammyboi09/Dental-World-Online/blob/main/src/components/contact/WhatsAppButton.tsx"
    click Services "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/services"
    click Team "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/team"
    click Blog "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/blog"
    click Test "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/testimonials"
    click Cert "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/certifications"
    click Assets "https://github.com/Hammyboi09/Dental-World-Online/tree/main/public/elements"
    click Anim "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/animations"
    click Progress "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/components/progress"
    click State "https://github.com/Hammyboi09/Dental-World-Online/tree/main/src/hooks"
    click Video "https://github.com/Hammyboi09/Dental-World-Online/blob/main/src/components/hero/VideoBackground.tsx"

    %% Styles
    classDef frontend fill:#3498db,color:white
    classDef feature fill:#2ecc71,color:white
    classDef module fill:#9b59b6,color:white
    classDef core fill:#e67e22,color:white
    classDef external fill:#95a5a6,color:white

    %% Legend
    subgraph Legend
        F[Frontend Components]:::frontend
        Fe[Interactive Features]:::feature
        M[Content Modules]:::module
        C[Core Services]:::core
        E[External Services]:::external
    end
```
