# starset4consulting/social-sphere-website architecture

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

- Interactive diagram: https://gitdiagram.com/starset4consulting/social-sphere-website
- Repository: https://github.com/starset4consulting/social-sphere-website

## Overview

##### Main Component Structure

**┌─ Application Layer ─────────────────────┐**

- ┌─ Routing Layer ──┐  ┌─ Pages ─────┐ │

- React Router    │──▶ Home        │ │
- Services    │ │
- ┘  │ Contact     │ │
- ┘ │
- ┘

##### Component Hierarchy

**┌─ Layout Components ─┐    ┌─ Feature Components ─┐**
- Header             │    │ Home                 │
- Footer             │────▶ - Hero              │
- ServiceLayout      │    │ - About             │
- ┬─┘    │ - Services         │
- Testimonials      │
- ┬─┘

- ┌─ UI Components ───▼─┐
- ▶│ Button             │
- Card               │
- Dialog             │
- (other UI elements)│
- ┬─┘

- ┌─ Shared Logic ───▼─┐
- Hooks              │
- Utils              │
- Animations         │
- ┬─┘

##### Data Flow and State Management

How data flows through the application:

**┌─ Client Browser ─────────────────────────────┐**

- ┌─ React Application ──────────────────┐   │

- ┌─ Components ─┐   ┌─ Hooks ──────┐│   │

- UI State    │◀──▶ use-toast    ││   │
- Props       │   │ Custom Hooks ││   │
- ┘   └──────────────┘│   │

- ┘   │

- ┘

Key Elements to Include:

##### Technology Stack Indicators
- React + Vite
- TypeScript
- Tailwind CSS
- React Router

**┌─ Development ─┐  ┌─ Build Process ─┐  ┌─ Production ─┐**
- Vite Dev      │─▶│ npm run build   │─▶│ Optimized    │
- Server        │  │ (Vite + TS)     │  │ Static Files │
- ┘  └────────────────┘  └─────────────┘

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph "Application Layer"
        App["App"]
        Router["React Router"]
    end

    subgraph "Pages Layer"
        Home["Home Page"]
        Services["Services Page"]
        Contact["Contact Page"]
    end

    subgraph "Layout Components"
        Header["Header"]
        Footer["Footer"]
        ServiceLayout["Service Layout"]
    end

    subgraph "Feature Components"
        Hero["Hero Section"]
        About["About Section"]
        ServicesSection["Services Section"]
        Testimonials["Testimonials"]
        FeatureList["Feature List"]
    end

    subgraph "UI Components"
        Button["Button"]
        Card["Card"]
        Dialog["Dialog"]
        Toast["Toast"]
        ScrollToTop["Scroll To Top"]
    end

    subgraph "Shared Logic"
        Hooks["Custom Hooks"]
        Utils["Utilities"]
        Animations["Animations"]
    end

    %% Relationships
    App --> Router
    Router --> Home
    Router --> Services
    Router --> Contact

    Home --> Hero
    Home --> About
    Home --> ServicesSection
    Home --> Testimonials
    Services --> ServiceLayout
    ServiceLayout --> FeatureList

    App --> Header
    App --> Footer
    App --> ScrollToTop

    Hero --> Button
    About --> Card
    ServicesSection --> Card
    Testimonials --> Card
    FeatureList --> Card

    Toast --> Hooks
    Button --> Utils
    Card --> Utils
    Hero --> Animations

    %% Click events
    click App "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/App.tsx"
    click Home "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/pages/Home.tsx"
    click Services "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/pages/Services.tsx"
    click Contact "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/pages/Contact.tsx"
    click Header "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/layout/Header.tsx"
    click Footer "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/layout/Footer.tsx"
    click ServiceLayout "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/services/ServiceLayout.tsx"
    click Hero "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/home/Hero.tsx"
    click About "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/home/About.tsx"
    click ServicesSection "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/home/Services.tsx"
    click Testimonials "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/home/Testimonials.tsx"
    click FeatureList "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/services/FeatureList.tsx"
    click Button "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/ui/button.tsx"
    click Card "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/ui/card.tsx"
    click Dialog "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/ui/dialog.tsx"
    click Toast "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/ui/toast.tsx"
    click ScrollToTop "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/components/ScrollToTop.tsx"
    click Hooks "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/hooks/use-toast.ts"
    click Utils "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/lib/utils.ts"
    click Animations "https://github.com/Starset4Consulting/Social-Sphere-Website/blob/master/src/lib/animations.ts"

    %% Styling
    classDef default fill:#f9f9f9,stroke:#333,stroke-width:2px
    classDef app fill:#dbeafe,stroke:#2563eb
    classDef page fill:#dcfce7,stroke:#16a34a
    classDef layout fill:#fef9c3,stroke:#ca8a04
    classDef feature fill:#fce7f3,stroke:#db2777
    classDef ui fill:#f3e8ff,stroke:#9333ea
    classDef logic fill:#fee2e2,stroke:#dc2626

    class App,Router app
    class Home,Services,Contact page
    class Header,Footer,ServiceLayout layout
    class Hero,About,ServicesSection,Testimonials,FeatureList feature
    class Button,Card,Dialog,Toast,ScrollToTop ui
    class Hooks,Utils,Animations logic
```
